pub struct CCOCDEXOHLCV {Show 39 fields
pub unit: String,
pub timestamp: i64,
pub type_: String,
pub market: String,
pub instrument: String,
pub mapped_instrument: String,
pub base: String,
pub quote: String,
pub base_id: i32,
pub quote_id: i32,
pub transform_function: String,
pub open: f64,
pub high: f64,
pub low: f64,
pub close: f64,
pub first_swap_timestamp: i64,
pub first_swap_block: i64,
pub last_swap_timestamp: i64,
pub last_swap_block: i64,
pub first_swap_price: f64,
pub high_swap_price: f64,
pub high_swap_timestamp: i64,
pub high_swap_block: i64,
pub low_swap_price: f64,
pub low_swap_timestamp: i64,
pub low_swap_block: i64,
pub last_swap_price: f64,
pub total_swaps: i64,
pub total_swaps_buy: i64,
pub total_swaps_sell: i64,
pub total_swaps_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: String,
pub quote_volume_unknown: String,
}Expand description
On-Chain DEX: Historical OHLCV+
Fields§
§unit: StringThe unit of the historical period update: MINUTE for minute, HOUR for hour and DAY for day.
timestamp: i64The timestamp in seconds of the beginning of the histo period. 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.
type_: StringThe internal type of the message.
market: StringThe market / exchange under consideration (uniswapv2, uniswapv3 etc.).
instrument: StringThe unmapped instrument address and the CHAIN_ASSET ID separated by underscore (e.g. 0xe83c76c50033a5396d21ceff9fa192e2550d10ca_2, etc.).
mapped_instrument: StringThe instrument id based on asset symbols, as derived from our mapping rules. This is the same as the INSTRUMENT and will not change.
base: StringRepresents the base asset or coin symbol, commonly known as the ticker (e.g., BTC). This symbol may change in cases of asset rebranding. Applicable only to instruments with a mapping.
quote: StringRepresents the quote asset or counter coin symbol, commonly known as the ticker (e.g., USD). This symbol may change in cases of asset rebranding. Applicable only to instruments with a mapping.
base_id: i32Represents the internal CCData ID for the base asset or coin (e.g., 1 for BTC). This ID is unique and immutable, ensuring consistent identification. Applicable only to instruments with a mapping.
quote_id: i32Represents the internal CCData ID for the quote asset or counter coin (e.g., 5 for USD). This ID is unique and immutable, ensuring consistent identification. Applicable only to instruments with a mapping.
transform_function: StringThe transform function (or list of functions concatenated by AND). 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 chains and instruments.
open: f64The open price for the historical period, this is based on the closest swap before the period start.
high: f64The highest swap price in the time period. If there were no swaps in the time period, the open price will be given.
low: f64The lowest swap price in the time period. If there were no swaps in the time period, the open price will be given.
close: f64The price of the last swap in this time period. If there were no swaps in the time period, the open price will be given.
first_swap_timestamp: i64The timestamp, in seconds, of the first swap in this time period. This is only available when there is at least one swap in the time period.
first_swap_block: i64The block of the first swap in the time period. This is only available when there is at least one swap in the time period.
last_swap_timestamp: i64The timestamp, in seconds, of the last swap in this time period. This is only available when there is at least one swap in the time period.
last_swap_block: i64The block of the last swap in the time period. This is only available when there is at least one swap in the time period.
first_swap_price: f64The price of the first swap in the time period. This is only available when there is at least one swap in the time period.
high_swap_price: f64The highest value of the swaps in the time period. This is only available when there is at least one swap in the time period.
high_swap_timestamp: i64The timestamp, in seconds, of the highest swap in the time period. This is only available when there is at least one swap in the time period.
high_swap_block: i64The block of the highest swap in the time period. This is only available when there is at least one swap in the time period.
low_swap_price: f64The lowest value of the swaps in the time period. This is only available when there is at least one swap in the time period.
low_swap_timestamp: i64The timestamp, in seconds, of the lowest swap in the time period. This is only available when there is at least one swap in the time period.
low_swap_block: i64The block of the lowest swap in the time period. This is only available when there is at least one swap in the time period.
last_swap_price: f64The last swap price in the time period. This is only available when there is at least one swap in the time period.
total_swaps: i64The total number of swaps seen in this time period. If there were no swaps in the time period, 0 will be returned.
total_swaps_buy: i64The total number of BUY swaps seen in this time period. If there were no swaps in the time period, 0 will be returned.
total_swaps_sell: i64The total number of SELL swaps seen in this time period. If there were no swaps in the time period, 0 will be returned.“
total_swaps_unknown: i64The total number of UNKNOWN swaps seen in this time period. If there were no swaps in the time period, 0 will be returned.
volume: f64The sum of all the swap volumes in the from asset (base symbol / coin) for the time period. If there were no swaps in the time period, 0 will be returned.
quote_volume: f64The sum of all the swap volumes in the To asset (quote/counter symbol/coin) for the time period. If there were no swaps in the time period, 0 will be returned.
volume_buy: f64The sum of all the BUY swap volumes in the from asset (base symbol / coin) for the time period.
quote_volume_buy: f64The sum of all the BUY swap volumes in the to asset (quote/counter symbol/coin) for the time period.
volume_sell: f64The sum of all the SELL swap volumes in the from asset (base symbol / coin) for the time period.
quote_volume_sell: f64The sum of all the SELL swap volumes in the To asset (quote/counter symbol/coin) for the time period.
volume_unknown: StringThe sum of all the UNKNOWN swap volumes in the from asset (base symbol / coin) for the time period.
quote_volume_unknown: StringThe sum of all the UNKNOWN swap volumes in the To asset (quote/counter symbol/coin) for the time period.