# List Markets

WARNING

You are viewing the documentation for an old version of the TradingHours.com API. Conciser using version 3.x.

# List Markets

The markets endpoint displays the complete list of all supported markets. You can use the returned code in all other endpoints to specify an exchange.

The details endpoint can be used to see additional information about each market.

List all available markets with their full name and unique code.

# Response Properties

Parameter Description
name Full name of the market
code MIC code for the market. This is a unique code. Use this code in all other requests to specify a market.
operating_mic Operating MIC for the exchange. If code is different than Operating MIC than this market is a market segment.

Info

Learn more about MICs, "Operating MICs" and "Market Segments" at ISO 10383 FAQ.

# Example

https://api.tradinghours.com/v2/markets

# Response

[
    {
        "name": "New York Stock Exchange",
        "operating_mic": "xnys",
        "code": "xnys"
    },
    {
        "name": "NASDAQ Stock Exchange",
        "operating_mic": "xnas",
        "code": "xnas"
    },
    {
        "name": "London Stock Exchange",
        "operating_mic": "xlon",
        "code": "xlon"
    },
    {
        "name": "Tokyo Stock Exchange",
        "operating_mic": "xjpx",
        "code": "xjpx"
    },
    ...
]

# Market Details

Show details about a market.

# Request Parameter

Parameter Description
code (required) Unique identifier for the market

# Response Parameter

Parameter Description
name Full name of the market
code MIC code for the market. This is a unique identifier. Use this code in all other requests to specify a market.
operating_mic Operating MIC for the exchange. If code is different than Operating MIC then this entry is a market segment
country Country of the market
country_code ISO 31661 alpha-2 code
continent Continent of the market
website Official website for the market
currency Currency of the market
timezone The timezone of the market. See the Timezone API for details.

# Example

https://api.tradinghours.com/v2/markets/xnys

# Response

{
    "name": "New York Stock Exchange",
    "operating_mic": "xnys",
    "country_code": "US",
    "city": "New York",
    "continent": null,
    "currency": "USD",
    "timezone": "America/New_York",
    "website": "www.nyse.com",
    "country": "United States",
    "code": "xnys"
}