bybit/models/futures_instruments_info.rs
1use crate::prelude::*;
2
3/// Contains instrument information for futures contracts.
4///
5/// Part of the `InstrumentInfo` enum, this struct provides details for futures, including perpetual futures. It’s critical for bots trading perpetuals to understand leverage, price, and lot size constraints.
6#[derive(Serialize, Deserialize, Clone, Debug)]
7#[serde(rename_all = "camelCase")]
8pub struct FuturesInstrumentsInfo {
9 /// The product category (e.g., "linear", "inverse").
10 ///
11 /// Confirms the type of futures contract. For perpetuals, this is `linear` (USDT-margined) or `inverse` (coin-margined). Bots should verify this matches their trading strategy.
12 pub category: String,
13
14 /// A list of futures instrument details.
15 ///
16 /// Contains the actual instrument data for each futures contract. Bots iterate over this list to extract parameters like leverage and funding intervals for perpetual futures.
17 pub list: Vec<FuturesInstrument>,
18
19 /// The cursor for pagination.
20 ///
21 /// Indicates the next page of results for large datasets. Bots should use this for paginated requests to fetch all instruments when `limit` is reached.
22 #[serde(skip_serializing_if = "String::is_empty")]
23 pub next_page_cursor: String,
24}