Update treasury float controls
Treasury, Cash Management & FX Settlement
/float
Update treasury float controls
updateFloatThresholdSets 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
AuthorizationstringRequiredBearer sk_sandbox_<your_key> for sandbox requests.
Idempotency-KeystringheaderRequiredUnique 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
lowBalanceThresholdUsdnumberExample: 500
minimumFloatUsdnumberExample: 5000
autoTopupReminderEnabledbooleanExample: true
autoTopupReminderRecipientsstring[]autoTopupReminderFrequencyHoursintegerExample: 24
Response fields
currencystringExample: "USD"
masterBalanceUsdnumberCurrent master wallet balance (negative when drawn on the credit line).
pendingTopupsUsdnumberSum of PENDING top-up requests awaiting MyStocks confirmation.
pendingPayoutsUsdnumberSum of PENDING payout requests awaiting MyStocks processing.
creditLimitUsdnumberCredit line — how far the master balance may go negative while a remittance is in flight (MyStocks-set; 0 = pre-funded only).
outstandingCreditUsdnumberCredit currently drawn (present when masterBalanceUsd is negative).
availableToFundUsdnumbermasterBalanceUsd + creditLimitUsd — the total still available to fund sub-accounts.
lowBalanceThresholdUsdnumberMaster balance below which a float.low webhook fires (partner-set via PATCH /float).
minimumFloatUsdnumberPartner treasury policy floor for the master account.
floatStatusHEALTHY | LOW | DEPLETED | ON_CREDITtreasuryStatusHEALTHY | LOW | DEPLETED | ON_CREDIT | BELOW_MINIMUMreminderSettingsobjectreminderSettings.autoTopupReminderEnabledbooleanreminderSettings.recipientsstring[]reminderSettings.frequencyHoursintegerreminderSettings.shouldRemindNowbooleanexposureobjectPartner treasury exposure dashboard.
exposure.subAccountCountintegerexposure.pendingTopupsUsdnumberexposure.pendingPayoutsUsdnumberexposure.pendingOrderExposureUsdnumberexposure.outstandingCreditUsdnumberexposure.availableToFundUsdnumberexposure.netLiquidityUsdnumberexposure.pendingCreditLimitRequestsobject[]Response codes
200Updated float status.