Skip to main content
POST
/
currencies
/
quotation
cURL
curl --request POST \
  --url https://api.example.com/currencies/quotation \
  --header 'Content-Type: application/json' \
  --data '
{
  "to": "NGN",
  "from": "BTC",
  "amount": 1
}
'
{
  "success": true,
  "message": "Operation successful",
  "data": [
    {
      "from": "BTC",
      "to": "NGN",
      "fromAmount": 1,
      "toAmount": 0.85,
      "rate": 0.85,
      "value": 0.85,
      "fromAmountInUSD": 1.1764705882352942,
      "fromAmountInUSDRate": 1.1764705882352942,
      "id": "c22pwu80wju",
      "expiration": 60
    }
  ],
  "meta": {}
}

Body

application/json
to
string
required

Target currency code

Example:

"NGN"

from
string
required

Source currency code

Example:

"BTC"

amount
integer
required

Amount qouted

Example:

1

Response

200 - application/json

Quote created successfully

success
boolean
Example:

true

message
string
Example:

"Operation successful"

data
object[]
meta
object