SubaccountOrderSummary

subaccountOrderSummary InjectiveAccountsRPC

get

Get subaccount's orders summary

Path parameters
subaccountIdstring · min: 66 · max: 66Required

SubaccountId of the trader we want to get the summary from

Example: 0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002Pattern: ^0x[0-9a-fA-F]{64}$
Query parameters
marketIdstring · min: 66 · max: 66Optional

MarketId is limiting order summary to specific market only

Example: 0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bbPattern: ^0x[0-9a-fA-F]{64}$
orderDirectionstring · enumOptional

Filter by direction of the orders

Example: buyAvailable options:
Responses
application/json
objectOptionalExample: {"derivativeOrdersTotal":4992131811935597000,"spotOrdersTotal":8839532638571061000}
get
GET /api/exchange/account/v1/subaccountOrderSummary/{subaccountId} HTTP/1.1
Host: inj-indexer.nownodes.io
Accept: */*
{
  "derivativeOrdersTotal": 1880309166331383800,
  "spotOrdersTotal": 4506501348891045400
}