get_market_hours
Check whether a symbol's trading session is currently open, based on trade mode.
Instructions
Whether the given symbol's session is open right now.
v1 limitation: is_open is derived from trade_mode (open
when non-zero). next_open and next_close are always
None in v1 - parsing symbol_info().sessions_quotes is
scheduled for a later release. Agents needing precise session
boundaries should consult their broker's published schedule.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>"
},
"name": "get_market_hours"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| is_open | Yes | ||
| next_open | Yes | ||
| next_close | Yes |