Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.codex.io/llms.txt

Use this file to discover all available pages before exploring further.

o
[Float]!
The opening price.
h
[Float]!
The high price.
l
[Float]!
The low price.
c
[Float]!
The closing price.
t
[Int!]!
The timestamp for the bar.
s
String!
The status code for the batch: ok for successful data retrieval and no_data for empty responses signaling the end of server data.
volume
[String]
The volume with higher precision.
volumeNativeToken
[String]
The volume in the native token for the network
buyers
[Int]!
The number of unique buyers
buys
[Int]!
The number of buys
buyVolume
[String]!
The buy volume in USD
sellers
[Int]!
The number of unique sellers
sells
[Int]!
The number of sells
sellVolume
[String]!
The sell volume in USD
liquidity
[String]!
Liquidity in USD
traders
[Int]!
The number of traders
transactions
[Int]!
The number of transactions
poolFees
[String]
The aggregate pool/DEX fees in USD
baseFees
[String]
The aggregate base fees (gas) in USD
priorityFees
[String]
The aggregate priority fees in USD
builderTips
[String]
The aggregate builder tips (MEV) in USD
l1DataFees
[String]
The aggregate L1 data posting fees in USD (L2 rollups only)
totalFees
[String]
The total fees in USD (sum of poolFees + baseFees + priorityFees + builderTips + l1DataFees)
feeToVolumeRatio
[String]
Ratio of total fees to volume (totalFees / volume). Null when volume is zero.
mevToTotalFeesRatio
[String]
Ratio of builder tips (MEV) to total fees (builderTips / totalFees). Null when totalFees is zero.
gasPerVolume
[String]
Gas cost per dollar of volume ((baseFees + priorityFees + l1DataFees) / volume). Null when volume is zero.
averageCostPerTrade
[String]
Average total fee cost per transaction in USD (totalFees / transactions). Null when there are no transactions.
mevRiskLevel
[String]
MEV risk level for this bar: low (<3% builder tips), medium (3-30%), or high (>30%). Null for pre-genesis bars.
feeRegimeClassification
[String]
Dominant fee component: gas-dominated (gas >50% of fees), mev-dominated (tips >20%), or pool-fee-dominated. Null when no fees.
sandwichRate
[String]
Rate of sandwich attacks per transaction (sandwichedEventCount / transactions). Null when no transaction data.
pair
Pair!
The pair that is being returned See Pair
v
[Int]!
deprecated
The volume.
This field is deprecated. Use volume field instead

Used By

Returned by
  • getBars: Returns bar chart data to track price changes over time.