Get the current currency rate

Get the current CSPR rate by currency identifier.

GET /rates/{currency_id}/amount

Query params

None

Sorting

None

Optional properties

None

Response

Rate

Example

curl -X 'GET' \
  'https://api.testnet.cspr.cloud/rates/1/amount' \
  -H 'accept: application/json' \
  -H 'authorization: 55f79117-fc4d-4d60-9956-65423f39a06a'
{
  "data": {
    "currency_id": 1,
    "amount": 0.051704,
    "created": "2024-01-05T14:23:00Z"
  }
}

Last updated