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