Mintlayer

Exchange Rate Server

Endpoints

Index

Get current rate getCurrentRate/:crypto/:fiat

Replace :crypto with the crypto currency's symbol you want to check, and :fiat with the fiat currency's symbol you want the exchange rate for.


Examples:

Request:

getCurrentRate/btc/usd

Response:

{
  "btc-usd": 24350.12453617
}

Request:

getCurrentRate/btc/eur

Response:

{
  "btc-eur": 23952
}

Get one day ago rate getOneDayAgoRate/:crypto/:fiat

Replace :crypto with the crypto currency's symbol you want to check, and :fiat with the fiat currency's symbol you want the exchange rate for.


Examples:

Request:

getOneDayAgoRate/btc/usd

Response:

{
  "btc-usd": 24350.12453617
}

Request:

getOneDayAgoRate/btc/eur

Response:

{
  "btc-eur": 23952
}

Get history of a day ago getOneDayAgoHist/:crypto/:fiat

Replace :crypto with the crypto currency's symbol you want to check, and :fiat with the fiat currency's symbol you want the exchange rate for.

The key of each returned value is the timestamp of that exchange rate.


Examples:

Request:

getOneDayAgoHist/btc/usd

Response:

{
  "btc-usd": {
    "1660734000000": 23788,
    "1660730400000": 23823,
    "1660726800000": 23811,
    "1660723200000": 23782,
    "1660719600000": 24403,
    "1660716000000": 24160,
    "1660712400000": 24066,
    "1660708800000": 23999,
    "1660705200000": 23990,
    "1660701600000": 23943,
    "1660698000000": 24002,
    "1660694400000": 23855,
    "1660690800000": 23845,
    "1660687200000": 23948,
    "1660683600000": 23983,
    "1660680000000": 23933,
    "1660676400000": 23829,
    "1660672800000": 23858,
    "1660669200000": 23810,
    "1660665600000": 23902,
    "1660662000000": 23707,
    "1660658400000": 23896,
    "1660654800000": 23935,
    "1660651200000": 24036,
    "1660647600000": 24006
  }
}