Added a Ticker API (Open Exchange Rate)

in blog •  24 days ago 

I 've added the ticker API to query the BTC and other fiats:

image.png

This API endpoint updates every 45 minutes, so

312460/45=992

image.png

which is under 1000 requests/month limit

The example return by Open Exchange Rates:

{
  "disclaimer": "Usage subject to terms: https://openexchangerates.org/terms",
  "license": "https://openexchangerates.org/license",
  "timestamp": 1729594800,
  "base": "USD",
  "rates": {
    "AED": 3.67297,
    "AFN": 65.974197,
    "ALL": 91.251604,
    "AMD": 387.653794,
    "ANG": 1.807466,
    "AOA": 910.833667,
    "ARS": 983.254595,
    "AUD": 1.496012,
    "AWG": 1.8025,
    "AZN": 1.7,
    "BAM": 1.808188,
    "BBD": 2,
    "BDT": 119.846356,
    "BGN": 1.8067,
    "BHD": 0.376935,
    "BIF": 2911.378129,
    "BMD": 1,
    "BND": 1.31663,
    "BOB": 6.945042,
    "BRL": 5.6892,
    "BSD": 1,
    "BTC": 0.000014895403,
    "BTN": 84.308197,
    "BWP": 13.380793,
    "BYN": 3.282007,
    "BZD": 2.021495,
    "CAD": 1.383221,
    "CDF": 2848.947161,
    "CHF": 0.865655,
    "CLF": 0.034504,
    "CLP": 952.25,
    "CNH": 7.133985,
    "CNY": 7.1208,
    "COP": 4280.037308,
    "CRC": 515.700943,
    "CUC": 1,
    "CUP": 25.75,
    "CVE": 101.942911,
    "CZK": 23.340201,
    "DJF": 178.583122,
    "DKK": 6.886981,
    "DOP": 60.334591,
    "DZD": 133.493,
    "EGP": 48.6997,
    "ERN": 15,
    "ETB": 120.571269,
    "EUR": 0.923466,
    "FJD": 2.2332,
    "FKP": 0.770608,
    "GBP": 0.770608,
    "GEL": 2.72,
    "GGP": 0.770608,
    "GHS": 16.035909,
    "GIP": 0.770608,
    "GMD": 70,
    "GNF": 8650.898246,
    "GTQ": 7.754927,
    "GYD": 209.719602,
    "HKD": 7.773799,
    "HNL": 24.977002,
    "HRK": 6.958342,
    "HTG": 132.005062,
    "HUF": 370.062534,
    "IDR": 15565.643,
    "ILS": 3.781049,
    "IMP": 0.770608,
    "INR": 84.078198,
    "IQD": 1313.765096,
    "IRR": 42102.5,
    "ISK": 137.7,
    "JEP": 0.770608,
    "JMD": 159.369808,
    "JOD": 0.709,
    "JPY": 150.84566667,
    "KES": 129.37,
    "KGS": 85.5,
    "KHR": 4069.836007,
    "KMF": 455.150003,
    "KPW": 900,
    "KRW": 1378.939746,
    "KWD": 0.306439,
    "KYD": 0.83578,
    "KZT": 483.651999,
    "LAK": 22026.729629,
    "LBP": 89807.29187,
    "LKR": 294.039086,
    "LRD": 193.05212,
    "LSL": 17.673778,
    "LYD": 4.826072,
    "MAD": 9.94402,
    "MDL": 17.962285,
    "MGA": 4627.301989,
    "MKD": 56.911023,
    "MMK": 2098,
    "MNT": 3398,
    "MOP": 8.028753,
    "MRU": 39.703782,
    "MUR": 46.070002,
    "MVR": 15.36,
    "MWK": 1738.865621,
    "MXN": 19.926989,
    "MYR": 4.328,
    "MZN": 63.850001,
    "NAD": 17.673778,
    "NGN": 1641.46,
    "NIO": 36.907432,
    "NOK": 10.918465,
    "NPR": 134.893001,
    "NZD": 1.651869,
    "OMR": 0.384974,
    "PAB": 1,
    "PEN": 3.764024,
    "PGK": 3.949576,
    "PHP": 57.845501,
    "PKR": 278.449128,
    "PLN": 3.992727,
    "PYG": 7944.421462,
    "QAR": 3.657611,
    "RON": 4.5931,
    "RSD": 108.083,
    "RUB": 96.522331,
    "RWF": 1356.846897,
    "SAR": 3.755545,
    "SBD": 8.299327,
    "SCR": 13.786764,
    "SDG": 601.5,
    "SEK": 10.538128,
    "SGD": 1.315477,
    "SHP": 0.770608,
    "SLL": 20969.5,
    "SOS": 573.113747,
    "SRD": 33.215,
    "SSP": 130.26,
    "STD": 22281.8,
    "STN": 22.650894,
    "SVC": 8.77476,
    "SYP": 2512.53,
    "SZL": 17.668785,
    "THB": 33.48,
    "TJS": 10.685681,
    "TMT": 3.5,
    "TND": 3.101416,
    "TOP": 2.3709,
    "TRY": 34.253845,
    "TTD": 6.805501,
    "TWD": 32.033002,
    "TZS": 2725,
    "UAH": 41.431921,
    "UGX": 3675.888596,
    "USD": 1,
    "UYU": 41.568799,
    "UZS": 12851.931146,
    "VES": 39.13259,
    "VND": 25403.287269,
    "VUV": 118.722,
    "WST": 2.8,
    "XAF": 605.754118,
    "XAG": 0.02907421,
    "XAU": 0.00036512,
    "XCD": 2.70255,
    "XDR": 0.752202,
    "XOF": 605.754118,
    "XPD": 0.00093131,
    "XPF": 110.198831,
    "XPT": 0.0009815,
    "YER": 250.375001,
    "ZAR": 17.58065,
    "ZMW": 26.751414,
    "ZWL": 322
  }
}

I've integrated this to the ticker API used in the steemyy swap tools and crypto bot queries.

Steem to the Moon🚀!

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE BLURT!