Datalayer Endpoints
Price Service Endpoints
Returns prices in ETH & in USD for requested ERC20 tokens in corresponding chain and DEX at last write block height. ETH price represented in 1e18 base, USD price represented as a floating point number.. If in pairs list: $TOKEN/USDC, $TOKEN/USDT, $TOKEN/DAI, $TOKEN/WETH each pair has liquidity less than 1 ETH, this token price will be not presented.
Supported Networks:
Supported Networks / DEXes:
If dex
request field was not set - it produces aggregated requested tokens price across all supported DEXes on the regarding chain.
Note: If pool ETH reserves are less than 1 ETH, the token price will not be returned.
Note: tokens
length must be in range 1..=35 tokens in a list.
Request JSON body fields:
{
// EVM chain name. See attachment 1 for supported chains.
"chain": string,
// Dex kind. Optional. See attachment 2 for supported kinds.
"dex": string | null,
// ERC-20 tokens addresses
"tokens": string[]
}