NAV Navbar
curl

Introduction

Welcome to the Nairaex API! You can use our API to access Nairaex API endpoints, which can get information on our Crypto currency rates, and more soon.

You can view code examples in the dark area to the right, and you can switch the programming language of the examples with the tabs in the top right.

Crypto currencies Rates

Get All Rates

curl "https://nairaex.com/api/rates"

The above command returns JSON structured like this:

{
   "buy":{
      "btc":"2389598.75",
      "bch":"0",
      "eth":"0",
      "ltc":"0",
      "pm":"0"
   },
   "sell":{
      "btc":"2228139.375",
      "bch":"176809.65",
      "eth":"98236.405",
      "ltc":"18964.35",
      "pm":"0"
   },
   "market":{
      "btc":"6458.375",
      "bch":"527.790",
      "eth":"293.243",
      "ltc":"56.610"
   },
   "usd":{
      "buy":{
         "btc":"370",
         "bch":"0",
         "eth":"0",
         "ltc":"0"
      },
      "sell":{
         "btc":"345",
         "bch":"335",
         "eth":"335",
         "ltc":"335"
      }
   }
}

This endpoint retrieves all cryptocurrencies rates.

HTTP Request

GET https://nairaex.com/api/rates

Query Parameters

Parameter Default Description
buy false If set to true, the result will include only buy rates.
sell false If set to true, the result will include only sell rates.