Data Format Reference
Kibot delivers historical market data as plain text files with a small, stable family of schemas. Tick, second, minute, daily, aggregate bid/ask, NinjaTrader, and TradeStation formats all share a common core: comma-delimited, timestamps defaulting to Eastern Time (the time zone can be changed to suit your needs), and no header row, with well-defined variations for each use case. This page is the canonical field-by-field specification so that a reader can unambiguously parse any Kibot file.
Overview
All Kibot data files share these characteristics:
- Delimiter: Comma (
,) for all standard formats; semicolon (;) for NinjaTrader formats - Timestamps: Eastern Time (ET) by default, EST (UTC-5) or EDT (UTC-4) depending on the date; the time zone can be changed to suit your needs
- Date format:
MM/DD/YYYYfor standard formats;yyyyMMddfor NinjaTrader formats - Header row: None. Data begins on the first line.
- File type: Plain text (
.txt) - Encoding: ASCII / UTF-8
For bar data (second, minute, daily), the timestamp represents the bar open time, the moment the bar begins, not when it closes. A bar stamped 10:30 on 1-minute data covers the period from 10:30:00 through 10:30:59. This convention is consistent across all Kibot standard formats and is shared by the NinjaTrader export described below; only the TradeStation export stamps the end of the bar.
Tick formats
Tick data captures every individual trade or quote update. The standard format records the trade time to the second; an experimental millisecond-timestamp variant also exists for US stocks, ETFs, and futures. Each comes with or without bid/ask quotes.
Tick with bid/ask
Six fields per row.
Date,Time,Price,Bid,Ask,Size
Example:
09/15/2025,10:30:15,4520.50,4520.25,4520.75,3
Tick without bid/ask
Four fields per row.
Date,Time,Price,Size
Example:
09/15/2025,10:30:15,4520.50,3
Millisecond tick with bid/ask (experimental)
Six fields per row. Same layout as the standard tick format, with milliseconds added to the Time field as HH:MM:SS.mmm. This variant is experimental and not officially supported.
Date,Time.mmm,Price,Bid,Ask,Size
For full documentation of the millisecond tick fields, see Tick data.
Millisecond tick without bid/ask (experimental)
Four fields per row. The Time field includes milliseconds.
Date,Time.mmm,Price,Size
Example:
09/15/2025,10:30:15.247,4520.50,3
Second-level formats
Available intervals: 1s, 5s, 10s, 15s, 30s, 60s. All second-level formats use the same field structure:
Date,Time,Open,High,Low,Close,Volume
Example (5-second bar):
09/15/2025,10:30:00,4520.25,4520.75,4520.00,4520.50,150
The Time field is in HH:MM:SS format. The timestamp represents the bar open time.
Minute formats
Available intervals: 1, 2, 3, 5, 10, 15, 30, 60 minutes. All minute formats use the same field structure:
Date,Time,Open,High,Low,Close,Volume
Example (5-minute bar):
09/15/2025,10:30,4520.25,4525.00,4518.50,4523.75,4200
The Time field is in HH:MM format (no seconds). The timestamp represents the bar open time.
Daily format
Daily files have no Time field and contain one row per trading day.
Date,Open,High,Low,Close,Volume
Example:
09/15/2025,4515.00,4525.75,4510.25,4520.50,1250000
Aggregate bid/ask format
Ten fields per row. Used primarily for forex pairs and some other instruments where bid/ask data is more relevant than last-trade data.
Date,Time,BidOpen,BidHigh,BidLow,BidClose,AskOpen,AskHigh,AskLow,AskClose
Example (1-minute bar):
09/15/2025,10:30,1.08520,1.08535,1.08510,1.08530,1.08540,1.08555,1.08530,1.08550
This format does not include a volume field. For forex, volume is typically measured by tick count rather than actual traded volume (see the Instrument Type Differences table below).
NinjaTrader 8 formats
NinjaTrader 8 uses semicolons (;) as delimiters and a yyyyMMdd date format. No header row. Files should use a .txt extension.
Kibot's NinjaTrader-format exports stamp the start of the bar, exactly like the standard format: a 1-minute bar stamped 093000 covers 09:30:00 through 09:30:59, and the standard file shows the same bar as 09:30. When you import into NinjaTrader 8, choose the NinjaTrader import format whose label says the timestamps represent start of bar time, so the bars line up with the chart; see the NinjaTrader 8 import guide.
NinjaTrader minute
yyyyMMdd HHmmss;Open;High;Low;Close;Volume
Example:
20250915 103100;4520.25;4525.00;4518.50;4523.75;4200
NinjaTrader daily
yyyyMMdd;Open;High;Low;Close;Volume
Example:
20250915;4515.00;4525.75;4510.25;4520.50;1250000
NinjaTrader tick
yyyyMMdd HHmmss;Price;Volume
Example:
20250915 103015;4520.50;3
For file naming conventions in NinjaTrader, the recommended format is {Instrument}.{DataType}.txt (e.g., ES 12-25.Last.txt). Import the file with NinjaTrader's Historical Data Manager.
TradeStation format
Kibot's TradeStation export of minute bars contains the same columns, values, and row count as the standard format, with each bar stamped at the end of its interval instead of the start.
On the TradeStation side, files can be comma-delimited, tab-delimited, or space-delimited ASCII. The date format is flexible (MDY, YMD, or DMY, specified during import), an optional header row can define field order, and files typically use a .txt or .asc extension.
TradeStation minute/daily
"Date","Time","Open","High","Low","Close","Volume"
Example (with header, comma-delimited):
"Date","Time","Open","High","Low","Close","Volume"
09/15/2025,10:30:00,4520.25,4525.00,4518.50,4523.75,4200
TradeStation tick
"Date","Time","Close","Volume"
TradeStation uses "Close" as the field name for the tick price. Open, High, and Low fields are optional but must be included or omitted together.
Conversion rules
Kibot data supports upward aggregation only: you can build larger timeframes from smaller ones, but not the reverse. Daily bars cannot be broken back into minute bars; the intrabar price path is lost once aggregation has happened.
How OHLCV aggregates
Bars aggregate as OHLCV (open, high, low, close, volume) using these rules:
| Field | Aggregation Rule |
|---|---|
| Open | First Open in the period |
| High | Maximum High across all bars |
| Low | Minimum Low across all bars |
| Close | Last Close in the period |
| Volume | Sum of all Volume values |
Format compatibility matrix
This table shows which source formats can be converted to which target formats.
| Source Format | Possible Targets |
|---|---|
| Tick | Seconds (1-60s), Minutes (1-60min), Daily, Weekly, Monthly, Yearly, NinjaTrader, TradeStation |
| 1-Second | Larger seconds (5-60s), Minutes (1-60min), Daily, Weekly, Monthly, Yearly |
| 1-Minute | Larger minutes (2, 3, 5, 10, 15, 30, 60), Daily, Weekly, Monthly, Yearly |
| 5-Minute | 10, 15, 30, 60-min, Daily, Weekly, Monthly, Yearly |
| 15-Minute | 30, 60-min, Daily, Weekly, Monthly, Yearly |
| 30-Minute | 60-min, Daily, Weekly, Monthly, Yearly |
| 60-Minute | Daily, Weekly, Monthly, Yearly |
| Daily | Weekly, Monthly, Quarterly, Yearly |
| Weekly | Monthly, Quarterly, Yearly |
| Monthly | Quarterly, Yearly |
Conversion to NinjaTrader or TradeStation format is available from any source resolution; it is a format change, not an aggregation. For a planned tool that automates these conversions, see Data format converter.
Market sessions and timestamp semantics
Stock and ETF intraday files cover three US sessions: pre-market from 4:00 AM to 9:30 AM ET, regular trading from 9:30 AM to 4:00 PM ET, and after-hours from 4:00 PM to 8:00 PM ET. On early-close days the regular session ends at 1:00 PM and after-hours runs to 5:00 PM. All sessions are included by default in the same file, so there is no separate pre-market or after-hours product to buy; the API parameter ®ularsession=1 keeps 9:30 AM to 4:00 PM only. Thinly traded symbols often have no extended-hours bars.
NinjaTrader-format exports keep the bar-open convention, like standard files; only the TradeStation export stamps the bar close. See NinjaTrader 8 formats.
Periods with no activity
If no trades occur during a given interval, Kibot simply omits the bar rather than emitting a zero-volume placeholder. The next row in the file is the next bar with actual activity, and any gap between its timestamp and the previous row's timestamp corresponds to time during which nothing was reported. This pattern is most visible in pre-market and after-hours data for illiquid stocks, where long stretches can pass without a print. Code that iterates Kibot files by wall-clock time, rather than by row, must reconstruct the empty intervals itself.
Daily close price
In daily files the closing price is the last trade of the regular session, which ends at 16:00 ET, or earlier on early-close days (for example 13:00 ET on the day after Thanksgiving). It normally matches the Close field of the 15:59 bar in the corresponding intraday file (the 12:59 bar on an early-close day). For less liquid stocks the last intraday bar of the regular session may fall earlier, and the daily Close follows that bar rather than inventing a value at the session close. The daily Close and the last regular-session intraday Close are therefore the same number.
Exponential price formatting
Very small values are written in scientific notation. A price recorded as 1E-06 stands for 0.000001. Any value below one with five or more decimal places may be exported in exponent form, so parsers that assume fixed-point decimals will mis-read these rows. The values themselves are exact; it is only the textual representation that switches.
Split and dividend adjustment on intraday files
All standard intraday and daily files are adjusted for stock splits and dividends by default. The adjustment follows the same method as Yahoo Finance's historical series, so values on both sides should agree after both have applied the same back-adjustment rules.
Volume is adjusted alongside price so that the product price × volume is preserved through any split. Before a 2:1 split a share might trade at ten dollars with a hundred-share volume; after the split the same moment is recorded at five dollars with two hundred shares, and the dollar turnover stays at one thousand. Keeping this invariant means aggregations like volume-weighted average price (VWAP) and dollar volume remain comparable across split events without further correction. For the full reasoning and for the unadjusted variants of the same files, see Adjusted vs unadjusted data.
Instrument type differences
| Type | Price Data | Volume | Notes |
|---|---|---|---|
| Stocks / ETFs | Last + Size | Real exchange volume | Includes pre-market and after-hours sessions |
| Forex | Bid / Ask | Tick count only | No real volume: forex is an over-the-counter (OTC) market with no centralized exchange |
| Futures | Last + Size | Real exchange volume | The daily close is the exchange settlement price, which can differ from the last trade. The futures trading day runs 5:00 PM to 5:00 PM ET. |
| Indexes | Calculated value | None or calculated | No tradeable volume: indexes are computed from component prices |
On futures daily bars the close is the exchange settlement price, which can differ from the last trade; this is a common source of apparent mismatch against third-party data providers.
Key Takeaways
- All Kibot standard files are headerless, comma-delimited text files with timestamps defaulting to Eastern Time (the time zone can be changed to suit your needs); NinjaTrader variants use semicolons and
yyyyMMdddates instead. - Kibot bar timestamps are bar open time, in the standard and NinjaTrader formats alike; only Kibot's TradeStation export stamps bar close. Check which convention a file follows before parsing.
- Tick files come in four variants (with/without bid/ask, millisecond or second precision); minute and second bar files share a common
Date,Time,O,H,L,C,Vschema across all intervals. - Aggregation is one-way: smaller timeframes can be rolled up into larger ones using standard OHLCV rules, but daily data cannot be disaggregated back into minute data.
- Aggregate bid/ask (10 fields, no volume) is available for forex and other instruments. Forex tick data uses
Date,Time,Price,Bid,Ask,Volume, where Price is the bid and Volume is 1 or a tick count rather than exchange volume.
Related
- Tick data: full field-by-field spec for the standard tick format and the experimental millisecond variant
- Data format converter: planned open-source tool that automates all conversions described here
- Adjusted vs unadjusted data: how split/dividend adjustments change historical prices without altering these formats
- Timezone conversion: shifting ET timestamps to UTC or other zones while preserving bar semantics
- Data completeness: what bar counts and gaps to expect per session
- File sizes and disk planning: what each format costs in disk and bandwidth, plus the recommended compression workflow
- Bid ask and NBBO quotes: deeper context on what the Bid and Ask fields represent in the tick and aggregate formats