Skip to main content

Get an account summary

queryaccountSummaryAccountSummary!

Returns current holdings for one wallet in USD. All values are integers scaled by 18 decimals.

Arguments

walletAddressAddress!required

Response

netHoldingsUsdBigInt!
Net holdings in USD (assets - debts)
totalCollateralUsdBigInt!
Total collateral in USD
totalBorrowedUsdBigInt!
Total borrowed in USD
totalLentUsdBigInt!
Total lent in USD
Try it
Query
Variables
Example response
{
"data": {
"accountSummary": {
"netHoldingsUsd": "337319000000000000",
"totalCollateralUsd": 0,
"totalBorrowedUsd": 0,
"totalLentUsd": "337319000000000000"
}
}
}