GET /v4/vault/v1/vaults/historicalPnl
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/dydx/v4/vault/v1/vaults/historicalPnlCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeHistorical PnL for every vault at day or hour resolution. Heavy: the response is several megabytes.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
resolution | query | strday | hour | required | PnL tick interval. example: day |
Response
type: object
data key: vaultsPnl
pagination: none
sample: {
"vaultsPnl": "array[268]"
}
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/vault/v1/vaults/historicalPnl?resolution=day"