pub enum InstrumentInfo {
Futures(FuturesInstrumentsInfo),
Spot(SpotInstrumentsInfo),
Options(OptionsInstrument),
}Expand description
Enum representing different types of instrument information.
This untagged enum allows the API to return different instrument details based on the category (Futures, Spot, Options). For perpetual futures, the Futures variant is most relevant, containing details like leverage and funding intervals.
Variants§
Futures(FuturesInstrumentsInfo)
Instrument information for futures (including perpetuals).
Contains details for perpetual futures contracts, such as leverage filters and funding intervals. Bots use this to configure trading parameters and manage risk.
Spot(SpotInstrumentsInfo)
Instrument information for spot markets.
Contains details for spot trading pairs. Less relevant for perpetual futures but included for completeness.
Options(OptionsInstrument)
Instrument information for options.
Contains details for options contracts. Not typically used for perpetual futures trading.
Trait Implementations§
Source§impl Clone for InstrumentInfo
impl Clone for InstrumentInfo
Source§fn clone(&self) -> InstrumentInfo
fn clone(&self) -> InstrumentInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more