> For the complete documentation index, see [llms.txt](https://gitbook-docs.coinmetrics.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook-docs.coinmetrics.io/cm-api-spec/meta-data/security-master/security-master-markets.md).

# Security Master Markets

Returns metadata on all the markets offered (spot, options, futures), sorted alphabetically by market.

```json
{"openapi":"3.0.2","info":{"title":"Coin Metrics API v4","version":"4.0.0"},"tags":[{"name":"Security Master","description":"Security Master endpoints\n\n**Endpoints on this page:**\n- `GET /security-master/assets` — Security Master Assets\n- `GET /security-master/markets` — Security Master Markets"}],"servers":[{"url":"https://api.coinmetrics.io/v4"},{"url":"wss://api.coinmetrics.io/v4"},{"url":"https://community-api.coinmetrics.io/v4"}],"security":[{"api_key":[]}],"components":{"securitySchemes":{"api_key":{"description":"Coin Metrics API key can be specified as `?api_key=` query parameter.","in":"query","name":"api_key","type":"apiKey"}},"parameters":{"SecurityMasterMarketType":{"description":"Type of markets.","in":"query","name":"type","required":false,"schema":{"enum":["spot","future","option"],"type":"string"}},"SecurityMasterMarkets":{"description":"List of markets.","name":"markets","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}},"explode":false},"MarketSymbol":{"description":"Symbol of derivative markets, full instrument name.","in":"query","name":"symbol","schema":{"type":"string"}},"Exchange":{"description":"Unique name of an exchange.","in":"query","name":"exchange","schema":{"type":"string"}},"MarketBase":{"description":"Base asset of markets.","in":"query","name":"base","schema":{"type":"string"}},"MarketQuote":{"description":"Quote asset of markets.","in":"query","name":"quote","schema":{"type":"string"}},"PageSize":{"description":"Number of items per single page of results.<br/> The value of this parameter is ignored if the endpoint supports the `format` parameter and its value is set to `json_stream`.","in":"query","name":"page_size","schema":{"default":100,"type":"integer","format":"int32","minimum":1,"maximum":10000}},"PagingFromWithStartByDefault":{"description":"Where does the first page start, at the start of the interval or at the end.<br/> The value of this parameter is ignored if the endpoint supports the `format` parameter and its value is set to `json_stream`.","in":"query","name":"paging_from","schema":{"default":"start","enum":["start","end"],"type":"string","format":"PagingFrom"}},"NextPageToken":{"description":"Token for receiving the results from the next page of a query.<br/> Should not be used directly. To iterate through pages just use `next_page_url` response field.","in":"query","name":"next_page_token","schema":{"type":"string"}},"Pretty":{"description":"Human-readable formatting of JSON responses.","in":"query","name":"pretty","schema":{"type":"boolean","default":false}}},"responses":{"SecurityMasterMarkets":{"description":"List of security master entries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecurityMasterMarketsResponse"}}}},"Unauthorized":{"description":"Requested resource requires authorization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"BlockchainForbidden":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Requested resource is not available with supplied credentials."},"UriTooLong":{"description":"Provided URI is too long. It must not be greater than 10000 symbols."}},"schemas":{"SecurityMasterMarketsResponse":{"description":"List of markets and their metadata in security master","properties":{"data":{"$ref":"#/components/schemas/SecurityMasterMarkets"},"next_page_token":{"$ref":"#/components/schemas/NextPageToken"},"next_page_url":{"$ref":"#/components/schemas/NextPageUrl"}},"required":["data"],"type":"object"},"SecurityMasterMarkets":{"type":"array","items":{"$ref":"#/components/schemas/SecurityMasterMarketData"}},"SecurityMasterMarketData":{"type":"object","properties":{"market":{"$ref":"#/components/schemas/MarketId"},"code":{"$ref":"#/components/schemas/SecurityMasterAssetCode"},"pair":{"$ref":"#/components/schemas/Pair"},"trades_min_time":{"description":"The minimal available time of trades","type":"string"},"trades_max_time":{"description":"The maximal available time of trades","type":"string"},"orderbooks_min_time":{"description":"The minimal available time of market orderbooks","type":"string"},"orderbooks_max_time":{"description":"The maximal available time of market orderbooks","type":"string"},"quotes_min_time":{"description":"The minimal available time of market quotes","type":"string"},"quotes_max_time":{"description":"The maximal available time of market quotes","type":"string"},"funding_rates_min_time":{"description":"The minimal available time of markets with funding rates support","type":"string"},"funding_rates_max_time":{"description":"The maximal available time of markets with funding rates support","type":"string"},"openinterest_min_time":{"description":"The minimal available time of markets with open interests support","type":"string"},"openinterest_max_time":{"description":"The maximal available time of markets with open interests support","type":"string"},"liquidations_min_time":{"description":"The minimal available time of markets with liquidations support","type":"string"},"liquidations_max_time":{"description":"The maximal available time of markets with liquidations support","type":"string"},"exchange":{"$ref":"#/components/schemas/Exchange"},"base":{"$ref":"#/components/schemas/AssetIdBase"},"quote":{"$ref":"#/components/schemas/AssetIdQuote"},"symbol":{"$ref":"#/components/schemas/MarketSymbol"},"type":{"$ref":"#/components/schemas/MarketType"},"size_asset":{"$ref":"#/components/schemas/DerivativeContractSizeAsset"},"margin_asset":{"$ref":"#/components/schemas/DerivativeContractMarginAsset"},"strike":{"$ref":"#/components/schemas/OptionStrike"},"option_contract_type":{"$ref":"#/components/schemas/OptionContractType"},"is_european":{"$ref":"#/components/schemas/IsEuropean"},"contract_size":{"$ref":"#/components/schemas/MarketContractSize"},"tick_size":{"$ref":"#/components/schemas/FutureTickSize"},"multiplier_size":{"$ref":"#/components/schemas/FutureMultiplierSize"},"listing":{"$ref":"#/components/schemas/DerivativeContractListing"},"expiration":{"$ref":"#/components/schemas/DerivativeContractExpiration"},"settlement_price":{"$ref":"#/components/schemas/SettlementPrice"},"pool_config_id":{"$ref":"#/components/schemas/DefiPoolConfigId"},"contract_address":{"$ref":"#/components/schemas/DefiContractAddress"},"fee":{"$ref":"#/components/schemas/DefiFee"},"price_includes_fee":{"$ref":"#/components/schemas/DefiPriceIncludesFee"},"variable_fee":{"$ref":"#/components/schemas/DefiVariableFee"},"base_address":{"$ref":"#/components/schemas/DefiBaseAddress"},"quote_address":{"$ref":"#/components/schemas/DefiQuoteAddress"},"status":{"$ref":"#/components/schemas/Status"},"order_amount_increment":{"$ref":"#/components/schemas/OrderAmountIncrement"},"order_amount_min":{"$ref":"#/components/schemas/OrderAmountMin"},"order_amount_max":{"$ref":"#/components/schemas/OrderAmountMax"},"order_price_increment":{"$ref":"#/components/schemas/OrderPriceIncrement"},"order_price_min":{"$ref":"#/components/schemas/OrderPriceMin"},"order_price_max":{"$ref":"#/components/schemas/OrderPriceMax"},"order_size_min":{"$ref":"#/components/schemas/OrderSizeMin"},"order_taker_fee":{"$ref":"#/components/schemas/OrderTakerFee"},"order_maker_fee":{"$ref":"#/components/schemas/OrderMakerFee"},"margin_trading_enabled":{"$ref":"#/components/schemas/MarginTradingEnabled"},"experimental":{"$ref":"#/components/schemas/ExperimentalMarket"},"price_open":{"$ref":"#/components/schemas/CandlePriceOpen"},"price_close":{"$ref":"#/components/schemas/CandlePriceClose"},"price_high":{"$ref":"#/components/schemas/CandlePriceHigh"},"price_low":{"$ref":"#/components/schemas/CandlePriceLow"},"vwap":{"$ref":"#/components/schemas/CandleVwap"},"volume":{"$ref":"#/components/schemas/CandleVolume"},"candle_usd_volume":{"$ref":"#/components/schemas/CandleUsdVolume"},"candle_trades_count":{"$ref":"#/components/schemas/CandleTradesCount"},"base_native":{"$ref":"#/components/schemas/AssetIdBaseNative"},"quote_native":{"$ref":"#/components/schemas/AssetIdQuoteNative"}},"required":["market","type","exchange"]},"MarketId":{"description":"Unique name of the market.","type":"string"},"SecurityMasterAssetCode":{"description":"Ten-digit alphanumeric asset identifying code","type":"string"},"Pair":{"description":"Pair string representation as `<base>-<quote>`.","type":"string"},"Exchange":{"description":"Name of the exchange.","type":"string"},"AssetIdBase":{"description":"Unique name of the base asset.","type":"string"},"AssetIdQuote":{"description":"Unique name of the quote asset.","type":"string"},"MarketSymbol":{"description":"Unique name of the derivative market symbol.","type":"string"},"MarketType":{"description":"Type of the market (spot, future).","type":"string"},"DerivativeContractSizeAsset":{"description":"Name of the derivative contract size asset.","type":"string"},"DerivativeContractMarginAsset":{"description":"Name of the derivative margin asset.","type":"string"},"OptionStrike":{"description":"Strike price for option trade.","type":"string","format":"decimal"},"OptionContractType":{"description":"'call or 'put' option contract type.","type":"string"},"IsEuropean":{"description":"shows if the options contract is european or not.","type":"boolean"},"MarketContractSize":{"description":"Market contract size.","type":"string","format":"decimal"},"FutureTickSize":{"description":"Futures tick size.","type":"string","format":"decimal"},"FutureMultiplierSize":{"description":"Futures multiplier size.","type":"string","format":"decimal"},"DerivativeContractListing":{"description":"Derivative contract listing date.","type":"string","format":"date-time"},"DerivativeContractExpiration":{"description":"Derivative contract expiration date.","type":"string","format":"date-time"},"SettlementPrice":{"description":"Price of underlying asset at contract expiration.","type":"string","format":"decimal"},"DefiPoolConfigId":{"description":"DeFi pooling config ID.","type":"string"},"DefiContractAddress":{"description":"DeFi contract address.","type":"string"},"DefiFee":{"description":"DeFi fee (in percents).","type":"string","format":"decimal"},"DefiPriceIncludesFee":{"description":"Whether the reported price for a trade is inclusive (true) or exclusive (false) of fee.","type":"boolean"},"DefiVariableFee":{"description":"Whether the market has a variable (true) or fixed (false) fee structure.","type":"boolean"},"DefiBaseAddress":{"description":"DeFi base address.","type":"string"},"DefiQuoteAddress":{"description":"DeFi quote address.","type":"string"},"Status":{"description":"Market status (online/offline).","type":"string"},"OrderAmountIncrement":{"description":"Volume precision.","type":"string","format":"decimal"},"OrderAmountMin":{"description":"Minimum amount size.","type":"string","format":"decimal"},"OrderAmountMax":{"description":"Maximum amount size.","type":"string","format":"decimal"},"OrderPriceIncrement":{"description":"Price precision.","type":"string","format":"decimal"},"OrderPriceMin":{"description":"Minimum price.","type":"string","format":"decimal"},"OrderPriceMax":{"description":"Maximum price.","type":"string","format":"decimal"},"OrderSizeMin":{"description":"Minimum order size, where order size is amount * price.","type":"string","format":"decimal"},"OrderTakerFee":{"type":"string","format":"decimal"},"OrderMakerFee":{"type":"string","format":"decimal"},"MarginTradingEnabled":{"type":"boolean"},"ExperimentalMarket":{"description":"If set to true, indicates that market collection is under active development - there is a chance of temporary discrepancies in the served dataset.","type":"boolean"},"CandlePriceOpen":{"description":"The opening price of the candle.","type":"string","format":"decimal"},"CandlePriceClose":{"description":"The closing price of the candle.","type":"string","format":"decimal"},"CandlePriceHigh":{"description":"The high price of the candle.","type":"string","format":"decimal"},"CandlePriceLow":{"description":"The low price of the candle.","type":"string","format":"decimal"},"CandleVwap":{"description":"The volume-weighted average price of the candle.","type":"string","format":"decimal"},"CandleVolume":{"description":"The volume of the candle in units of the base asset.","type":"string","format":"decimal"},"CandleUsdVolume":{"description":"The volume of the candle in USD.","type":"string","format":"decimal"},"CandleTradesCount":{"description":"The number of trades used for candle calculation.","type":"string","format":"int64"},"AssetIdBaseNative":{"description":"Exchange name of the base asset.","type":"string"},"AssetIdQuoteNative":{"description":"Exchange name of the quote asset.","type":"string"},"NextPageToken":{"description":"Token of the next page results for a given request.","type":"string"},"NextPageUrl":{"description":"URL of the next page results for a given request.","type":"string"},"ErrorResponse":{"properties":{"error":{"$ref":"#/components/schemas/ErrorObject"}},"required":["error"],"type":"object"},"ErrorObject":{"properties":{"type":{"description":"Error type string. Can be used for error identification.","type":"string"},"message":{"description":"Human-friendly error description. Can be amended without prior notification. Do not use for error identification in your code.","type":"string"}},"required":["type","description"],"type":"object"}}},"paths":{"/security-master/markets":{"get":{"summary":"Security Master Markets","description":"Returns metadata on all the markets offered (spot, options, futures), sorted alphabetically by market.","operationId":"getSecurityMasterMarkets","tags":["Security Master"],"parameters":[{"$ref":"#/components/parameters/SecurityMasterMarketType"},{"$ref":"#/components/parameters/SecurityMasterMarkets"},{"$ref":"#/components/parameters/MarketSymbol"},{"$ref":"#/components/parameters/Exchange"},{"$ref":"#/components/parameters/MarketBase"},{"$ref":"#/components/parameters/MarketQuote"},{"$ref":"#/components/parameters/PageSize"},{"$ref":"#/components/parameters/PagingFromWithStartByDefault"},{"$ref":"#/components/parameters/NextPageToken"},{"$ref":"#/components/parameters/Pretty"}],"responses":{"200":{"$ref":"#/components/responses/SecurityMasterMarkets"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/BlockchainForbidden"},"414":{"$ref":"#/components/responses/UriTooLong"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://gitbook-docs.coinmetrics.io/cm-api-spec/meta-data/security-master/security-master-markets.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
