Closed uvok closed 2 years ago
Bitpanda added a "BEST_EUR Rate" column to their CSV export.
Currently, the assertion book.py:551 fails because of that,
What would be the best course? Change the code so that both CSV versions can be read? What would be the ideal changes for that?
The pro of this change is that I don't have to to the weird candlestick querying for BEST_EUR price anymore if the column is present.
Specifically, how can you handle "optional" columns in the for (column1, column2, column3) in reader loop?
for (column1, column2, column3) in reader
Seems I can workaround with this: https://www.python.org/dev/peps/pep-3132/
Fixed with Pull Request
Bitpanda added a "BEST_EUR Rate" column to their CSV export.
Currently, the assertion book.py:551 fails because of that,
What would be the best course? Change the code so that both CSV versions can be read? What would be the ideal changes for that?
The pro of this change is that I don't have to to the weird candlestick querying for BEST_EUR price anymore if the column is present.