1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
//!
//! The depth GET response.
//!

use serde::Deserialize;

use crate::data::depth_element::DepthElement;

///
/// The `https://www.binance.com/api/v3/depth` GET response.
///
#[derive(Debug, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Response {
    /// The last update ID.
    pub last_update_id: i64,
    /// The bids below the current price.
    pub bids: Vec<DepthElement>,
    /// The asks above the current price.
    pub asks: Vec<DepthElement>,
}