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": {} }
Use this to generate a currency conversion quote
Target currency code
"NGN"
Source currency code
"BTC"
Amount qouted
1
Quote created successfully
true
"Operation successful"
Show child attributes