From 66453476c32b7890e70907bd4b82be54dfefb421 Mon Sep 17 00:00:00 2001 From: mdrlzy Date: Thu, 10 Nov 2022 23:16:20 +0600 Subject: [PATCH] Fetch crypto rates --- .github/workflows/fetch.yml | 12 ++- rates.json | 177 ------------------------------------ 2 files changed, 8 insertions(+), 181 deletions(-) delete mode 100644 rates.json diff --git a/.github/workflows/fetch.yml b/.github/workflows/fetch.yml index 0ff8ac6..543800d 100644 --- a/.github/workflows/fetch.yml +++ b/.github/workflows/fetch.yml @@ -17,13 +17,17 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Fetch JSON - run: curl -X GET "https://openexchangerates.org/api/latest.json?app_id=${{ secrets.APP_ID }}" --output rates.json + - name: Fetch fiat + run: curl -X GET "https://openexchangerates.org/api/latest.json?app_id=${{ secrets.APP_ID }}" --output fiat-rates.json + + - name: Fetch crypto + run: curl -X GET "https://api.binance.com/api/v3/ticker/price" --output crypto-rates.json - name: Push into Git run: |- git config --global user.email "bot@ark-builders.dev" git config --global user.name "ARK Builders Bot" - git add rates.json - git commit -m "Automated update of rates JSON" + git add fiat-rates.json + git add crypto-rates.json + git commit -m "Automated update of rates" git push diff --git a/rates.json b/rates.json deleted file mode 100644 index 1b63263..0000000 --- a/rates.json +++ /dev/null @@ -1,177 +0,0 @@ -{ - "disclaimer": "Usage subject to terms: https://openexchangerates.org/terms", - "license": "https://openexchangerates.org/license", - "timestamp": 1668081600, - "base": "USD", - "rates": { - "AED": 3.67298, - "AFN": 88.541044, - "ALL": 116.84543, - "AMD": 396.70186, - "ANG": 1.807652, - "AOA": 488.40375, - "ARS": 160.0266, - "AUD": 1.564132, - "AWG": 1.8, - "AZN": 1.7, - "BAM": 1.951225, - "BBD": 2, - "BDT": 105.795319, - "BGN": 1.959406, - "BHD": 0.376896, - "BIF": 2074.856496, - "BMD": 1, - "BND": 1.403773, - "BOB": 6.955919, - "BRL": 5.1872, - "BSD": 1, - "BTC": 0.000060948082, - "BTN": 81.596266, - "BWP": 13.276301, - "BYN": 2.532748, - "BZD": 2.021749, - "CAD": 1.356622, - "CDF": 2049.08711, - "CHF": 0.989699, - "CLF": 0.032827, - "CLP": 906.28, - "CNH": 7.264428, - "CNY": 7.2533, - "COP": 5028.785082, - "CRC": 618.516774, - "CUC": 1, - "CUP": 25.75, - "CVE": 110.3, - "CZK": 24.499401, - "DJF": 178.560443, - "DKK": 7.480184, - "DOP": 54.354271, - "DZD": 140.463971, - "EGP": 24.395, - "ERN": 15, - "ETB": 53.551653, - "EUR": 1.005575, - "FJD": 2.2905, - "FKP": 0.879108, - "GBP": 0.879108, - "GEL": 2.71, - "GGP": 0.879108, - "GHS": 14.468382, - "GIP": 0.879108, - "GMD": 61.2, - "GNF": 8643.986196, - "GTQ": 7.843746, - "GYD": 209.844825, - "HKD": 7.848666, - "HNL": 24.789745, - "HRK": 7.5866, - "HTG": 134.766583, - "HUF": 402.775212, - "IDR": 15697.452933, - "ILS": 3.56475, - "IMP": 0.879108, - "INR": 81.702858, - "IQD": 1463.894974, - "IRR": 42350, - "ISK": 148.13, - "JEP": 0.879108, - "JMD": 154.295436, - "JOD": 0.709, - "JPY": 146.51509091, - "KES": 121.8, - "KGS": 84.073223, - "KHR": 4155.421152, - "KMF": 491.324948, - "KPW": 900, - "KRW": 1378.983551, - "KWD": 0.30935, - "KYD": 0.835827, - "KZT": 468.055573, - "LAK": 17414.907459, - "LBP": 1516.732743, - "LKR": 368.607189, - "LRD": 153.775028, - "LSL": 17.855308, - "LYD": 5.038659, - "MAD": 10.907114, - "MDL": 19.260487, - "MGA": 4302.477702, - "MKD": 61.544848, - "MMK": 2106.352276, - "MNT": 3406.965265, - "MOP": 8.109362, - "MRU": 37.97, - "MUR": 43.803548, - "MVR": 15.41, - "MWK": 1027.146706, - "MXN": 19.570045, - "MYR": 4.7005, - "MZN": 63.899991, - "NAD": 17.74, - "NGN": 441.328501, - "NIO": 36.103797, - "NOK": 10.431743, - "NPR": 130.553205, - "NZD": 1.71122, - "OMR": 0.384528, - "PAB": 1, - "PEN": 3.914263, - "PGK": 3.534159, - "PHP": 58.053501, - "PKR": 222.219697, - "PLN": 4.735147, - "PYG": 7188.867274, - "QAR": 3.641, - "RON": 4.9172, - "RSD": 117.91272, - "RUB": 61.025004, - "RWF": 1071.969718, - "SAR": 3.760207, - "SBD": 8.223823, - "SCR": 12.950002, - "SDG": 569.5, - "SEK": 10.938487, - "SGD": 1.403693, - "SHP": 0.879108, - "SLL": 17665, - "SOS": 570.260035, - "SRD": 29.831, - "SSP": 130.26, - "STD": 22823.990504, - "STN": 24.7, - "SVC": 8.776288, - "SYP": 2512.53, - "SZL": 17.853345, - "THB": 36.9155, - "TJS": 10.080361, - "TMT": 3.5, - "TND": 3.2035, - "TOP": 2.410751, - "TRY": 18.5863, - "TTD": 6.808133, - "TWD": 31.819999, - "TZS": 2332, - "UAH": 36.921336, - "UGX": 3786.339056, - "USD": 1, - "UYU": 40.030377, - "UZS": 11203.188786, - "VES": 8.9196, - "VND": 24866.343789, - "VUV": 122.25878, - "WST": 2.793855, - "XAF": 659.613635, - "XAG": 0.04739899, - "XAU": 0.00058567, - "XCD": 2.70255, - "XDR": 0.743991, - "XOF": 659.613635, - "XPD": 0.00054201, - "XPF": 119.996958, - "XPT": 0.00100707, - "YER": 250.249937, - "ZAR": 17.8015, - "ZMW": 16.354268, - "ZWL": 322 - } -} \ No newline at end of file