GET /defi/quotation/v1/{chain}/tokens/realtime_token_price
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/gmgn/defi/quotation/v1/{chain}/tokens/realtime_token_priceCache cached 1s, never served stale past that windowCost per_call · weight 1 · standard rate classSource billing freeReal-time USD spot price for a single token address
Parameters
| name | in | type | description | |
|---|---|---|---|---|
chain | path | string | required | Blockchain slug: sol, eth, base, bsc, tron default: solexample: sol |
address | query | string | required | Token contract address default: DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263example: DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263 |
Response
type: object
pagination: none
sample: {
"usd_price": 2.0969273e-06
}
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/gmgn/defi/quotation/v1/sol/tokens/realtime_token_price?address=DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"