BuyCoins API Guide
Search…
Get Exchange Rate
Retrieve the USDT/NGNT exchange rate from the order book.
You can retrieve the current USDT/NGNT exchange rate by calling the getExchangeRate query
1
query {
2
getExchangeRates(pair: usdt_ngnt){
3
buyRate
4
sellRate
5
}
6
}
Copied!

Parameter

  • pair: The currency pair of the exchange rate you want (currently limited to usdt_ngnt)

Response

  • buyRate: The current price at which you can buy
  • sellRate: The current price at which you can sell
Copy link
Contents