Quote snapshots
get_quotesFetch one-time market data snapshots for up to 25 contracts: bid, ask, last, volume, OHLC, options Greeks, and halted/delayed status. Resolves contracts by symbol or con_id and reports per-contract errors.
Instructions
Get a one-time quote for up to 25 contracts: bid, ask, last, sizes, OHLC, volume.
Each quote also has `halted`, `market_data_type` (live, frozen, delayed or
delayed_frozen), `bbo_exchange` (expand it with get_smart_components) and, for
options, IBKR model greeks and implied volatility. Snapshots take up to about 11
seconds for quiet contracts. A contract with an open quote stream (subscribe_quotes)
is answered from the stream at no extra cost. Generic ticks (shortable shares,
fundamental ratios...) are not available as snapshots; use subscribe_quotes.
Contracts that fail are listed in `errors` (unknown or ambiguous contract, no market
data permission) while the others still get quotes; if all fail, the call fails.
Needs market data permissions for each exchange. Without them IBKR answers with
error 354, 10089 or 10168: call set_market_data_type with 'delayed' for free
15-20 minute delayed data (10089 with delayed already selected: IBKR has no delayed
data for that instrument on this login). Null prices mean IBKR sent no value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contracts | Yes | 1 to 25 instruments. A con_id alone is unambiguous; otherwise symbol and sec_type, plus expiry, strike and right for options. | |
| regulatory_snapshot | No | Request a regulatory (NBBO) snapshot. COSTS MONEY: IBKR bills about USD 0.01 per request for US stocks and ETFs without a live subscription. Refused (configuration_error) unless the server's operator allowed it. Leave false unless the user asked for it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | Contracts that got no quote, and why. | |
| quotes | Yes | ||
| notices | No | Things to know about the data (fees, missing data). | |
| regulatory_snapshots | No | How many fee-bearing regulatory snapshots were requested. |