Skip to main content
POST
/
v1
/
exchange
/
quotes
Get quote
curl --request POST \
  --url https://api-sandbox.circle.com/v1/exchange/quotes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "idempotencyKey": "ba943ff1-ca16-49b2-ba55-1057e70ca5c7",
  "type": "reference",
  "from": {
    "amount": "3.14",
    "currency": "USDC"
  },
  "to": {
    "amount": "3.14",
    "currency": "USDC"
  }
}'
{
  "data": {
    "id": "b8627ae8-732b-4d25-b947-1df8f4007a29",
    "rate": 0.1974,
    "from": {
      "amount": "3.14",
      "currency": "USD"
    },
    "to": {
      "amount": "3.14",
      "currency": "USD"
    },
    "expiry": "2020-04-10T02:13:30.000Z",
    "type": "reference"
  }
}

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"

type
enum<string>
required

The type of exchange.

Available options:
reference,
tradable
from
object
required
to
object
required

Response

Successfully fetched quote.

data
object