UpshiftDocs
REST APIInstitutional API

Historical Allocations

Time series of a vault’s allocation mix.

Get Historical Allocations

Daily per-protocol allocation series for the Allocation-Over-Time chart.

Aggregates the daily unrealized_pnl snapshots into one point per (day, protocol), categorized via the shared taxonomy. history_from is the oldest snapshot that actually carries positions, so the frontend knows where the series can start regardless of the requested window.

GET
/upshift/historical_allocations/{vault_address}

Path Parameters

vault_addressVault Address

Query Parameters

chain_idChain Id
start_date?Start Date
end_date?End Date

Response Body

curl -X GET "https://api.upshift.finance/api/v1/upshift/historical_allocations/string?chain_id=0&start_date=2019-08-24T14%3A15%3A22Z&end_date=2019-08-24T14%3A15%3A22Z"
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}