Afriswap Exchange Rates API
Endpoint: https://afriswap.com/api/
Headers:
Key |
Value |
api |
API-SECRET-KEY |
Request Method: POST
Request Body: No request body is required for this endpoint.
Expected Response:
{
"base": "GHS",
"date": "2024-02-23 11:00:00",
"buy": {
"USD": "12.65",
"GBP": "15.65",
"EUR": "13.35"
}
"sell": {
"USD": "12.65",
"GBP": "15.65",
"EUR": "13.35"
}
}
Response Details:
- base — The base currency (in this case, GHS - Ghana Cedi).
- date — The timestamp of the exchange rates.
- buy — A JSON object containing key-value pairs for each foreign currency and its exchange buy rate against the base.
- sell — A JSON object containing key-value pairs for each foreign currency and its exchange sell rate against the base.
- err — Error message returned.