cURL
curl --request GET \ --url https://staging.api.mavapay.co/api/v1/price \ --header 'Authorization: Bearer <token>' \ --header 'X-API-KEY: <api-key>'
{ "status": "success", "data": { "currency": "NGN", "timeStamp": "2021-07-01T12:00:00Z", "btcPriceInUnitCurrency": 9000000.23, "unitPricePerSat": { "amount": 0.334561234, "currencyUnit": "NGNSAT" }, "unitPricePerUsd": { "amount": 1500.65, "currencyUnit": "NGNUSD" } } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The currency to get the price for
Price response
"success"
Show child attributes
NGN
KES
"2021-07-01T12:00:00Z"
9000000.23
0.334561234
NGNSAT
KESSAT
1500.65
NGNUSD
KESUSD