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: (bucket_start, bucket_seconds, pool_uid, token_in, token_out)
  • API: POST /evm/prices/spot/crypto/ohlc
  • CSV Sample: Download
  • JSON Sample: Download

Sample Viewer

Columns

ColumnTypeDescription
pool_uidBYTEAPool identifier; FK → b0211_liquidity_pools_v1.pool_uid.
exchange_idINTEGERExchange identifier.
type_idINTEGERPool type identifier.
bucket_startTIMESTAMPTZInclusive UTC bucket start.
bucket_endTIMESTAMPTZExclusive UTC bucket end; equals bucket_start + bucket_seconds.
bucket_secondsINTEGER60, 300, 900, 1800, 3600, 14400, or 86400.
token_inBYTEAInput token (20B); FK → b0201_erc20_tokens_v1.
token_outBYTEAOutput token (20B); FK → b0201_erc20_tokens_v1.
openNUMERIC(78,18)Opening price (token_out per 1 token_in, decimals-adjusted).
highNUMERIC(78,18)High price in bucket.
lowNUMERIC(78,18)Low price in bucket.
closeNUMERIC(78,18)Closing price in bucket.
volume_in_rawNUMERIC(78,0)Sum of raw UInt256 amountIn values (0 for carry-forward buckets).
volume_inNUMERIC(78,18)Decimal-adjusted token_in volume; NULL if decimals unknown.
volume_out_rawNUMERIC(78,0)Sum of raw UInt256 amountOut values (0 for carry-forward buckets).
volume_outNUMERIC(78,18)Decimal-adjusted token_out volume; NULL if decimals unknown.
trades_countBIGINTTrade count in bucket.
_tracing_idBYTEABlockDB tracing ID; unique.
_parent_tracing_idsBYTEA[]Tracing IDs of contributing swap prints; optional.
_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 May 27, 2026