Sub-account buying power (settlement-aware)
Sub-Accounts & White-Label Retail KYC
/users/{userId}/buying-power
Sub-account buying power (settlement-aware)
getSubAccountBuyingPowerSettlement-aware balance for a sub-account. buyingPowerUsd is cash available to trade (unsettled SELL proceeds are usable for new buys, as is standard). withdrawableUsd excludes unsettled SELL proceeds, which remain locked until exchange settlement (T+N) — this is the free-riding guard. settlements[] lists each unsettled tranche and its settlement date.
Parameters
userIdstringpathRequiredExample: usr_abc123
Headers
AuthorizationstringRequiredBearer sk_sandbox_<your_key> for sandbox requests.
Response fields
accountTypeMASTER | SUBACCOUNTsubAccountIdstring | nullcurrencystringExample: "USD"
cashBalanceUsdnumberCurrent USD wallet balance.
buyingPowerUsdnumberCash available to place new orders (already net of open-BUY escrow; includes unsettled SELL proceeds).
unsettledUsdnumberSELL proceeds credited but not yet settled at the exchange (T+N).
withdrawableUsdnumberCash available to withdraw — cashBalanceUsd minus unsettledUsd. The free-riding guard.
pendingBuyEscrowUsdnumberFunds locked in open (PENDING) BUY orders.
settlementsobject[]settlements[].amountUsdnumbersettlements[].settlesOnstringsettlements[].symbolstring | nullsettlements[].exchangestring | nullsettlements[].orderIdstring | nullResponse codes
200Settlement-aware balance.404Sub-account not found.