eprbell / dali-rp2

DaLI (Data Loader Interface) is a data loader and input generator for RP2 (https://pypi.org/project/rp2), the privacy-focused, free, open-source cryptocurrency tax calculator: DaLI removes the need to manually prepare RP2 input files. Just like RP2, DaLI is also free, open-source and it prioritizes user privacy.
https://pypi.org/project/dali-rp2/
Apache License 2.0
62 stars 41 forks source link

Detect Beginning of Market when using Kraken CSV Reader #208

Open macanudo527 opened 9 months ago

macanudo527 commented 9 months ago

What, Why?

Currently, when the Kraken CSV reader fails to find a bar, a call is made to the REST API. This is necessary when the date of the historical bar is past the available CSV data. In that case, Dali-RP2 needs to pull the data from the REST API. However, if the date is before available data, that means the market is not available yet and needs to be marked as such.

Marking of market start dates is necessary for graph optimization so that a path isn't optimized for a non-existent market.

Timeline

This is a performance improvement and doesn't affect pricing. Not critical, but nice to have.