Collateral Balances

Checks collateral balance for all tokens that have tradeable option markets for the given account (if specified), otherwise the address in the .env is used.

get
Authorizations
Query parameters
walletAddrstringOptional

wallet address

Example: 0x3ba638...fb25ePattern: ^0x[a-fA-F0-9]{40}$
Responses
200
Approved
application/json
get
GET /account/collateral_balances HTTP/1.1
Host: 
x-apikey: YOUR_API_KEY
Accept: */*
{
  "success": [
    {
      "balance": 2.345,
      "symbol": "WETH",
      "token_address": "0x...4cFF2"
    }
  ],
  "failed": [
    {
      "token": "WETH",
      "reason": "text"
    }
  ]
}

Last updated

Was this helpful?