ccdata_api/schemas/data_api/
overview.rs

1use serde::Deserialize;
2
3
4// Overview: MktCap Historical OHLCV
5
6
7/// Overview: MktCap Historical OHLCV
8#[derive(Deserialize, Debug)]
9pub struct CCOverviewMktCapOHLCV {
10    #[serde(rename = "UNIT")]
11    /// The unit of the message.
12    pub unit: String,
13    #[serde(rename = "TIMESTAMP")]
14    /// The timestamp in seconds of the beginning of the histo period.
15    /// For minute it would be every minute at the beginning of the minute, for hour it would be the start of the hour and for daily it is 00:00 GMT.
16    pub timestamp: i64,
17    #[serde(rename = "TYPE")]
18    /// Type of the message, this is 886.
19    pub type_: String,
20    #[serde(rename = "OPEN")]
21    /// The sum of assets circulating mkt caps (circulating supply * price quoted in USD) that meet the inclusion criteria closest to the start of the time period.
22    pub open: f64,
23    #[serde(rename = "HIGH")]
24    /// The highest sum of assets circulating mkt caps (circulating supply * price quoted in USD) that meet the inclusion criteria during the time period.
25    pub high: f64,
26    #[serde(rename = "LOW")]
27    /// The lowest sum of assets circulating mkt caps (circulating supply * price quoted in USD) that meet the inclusion criteria during the time period.
28    pub low: f64,
29    #[serde(rename = "CLOSE")]
30    /// The sum of assets circulating mkt caps (circulating supply * price quoted in USD) that meet the inclusion criteria closest to the end of the time period.
31    pub close: f64,
32    #[serde(rename = "TOP_TIER_VOLUME")]
33    /// The sum of assets top-tier volumes (top-tier volume * price quoted in USD) that meet the inclusion criteria during the time period.
34    pub top_tier_volume: f64,
35}