Skip to content
MyStocks Developers
API v1

API v1

Current stable contract

Versioning policyRelease changelog
Sandbox console
Broker API

Local-Currency Trading

MyStocks Partner API

Understand how MyStocks-managed funding, withdrawal, and execution FX work with local-market prices and USD wallets.

Explore endpoints

7 of 7
GET

/float

Master-account float / funding headroom

Full endpoint documentation
Sandbox availablegetFloat

The partner aggregates their end-users' deposits and remits to the master account (POST /topup); the master wallet funds sub-account deposits. This returns the funding headroom so the partner knows when to remit: masterBalanceUsd, pending top-ups, any credit line, availableToFundUsd, and a floatStatus of HEALTHY / LOW / DEPLETED / ON_CREDIT. Pair with the float.low and topup.confirmed webhooks.

Parameters

This endpoint has no path or query parameters.

Headers

AuthorizationstringRequired

Bearer sk_sandbox_<your_key> for sandbox requests.

Response fields

currencystring

Example: "USD"

masterBalanceUsdnumber

Current master wallet balance (negative when drawn on the credit line).

pendingTopupsUsdnumber

Sum of PENDING top-up requests awaiting MyStocks confirmation.

pendingPayoutsUsdnumber

Sum of PENDING payout requests awaiting MyStocks processing.

creditLimitUsdnumber

Credit line — how far the master balance may go negative while a remittance is in flight (MyStocks-set; 0 = pre-funded only).

outstandingCreditUsdnumber

Credit currently drawn (present when masterBalanceUsd is negative).

availableToFundUsdnumber

masterBalanceUsd + creditLimitUsd — the total still available to fund sub-accounts.

lowBalanceThresholdUsdnumber

Master balance below which a float.low webhook fires (partner-set via PATCH /float).

minimumFloatUsdnumber

Partner treasury policy floor for the master account.

floatStatusHEALTHY | LOW | DEPLETED | ON_CREDIT
treasuryStatusHEALTHY | LOW | DEPLETED | ON_CREDIT | BELOW_MINIMUM
reminderSettingsobject
reminderSettings.autoTopupReminderEnabledboolean
reminderSettings.recipientsstring[]
reminderSettings.frequencyHoursinteger
reminderSettings.shouldRemindNowboolean
exposureobject

Partner treasury exposure dashboard.

exposure.subAccountCountinteger
exposure.pendingTopupsUsdnumber
exposure.pendingPayoutsUsdnumber
exposure.pendingOrderExposureUsdnumber
exposure.outstandingCreditUsdnumber
exposure.availableToFundUsdnumber
exposure.netLiquidityUsdnumber
exposure.pendingCreditLimitRequestsobject[]

Response codes

200Float status.

MyStocks presents a USD-denominated wallet while instruments trade in their exchange currency. The FX responsibility depends on the flow.

FlowFX responsibilityAPI behavior
DepositMyStocksSend local amount and currency; MyStocks converts and credits the USD wallet.
Quote and tradeMyStocksQuote and execution use the live market conversion at the relevant point in the order flow.
DividendMyStocksDeclared local-currency dividends are converted and credited to the USD wallet.
WithdrawalMyStocksSend local amount and currency; MyStocks converts the ledger debit while your payout rail delivers local currency.

Implementation rules

  • Use amount plus currency for supported non-USD funding and withdrawals.
  • Record the returned fxRate, fxSource, and fxConversion.asOf conversion metadata.
  • Treat request fxRate as deprecated legacy compatibility; omit it in new integrations.
  • Show the quote currency and wallet currency separately in your UI.
  • Never calculate a trade’s final USD debit from a stale display price.
  • Treat FX rate, timestamp, spread, and rounding as customer-disclosure data.
  • Reconcile local-market fills and USD ledger movements together.

See the detailed FX & Currency model, Trading API, and Statements and Confirms.

Wallet balances are USD ledger balances. MyStocks does not provide an end-user FX hedge. Your product must disclose exchange-rate movement between funding, execution, dividend conversion, and withdrawal.

Was this page useful?

Your signal helps us tighten partner onboarding docs.

Send note

Last updated on

On this page