ccdata_api/schemas/
data_api.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
pub mod indices_and_reference_rates;
pub mod spot;
pub mod futures;
pub mod options;
pub mod derivatives_indices;
pub mod on_chain_dex;
pub mod on_chain_core;
pub mod asset;
pub mod news;
pub mod overview;


use serde::Deserialize;


#[derive(Deserialize, Debug)]
pub struct CCPreviousAssetSymbol {
    #[serde(rename = "SYMBOL")]
    pub symbol: Option<String>,
    #[serde(rename = "SYMBOL_USAGE_START_DATE")]
    pub symbol_usage_start_date: Option<i64>,
    #[serde(rename = "SYMBOL_USAGE_END_DATE")]
    pub symbol_usage_end_date: Option<i64>,
    #[serde(rename = "DESCRIPTION")]
    pub description: Option<String>,
}


#[derive(Deserialize, Debug)]
pub struct CCAssetAlternativeId {
    #[serde(rename = "NAME")]
    pub name: Option<String>,
    #[serde(skip_deserializing)]
    #[serde(rename = "ID")]
    pub id: Option<String>,
}


#[derive(Deserialize, Debug)]
pub struct CCAssetIndustry {
    #[serde(rename = "ASSET_INDUSTRY")]
    pub asset_industry: Option<String>,
}


#[derive(Deserialize, Debug)]
pub struct CCSpecialAddress {
    #[serde(rename = "NAME")]
    pub name: Option<String>,
    #[serde(rename = "BLOCKCHAIN")]
    pub blockchain: Option<String>,
    #[serde(rename = "ADDRESS")]
    pub address: Option<String>,
    #[serde(rename = "DESCRIPTION")]
    pub description: Option<String>,
}


#[derive(Deserialize, Debug)]
pub struct CCInstrumentStatus {
    #[serde(rename = "ACTIVE")]
    pub active: i64,
    #[serde(rename = "IGNORED")]
    pub ignored: i64,
    #[serde(rename = "RETIRED")]
    pub retired: i64,
    #[serde(rename = "EXPIRED")]
    pub expired: i64,
    #[serde(rename = "undefined")]
    pub undefined: Option<i64>,
}