GET /v2/tokens/price/{network}/{address}
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/rubic/v2/tokens/price/{network}/{address}Cache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeUSD price for one token contract on one chain.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
network | path | str | required | Lower-case network slug as the app passes it through (ethereum, binance-smart-chain, polygon, …) — this route does not take the upper-case Rubic code. example: ethereum |
address | path | str | required | Token contract address on that chain; EVM addresses are lowercased. example: 0xdac17f958d2ee523a2206206994597c13d831ec7 |
Response
type: object
pagination: none
sample: {
"network": "str",
"address": "str",
"usd_price": "float"
}
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/rubic/v2/tokens/price/ethereum/0xdac17f958d2ee523a2206206994597c13d831ec7"