pub struct CCFuturesOHLCV {Show 41 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 denomination_type: String,
pub index_underlying_id: i32,
pub quote_currency_id: i32,
pub settlement_currency_id: i32,
pub contract_currency_id: i32,
pub transform_function: String,
pub open: f64,
pub high: f64,
pub low: f64,
pub close: f64,
pub first_trade_timestamp: i64,
pub last_trade_timestamp: i64,
pub first_trade_price: f64,
pub high_trade_price: f64,
pub high_trade_timestamp: i64,
pub low_trade_price: f64,
pub low_trade_timestamp: i64,
pub last_trade_price: f64,
pub total_trades: i64,
pub total_trades_buy: i64,
pub total_trades_sell: i64,
pub total_trades_unknown: i64,
pub number_of_contracts: 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,
}Expand description
Futures: Historical OHLCV+
Fields§
§unit: StringThe level of granularity (e.g. MINUTE / HOUR / DAY).
timestamp: i64The 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_: StringType of the message.
market: StringThe market / exchange under consideration (e.g. bitmex, deribit, ftx, etc).
instrument: StringThe unmapped instrument ID.
mapped_instrument: StringThe mapped instrument ID, derived from our mapping rules.
index_underlying: StringThe mapped index underlying asset.
quote_currency: StringThe mapped to asset quote / counter symbol / coin (e.g. USD). Only available on instruments that have mapping.
settlement_currency: StringThe currency that the contract is settled in (e.g. USD). Only available on instruments that have mapping.
contract_currency: StringThe currency that the contract size is denominated in (e.g. USD). Only available on instruments that have mapping.
denomination_type: StringVANILLA = (SETTLEMENT_CURRENCY = QUOTE_CURRENCY), INVERSE = (SETTLEMENT_CURRENCY = INDEX_UNDERLYING), QUANTO (SETTLEMENT_CURRENCY != INDEX_UNDERLYING or QUOTE_CURRENCY).
index_underlying_id: i32Represents 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: i32Represents 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: i32Represents 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: i32Represents 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.
transform_function: StringThe 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: f64The open price for the historical period, based on the closest trade before the period start.
high: f64The 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: f64The 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: f64The 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.
first_trade_timestamp: i64The timestamp, in seconds, of the first trade of the time period. Only available when there is at least one trade in the time period.
last_trade_timestamp: i64The timestamp, in seconds, of the last trade of the time period. Only available when there is at least one trade in the time period).
first_trade_price: f64The price of the first trade of the time period. Only available when there is at least one trade in the time period.
high_trade_price: f64The highest trade price of the time period. Only available when there is at least one trade in the time period.
high_trade_timestamp: i64The timestamp, in seconds, of the highest trade in this time period. Only available when there is at least one trade in the time period.
low_trade_price: f64The lowest trade price of the time period. Only available when there is at least one trade in the time period.
low_trade_timestamp: i64The timestamp, in seconds, of the lowest trade of the time period. Only available when there is at least one trade in the time period.
last_trade_price: f64The price of the last trade of the period. Only available when there is at least one trade in the time period.
total_trades: i64The 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: i64The total number of BUY trades that occurred in the in time period.
total_trades_sell: i64The total number of SELL trades that occurred in the time period.
total_trades_unknown: i64The total number of UNKNOWN trades that occurred in the time period.
number_of_contracts: i64The 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.
volume: f64The 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: f64The 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: f64The sum of all the BUY trade volumes in the from asset (base symbol / coin) for the time period.
quote_volume_buy: f64The sum of all the BUY trade volumes in the To asset (quote/counter symbol/coin) for the time period.
volume_sell: f64The sum of all the SELL trade volumes in the from asset (base symbol / coin) for the time period.
quote_volume_sell: f64The sum of all the SELL trade volumes in the To asset (quote/counter symbol/coin) for the time period.
volume_unknown: f64The sum of all the UNKNOWN trade volumes in the from asset (base symbol / coin) for the time period.
quote_volume_unknown: f64The sum of all the UNKNOWN trade volumes in the To asset (quote/counter symbol/coin) for the time period.