Remove deprecated python script

This commit is contained in:
ghubstan 2021-01-20 15:14:20 -03:00
parent 20e16493aa
commit 7fa61c9a32
No known key found for this signature in database
GPG key ID: E35592D6800A861E

View file

@ -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)