From 7fa61c9a322dcd9d1b9e6d929dc44a79d6599d05 Mon Sep 17 00:00:00 2001 From: ghubstan <36207203+ghubstan@users.noreply.github.com> Date: Wed, 20 Jan 2021 15:14:20 -0300 Subject: [PATCH] Remove deprecated python script --- apitest/scripts/getmktprice.py | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 apitest/scripts/getmktprice.py diff --git a/apitest/scripts/getmktprice.py b/apitest/scripts/getmktprice.py deleted file mode 100644 index a8885df320..0000000000 --- a/apitest/scripts/getmktprice.py +++ /dev/null @@ -1,22 +0,0 @@ -import sys, requests - -# Returns the current BTC price for the given currency_code from a cleartext price service. - -if len(sys.argv) < 2: - print("usage: getmktprice.py currency_code") - exit(1) - -currency_code = str(sys.argv[1]).upper() - -url = "https://price.bisq.wiz.biz/getAllMarketPrices" -resp = requests.get(url) -if resp.status_code == 200: - for i in resp.json()['data']: - if i['currencyCode'] == currency_code: - print(int(i['price'])) - break -else: - print('Error: Could not get ' + currency_code + ' price.') - exit(1) - -exit(0)