Enums — API Reference
DatabentoAPI-specific enums
DatabentoAPI.HistoricalGateway — Module
HistoricalGatewayHistorical API gateway selector. Currently only one entry:
BO1— the default historical gateway athist.databento.com.
Used implicitly by Historical; most callers never construct this directly.
DatabentoAPI.FeedMode — Module
FeedModeHow a Historical price-quote/cost preview should be charged:
HISTORICAL— vanilla historical replay.HISTORICAL_STREAMING— historical replay over the streaming API.LIVE— live streaming feed.
Passed to get_cost (default HISTORICAL).
DatabentoAPI.ReconnectPolicy — Module
ReconnectPolicyReconnect behavior for the Live client.
NONE— disconnect is terminal.RECONNECT— re-establish the TCP session and re-subscribe on drop.
Exposed for parity with Databento's other clients; in this package the behavior is selected via the reconnect::Bool kwarg on stream_to_file and friends.
DatabentoAPI.JobState — Module
JobStateState of a batch job returned by list_jobs:
RECEIVED— accepted by the API.QUEUED— waiting to start.PROCESSING— currently being assembled.DONE— files ready forlist_files/batch_download.EXPIRED— past the retention window; files no longer available.
DatabentoAPI.SplitDuration — Module
SplitDurationBatch-output file rotation cadence — when a single job's records are sliced into multiple files by time:
NONE— one file per job.DAY,WEEK,MONTH— rotate at the corresponding UTC boundary.
Passed to submit_job.
DatabentoAPI.Packaging — Module
PackagingHow the batch-output files are bundled for delivery:
NONE— files served individually.ZIP— single .zip archive.TAR— single .tar archive.
Passed to submit_job.
DatabentoAPI.Delivery — Module
DeliveryWhere the batch-output files are delivered:
DOWNLOAD— fetched from the API viabatch_download.S3— pushed to a customer-configured S3 bucket.DISK— written to a customer-configured local disk (on-prem).
Passed to submit_job.
DatabentoAPI.SymbologyResolution — Module
SymbologyResolutionPer-symbol resolution status returned by resolve:
OK— fully resolved within the requested date range.PARTIAL— resolved for a sub-interval only (instrument expired or rolled).NOT_FOUND— no mapping in the requested date range.
DatabentoAPI.RollRule — Module
RollRuleContinuous-contract roll rule for futures symbology:
VOLUME— roll when next-contract volume exceeds the front.OPEN_INTEREST— roll when next-contract open interest exceeds the front.CALENDAR— roll at a fixed calendar offset (e.g. N days before expiry).
DatabentoAPI.SlowReaderBehavior — Module
SlowReaderBehaviorHow the Live gateway handles a client that reads slower than realtime:
WARN— gateway buffers and sends stale records, emits periodicSystemMsgwithcode = SlowReaderWarning (2). Default for stateful schemas where dropping records would corrupt downstream state.SKIP— gateway drops records until the session is current, then sends anErrorMsgwithcode = SkippedRecordsAfterSlowReading (7). Default for stateless schemas (MBP-1/10, CMBP-1, BBO-1s/1m, CBBO-1s/1m).
Set via the slow_reader_behavior kwarg on Live or stream_to_file.
Re-exported from DatabentoBinaryEncoding
These are the wire-format enums that appear throughout the API. Their full documentation lives in the DatabentoBinaryEncoding docs.
| Enum | Members (abbreviated) |
|---|---|
Schema | MBO, MBP_1, MBP_10, BBO_1S, BBO_1M, CBBO_1S, CBBO_1M, TBBO, TCBBO, TRADES, OHLCV_1S/1M/1H/1D, DEFINITION, STATUS, IMBALANCE, STATISTICS, … |
SType | RAW_SYMBOL, INSTRUMENT_ID, PARENT, CONTINUOUS, … |
Compression | NONE, ZSTD |
Encoding | DBN, CSV, JSON |
Action | MODIFY, TRADE, FILL, CANCEL, ADD, CLEAR, NONE |
Side | BID, ASK, NONE |
InstrumentClass | BOND, CALL, FUTURE, SPREAD, STOCK, … |