Market
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
| Name | Type | Description |
Symbol | string | Example value: |
BaseAsset | string | Example value: |
QuoteAsset | string | Example value: |
TickSize | number | Example value: |
AmountSize | number | Example value: |
PricePrecision | number | Example value: |
AmountPrecision | number | Example value: |
MinQty | number | Example value: |
MaxQty | number | Example value: |
MinNotional | number | Example value: |
MaxNotional | number | Example value: |
CtVal | number | The value corresponding to a single contract for this trading symbol on the exchange, with the unit specified in the |
CtValCcy | string | The value unit of a single contract. The value unit of a single contract can be: |
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.