GET /v4/perpetualMarkets
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/dydx/v4/perpetualMarketsCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freePerpetual market map: ticker, clobPairId, status, oracle and indexer prices, funding rate, open interest, volume, tick size and margin parameters.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
market | query | str | optional | Specific market ticker; omit for all markets. example: BTC-USD |
limit | query | int | optional | Maximum number of markets to return. example: 2 |
Response
type: object
pagination: none
sample: {
"markets": "object"
}
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/perpetualMarkets?market=BTC-USD&limit=2"