summary: use lowercase in bitstamp url

This commit is contained in:
Ken Sedgwick
2022-07-04 09:54:31 -07:00
committed by Michael Schmoock
parent 59bad754cb
commit 8529abd833

View File

@@ -69,7 +69,7 @@ class PriceThread(threading.Thread):
# NOTE: Bitstamp has a DNS/Proxy issues that can return 404
# Workaround: retry up to 5 times with a delay
for _ in range(5):
r = requests.get('https://www.bitstamp.net/api/v2/ticker/BTC{}'.format(plugin.currency), proxies=self.proxies)
r = requests.get('https://www.bitstamp.net/api/v2/ticker/btc{}'.format(plugin.currency.lower()), proxies=self.proxies)
if not r.status_code == 200:
time.sleep(1)
continue