Skip to content

Commit 677a946

Browse files
Jorge Martinez Ortegachrisguida
authored andcommitted
removing bitstamp from sources and fixing the request for coinbase api
1 parent 13cec86 commit 677a946

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

currencyrate/currencyrate.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@
2929

3030
sources = [
3131
# e.g. {"high": "18502.56", "last": "17970.41", "timestamp": "1607650787", "bid": "17961.87", "vwap": "18223.42", "volume": "7055.63066541", "low": "17815.92", "ask": "17970.41", "open": "18250.30"}
32-
Source(
33-
"bitstamp", "https://www.bitstamp.net/api/v2/ticker/btc{currency_lc}/", ["last"]
34-
),
3532
# e.g. {"bitcoin":{"usd":17885.84}}
3633
Source(
3734
"coingecko",
@@ -47,7 +44,7 @@
4744
# e.g. {"data":{"base":"BTC","currency":"USD","amount":"19414.63"}}
4845
Source(
4946
"coinbase",
50-
"https://api.coinbase.com/v2/prices/spot?currency={currency}",
47+
"https://api.coinbase.com/v2/prices/BTC-{currency}/spot",
5148
["data", "amount"],
5249
),
5350
# e.g. { "USD" : {"15m" : 6650.3, "last" : 6650.3, "buy" : 6650.3, "sell" : 6650.3, "symbol" : "$"}, "AUD" : {"15m" : 10857.19, "last" : 10857.19, "buy" : 10857.19, "sell" : 10857.19, "symbol" : "$"},...

0 commit comments

Comments
 (0)