Skip to main content
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": "lending",
      "marketId": "string",
      "ownerAddress": "string",
      "bundleId": "string",
      "websiteUrl": "https://example.com",
      "side": "deposit",
      "rewards": [
        {
          "tokenAddress": "string",
          "amount": 1,
          "amountUsd": 1
        }
      ],
      "additionalData": {
        "propertyName*": "anything"
      },
      "actions": {
        "deposit": {
          "blinkUrl": "string"
        },
        "withdraw": {
          "blinkUrl": "string"
        },
        "borrow": {
          "blinkUrl": "string"
        },
        "repay": {
          "blinkUrl": "string"
        }
      },
      "amount": 1,
      "amountUsd": 1,
      "ltv": 0,
      "liquidationPrice": 1,
      "market": {
        "id": "string",
        "type": "lending",
        "provider": {
          "id": "kamino",
          "name": "string",
          "icon": "string"
        },
        "token": {
          "address": "string",
          "symbol": "string",
          "decimals": 1,
          "icon": "string"
        },
        "borrowToken": {
          "address": "string",
          "symbol": "string",
          "decimals": 1,
          "icon": "string"
        },
        "websiteUrl": "https://example.com",
        "depositApy": 1,
        "baseDepositApy": 1,
        "baseDepositApy30d": 1,
        "baseDepositApy90d": 1,
        "baseDepositApy180d": 1,
        "borrowApy": 1,
        "baseBorrowApy": 1,
        "baseBorrowApy30d": 1,
        "baseBorrowApy90d": 1,
        "baseBorrowApy180d": 1,
        "totalDeposit": 1,
        "totalDepositUsd": 1,
        "totalBorrow": 1,
        "totalBorrowUsd": 1,
        "maxDeposit": 1,
        "maxBorrow": 1,
        "rewards": [
          {
            "type": "deposit",
            "apy": 1,
            "token": {
              "address": "string",
              "symbol": "string",
              "decimals": 1,
              "icon": "string"
            },
            "marketAction": "string"
          }
        ],
        "maxLtv": 0,
        "liquidationLtv": 0,
        "liquidationPenalty": 0,
        "additionalData": {
          "propertyName*": "anything"
        },
        "actions": {
          "deposit": {
            "blinkUrl": "string"
          },
          "withdraw": {
            "blinkUrl": "string"
          },
          "claimRewards": {
            "blinkUrl": "string"
          }
        }
      }
    }
  ]
}

Authorizations

x-dialect-api-key
string
header
default:pk_demo
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.

Example:

"6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176"

bundleIds
string

Comma separated list of bundle IDs. Currently only supports one bundle ID.

Response

200 - application/json

OK

positions
(Lending Position with Market · object | Yield Position with Market · object)[]
required
  • Lending Position with Market
  • Yield Position with Market