Skip to content
MyStocks Developers
API v1

API v1

Current stable contract

Versioning policyRelease changelog
Sandbox console

Update treasury float controls

Treasury, Cash Management & FX Settlement

PATCH

/float

Update treasury float controls

Sandbox availableupdateFloatThreshold

Sets lowBalanceThresholdUsd — the master balance below which a float.low webhook fires. creditLimitUsd is set by MyStocks only.

Parameters

This endpoint has no path or query parameters.

Headers

AuthorizationstringRequired

Bearer sk_sandbox_<your_key> for sandbox requests.

Idempotency-KeystringheaderRequired

Unique string that makes write calls safe to retry on network failure. Required for money movement, trading, KYC, subscriptions, and webhook creation. Deduplicated for 24 hours -- duplicate keys return the cached response. HTTP 409 if a concurrent request with the same key is still in progress.

Example: dep_user42_1743152580

Request body

lowBalanceThresholdUsdnumber

Example: 500

minimumFloatUsdnumber

Example: 5000

autoTopupReminderEnabledboolean

Example: true

autoTopupReminderRecipientsstring[]
autoTopupReminderFrequencyHoursinteger

Example: 24

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

200Updated float status.