Skip to main content
POST
/
v1
/
exchange
/
trades
Create FX trade
curl --request POST \
  --url https://api-sandbox.circle.com/v1/exchange/trades \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "idempotencyKey": "ba943ff1-ca16-49b2-ba55-1057e70ca5c7",
  "quoteId": "b8627ae8-732b-4d25-b947-1df8f4007a29"
}'
{
  "data": {
    "id": "b8627ae8-732b-4d25-b947-1df8f4007a29",
    "from": {
      "amount": "3.14",
      "currency": "USDC"
    },
    "to": {
      "amount": "3.14",
      "currency": "USDC"
    },
    "status": "pending",
    "createDate": "2020-04-10T02:13:30.000Z",
    "updateDate": "2020-04-10T02:13:30.000Z",
    "quoteId": "b8627ae8-732b-4d25-b947-1df8f4007a29"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
idempotencyKey
string<uuid>
required

Universally unique identifier (UUID v4) idempotency key. This key is utilized to ensure exactly-once execution of mutating requests.

Example:

"ba943ff1-ca16-49b2-ba55-1057e70ca5c7"

quoteId
string<uuid>
required

Unique system generated identifier for the entity.

Example:

"b8627ae8-732b-4d25-b947-1df8f4007a29"

Response

Successfully created trade.

data
object