Skip to content

Commit

Permalink
removing bitstamp from sources and fixing the request for coinbase api
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Martinez Ortega authored and chrisguida committed Jul 22, 2024
1 parent 13cec86 commit 677a946
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions currencyrate/currencyrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@

sources = [
# 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"}
Source(
"bitstamp", "https://www.bitstamp.net/api/v2/ticker/btc{currency_lc}/", ["last"]
),
# e.g. {"bitcoin":{"usd":17885.84}}
Source(
"coingecko",
Expand All @@ -47,7 +44,7 @@
# e.g. {"data":{"base":"BTC","currency":"USD","amount":"19414.63"}}
Source(
"coinbase",
"https://api.coinbase.com/v2/prices/spot?currency={currency}",
"https://api.coinbase.com/v2/prices/BTC-{currency}/spot",
["data", "amount"],
),
# 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" : "$"},...
Expand Down

0 comments on commit 677a946

Please sign in to comment.