Unified market/instrument metadata.
Describes a trading pair and its properties — spot, derivatives, precision, limits, and fee structure.
Fields
id- Exchange-native market ID (e.g., "BTCUSDT")symbol- Unified symbol (e.g., "BTC/USDT")base,quote- Base and quote currency codesbase_id,quote_id- Exchange-native currency IDstype- Market type: "spot", "swap", "future", "option"sub_type- "linear" or "inverse" for derivativesspot,margin,swap,future,option,contract- Type flagsactive- Whether the market is currently tradingsettle,settle_id- Settlement currencycontract_size- Contract size for derivativeslinear,inverse- Settlement direction flagsexpiry,expiry_datetime- Futures/options expirationstrike- Options strike priceoption_type- "call" or "put"taker,maker- Fee rates as decimalsprecision- Price/amount/cost precision ruleslimits- Min/max for price, amount, cost, leverageinfo- Raw exchange response
Summary
Types
@type t() :: %CCXT.Market{ active: boolean() | nil, base: String.t() | nil, base_id: String.t() | nil, contract: boolean() | nil, contract_size: number() | nil, expiry: integer() | nil, expiry_datetime: String.t() | nil, future: boolean() | nil, id: String.t() | nil, info: map() | nil, inverse: boolean() | nil, limits: map() | nil, linear: boolean() | nil, maker: number() | nil, margin: boolean() | nil, option: boolean() | nil, option_type: String.t() | nil, precision: map() | nil, quote: String.t() | nil, quote_id: String.t() | nil, settle: String.t() | nil, settle_id: String.t() | nil, spot: boolean() | nil, strike: number() | nil, sub_type: String.t() | nil, swap: boolean() | nil, symbol: String.t() | nil, taker: number() | nil, type: String.t() | nil }
Functions
@spec schema() :: map()
JSON Schema for the Market unified type.