GET
/
v0
/
positions
/
owners
List all market positions by wallet address
curl --request GET \
  --url https://markets.dial.to/api/v0/positions/owners \
  --header 'x-dialect-api-key: <api-key>'
{
  "positions": [
    {
      "id": "<string>",
      "type": "<any>",
      "marketId": "<string>",
      "ownerAddress": "<string>",
      "side": "deposit",
      "amount": 123,
      "amountUsd": 123,
      "additionalData": {},
      "market": {
        "id": "<string>",
        "type": "<any>",
        "provider": {
          "id": "<string>",
          "name": "<string>"
        },
        "token": {
          "address": "<string>",
          "symbol": "<string>",
          "decimals": 123
        },
        "depositApy": 123,
        "borrowApy": 123,
        "totalDeposit": 123,
        "totalDepositUsd": 123,
        "totalBorrow": 123,
        "totalBorrowUsd": 123,
        "maxDeposit": 123,
        "maxBorrow": 123,
        "oraclePrice": 123,
        "additionalData": {},
        "actions": {
          "deposit": {
            "blinkUrl": "<string>"
          },
          "withdraw": {
            "blinkUrl": "<string>"
          }
        }
      }
    }
  ]
}

Authorizations

x-dialect-api-key
string
header
required

API key for the Markets API

Query Parameters

walletAddresses
string
default:6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176
required

Comma separated list of owner addresses. Currently only supports one address.

Response

200 - application/json

OK

The response is of type object.