cURL
curl --request GET \ --url https://{environment}.pragma.build/node/v1/onchain/history/{base}/{quote}
[ { "decimals": 1, "median_price": "<string>", "nb_sources_aggregated": 1, "pair_id": "<string>", "timestamp": 1 } ]
Base Asset
Quote Asset
starknet-mainnet
starknet-sepolia
Represents a range of timestamps
100ms
1s
5s
10s
1min
5min
15min
1h
2h
1d
1w
Get the historical onchain median price
The response is of type object[].
object[]
Was this page helpful?