Convert exchange account funds from the source asset to the destination asset.

POST {{baseUrl}}/exchange_accounts/:exchangeAccountId/convert

Convert exchange account funds from the source asset to the destination asset. Coinbase (USD to USDC, USDC to USD) and Bitso (MXN to USD) are supported conversions.

Request Body

{"srcAsset"=>"<string>", "destAsset"=>"<string>", "amount"=>"<number>"}

HEADERS

KeyDatatypeRequiredDescription
Idempotency-KeystringA unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;success&quot;:&quot;\u003cboolean\u003e&quot;}