Endpoints

GET /activePositions

Fetches a list of the active DeFi positions of a user. Either globally across all projections or per specified projection.

Params

  • projection (string): The name of a projection you want to filter by. Case sensitive.

  • user (string): An ethereum 48 byte address. Case insensitive.

  • limit (int): The number of positions to return. Default is no limit.

Responses

  • 200

  • 401

  • 405

[  {    blockNumber: 63595670,    images: {      "0xf8a4b2070a9168583fe72ddf4c670858d11a7078-0x794a61358d6845594f94dc1db02a252b5b4814ad-0x2791bca1f2de4661ed88a30c99a7a9449aa84174:1":        {          SupplyTokens: {},          BorrowTokens: {            "0x2791bca1f2de4661ed88a30c99a7a9449aa84174": 1,          },          RewardTokens: {},          PositionTokenAddress: "0xfccf3cabbe80101232d343252614b6a3ee81c989",          PositionTokenId: null,          PositionTokenBalance: 1,          UnlockTime: 0,          PoolAddress: "0x794a61358d6845594f94dc1db02a252b5b4814ad",          NextUpdateTrigger: "DEFAULT",          Error: "",        },      "0xf8a4b2070a9168583fe72ddf4c670858d11a7078-0x794a61358d6845594f94dc1db02a252b5b4814ad-0x7ceb23fd6bc0add59e62ac25578270cff1b9f619:0":        {          SupplyTokens: {            "0x7ceb23fd6bc0add59e62ac25578270cff1b9f619": 46897687785842918,          },          BorrowTokens: {},          RewardTokens: {},          PositionTokenAddress: "0xe50fa9b3c56ffb159cb0fca61f5c9d750e8128c8",          PositionTokenId: null,          PositionTokenBalance: 46897687785842918,          UnlockTime: 0,          PoolAddress: "0x794a61358d6845594f94dc1db02a252b5b4814ad",          NextUpdateTrigger: "DEFAULT",          Error: "",        },    },    projection: "aave3__lending___polygon",  },]

Last updated