pub struct SpotInstrument {
pub symbol: String,
pub base_coin: String,
pub quote_coin: String,
pub innovation: u64,
pub status: String,
pub margin_trading: String,
pub st_tag: u64,
pub lot_size_filter: LotSizeFilter,
pub price_filter: PriceFilter,
pub risk_parameters: RiskParameters,
}Expand description
Represents a single spot instrument.
Contains details about a spot trading pair. Not relevant for perpetual futures but included for completeness.
Fields§
§symbol: StringThe trading pair symbol (e.g., “BTCUSDT”).
Identifies the spot trading pair. Bots trading perpetuals can ignore this.
base_coin: StringThe base coin (e.g., “BTC”).
The underlying asset of the spot pair. Not relevant for perpetuals.
quote_coin: StringThe quote coin (e.g., “USDT”).
The currency used to quote the spot pair. Not relevant for perpetuals.
innovation: u64Indicates if the pair is an innovation token (0 or 1).
Marks new or experimental tokens. Not relevant for perpetuals.
status: StringThe trading status (e.g., “Trading”).
Indicates if the spot pair is tradable. Not relevant for perpetuals.
margin_trading: StringIndicates if margin trading is supported.
Specifies whether the spot pair supports margin trading. Not relevant for perpetuals.
st_tag: u64A tag for the spot pair (e.g., for special tokens).
Used for categorization. Not relevant for perpetuals.
lot_size_filter: LotSizeFilterThe lot size constraints.
Defines order quantity constraints for spot trading. Not relevant for perpetuals.
price_filter: PriceFilterThe price constraints.
Defines price constraints for spot trading. Not relevant for perpetuals.
risk_parameters: RiskParametersRisk parameters for the spot pair.
Specifies risk-related constraints. Not relevant for perpetuals.
Trait Implementations§
Source§impl Clone for SpotInstrument
impl Clone for SpotInstrument
Source§fn clone(&self) -> SpotInstrument
fn clone(&self) -> SpotInstrument
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more