Skip to main content
GET
/
users
/
{address}
/
vaults
/
{vault_id}
/
historical
cURL
curl --request GET \
  --url https://api.0d.finance/{version}/users/{address}/vaults/{vault_id}/historical
{
  "metric": "all_time_pnl",
  "points": [
    {
      "t": "2023-11-07T05:31:56Z",
      "v": "<string>"
    }
  ],
  "timeframe": "7d"
}

Path Parameters

address
string
required

User wallet address

vault_id
string
required

Vault identifier

Query Parameters

metric
enum<string>
required

User performance metric to return

Available options:
all_time_pnl,
unrealized_pnl,
realized_pnl
timeframe
enum<string>

Time period for data

Available options:
7d,
30d,
1y,
all
currency
enum<string>

Display currency

Available options:
usd,
usdc

Response

Historical User performance

metric
enum<string>
required
Available options:
all_time_pnl,
unrealized_pnl,
realized_pnl
points
object[]
required
timeframe
enum<string>
required
Available options:
7d,
30d,
1y,
all