Skip to main content

Overview

  • Dataset ID: 0404
  • Table: blockdb_evm.b0404_token_to_token_prices_ohlc_v1
  • Description: Time-bucketed OHLC bars (1m..1d) per pool and token pair direction.
  • Primary key: (pool_uid, token_in, token_out, bucket_start, bucket_seconds)
  • API: POST /evm/prices/spot/crypto/ohlc

Columns

ColumnTypeDescription
chain_idBIGINTEVM chain identifier; see Chain.
pool_uidBYTEAPool identifier; FK → b0211_liquidity_pools_v1.pool_uid.
exchange_idINTEGERExchange identifier.
type_idINTEGERPool type identifier.
first_block_numberBIGINTFirst event in bucket.
first_block_timeTIMESTAMPTZTime of first event.
first_tx_indexINTEGERFirst tx_index.
first_log_indexINTEGERFirst log_index.
last_block_numberBIGINTLast event in bucket.
last_block_timeTIMESTAMPTZTime of last event.
last_tx_indexINTEGERLast tx_index.
last_log_indexINTEGERLast log_index.
bucket_startTIMESTAMPTZInclusive UTC bucket start.
bucket_secondsINTEGER60, 300, 900, 1800, 3600, 14400, or 86400.
token_inBYTEAInput token (20B).
token_outBYTEAOutput token (20B).
openNUMERIC(78,18)First price in bucket (token_out per 1 token_in).
highNUMERIC(78,18)High price in bucket.
lowNUMERIC(78,18)Low price in bucket.
closeNUMERIC(78,18)Last price in bucket.
volume_inNUMERIC(78,18)Volume of token_in in bucket.
volume_outNUMERIC(78,18)Volume of token_out in bucket.
trades_countBIGINTTrade count in bucket.
_tracing_idBYTEAUnique BlockDB tracing id for the row (uq_b0404_token_to_token_prices_ohlc_v1_tracing_id).
_created_atTIMESTAMPTZRecord creation time.
_updated_atTIMESTAMPTZRecord last update time.

Token-to-Token VWAP

Volume-weighted benchmarks at matching intervals.

Swap prints

Per-swap executions that aggregate into OHLC.
Last modified on March 21, 2026