Top-of-Book Snapshots
Top-of-Book Snapshots
Top-of-book snapshots deliver up-to-date market data values sourced from the same streams as are displayed in Trader Workstation’s watchlists.
Values needed:
- Contract ID (“conid”) for the desired instrument(s)
- Tag identifiers for the desired data points (“fields”)
A GET request to the /iserver/marketdata/snapshot [ref] endpoint is used to retrieve a snapshot of top-of-book market data for one or more instruments. This endpoint takes two required query parameters:
conids: A comma-separated list of instrument conidsfields: A comma-separated list of field tags. A comprehensive list of available tags can be found in our Reference material.
In order for the desired data to be available for snapshotting on request, a “pre-flight” request must be made to IServer to begin its consumption of the instrument’s live data stream.
This initial request will not deliver any data, but rather makes the stream available for future snapshot requests. Snapshot market data is not cached and is extracted directly from these open streams.
This pre-flight request should include in its fields parameter all of the tags desired in the future:
GET https://api.ibkr.com/v1/api/iserver/marketdata/snapshot?conids=265598,8314&fields=31,7059,84,88,86,85
If this is the first time you’ve made a /iserver/marketdata/snapshot request for conids 265598 and 8314, you will not receive data in response. Instead you’ll see the requested conids returned, indicating that IServer is now streaming data for these instruments.
Once a pre-flight request has been made for a given conid, all requested fields will be delivered with all future responses; future snapshot requests do not need to repeat the desired fields:
GET https://api.ibkr.com/v1/api/iserver/marketdata/snapshot?conids=265598,8314
Returns:
Certain fields that update less frequently, particularly those that are computed on an interval, maybe not be delivered immediately, and instead will be returned when updated.

