GET /v4/sparklines
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/dydx/v4/sparklinesCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeSparkline price series for every perpetual market over the last day or seven days.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
timePeriod | query | strONE_DAY | SEVEN_DAYS | required | Sparkline window. example: ONE_DAY |
Response
type: object
data key: BTC-USD
pagination: none
sample: {
"BTC-USD": "array[24]",
"ETH-USD": "array[24]",
"LINK-USD": "array[24]",
"MATIC-USD": "array[24]",
"CRV-USD": "array[24]",
"SOL-USD": "array[24]",
"ADA-USD": "array[24]",
"AVAX-USD": "array[24]",
"FIL-USD": "array[24]",
"LTC-USD": "array[24]",
"DOGE-USD": "array[24]",
"ATOM-USD": "array[24]",
"DOT-USD": "array[24]",
"UNI-USD": "array[24]",
"BCH-USD": "array[24]",
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/dydx/v4/sparklines?timePeriod=ONE_DAY"