Skip to main content

bybit/models/
spot_instruments_info.rs

1use crate::prelude::*;
2
3/// Contains instrument information for spot markets.
4///
5/// Part of the `InstrumentInfo` enum, this struct provides details for spot trading pairs. Less relevant for perpetual futures but included for completeness.
6#[derive(Serialize, Deserialize, Clone, Debug)]
7#[serde(rename_all = "camelCase")]
8pub struct SpotInstrumentsInfo {
9    /// The product category (e.g., "spot").
10    ///
11    /// Confirms the instrument type as spot. Bots trading perpetuals can ignore this.
12    pub category: String,
13
14    /// A list of spot instrument details.
15    ///
16    /// Contains data for each spot trading pair. Not relevant for perpetual futures.
17    pub list: Vec<SpotInstrument>,
18}