Endpoint
GET /oapi/accounts/:accountId/underlying/balance
Returns underlying balance data for an account.
Required path parameters
accountId— Trading account ID.
Optional query parameters
symbol— Security symbol used to calculate trading availability. Example:ACBquotePrice— Quote price used to calculate balance values for the requested symbol. Example:23000
Response fields
s(string) — Request status. Always returnsok.d(array) — Balance rows.
Balance fields
acctno(string) — Trading sub-account number.symbol(string) — Security symbol used for the calculation whensymbolis provided.ppse(string) — Buying power.ppsemin(string) — Minimum buying power value.mrrate(string) — Account ratio.maxqtty(string) — Maximum buy quantity. Calculated when bothsymbolandquotePriceare provided. Otherwise returns0.minqtty(string) — Minimum buy quantity.trade(string) — Available trading quantity for the requested symbol. Calculated when bothsymbolandquotePriceare provided. Otherwise returns0.receiving(string) — Pending receiving securities.mrratioloan(string) — Loan ratio.mrpriceloan(number) — Loan price.allbalance(string) — Cash plus bank balance.avladvance(string) — Advanceable cash amount.ppseref(string) — Optimized buying power.rtt(string) — Real-time ratio.mrirate(string) — Safety ratio.blocked(string) — Blocked securities quantity.mortage(string) — Pledged securities quantity.
cURL
Example response
This example omits optional query parameters. In this case,maxqtty and trade return 0.
Field names are documented in lower_case here, as requested.
ReplaceBASE_URL,ACCOUNT_ID, andACCESS_TOKENwith your values.