Great explanation, thank you.
I take this means that
{"$$indexCreated":{"fieldName":"s","unique":true,"sparse":false}}
does not always need to be the very first entry of the database file and the lines dont need to be ordered by incrementally the "s"-key value?
Other than that the localDB branch works fine for me. Looking forward to it because I just ran into this issue again:
https://github.com/askmike/gekko/issues/51Oddly enough it loads the first entries just fine, but gekko fails on the last (most recent) candles, retries a few times and then shuts down.I assume there are no connectivity or DNS issues, otherwise it wouldnt be able to download the first 99 candles.
I also really don't like their API, hopefully I'll get the new method working quickly.
- Store all trades
- Store candles at the size that is in the current config
- Store 1 minute candles.
The first option creates the biggest databases.
...
So I went for the first option: I know exactly how much data per day is required and I am able to calculate every candle (> 1 minute) on the fly based on those.
Do you mean that you went for the third option?
oops, yes that's what I meant.