Skip to content

Commit

Permalink
solved issue in crypto volume retrieval (by @adximize)
Browse files Browse the repository at this point in the history
  • Loading branch information
Álvaro Bartolomé committed Mar 31, 2021
1 parent 846fe4c commit ae15606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion investpy/crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ def get_crypto_historical_data(crypto, from_date, to_date, as_json=False, order=
crypto_high = float(info[3].replace(',', ''))
crypto_low = float(info[4].replace(',', ''))

crypto_volume = int(info[5])
crypto_volume = int(info[5] or 0)

result.insert(len(result),
Data(crypto_date, crypto_open, crypto_high, crypto_low,
Expand Down

0 comments on commit ae15606

Please sign in to comment.