pub enum Param<'a> {
Show 19 variants
Symbol {
v: &'a String,
},
Instrument {
v: &'a String,
},
Instruments {
v: &'a Vec<String>,
},
ChainAsset {
v: &'a String,
},
Asset {
v: &'a String,
},
ToTs {
v: Option<i64>,
},
ToTimestamp {
v: Option<i64>,
},
Limit {
v: Option<usize>,
},
Market {
v: String,
},
InstrumentStatus {
v: CCSpotInstrumentStatus,
},
OCCoreBlockNumber {
v: i64,
},
OCCoreAddress {
v: &'a String,
},
OCCoreQuoteAsset {
v: &'a String,
},
NewsLanguage {
v: CCNewsLang,
},
NewsSourceID {
v: CCNewsSourceID,
},
NewsCategories {
v: Option<Vec<String>>,
},
NewsExcludeCategories {
v: Option<Vec<String>>,
},
NewsSourceType {
v: CCNewsSourceType,
},
NewsStatus {
v: CCNewsStatus,
},
}
Expand description
All possible parameter types for the REST API request.
Variants§
Symbol
Asset symbol
Instrument
Instrument symbol
Instruments
List of instrument symbols
ChainAsset
Chain asset symbol
Asset
Asset symbol
ToTs
Final timestamp up to which the data will be extracted
ToTimestamp
Final timestamp up to which the data will be extracted
Limit
Maximum number of datapoints per API endpoint call
Market
Market name
InstrumentStatus
Status of the instrument (e.g., ACTIVE
, EXPIRED
)
Fields
OCCoreBlockNumber
Block number on the blockchain
OCCoreAddress
Blockchain address
OCCoreQuoteAsset
Asset to quote data in
NewsLanguage
Language of the news
Fields
§
v: CCNewsLang
NewsSourceID
Source ID of the news stream
Fields
NewsCategories
List of news categories
NewsExcludeCategories
List of news categories to exclude
NewsSourceType
Type of news stream
Fields
NewsStatus
Status of the news stream (e.g., ACTIVE
, INACTIVE
)
Fields
Auto Trait Implementations§
impl<'a> Freeze for Param<'a>
impl<'a> RefUnwindSafe for Param<'a>
impl<'a> Send for Param<'a>
impl<'a> Sync for Param<'a>
impl<'a> Unpin for Param<'a>
impl<'a> UnwindSafe for Param<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more