Logo
Fireblocks API Documentation

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.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Idempotency-Key
string A 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-Type
string
Accept
string




RESPONSES

status OK

{ "success": "<boolean>" }



Curl
curl -X POST 'https://api.fireblocks.io/v1/exchange_accounts/:exchangeAccountId/convert' -H 'Idempotency-Key: <string>' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"srcAsset":"\u003cstring\u003e","destAsset":"\u003cstring\u003e","amount":"\u003cnumber\u003e"}'

ENDPOINTS