Skip to content
MyStocks Developers
API v1

API v1

Current stable contract

Versioning policyRelease changelog
Sandbox console

Confirm an unexpired wallet conversion quote

Sub-Accounts & White-Label Retail KYC

POST

/users/{userId}/fx/convert

Confirm an unexpired wallet conversion quote

Sandbox availableconfirmSubAccountCurrencyQuote

Requires an Idempotency-Key and an owned active account. Sandbox conversion is virtual. Live requires verified identity, approved currencies, traceable funding origin and operational acceptance. Quotes use shared managed rates, fee policy and 60-second expiry. Confirmation consumes a quote atomically; it never spends indicative display equivalents. Historical untraceable balances are not automatically eligible.

Parameters

userIdstringpathRequired

Example: CUSTOMER_ID_FROM_USERS

Headers

AuthorizationstringRequired

Bearer sk_sandbox_<your_key> for sandbox requests.

Idempotency-KeystringheaderRequired

Request body

quoteIdstringRequired

Example: "QUOTE_ID_FROM_FX_QUOTE"

Response fields

quoteIdstring
conversionIdstring
fromCurrencystring
toCurrencystring
sourceAmountnumber
targetAmountnumber
feeAmountnumber
feeCurrencystring
feePercentnumber
ratenumber
rateConventionstring
expiresAtstring
sourcestring
rateAsOfstring | null
simulationOnlyboolean
statusCOMPLETED
sourceBalancenumber
targetBalancenumber

Response codes

200Authoritative managed FX terms or completed conversion receipt. See the FX model guide for field meanings.
400Invalid parameters or missing idempotency key
403Currency
404Account or quote not found
409Expired or consumed quote