Pool Aggregates (Bars)
Get pool aggregates returns real-time or historical candlestick bars for a liquidity pool.
Get Liquidity Pool Aggregates (Bars)
GET
https://api.abyiss.com/v1/dex/{exchange}/{blockchain}/pool/{pool}/aggregate?timeframe={interval}
Returns an object of real-time or historical candlestick bars for a liquidity pool on a decentralized exchange.
Path Parameters
exchange*
string
Decentralized exchange Id
blockchain*
string
Blockchain that supports the decentralized exchange.
pool*
string
Liquidity Pool contract address.
Query Parameters
apiKey*
string
Your Abyiss API Key
limit
int
Number of results per request. Maximum 1,0000 (default 100)
orderBy
string
Sort the returned data by any field in the API response, such as id
, name
, symbol
, volumeUSD
and more.
orderDirection
string
asc
or desc
return the results sorted by that field in either ascending or descending order
skip
int
Number of results to skip per request.
interval*
string
Aggregate bar size. hour
or day
to
int
The end of the aggregate time window for historical data. Unix timestamp in milliseconds.
from
int
The start of the aggregate time window for historical data. Unix timestamp in milliseconds.
Copy & Paste Code
Response Object
Response Attributes
timeframe
string
The Timeframe of the Aggregate bar (Hour
or Day
)
token0
string
Token 0 in the pool
token1
string
Token 1 in the pool
name
string
Token name
id
string
Token contract address id
symbol
string
Token symbol
id
string
Id of the candlestick.
timestamp
string
Timestamp rounded to current day by dividing by 86400
feeGrowthGlobal0X128
string
Tracker for global fee growth
feeGrowthGlobal1X128
string
Tracker for global fee growth
feesUSD
string
Fees in USD
o
string
Opening price of token0
h
string
High price of token0
l
string
Low price of token0
c
string
Close price of token0
volumeUSD
string
Volume in USD
volumeToken0
string
Volume in token0
volumeToken1
string
Volume in token1
token0Price
string
Price of token0 - derived from sqrtPrice
token1Price
string
Price of token1 - derived from sqrtPrice
liquidity
string
In-range liquidity at end of period
txCount
string
Number of transactions during period
tvlUSD
string
The total value locked in USD at the end of the period.
sqrtPrice
string
Current price tracker at end of period
tick
string
Current tick at end of period
Last updated
Was this helpful?