We’re launching a new addition to the Ocelloids API suite: the Assets Price API.
Overview
This API aggregates token prices from multiple sources, currently Binance and CoinGecko.
Core Operations
prices
: Get prices for all supported assetsprices.by_ticker
: Query prices for specific tickers (e.g.,DOT
,GLMR
,HDX
)prices.by_asset
: Fetch prices using asset identifierstickers.list
: List all supported tokenssources.list
: View available data sources
Example
curl \
'https://dev-api.ocelloids.net/query/ticker' \
-H "Authorization: Bearer eyJhbGciOiJFZERTQSIsImtpZCI6IklSU1FYWXNUc0pQTm9kTTJsNURrbkJsWkJNTms2SUNvc0xBRi16dlVYX289In0.ewogICJpc3MiOiAiZGV2LWFwaS5vY2VsbG9pZHMubmV0IiwKICAianRpIjogIjAxMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwIiwKICAic3ViIjogInB1YmxpY0BvY2VsbG9pZHMiCn0K.bjjQYsdIN9Fx34S9Of5QSKxb8_aOtwURInOGSSc_DxrdZcnYWi-5nnZsh1v5rYWuRWNzLstX0h1ICSH_oAugAQ" \
-H 'accept: application/json' \
-H 'content-type: application/json' \
-d '{
"args": {
"op": "prices.by_ticker",
"criteria": [
{ "ticker": "DOT", "sources": ["binance"] },
{ "ticker": "GLMR" },
{ "ticker": "HDX" }
]
}
}'
Output:
{
"items":[
{
"ticker":"DOT",
"asset":{
"chainId":"urn:ocn:polkadot:0",
"assetId":"native"
},
"aggregatedPrice":4.175,
"updated":1748621110962,
"sources":[
{
"name":"binance",
"sourcePrice":4.175
}
]
},
{
"ticker":"GLMR",
"asset":{
"chainId":"urn:ocn:polkadot:2004",
"assetId":"native"
},
"aggregatedPrice":0.0780495,
"updated":1748621110962,
"sources":[
{
"name":"binance",
"sourcePrice":0.0779
},
{
"name":"coingecko",
"sourcePrice":0.078199
}
]
},
{
"ticker":"HDX",
"asset":[
{
"chainId":"urn:ocn:polkadot:2034",
"assetId":"native"
},
{
"chainId":"urn:ocn:polkadot:2034",
"assetId":0
}
],
"aggregatedPrice":0.01220897,
"updated":1748621101318,
"sources":[
{
"name":"coingecko",
"sourcePrice":0.01220897
}
]
}
]
}
Status
The API is live in the pre-production environment.
You can try it now using a public API key.
Documentation: Ocelloids Network
What’s Next
- Signed Responses from first-party price sources like Binance
- DEX Price from Hydration and AssetHub liquidity pools
- Storage Proofs to enable on-chain validation and verifiability of price data
Feedback welcome!