Skip to main content

Overview

  • Dataset ID: 0404
  • Table: blockdb0404_token_to_token_prices_ohlc_v1
  • Description: Time-bucketed OHLC bars (1m..1d) per pool and token pair direction, lineage-verified from on-chain swaps/states.

Columns

ColumnTypeDescription
idBIGINTSurrogate primary key for the table, used for joins and change tracking.
pool_uidBIGINTForeign key referencing blockdb0203_liquidity_pools_v1.uid for the pool in question.
first_block_numberBIGINTBlock height marking the start of the aggregation window.
first_block_timeBIGINTUTC timestamp of the first block included in the window.
first_tx_indexINTEGERTransaction index of the first contributing event in the window.
first_log_indexINTEGERLog index of the first contributing event in the window.
last_block_numberBIGINTBlock height marking the end of the aggregation window.
last_block_timeBIGINTUTC timestamp of the last block included in the window.
last_tx_indexINTEGERTransaction index of the final contributing event in the window.
last_log_indexINTEGERLog index of the final contributing event in the window.
bucket_startTIMESTAMPTZInclusive UTC start timestamp for the aggregation bucket.
bucket_secondsINTEGERDuration of the aggregation bucket expressed in seconds.
token_inBYTEAAddress of the token treated as the input leg for this measurement.
token_outBYTEAAddress of the token treated as the output leg for this measurement.
openNUMERIC(78,18)First traded price in the bucket (token_out per 1 token_in), decimals-adjusted.
highNUMERIC(78,18)Max traded price in the bucket (token_out per 1 token_in), decimals-adjusted.
lowNUMERIC(78,18)Min traded price in the bucket (token_out per 1 token_in), decimals-adjusted.
closeNUMERIC(78,18)Last traded price in the bucket (token_out per 1 token_in), decimals-adjusted.
volume_inNUMERIC(78,18)Total input-token volume executed within the bucket.
volume_outNUMERIC(78,18)Total output-token volume delivered within the bucket.
trades_countBIGINTNumber of trades captured inside the OHLC bucket.
_tracing_idBYTEABlockDB lineage identifier that links this record to lineage APIs.
_genesis_tracing_idsBYTEA[]Tracing identifiers for the raw artifacts (blocks, logs, proofs) that seeded this record.
_parent_tracing_idsBYTEA[]Tracing identifiers for upstream derived records referenced during computation.
_created_atTIMESTAMPTZRecord creation timestamp.
_updated_atTIMESTAMPTZRecord last update timestamp.

Use Cases

  • Charting & analytics (1m -> 1d); volatility, and signal engineering
  • Backtesting and factor research with stable, reproducible bars
  • Routing heuristics and execution scheduling by time of day
  • Monitoring: liquidity/price regime shifts at multiple horizons