Create a currency quote
POST
/v2/orders/quoteRequest
Use this request to create a quote for a given currency pair. All quotes expire after 12 seconds.By default, in production, you can only use this request during trading hours and you’ll receive live rates.
In sandbox, you can use this request 24/7. However, the rates may be a couple of minutes behind current live rates.
Query parameters
string
required
The ID of the account that you’re creating a quote for.Allowable values: An existing
accountIdRequest body schema
object
required
Details about the source currency.Allowable values: A valid
sourceCurrency object containing the following fields: amount, currencyobject
required
Details about the target currency.Allowable values: A valid
targetCurrency object containing the following fields: amount, currencystring
required
The settlement date.Allowable values:
^20[0-9]{2}[0-2]{1}[0-9]{1}[0-3]{1}[0-9]{1}$object
required
Details about the type of order.Allowable values: A valid
type object containing the following fields: from, toResponse
If your request is successful, you’ll receive a200 response containing an orderId and a quoteRequestId. You’ll need these to create an order.