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.

get

getPoolAccountCTOFunction

Authorizations
Path parameters
vaultAddressstring · EthAddrrequired
accountAddressstring · EthAddrrequired
Responses
curl -L \
  --url 'https://api.opentradeqa.com/vaultsAccount/{vaultAddress}/{accountAddress}' \
  --header 'x-api-key: YOUR_API_KEY'
{
  "poolAddress": "text",
  "accountAddress": "text",
  "vaultAccountCTO": {
    "id": "",
    "blockNumber": 0,
    "timestamp": 0,
    "dayNumber": 0,
    "timeOfDay": 0,
    "poolType": 0,
    "poolAddr": "0xf15bb1b644f73f596b291b8f6606fb02731678d3",
    "liquidityAssetAddr": "0x7dffac9c554c5b1bc5710534c47d650c7caf2ba2",
    "accountAddr": "0x0b497a7bded9e9b30010cfd3db13058db52d2e1a",
    "tokenBalance": "6000000000",
    "interestRate": "",
    "interestInDay": "71000000000",
    "principalEarningInterest": "27000000000",
    "dailyInterestRate": "",
    "maxWithdrawRequest": "56000000000",
    "maxRedeemRequest": "77000000000",
    "requestedSharesOf": "46000000000",
    "requestedAssetsOf": "42000000000",
    "interestAccrued": "32000000000",
    "assetsDeposited": "82000000000",
    "assetsWithdrawn": "48000000000",
    "sharesTransitioningIn": "82000000000",
    "assetsTransitioningIn": "82000000000",
    "assetsDueForWithdraws": "16000000000",
    "accountOutstandingLoanPrincipals": "87000000000"
  }
}

Last updated