> Every Taji docs page as Markdown: https://docs.taji.is/llms.txt

# Databento

Pay-as-you-go market data: you read bars, trades and quotes for stocks, options and futures.

## Before you link

You need your API key, and the one dollar cap every fetch is held to. One key serves either plan.

### Pricing

`metadata.get_cost` is the price.

Measured 2026-09-23, AAPL 2026-09-22 14:30–14:31 UTC: `get_cost` priced `EQUS.MINI` `trades`, `tbbo`, `mbp-1` and `bbo-1s` and `XNAS.ITCH` `mbp-10` and `trades`; `list_unit_prices` on `EQUS.MINI` prices each schema per GB (the pricing page's figures). The quote is coarse: every window from 1 s to 60 s inside that minute prices alike, `get_billable_size` and `get_record_count` (547) the same, while `get_range` answered 38 trades.

Measured 2026-09-23, 2026-09-22: `GLBX.MDP3` `ESZ6` 06:00:00–06:00:10 `trades`, `mbp-1` and `mbp-10` priced by `get_cost`; `OPRA.PILLAR` `AAPL  260925C00340000` 14:30–14:31 `cmbp-1`, `trades` and `ohlcv-1m` likewise.

## Link

Start `databento` from Connections in the window, or run `taji-link databento`. It takes your API key, which Taji seals in the vault.

### Linking

| Step | URL | Controls | Needs (`yours`?) |
|---|---|---|---|
| `plan` | https://databento.com/signup, https://databento.com/pricing, https://databento.com/portal/live-data | Signup/pricing form labels unsourced (client-side SPA; [quickstart](https://databento.com/docs/quickstart.md), fetched 2026-11-18: $125 free credits, historical usage-based). Live plans (`Standard`, `Plus`, `Unlimited`): `Plans and live data`, `Activate live data` button, license questionnaire / upload ([live data](https://databento.com/docs/portal/live-data.md), fetched 2026-11-18); payment `Update` ([billing](https://databento.com/docs/portal/billing.md), fetched 2026-11-18). | `yours` (password to sign up/in; money for paid plans or card check) |
| `keys` | https://databento.com/portal/keys | Signup creates one `db-` key; on `API keys`: `Create a new key` button, unique name (≤64 chars), `Create` button, copy icon ([API keys](https://databento.com/docs/portal/api-keys.md), [auth](https://databento.com/docs/api-historical/basics/authentication.md), fetched 2026-11-18). | none (agent may create and copy once signed in) |
| `cap` | https://databento.com/portal/billing | `Billing` sidebar → usage-based access `Manage` button → `Enable pay as you go` toggle → `Set a monthly limit` toggle and limit amount field (optional `Receive email notifications` toggle); defaults to `Unlimited`, cannot be set via API ([billing](https://databento.com/docs/portal/billing.md), [API keys](https://databento.com/docs/portal/api-keys.md), fetched 2026-11-18). | `yours` (money: sets monthly historical spend cap) |

## What you get

Read only: Databento is data, not a brokerage, so this key places no orders and reads no account. What it serves, field by field: [Databento coverage](https://docs.taji.is/reference/coverage/databento.md); what it could serve: [Offered, not read](https://docs.taji.is/catalog/databento/architecture.md#offered-not-read).

## Behaviour and limits

Vendor-stated as of September 2026; measured lines are marked.

### What Taji uses

A future's daily bar cannot be `ohlcv-1d`: it buckets by UTC date ("Our `ohlcv-1d` schema is based on UTC dates", OHLCV docs, fetched 2026-10-30), so it holds the next session's 18:00 ET to 00:00Z trades. `ohlcv-eod` is not in `GLBX.MDP3`'s `list_schemas`, and `get_cost` for it answered 422 `dataset_schema_not_supported` (measured 2026-09-28). Option bars from `OPRA.PILLAR` `trades` cost $0.0015 a contract-minute (measured). No continuous `@ES`/`ES1!`.

`ohlcv-1h` is "aggregated from trades", `ts_event` "marks the start of each interval", an empty interval prints no record (D, docs read 2026-11-02, https://databento.com/docs/schemas-and-data-formats/ohlcv); the page states no alignment, but the vendor's fixture (databento-rs 0.65.0 `tests/data/test_data.ohlcv-1h.dbn`) stamps 13:00Z and 14:00Z, so UTC top of hour.

No forming day: `EQUS.SUMMARY` `ohlcv-1d` is the 20:15 ET end-of-day summary only (vendor dataset page, fetched 2026-10-30), `EQUS.MINI`'s daily and minute bars are not the consolidated regular session (below), and history can lag hours.

Every trade print judges a held stop: `trades` states no sale condition, so none is excluded.

Live replay (`from`) older than 24 hours is 422 `no_replay`; docs/api-reference-live/basics/intraday-replay renders client-side. Live and replay are plan-only; no session is measured.

### Auth and calls

- `stype_in` `continuous` spells the roll letter lower case (`ES.c.0`). Not measured on a parent or continuous ask.
- `metadata.get_cost` answers a float in USD.
- Rate limits per team (docs/api-reference-historical/basics/rate-limits, read 2026-12-02): "each team" gets "100 concurrent connections"; a 429 hides its `Retry-After` from the vendor's client.
- Batch serves "larger data requests, typically over 5 GB" ([blog, fetched 2026-09-24](https://databento.com/blog/streaming-vs-batch-download-historical-market-data)); the 422 that sends an ask to batch is not measured, and a second submit bills twice. A download is a free GET of a paid job; the vendor's client retries one up to 5 times, resuming by `Range` (`databento-0.65.0/src/historical/batch.rs`).

Idle close, 2026-10-31 (keyless GET, idle N s, GET again): `hist.databento.com` keeps a connection 9 s and drops it by 10 s, the same after `/`'s 200 and `metadata.list_datasets`' 401 (a 401 does not close it); HTTP/1.1 only. A key's own is unmeasured.

Every metadata endpoint answers `401 {"detail":"Not authenticated"}` without a key (measured 2026-09-15, curl); a wrong key (`db-` and 29 `X`) on `metadata.get_cost` answers `401 {"detail":{"case":"auth_authentication_failed","message":"Authentication failed.",…}}` (measured 2026-09-24, curl).

### Live

Not measured: whether `EQUS.MINI` or `GLBX.MDP3` streams on a plan; whether an unentitled key is refused as an auth error; what `get_cost` answers on a plan; whether a live `ohlcv-1m` interval is ever republished. Live sessions per dataset per team: 10 Standard, 50 Plus or Unlimited; 5 connects/s per IP (vendor pages).

### Entitlement

`metadata.list_datasets`: a bare array of 29 codes, `EQUS.MINI`, `EQUS.SUMMARY`, `XNAS.ITCH`, `OPRA.PILLAR` and `GLBX.MDP3` among them. `list_schemas` on `EQUS.MINI`: `mbp-1, tbbo, trades, bbo-1s, bbo-1m, ohlcv-1s, ohlcv-1m, ohlcv-1h, ohlcv-1d, definition` — no `mbp-10`; `XNAS.ITCH` adds `mbo, mbp-10, statistics, status, imbalance`.

`get_dataset_range` (measured 2026-09-24, `link.data.databento.datasets`): `EQUS.MINI` from 2023-03-28, `EQUS.SUMMARY` 2024-07-01, `XNAS.ITCH` 2018-05-01, `GLBX.MDP3` 2010-06-06, `OPRA.PILLAR` 2013-04-01.

### Futures and options

`list_schemas`: `GLBX.MDP3` `mbo, mbp-1, mbp-10, tbbo, trades, bbo-1s, bbo-1m, ohlcv-1s/1m/1h/1d, definition, statistics, status, cmbp-1, cbbo-1s, cbbo-1m`; `OPRA.PILLAR` `cmbp-1, cbbo-1s, cbbo-1m, tcbbo, trades, ohlcv-1s/1m/1h/1d, statistics, status, definition` — no `mbp-*`, so an option's quote is `cmbp-1` and it has no depth.

`symbology.resolve` on `GLBX.MDP3` 2026-09-22: `ESZ6` and `MNQZ6` resolve to instrument ids, `ESZ26` "not_found"; `get_cost` on `ESZ26` 422 "None of the symbols could be resolved". An option's raw symbol is OCC-21, root padded to six: `AAPL  260925C00340000`.

`symbology.resolve` is unbilled (Databento's historical API lists it among the free endpoints beside `metadata.*`; the response carries no cost). Measured 2026-09-29: `GLBX.MDP3` `ES.c.0` as a continuous symbol answers only as `stype_out=instrument_id`, `{"d0","d1","s"}` per interval (`d1` exclusive), 2026-09-18..20 `ESU6`'s instrument id and 09-20..28 `ESZ6`'s. An `end_date` past a key's `GLBX.MDP3` span end (about eight hours behind now) is 422 `dataset_unavailable_range` naming `available_end`; an unknown symbol is 200 with it under `not_found` and `[]`. `ES.FUT` `stype_in=parent` keys each interval by the contract's or spread's raw symbol (41 on 2026-09-25..28).

`ESZ6` 2026-09-22 06:00:00–06:00:10 UTC: `trades` publisher 1, `sequence` set; `mbp-10` has ten levels. `AAPL  260925C00340000` 2026-09-22 14:30–14:31 UTC: `trades` 15 rows over six publishers; `cmbp-1` 997 rows, header `ts_recv,ts_event,rtype,publisher_id,instrument_id,action,side,price,size,flags,ts_in_delta,bid_px_00,ask_px_00,bid_sz_00,ask_sz_00,bid_pb_00,ask_pb_00` — no `depth`, `sequence` or counts, a publisher per side (rtype 177).

`OPRA.PILLAR` `ohlcv-1m` is one bar per publisher: that minute answered six rows at one `ts_event` (publishers 35, 20, 28, 29, 22, 108; volumes summing to the 39 contracts the 15 trades printed); the consolidated open and close cannot be recovered.

Option chains, one session's `definition` (measured 2026-09-24): today's is 422 `data_end_after_available_end` until available; on a usage-tier key `OPRA.PILLAR` is 403 `license_not_found_unauthorized` past about T−1 ("A live data license is required to access OPRA.PILLAR data after 2026-09-23T13:30:00.000000000Z").

Statistics and imbalance (measured 2026-09-24): `GLBX.MDP3` `statistics` `ESZ6` over 2026-09-22 UTC bought, 321 rows over `stat_type` 1–10, 17, 18, settlement (3) a price with `ts_ref` 2026-09-22 00:00 UTC and `stat_flags` 2, open interest (9) a quantity and no price. `XNAS.ITCH` `imbalance` AAPL 2026-09-22 19:50–19:51 UTC bought, 6 rows, one each 10 s, `auction_type` C.

`list_datasets` (measured 2026-09-28): 29 codes, none an index level or spot crypto pair. 2026-10-31: 30, `DBIX.CORE` among them (announced 2026-10-14, from $99/mo); still no spot crypto pair.

### Indexes and future options

`DBIX.CORE` `get_dataset_range` (measured 2026-10-31, metadata only): from 2026-10-18 (the vendor blog states 2025-12-07). `DBIX.CORE` has no `mbp-10`, so no depth. `symbology.resolve` `raw_symbol` over 2026-10-26..30: `SPX`, `VIX` and `RUT` resolve; `NDX` and `$SPX` not found. `get_record_count` 2026-10-29 UTC: SPX `ohlcv-1m` 412 (390 in 13:30-20:00Z); VIX 776, all 07:00Z-20:00Z. Over 2026-10-18..30 no VIX `ohlcv-1d` bar fell past 00:00Z (140 hours, 10 bars), so UTC and New York dates agree on these two.

`GLBX.MDP3` `ESZ6 C7800` resolves; `ESZ26 C7800` and `ESZ6C7800` are not found. No forex is measured.

The live read (`cargo test -p taji-databento -- --ignored live_`) resolves and prices both, buying nothing.

### Option flow

`OPRA.PILLAR` `tcbbo` pairs each trade with the consolidated best bid and offer immediately before it ([TBBO schema](https://databento.com/docs/schemas-and-data-formats/tbbo), P, fetched 2026-12-03). OPRA does not disseminate a trade's side: "`side` will always be `N`" ([OPRA.PILLAR](https://databento.com/docs/datasets/opra-pillar.md), P, fetched 2026-12-03), so the kernel classes it from the quote. An underlying's contracts are the parent `ROOT.OPT`, whose symbol "may change based on corporate actions" (same page). A read buys `tcbbo` and `definition` at metered prices, so the wire answers `fetch_first` and `POST /fetch` refuses it. OPRA's `definition` states no multiplier, so every premium is null ([Open](#open)).

### Records

Field definitions: [common fields](https://databento.com/docs/standards-and-conventions/common-fields-enums-types).

Taji reads `get_range` as DBN. Measured as CSV: bars carry no `symbol`, `rtype` 35 for 1d (2026-09-15); AAPL 2026-09-22 14:30–14:31 UTC (2026-09-23) `trades` carry publisher 95, `sequence` 0; `mbp-10` ten levels. `get_range` filters on `ts_recv`.

### Dataset

`EQUS.MINI` is a consolidated US-equities composite from 2023-03-28 ([announcement](https://databento.com/blog/databento-us-equities-mini-now-available)). `ohlcv-1m` and `ohlcv-1d` answer (measured 2026-09-15). `ohlcv-1s` too (measured 2026-09-23 via `fetch`): SPY 2026-09-22 14:30:00–14:31:00 UTC bought as 20 bars — a second with no trade has no bar.

No overnight (`24h`) tape on `EQUS.MINI` (exchange-only).

`EQUS.MINI`'s daily bar is not the consolidated regular-session bar (measured 2026-09-15): AAPL 2024-01-02 volume far below the consolidated session's, open and high including trades outside 09:30–16:00 ET. `EQUS.SUMMARY`'s is (measured 2026-09-24): schemas `ohlcv-1d, definition, statistics`, from 2024-07-01 (the 2024-01-02 ask answered 422 `data_start_before_available_start`); AAPL 2024-07-01 and 02 bought matched the consolidated session to the share.

### License

`EQUS.MINI` is sold for commercial use and redistribution (the announcement above).

## Open

- Each historical rate limit's window shape, and whether failures count.
- OPRA's contract multiplier: the 12,540 `definition` records of SPY's options on 2026-11-25 leave `unit_of_measure_qty`, `contract_multiplier` and `original_contract_size` undefined, so every Databento `option_flow` row's `premium` is null. Massive states `shares_per_contract`.
- Sale conditions: no schema the read buys states one, so a multi-leg, late or cancelled print is classed like any other.
- GLBX stat types beyond settlement and open interest (open, indicative, low, high, cleared volume), measured above: not yet held by the drift test, so not declared.
- The recorded option-flow hour stays local in `fixtures/option_flow/recorded/`, git-ignored; the committed hour is the synthetic one beside it.
- Live sessions per dataset per team: 10 Standard, 50 Plus or Unlimited; 5 connects/s per IP (vendor pages).

## References

- [Databento documentation](https://databento.com/docs)
- [How it works](https://docs.taji.is/catalog/databento/architecture.md): the vendor, the code and why it is built this way
