API Reference

Method: "position.perp.list"

Params

{
  account: address,
  subAccountId: uint8,
  productIds: []uint32
}

Result

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