List markets
Return every market we cover in one response: no pagination. A market is a
country-level trading region, e.g. america or germany, and matches the
market field on ticker resources. Each market lists its ISO 3166 country
code, the exchanges trading in it, and the number of listed symbols we cover.
Trading hours belong to exchanges, not markets: within one market, venues keep
different sessions (for example XETR and GETTEX inside germany). Look
them up per exchange with the
exchange trading-hours
endpoint.
/v3.0.0/marketsPlan Access
Free
(Your plan)
Individual
$29/mo
Professional
$89/mo
Parameters
Response
Response fields
dataarray of objectsArray of every market resource, ordered by code.
+ Show child attributes- Hide child attributes
idstringUnique identifier for the market, beginning with mkt_. Derived deterministically from code, so it never changes for a given market and is safe to store in your database.
objectstringString representing the object's type, always v3.reference.market for this resource.
codestringCode of the market, a country-level trading region, e.g. america or germany. Matches the market field on tickers; pass it to ticker search with search_by=market.
country_codestringTwo-letter ISO 3166 country code of the market, e.g. US. Matches the listing_country_code field on tickers.
exchangesarray of stringsExchange codes trading in this market, largest listing count first. Values match the List exchanges endpoint. Use the exchange trading-hours endpoint for each venue, because hours can differ within one market.
symbol_countnumberNumber of listed symbols we cover in this market.
next_page_urlnullableAlways null: the endpoint returns the complete catalog in one response.
previous_page_urlnullableAlways null: the endpoint returns the complete catalog in one response.
Related endpoints
Market codes match the ticker market field and group exchanges by region.
curl "https://api.roic.ai/v3.0.0/markets?apikey=YOUR_API_KEY"{
"data": [
{
"id": "mkt_9Ckpiwgk81gwhhiWeGlcYy",
"object": "v3.reference.market",
"code": "america",
"country_code": "US",
"exchanges": [
"OTC",
"NASDAQ",
"NYSE",
"AMEX",
"CBOE"
],
"symbol_count": 15271
}
],
"next_page_url": null,
"previous_page_url": null
}