Skip to content

Exchange rate

Operations related to exchange-rate quotes.

Create an exchange rate quote

Request

Creates a short-lived (60 second) exchange-rate quote between two currencies. For crypto quotes, from must be a crypto currency the store accepts and to must be a supported settlement currency.

Security
ApiKey
Bodyapplication/vnd.api+json

The currency pair to quote.

dataobject
curl -i -X POST \
  https://docs.xmoney.com/_mock/crypto_api/reference/stores/exchange_rates \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/vnd.api+json' \
  -d '{}'

Responses

Exchange rate quote created.

Bodyapplication/vnd.api+json
dataobject

A short-lived exchange-rate quote.

Response
{ "data": { "type": "exchange_rates", "id": "c8d65cc2-0c82-429a-95ea-3f65011fc2cc", "attributes": {} } }