Get Order Book
get_order_bookRetrieve the order book for a financial instrument, showing bids, asks, last price, and trading limits. Use instrumentId to specify the asset.
Instructions
Order book (bids/asks) for an instrument, with last/close price and trading limits. priceUnit flags the quote unit: bonds are quoted in % of nominal (see get_instrument bond.nominal), futures in points.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | ||
| outputPath | No | Write the full result to this file (path relative to the output root: TINKOFF_OUTPUT_DIR or server cwd) instead of returning it inline. The response becomes a short summary {savedTo, records, bytes, sample}. Use for bulk data to keep the context clean. For get_candles/get_operations this also enables full-history fetching (chunking/pagination). | |
| instrumentId | Yes | Instrument UID | |
| outputFormat | No | File format; default json (or csv if outputPath ends with .csv). csv writes the main flat array of the response. |