API Reference

Return balances

Method: "position.spot.list"

Params

{
  account: address,
  subAccountId: uint8,
  assets: []string
}

Result

[
  {
    account: address,
    subAccountId: uint8,
    asset: address,
    quantity: string, // in wei
    pendingWithdrawal: string // in wei
  },
  //...
]