Skip to main content
GET
/
alpha
/
historical-positions
/
{userAddress}
List user historical positions
curl --request GET \
  --url https://api.vaults.fyi/alpha/historical-positions/{userAddress} \
  --header 'x-api-key: <api-key>'
{
  "historicalPositions": [
    {
      "address": "<string>",
      "network": {
        "chainId": 123,
        "networkCaip": "<string>"
      },
      "name": "<string>",
      "protocol": {
        "name": "<string>",
        "product": "<string>",
        "version": "<string>",
        "protocolUrl": "<string>",
        "description": "<string>",
        "protocolLogo": "<string>"
      },
      "asset": {
        "address": "<string>",
        "assetCaip": "<string>",
        "name": "<string>",
        "symbol": "<string>",
        "decimals": 123,
        "assetGroup": "<string>",
        "assetLogo": "<string>",
        "assetPriceInUsd": "<string>"
      },
      "active": true
    }
  ]
}

Authorizations

x-api-key
string
header
required

Path Parameters

userAddress
string
required

User address to fetch historical positions for

Pattern: ^0x[a-fA-F0-9]{40}$

Query Parameters

fromTimestamp
integer

Optional start of the window (unix seconds). Omit to start from the beginning.

toTimestamp
integer

Optional end of the window (unix seconds). Omit to use the current time.

Response

Default Response

historicalPositions
object[]
required