Create a trade
Accepts a quote and creates a trade.
Authorizations
Circle's API Keys are formatted in the following structure "PREFIX:ID:SECRET". All three parts are requred to make a successful request.
Body
Request body for creating a trade. Accepts a quote and submits a signed taker Permit2 message to create the trade. The taker signs the typedData payload returned by the presign endpoint and includes the signed message, signature, and signer address.
Universally unique identifier (UUID v4) idempotency key. This key is utilized to ensure exactly-once execution of mutating requests. To create a UUIDv4 go to uuidgenerator.net. If the same key is reused, it will be treated as the same request and the original response will be returned.
"a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11"
System-generated unique identifier of the resource.
"c4d1da72-111e-4d52-bdbf-2e74a2d803d5"
The wallet address signing the trade presign data.
"0x1234567890abcdef1234567890abcdef12345678"
The taker Permit2 message derived from the quote response typedData.message.
The signature generated from signing the trade presign data.
Response
Trade created successfully
A StableFX trade created from a quote.
System-generated unique identifier of the resource.
"c4d1da72-111e-4d52-bdbf-2e74a2d803d5"
The ID of the trade on the contract.
^[0-9]+$"24"
pending, complete, confirmed, pending_settlement, taker_funded, maker_funded, refunded, breaching, breached Exchange rate for the quote
0.915
Currency and amount details for a foreign exchange transaction
Currency and amount details for a foreign exchange transaction
Date and time when the resource was created
"2023-01-01T12:04:05Z"
Date and time when the resource was last updated
"2023-01-01T12:04:05Z"
System-generated unique identifier of the resource.
"c4d1da72-111e-4d52-bdbf-2e74a2d803d5"
The hash of the settlement transaction on-chain.
^0x[a-fA-F0-9]{64}$"0xf97c6a87511583d5c7e8e72f8e1fe38bfd24350edda78fddbe67125f3cf0a122"
The date when the trade has matured.
"2023-01-01T12:04:05Z"
The settlement schedule for the trade
instant, hourly, daily The time/date the trade was completed.
"2023-01-01T12:04:05Z"