get_onchain_history
GET/node/v1/onchain/history/:base/:quote
get_onchain_history
Request
Path Parameters
base stringrequired
Base Asset
quote stringrequired
Quote Asset
Query Parameters
network Networkrequired
Possible values: [sepolia
, mainnet
]
timestamp TimestampRangerequired
chunk_interval any
routing boolean
Responses
- 200
Get the historical onchain median price
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
decimals int32required
median_price stringrequired
nb_sources_aggregated int32required
pair_id stringrequired
timestamp int64required
[
{
"decimals": 0,
"median_price": "string",
"nb_sources_aggregated": 0,
"pair_id": "string",
"timestamp": 0
}
]
Loading...