Data Format Converter

This tool is planned and not yet released. Kibot is developing an open-source command-line utility that converts Kibot data between formats: tick, second, minute, daily, weekly, monthly, quarterly, and yearly, plus platform-specific exports for NinjaTrader 8 and TradeStation. The goal is one program that handles format changes, timeframe aggregation, and timezone adjustments, so you can reshape downloaded Kibot files for any trading platform or analysis environment without custom scripting.

Planned Capabilities

The planned scope covers 60+ format combinations, batch processing of entire directories in a single command, validation of file integrity, missing bars, and data anomalies before conversion, and timezone conversion from Eastern Time to any target zone. The Data format reference has the field-by-field specification of every format the converter targets.

Planned Conversions

Timeframe aggregation:

  • Tick to Second bars (1s, 5s, 10s, 15s, 30s, 60s)
  • Tick to Minute bars (1, 2, 3, 5, 10, 15, 30, 60 min)
  • Minute to higher Minute bars (e.g., 1-min to 5, 10, 15, 30, 60)
  • Daily to Weekly, Monthly, Quarterly, Yearly

Platform-specific exports:

  • Any format to NinjaTrader 8 format (semicolon-delimited, yyyyMMdd dates)
  • Any format to TradeStation format (comma-delimited, with optional header row)

Other transformations:

  • Timezone conversion (any source format)
  • Bid/Ask stripping (tick with bid/ask to tick without bid/ask)

Example Usage

The planned CLI uses a --from / --to flag pair, with optional timezone and output path:

python kibot-convert.py input.txt --from tickbidask --to 5min --output output.txt

python kibot-convert.py input.txt --from 1min --to daily --output output.txt

python kibot-convert.py input.txt --from tick --to ninjatrader_tick --output output.txt

python kibot-convert.py input.txt --from 1min --to tradestation_1min --output output.txt

python kibot-convert.py input.txt --from tick --to 1min --tz "America/Chicago" --output output.txt

Current Status

This tool is planned. No release date has been set yet. We plan to release it as an open-source project on GitHub.

If you have specific conversion needs or feature requests, send them through the contact form.

Key Takeaways

  • The converter is a planned, not-yet-released open-source CLI for reshaping Kibot files across formats and timeframes.
  • Planned scope covers 60+ format combinations, batch directory processing, validation, and shifting timestamps from ET to any timezone.
  • The CLI takes --from <source_format> --to <target_format> flags, with optional --tz for timezone conversion and --output for the target path.
  • Aggregation follows the same one-way rule described in the Data format reference: smaller timeframes roll up into larger ones, never the reverse.
  • There is no GitHub repository or release date yet.
  • Data format reference: the spec for every input and output format the converter will handle.
  • Timezone conversion: background on the ET-to-other-zone shifts that the --tz flag will perform.
  • Tick data: the tick-by-tick input format that aggregates up to second, minute, and daily bars.
  • Adjusted vs unadjusted data: why aggregating across split or dividend events needs the right column choice.
  • Data completeness: gap detection, the area the converter's validation mode will cover.
  • Kibot Agent: the download tool that produces the raw files this converter reshapes.