Skip to content

Commit

Permalink
Fix exclude ARS from blockchain.info
Browse files Browse the repository at this point in the history
  • Loading branch information
Reckless-Satoshi committed Oct 29, 2023
1 parent 1ecd1ec commit 0565caa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ def get_exchange_rates(currencies):
blockchain_prices = session.get(api_url).json()
blockchain_rates = []
for currency in currencies:
# Do not include ARS from Blockchain.ino . This pricing is estimated wrongly.
if currency == "ARS":
continue
try: # If a currency is missing place a None
blockchain_rates.append(
float(blockchain_prices[currency]["last"])
Expand Down

0 comments on commit 0565caa

Please sign in to comment.