Skip to main content

bybit/models/
open_interest_summary.rs

1use crate::prelude::*;
2
3/// Summarizes open interest data for a trading pair.
4///
5/// Part of the `OpenInterestResponse`, this struct organizes open interest data by symbol and a list of records. It’s the primary container for open interest data used by bots to assess market dynamics in perpetual futures.
6#[derive(Serialize, Deserialize, Clone, Debug)]
7#[serde(rename_all = "camelCase")]
8pub struct OpenInterestSummary {
9    /// The trading pair symbol (e.g., "BTCUSDT").
10    ///
11    /// Confirms the perpetual futures contract for the open interest data. Bots should verify this matches the requested symbol.
12    pub symbol: String,
13
14    /// A list of open interest records.
15    ///
16    /// Contains the open interest data for each time interval, including quantity and timestamp. Bots use this to analyze trends in market participation and predict potential price volatility.
17    pub list: Vec<OpenInterest>,
18}