Skip to content
MyStocks Developers
API v1

API v1

Current stable contract

Versioning policyRelease changelog
Sandbox console
Trading API

Trading Account and Buying Power

MyStocks Partner API

Understand master and sub-account wallets, buying power, portfolios, settlement-aware balances, and account state before placing orders.

Explore endpoints

7 of 7
GET

/buying-power

Master account buying power (settlement-aware)

Full endpoint documentation
Sandbox availablegetBuyingPower

Settlement-aware balance for the partner master account. See /users/{userId}/buying-power for field semantics.

Parameters

This endpoint has no path or query parameters.

Headers

AuthorizationstringRequired

Bearer sk_sandbox_<your_key> for sandbox requests.

Response fields

accountTypeMASTER | SUBACCOUNT
subAccountIdstring | null
currencystring

Example: "USD"

cashBalanceUsdnumber

Current USD wallet balance.

buyingPowerUsdnumber

Cash available to place new orders (already net of open-BUY escrow; includes unsettled SELL proceeds).

unsettledUsdnumber

SELL proceeds credited but not yet settled at the exchange (T+N).

withdrawableUsdnumber

Cash available to withdraw — cashBalanceUsd minus unsettledUsd. The free-riding guard.

pendingBuyEscrowUsdnumber

Funds locked in open (PENDING) BUY orders.

settlementsobject[]
settlements[].amountUsdnumber
settlements[].settlesOnstring
settlements[].symbolstring | null
settlements[].exchangestring | null
settlements[].orderIdstring | null

Response codes

200Settlement-aware balance.

The Partner API supports a master trading account and isolated customer sub-accounts. Choose the account context explicitly when requesting a quote, placing an order, or reading portfolio state.

Account surfaces

NeedEndpoint
Master wallet and portfolioGET /account, GET /portfolio
Master buying powerGET /buying-power
Sub-account walletGET /users/{userId}/wallet
Sub-account portfolioGET /users/{userId}/portfolio
Sub-account buying powerGET /users/{userId}/buying-power
Account statusGET /users/{userId}

Buying power is settlement-aware. Unsettled sell proceeds may appear in portfolio or order state but remain unavailable for withdrawal until settlement. Do not use display portfolio value as withdrawable cash.

Before trading, confirm the account is active, not frozen, and KYC-eligible. See Custody and Beneficial Ownership for the distinction between ledger ownership and settled custody.

Was this page useful?

Your signal helps us tighten partner onboarding docs.

Send note

Last updated on

On this page