Market list

SQL API

Our ClickHouse SQL interface provides direct access to normalized market metadata through three optimized views: market_spot, market_future, and market_option. These tables enable sophisticated filtering and joins impossible via REST, empowering complex analytics workflows.


api.market_spot

Spot markets (e.g., BTC/USD)

Column
Type
Description

exchange

String

Exchange name (e.g., "binance")

market_symbol

String

Normalized symbol (e.g., "BTC-USDT")

base_asset

String

Base asset (e.g., "BTC")

quote_asset

String

Quote asset (e.g., "USDT")

exchange_specific_symbol

String

Native exchange symbol (e.g., "BTCUSDT")

Use Case Example Find all spot markets with USDT quote pairs on Binance or Kraken:

SELECT exchange, market_symbol, base_asset, quote_asset  
FROM api.market_spot  
WHERE quote_asset = 'USDT'  
  AND exchange IN ('binance', 'kraken')  

List all exchanges:

SELECT distinct exchange FROM api.market_spot

api.market_future

Futures contracts (e.g., BTC-USD-PERP)

Column
Type
Description

exchange

String

Exchange name

market_symbol

String

Normalised symbol (e.g., "BTC-USDT-PERP")

underlying_asset

String

Underlying asset (e.g., "BTC")

quote_asset

String

Quote asset (e.g., "USDT")

settling_asset

String

Settlement asset (e.g., "BTC")

denomination_asset

String

Margin denomination (e.g., "USDT")

expiration

DateTime64(9)

Contract expiry (null for perpetuals)

contract_size

Decimal(38,18)

Size per contract (e.g., 0.001)

contract_type

String

"INVERSE" or "LINEAR"

future_type

String

"PERPETUAL" or "EXPIRING"

exchange_specific_symbol

String

Native exchange symbol (e.g., "BTCUSDT_PERP")

Use Case Example List perpetual BTC futures with linear pricing:


api.market_option

Options contracts (e.g., BTC-USDT-2025-08-02-112400-C)

Column
Type
Description

exchange

String

Exchange name

market_symbol

String

Normalised symbol (e.g., "BTC-USDT-30000-C")

underlying_asset

String

Underlying asset (e.g., "BTC")

quote_asset

String

Quote asset (e.g., "USDT")

settling_asset

String

Settlement asset (e.g., "BTC")

expiration

DateTime64(9)

Option expiry timestamp

strike

Decimal(38,18)

Strike price (e.g., 30000)

contract_size

Decimal(38,18)

Size per contract (e.g., 0.1)

contract_type

String

"INVERSE" or "LINEAR"

option_type

String

"CALL" or "PUT"

exchange_specific_symbol

String

Native exchange symbol (e.g., "BTC-30JUN23-30000-C")

Use Case Example Find all BTC call options expiring in Q3 2024:

Here is the doc of the handy toQuarter function : https://clickhouse.com/docs/sql-reference/functions/date-time-functions#toQuarterarrow-up-right

Rest API

Get Spot Markets

get

This endpoint allows you to obtain the full list of spot markets

Responses
chevron-right
200

All spot markets

application/json
exchangestringOptional

The name of the exchange

market_symbolstringOptional

Universal name of market

base_assetstringOptional

Universal name of the base asset

quote_assetstringOptional

Universal name of the quote asset

exchange_specific_symbolstringOptional

Name of the market on the exchange (as referenced by the exchange API)

get
/market/spot
200

All spot markets

Get Future Markets

get

Returns expirable future and perpetual swaps.

Responses
chevron-right
200

OK

application/json
exchangestringOptional

The name of the exchange

market_symbolstringOptional

Universal name of market

underlying_assetstringOptional

Universal name of the underlying asset

quote_assetstringOptional

Universal name of the quote asset

settling_assetstringOptional

Universal name of the asset the future is settled in

denomination_assetstringOptional

Universal name of the asset the future is denominated in

expirationstring · date-timeOptional

UTC time of the contract expiration. Null for perpetual contracts except binance. Not-null for perpetual contracts that were delivered on delisting or not expired binance contracts.

contract_sizenumber · decimalOptional

Contract size in denomination_asset

contract_typestring · enumOptional

Type of contract (LINEAR or INVERSE)

Possible values:
future_typestring · enumOptional

Type of future (PERPETUAL or EXPIRING)

Possible values:
get
/market/future
200

OK

Get active Option Markets

get
Responses
chevron-right
200

OK

application/json
exchangestringOptional

The name of the exchange

market_symbolstringOptional

Universal name of market

expirationstring · date-timeOptional

UTC time of the option expiration

underlying_assetstringOptional

Universal name of the underlying asset

quote_assetstringOptional

Universal name of the quote asset

settling_assetstringOptional

Universal name of the asset the option is settled in

denomination_assetstringOptional

Universal name of the asset the option is denominated in

contract_sizenumber · decimalOptional

Contract size in denomination_asset

contract_typestring · enumOptional

Type of contract (LINEAR or INVERSE)

Possible values:
option_typestring · enumOptional

Type of option (CALL or PUT)

Possible values:
exchange_symbolstringOptional

Name of the market on the exchange (as referenced by the exchange API)

get
/market/option/active
200

OK

Get all Option Markets

get

This endpoint returns all option markets, including both active and expired options. It is useful for retrieving a comprehensive list of all options available across exchanges.

This endpoint is limited to 10000 instruments that expired before the expired_before parameter in descending order of expiration.

Query parameters
exchangestring · enumRequired

Filter by exchange name. Example: 'deribit', 'delta'

Possible values:
expired_beforestring · date-timeRequired

Filter options that expired before a specific date. Format: ISO 8601 date-time (e.g., '2023-12-31T23:59:59Z').

Responses
chevron-right
200

OK

application/json
exchangestringOptional

The name of the exchange

market_symbolstringOptional

Universal name of market

expirationstring · date-timeOptional

UTC time of the option expiration

underlying_assetstringOptional

Universal name of the underlying asset

quote_assetstringOptional

Universal name of the quote asset

settling_assetstringOptional

Universal name of the asset the option is settled in

denomination_assetstringOptional

Universal name of the asset the option is denominated in

contract_sizenumber · decimalOptional

Contract size in denomination_asset

contract_typestring · enumOptional

Type of contract (LINEAR or INVERSE)

Possible values:
option_typestring · enumOptional

Type of option (CALL or PUT)

Possible values:
exchange_symbolstringOptional

Name of the market on the exchange (as referenced by the exchange API)

get
/market/option/all
200

OK

Last updated