Query a specific account

This endpoint enables you to query data on a specific account.

Return data on a specific account

The GET /Vaults/{vaultAddress}/{accountAddress} endpoint returns the status of a specific wallet address (e.g. account) when you pass in the vault's "poolAddr" in the {vaultAddress} field and the wallet address in the {accountAddress} field.

This query will return important information for a specific account including current outstanding loan principal, token balance, pending deposits, and pending withdrawals.

To read all the field names and definitions, simply expand the vaultFlexAccountCTO schema in the response panel on the left hand side.

get

getPoolAccountCTOFunction

Authorizations
Path parameters
vaultAddressstring · EthAddrRequired
accountAddressstring · EthAddrRequired
Responses
200
Getr Account CTO
application/json
get
GET /vaultsAccount/{vaultAddress}/{accountAddress} HTTP/1.1
Host: api.open-trade.io
x-api-key: YOUR_API_KEY
Accept: */*
200

Getr Account CTO

{
  "poolAddress": "text",
  "accountAddress": "text",
  "vaultAccountCTO": {
    "id": "",
    "blockNumber": 0,
    "timestamp": 0,
    "dayNumber": 0,
    "timeOfDay": 0,
    "poolType": 0,
    "poolAddr": "0x8f68491a1b715a2608fb7e4a7943eb02a098af8f",
    "liquidityAssetAddr": "0x7115d8cc0b8ea1cdbb43205870b99663b3a277c1",
    "accountAddr": "0xd2a13869277cfb32b9f9d318d5c8b0a4a91038b6",
    "tokenBalance": "22000000000",
    "interestRate": "",
    "interestInDay": "22000000000",
    "principalEarningInterest": "32000000000",
    "dailyInterestRate": "",
    "maxWithdrawRequest": "14000000000",
    "maxRedeemRequest": "58000000000",
    "requestedSharesOf": "73000000000",
    "requestedAssetsOf": "63000000000",
    "interestAccrued": "8000000000",
    "assetsDeposited": "68000000000",
    "assetsWithdrawn": "59000000000",
    "sharesTransitioningIn": "9000000000",
    "assetsTransitioningIn": "62000000000",
    "assetsDueForWithdraws": "49000000000",
    "accountOutstandingLoanPrincipals": "60000000000"
  }
}

Last updated