latestSwagger 2.02026-08-12187723.0 MB
c4a12725cdb5
reference_data
Market state
The market state endpoint provides real-time information on the operational status of all available stock exchanges. It returns data on whether each exchange is currently open or closed, along with the time remaining until the next opening or closing. This endpoint is useful for users who need to monitor exchange hours and plan their trading activities accordingly.
get/market_state
Query parameters
exchangestring
The exchange name where the instrument is traded.
codestring
The Market Identifier Code (MIC) of the exchange where the instrument is traded.
countrystring
The country where the exchange is located. Takes country name or alpha code.
Response
Example response
[
{
"name": "NYSE",
"code": "XNYS",
"country": "United States",
"is_market_open": true,
"time_after_open": "02:39:03",
"time_to_open": "00:00:00",
"time_to_close": "05:20:57"
}
]