Type/to search
Built-in Functions
Structures
Ticker
Depth
OrderBook
Trade
Record
Market
Order
Condition
Account
Asset
Position
Funding
Other Structures
Built-in Variables and Constants
Conventions
Exchanges

Returned by exchange.GetMarkets(): an instrument's base and quote assets, price and amount steps and precisions, order quantity and notional limits, and contract value.

Attributes

NameTypeDescription

Symbol

string

Example value: btcusdt, the Symbol field records the original name of this trading symbol on the exchange. Note that the format and definition of this attribute differs from the Symbol field in the Ticker structure.

BaseAsset

string

Example value: BTC, the BaseAsset field records the base currency name (i.e., baseCurrency), uniformly in uppercase letters.

QuoteAsset

string

Example value: USDT, the QuoteAsset field records the quote currency name (i.e., quoteCurrency), uniformly in uppercase letters.

TickSize

number

Example value: 0.01, the TickSize field records the minimum price increment for this trading symbol on the exchange.

AmountSize

number

Example value: 0.01, the AmountSize field records the minimum order quantity increment for this trading symbol on the exchange.

PricePrecision

number

Example value: 2, the PricePrecision field records the price precision for this trading symbol on the exchange, indicating the price is accurate to 2 decimal places. The value can be negative: for example, with a price tick of 10 it is -1, meaning prices are rounded to the tens place.

AmountPrecision

number

Example value: 3, the AmountPrecision field records the order quantity precision for this trading symbol on the exchange, indicating the order quantity is accurate to 3 decimal places. Like PricePrecision, the value can be negative.

MinQty

number

Example value: 0.001, the MinQty field records the minimum order quantity for this trading symbol on the exchange.

MaxQty

number

Example value: 1000, the MaxQty field records the maximum order quantity for this trading symbol on the exchange. When the exchange does not provide a maximum order quantity, the value is 9007199254740991 (2^53−1), meaning no limit.

MinNotional

number

Example value: 5, the MinNotional field records the minimum order value for this trading symbol on the exchange.

MaxNotional

number

Example value: 9999999, the MaxNotional field records the maximum order value for this trading symbol on the exchange. When the exchange does not provide a maximum order value, it is usually 9007199254740991 (2^53−1), meaning no limit; some exchange objects omit this field.

CtVal

number

The value corresponding to a single contract for this trading symbol on the exchange, with the unit specified in the CtValCcy field. For example: CtVal of 0.01 and CtValCcy of BTC means a single contract is worth 0.01 BTC.

CtValCcy

string

The value unit of a single contract. The value unit of a single contract can be: BTC, USD, ETH, etc.

Info

object

The raw data of this symbol returned by the exchange's market information interface.

See Also

Remarks

The exchange.GetMarkets() function returns a dictionary containing this Market structure.

Exchanges differ in how much market information they provide, so note the following: MaxQty and MaxNotional are 9007199254740991 (meaning no limit) when the exchange does not provide them; MaxNotional, CtVal and CtValCcy are omitted when there is no data (spot symbols usually have no CtVal/CtValCcy; the Rust Market structure always has these fields, which are then 0 or an empty string); PricePrecision and AmountPrecision can be negative; exchanges without a market list endpoint cannot provide the native name, in which case Symbol is the FMZ trading symbol code (such as BTC_USDT). All field values above are derived from the exchange interface's raw data, and specific details can also be found in the Info field content.