Get Trading Schedule
get_trading_scheduleRetrieve current day's trading schedule for any instrument, showing session types and periods when trading is active in MSK time.
Instructions
Trading sessions of an instrument for the current day: session types with start/end times in MSK (+03:00), sorted. Intervals with tradingSessionStatus=OPEN are the periods when trading is on.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticker | Yes | Ticker, e.g. SBER | |
| classCode | No | Board class code (resolved via find_instrument when omitted) | |
| outputPath | No | Write the full result to this file (path relative to the output root: BCS_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 this also enables full-history fetching (chunking beyond the 1000-bar API limit). | |
| outputFormat | No | File format; default json (or csv if outputPath ends with .csv). csv writes the main flat array of the response. |