State price
What is this endpoint for?
This endpoint should be used when there isn’t enough liquidity to produce a direct or synthetic price. Especially useful for DeFi-only assets, state price derives a price by analyzing the real-time state of liquidity pools for the selected asset, inspecting the pools’ reserves, balances, and recent flow to infer a-price consistent with current market conditions. The data includes the calculated state price and the trading volume from the associated block within each pool, expressed in USD. Pool eligibility depends on the pairing: non-LST tokens must be paired with USDT, USDC, or wETH, while LST tokens must be paired with wETH.
Endpoint
gateway-v0-grpc.kaiko.ovhgateway-v0-http.kaiko.ovhhttps://gateway-v0-http.kaiko.ovh/api/stream/aggregatedstatepriceParameters
asset
The asset name you would like to get data for. To retrieve data for all eligible assets at once, simply enter * in the asset parameter field.
ageur,wsteth
Fields
datetime
Timestamp at which the data has been processed. One data point per second will be published.
base
Base asset requested.
aggregatedPriceUsd
State price aggregated over multiple pools, denominated in USD.
aggregatedPriceEth
State price aggregated over multiple pools, denominated in ETH. This field will return empty for LST tokens.
tsEvent
Date of the publication.
lstQuote
LST quote token if relevant, otherwise will return empty.
Request examples
Make sure to read our Python quick-start guide before starting.
cURL requests are intended for testing purposes only.
For more advanced users, you can access our full SDK here, where you'll find more coding languages, examples and guidance.
Response Example
Last updated
Was this helpful?
