Expand description
Historical market data models and client APIs. Historical market data API.
§Canonical paths
Historical-data methods are inherent methods on ibapi::Client — call
client.historical_data(...), client.historical_ticks_mid_point(...),
etc. The public types (Bar, BarSize, WhatToShow, TickSubscription,
and the per-tick payload types) live at
ibapi::market_data::historical::* and via ibapi::prelude::*.
The historical::sync and historical::r#async submodules where the impls
live are #[doc(hidden)]: still reachable as paths for crate-internal use,
but intentionally absent from the docs.rs navigation. Prefer the canonical
Client method calls and the market_data::historical::* type spellings.
Raw-identifier syntax (market_data::historical::r#async::...) is the
giveaway that the spelling is non-canonical.
Structs§
- Bar
- Bar describes the historical data bar.
- Duration
- Duration specifier used in historical data requests (e.g.
1 D). - Histogram
Entry - Histogram bucket entry returned from
reqHistogramData. - Historical
Data - Container for historical bar responses.
- Historical
Data Builder - Builder for historical bar data requests.
- Historical
Schedule Builder - Builder for the historical-schedule API.
- Historical
Ticks Builder - Builder for the historical-ticks API.
- Schedule
- Trading schedule describing sessions for a contract.
- Session
- Individual regular or special session entry.
- Tick
Attribute BidAsk - Tick attributes accompanying bid/ask historical ticks.
- Tick
Attribute Last - Tick attributes accompanying trade historical ticks.
- Tick
BidAsk - The historical tick’s description. Used when requesting historical tick data with whatToShow = BID_ASK.
- Tick
Last - The historical last tick’s description. Used when requesting historical tick data with whatToShow = TRADES.
- Tick
Midpoint - The historical tick’s description. Used when requesting historical tick data with whatToShow = MIDPOINT
- Tick
Subscription - Async subscription handle that decodes historical tick batches as they arrive.
- What
ToShow Parse Error - Error returned when parsing an invalid
WhatToShowvalue.
Enums§
- BarSize
- Request granularity for historical bars.
- BarTimestamp
- Timestamp of a historical bar.
- Historical
BarUpdate - Update from historical data streaming with keepUpToDate=true.
- Historical
Parse Error - Errors surfaced while parsing historical market data parameters.
- What
ToShow - Enumerates the data payload returned when requesting historical data.
Traits§
- Tick
Decoder - Trait implemented by historical tick types that can decode IB messages.
- ToDuration
- Helper trait to convert integer counts into
Durations.