Skip to main content
POST
/
v1
/
exchange
/
stablefx
/
quotes
Create a quote
curl --request POST \
  --url https://api-sandbox.circle.com/v1/exchange/stablefx/quotes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "from": {
    "currency": "USDC",
    "amount": "<string>"
  },
  "to": {
    "currency": "USDC",
    "amount": "<string>"
  },
  "tenor": "instant"
}'
{
  "id": "c4d1da72-111e-4d52-bdbf-2e74a2d803d5",
  "rate": 0.915,
  "to": {
    "currency": "USDC",
    "amount": "<string>"
  },
  "from": {
    "currency": "USDC",
    "amount": "<string>"
  },
  "createdAt": "2023-01-01T12:04:05Z",
  "expiresAt": "2023-01-01T12:04:05Z",
  "fee": {
    "currency": "USDC",
    "amount": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Circle's API Keys are formatted in the following structure "PREFIX:ID:SECRET". All three parts are requred to make a successful request.

Body

application/json

Request body for creating an exchange quote

from
object
required

Currency and amount details for a foreign exchange transaction

to
object
required

Currency and amount details for a foreign exchange transaction

tenor
enum<string>
required

The settlement schedule for the trade

Available options:
instant,
hourly,
daily

Response

200 - application/json

Quote created successfully

Quote for an FX transaction

id
string<uuid>

System-generated unique identifier of the resource.

Example:

"c4d1da72-111e-4d52-bdbf-2e74a2d803d5"

rate
number

Exchange rate for the quote

Example:

0.915

to
object

Currency and amount details for a foreign exchange transaction

from
object

Currency and amount details for a foreign exchange transaction

createdAt
string<date-time>

Date and time when the resource was created

Example:

"2023-01-01T12:04:05Z"

expiresAt
string<date-time>

Date and time when the resource expires

Example:

"2023-01-01T12:04:05Z"

fee
object

Currency and amount details for a foreign exchange transaction