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.ovh

Parameters

Parameter
Description
Examples
Mandatory?

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

Field
Description

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.

Response Example

Last updated

Was this helpful?