Struct CCOptionsOHLCV

Source
pub struct CCOptionsOHLCV {
Show 42 fields pub unit: String, pub timestamp: i64, pub type_: String, pub market: String, pub instrument: String, pub mapped_instrument: String, pub index_underlying: String, pub quote_currency: String, pub settlement_currency: String, pub contract_currency: String, pub strike_currency: String, pub index_underlying_id: i32, pub quote_currency_id: i32, pub settlement_currency_id: i32, pub contract_currency_id: i32, pub strike_currency_id: i32, pub transform_function: String, pub open: f64, pub high: f64, pub low: f64, pub close: f64, pub number_of_contracts: i64, pub total_trades: i64, pub total_trades_buy: i64, pub total_trades_sell: i64, pub total_trades_unknown: i64, pub volume: f64, pub quote_volume: f64, pub volume_buy: f64, pub quote_volume_buy: f64, pub volume_sell: f64, pub quote_volume_sell: f64, pub volume_unknown: f64, pub quote_volume_unknown: f64, pub notional_volume: f64, pub notional_quote_volume: f64, pub notional_volume_buy: f64, pub notional_quote_volume_buy: f64, pub notional_volume_sell: f64, pub notional_quote_volume_sell: f64, pub notional_volume_unknown: f64, pub notional_quote_volume_unknown: f64,
}
Expand description

Options: Historical OHLCV+

Fields§

§unit: String

The level of granularity (e.g. MINUTE / HOUR / DAY).

§timestamp: i64

The timestamp, in seconds, of the histo period. This refers to the first timestamp of the unit under consideration, not the last (e.g. for daily data the timestamp will refer to 00:00 GMT/UTC).

§type_: String

Type of the message.

§market: String

The market / exchange under consideration (e.g. bitmex, deribit, ftx, etc).

§instrument: String

The unmapped instrument ID.

§mapped_instrument: String

The mapped instrument ID, derived from our mapping rules.

§index_underlying: String

The mapped index underlying asset.

§quote_currency: String

The mapped to asset quote / counter symbol / coin (e.g. USD). Only available on instruments that have mapping.

§settlement_currency: String

The currency that the contract is settled in (e.g. USD). Only available on instruments that have mapping.

§contract_currency: String

The currency that the contract size is denominated in (e.g. USD). Only available on instruments that have mapping.

§strike_currency: String

The strike currency of the contract underlying index.

§index_underlying_id: i32

Represents the internal CCData ID for the index underlying asset (e.g., 1). This ID is unique and immutable, ensuring consistent identification. Applicable only to instruments with a mapping.

§quote_currency_id: i32

Represents the internal CCData ID for the asset quote / counter symbol / coin (e.g. 5). This ID is unique and immutable, ensuring consistent identification. Applicable only to instruments with a mapping.

§settlement_currency_id: i32

Represents the internal CCData ID for the currency that the contract is settled in (e.g. 5). This ID is unique and immutable, ensuring consistent identification. Applicable only to instruments with a mapping.

§contract_currency_id: i32

Represents the internal CCData ID for the currency that the contract size is denominated in (e.g. 5). This ID is unique and immutable, ensuring consistent identification. Applicable only to instruments with a mapping.

§strike_currency_id: i32

Represents the internal CCData ID for the strike currency of the contract underlying index. This ID is unique and immutable, ensuring consistent identification. Applicable only to instruments with a mapping.

§transform_function: String

The transform function. This is the function we apply when we do mapping to change values into easier human readable ones and to make sure the mapped direction BASE - QUOTE is constant accross all instruments.

§open: f64

The open price for the historical period, based on the closest trade before the period start.

§high: f64

The highest trade price of the historical period. If there were no trades in the period, the open price will be taken as the highest.

§low: f64

The lowest trade price of the historical period. If there were no trades in the period, the open price will be taken as the lowest.

§close: f64

The price of the last trade of the historical period. If there were no trades in the period, the open price will be taken as the close.

§number_of_contracts: i64

The sum of all the trade number of contracts for the time period. If there were no trades in the time period, 0 will be given.

§total_trades: i64

The total number of trades that occurred in the time period. If there were no trades in the time period, 0 will be given.

§total_trades_buy: i64

The total number of BUY trades that occurred in the in time period.

§total_trades_sell: i64

The total number of SELL trades that occurred in the time period.

§total_trades_unknown: i64

The total number of UNKNOWN trades that occurred in the time period.

§volume: f64

The sum of all the trade volumes in the from asset (base symbol / coin) for the time period. If there were no trades in the time period, 0 will be given.

§quote_volume: f64

The sum of all the trade volumes in the To asset (quote/counter symbol/coin) for the time period. If there were no trades in the time period, 0 will be given.

§volume_buy: f64

The sum of all the BUY trade volumes in the from asset (base symbol / coin) for the time period.

§quote_volume_buy: f64

The sum of all the BUY trade volumes in the To asset (quote/counter symbol/coin) for the time period.

§volume_sell: f64

The sum of all the SELL trade volumes in the from asset (base symbol / coin) for the time period.

§quote_volume_sell: f64

The sum of all the SELL trade volumes in the To asset (quote/counter symbol/coin) for the time period.

§volume_unknown: f64

The sum of all the UNKNOWN trade volumes in the from asset (base symbol / coin) for the time period.

§quote_volume_unknown: f64

The sum of all the UNKNOWN trade volumes in the To asset (quote/counter symbol/coin) for the time period.

§notional_volume: f64

The sum of all the notional trade volumes in the from asset (base symbol / coin) for the time period. If there were no trades in the time period, 0 will be given.

§notional_quote_volume: f64

The sum of all the notional trade volumes in the To asset (quote/counter symbol/coin) for the time period. If there were no trades in the time period, 0 will be given.

§notional_volume_buy: f64

The sum of all the BUY notional trade volumes in the from asset (base symbol / coin) for the time period.

§notional_quote_volume_buy: f64

The sum of all the BUY notional trade volumes in the To asset (quote/counter symbol/coin) for the time period.

§notional_volume_sell: f64

The sum of all the SELL notional trade volumes in the from asset (base symbol / coin) for the time period.

§notional_quote_volume_sell: f64

The sum of all the SELL notional trade volumes in the To asset (quote/counter symbol/coin) for the time period.

§notional_volume_unknown: f64

The sum of all the UNKNOWN notional trade volumes in the from asset (base symbol / coin) for the time period.

§notional_quote_volume_unknown: f64

The sum of all the UNKNOWN notional trade volumes in the To asset (quote/counter symbol/coin) for the time period.

Trait Implementations§

Source§

impl Debug for CCOptionsOHLCV

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for CCOptionsOHLCV

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,