mirror of
https://github.com/bisq-network/bisq.git
synced 2025-03-04 03:03:48 +01:00
Remove deprecated python script
This commit is contained in:
parent
20e16493aa
commit
7fa61c9a32
1 changed files with 0 additions and 22 deletions
|
@ -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)
|
Loading…
Add table
Reference in a new issue