Coinbase Exchange API
cURL
curl --request POST \ --url https://api.exchange.coinbase.com/conversions \ --header 'Content-Type: application/json' \ --header 'cb-access-key: <api-key>' \ --header 'cb-access-passphrase: <api-key>' \ --header 'cb-access-sign: <api-key>' \ --header 'cb-access-timestamp: <api-key>' \ --data '{ "profile_id": "<string>", "from": "<string>", "to": "<string>", "amount": "<string>", "nonce": "<string>" }'
{ "id": "c5aaf125-d99e-41fe-82ea-ad068038b278", "amount": "11.00000000", "from_account_id": "5dcc143c-fb96-4f72-aebf-a165e3d29b53", "to_account_id": "6100247f-90fc-4335-ac17-d99839f0c909", "from": "USDC", "to": "USD", "fee_amount": "0.0000000000000000" }
Converts funds from from currency to to currency. Funds are converted on the from account in the profile_id profile.
from
to
profile_id
The response is of type object.
object
Was this page helpful?