---
title: "Security Master Markets"
method: GET
path: "/security-master/markets"
tags: ["Security Master"]
---

# Security Master Markets

`GET /security-master/markets`

## Request

- Base URL: `https://api.coinmetrics.io/v4`
- URL: `https://api.coinmetrics.io/v4/security-master/markets`
- Auth: API key in query parameter `api_key`
- TypeScript: <https://skmtc.dev/coinmetrics/apis/coin-metrics-api-v4/docs/security-master/markets/get.ts> (a function with typed inputs; its response is checked against the schema)

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

## Query parameters

- `type` 'spot' | 'future' | 'option'
- `markets` string[]
- `symbol` string
- `exchange` string
- `base` string
- `quote` string
- `page_size` integer
- `paging_from` 'start' | 'end', PagingFrom
- `next_page_token` string
- `pretty` boolean

## Response `200`

List of security master entries.

- SecurityMasterMarketsResponse: List of markets and their metadata in security master
  - `data` SecurityMasterMarketData[], required
    - `market` string, required: Unique name of the market.
    - `code` string: Ten-digit alphanumeric asset identifying code
    - `pair` string: Pair string representation as `<base>-<quote>`.
    - `trades_min_time` string: The minimal available time of trades
    - `trades_max_time` string: The maximal available time of trades
    - `orderbooks_min_time` string: The minimal available time of market orderbooks
    - `orderbooks_max_time` string: The maximal available time of market orderbooks
    - `quotes_min_time` string: The minimal available time of market quotes
    - `quotes_max_time` string: The maximal available time of market quotes
    - `funding_rates_min_time` string: The minimal available time of markets with funding rates support
    - `funding_rates_max_time` string: The maximal available time of markets with funding rates support
    - `openinterest_min_time` string: The minimal available time of markets with open interests support
    - `openinterest_max_time` string: The maximal available time of markets with open interests support
    - `liquidations_min_time` string: The minimal available time of markets with liquidations support
    - `liquidations_max_time` string: The maximal available time of markets with liquidations support
    - `exchange` string, required: Name of the exchange.
    - `base` string: Unique name of the base asset.
    - `quote` string: Unique name of the quote asset.
    - `symbol` string: Unique name of the derivative market symbol.
    - `type` string, required: Type of the market (spot, future).
    - `size_asset` string: Name of the derivative contract size asset.
    - `margin_asset` string: Name of the derivative margin asset.
    - `strike` string: Strike price for option trade.
    - `option_contract_type` string: 'call or 'put' option contract type.
    - `is_european` boolean: shows if the options contract is european or not.
    - `contract_size` string: Market contract size.
    - `tick_size` string: Futures tick size.
    - `multiplier_size` string: Futures multiplier size.
    - `listing` string: Derivative contract listing date.
    - `expiration` string: Derivative contract expiration date.
    - `settlement_price` string: Price of underlying asset at contract expiration.
    - `pool_config_id` string: DeFi pooling config ID.
    - `contract_address` string: DeFi contract address.
    - `fee` string: DeFi fee (in percents).
    - `price_includes_fee` boolean: Whether the reported price for a trade is inclusive (true) or exclusive (false) of fee.
    - `variable_fee` boolean: Whether the market has a variable (true) or fixed (false) fee structure.
    - `base_address` string: DeFi base address.
    - `quote_address` string: DeFi quote address.
    - `status` string: Market status (online/offline).
    - `order_amount_increment` string: Volume precision.
    - `order_amount_min` string: Minimum amount size.
    - `order_amount_max` string: Maximum amount size.
    - `order_price_increment` string: Price precision.
    - `order_price_min` string: Minimum price.
    - `order_price_max` string: Maximum price.
    - `order_size_min` string: Minimum order size, where order size is amount * price.
    - `order_taker_fee` string
    - `order_maker_fee` string
    - `margin_trading_enabled` boolean
    - `experimental` boolean: If set to true, indicates that market collection is under active development - there is a chance of temporary discrepancies in the served dataset.
    - `price_open` string: The opening price of the candle.
    - `price_close` string: The closing price of the candle.
    - `price_high` string: The high price of the candle.
    - `price_low` string: The low price of the candle.
    - `vwap` string: The volume-weighted average price of the candle.
    - `volume` string: The volume of the candle in units of the base asset.
    - `candle_usd_volume` string: The volume of the candle in USD.
    - `candle_trades_count` string: The number of trades used for candle calculation.
    - `base_native` string: Exchange name of the base asset.
    - `quote_native` string: Exchange name of the quote asset.
  - `next_page_token` string: Token of the next page results for a given request.
  - `next_page_url` string: URL of the next page results for a given request.

## Other responses

- `401`: Requested resource requires authorization.
- `403`: Requested resource is not available with supplied credentials.
- `414`: Provided URI is too long. It must not be greater than 10000 symbols.

---

[API](https://skmtc.dev/coinmetrics/apis/coin-metrics-api-v4.md) - [All operations](https://skmtc.dev/coinmetrics/apis/coin-metrics-api-v4/llms.txt) - [OpenAPI document](https://skmtc.dev/coinmetrics/apis/coin-metrics-api-v4/revisions/774268c0a4fe?raw)
