pikers / piker

(e2e) foss trading for non-tinas
GNU Affero General Public License v3.0
104 stars 17 forks source link

Backfilling kraken historical OHLC #132

Open goodboy opened 3 years ago

goodboy commented 3 years ago

Back filling OHLC shm arrays has been added for the IB broker backend and we need this same functionality for any broker(s) we add.

The next natural one in line is kraken since they are our major NA supported crypto broker.

Notes:

Hot tips for the implementation:

goodboy commented 3 years ago

@guilledk apologies for leading you astray here. The post on kraken's support page says it all: https://support.kraken.com/hc/en-us/articles/218198197-How-to-retrieve-historical-time-and-sales-trading-history-using-the-REST-API-Trades-endpoint-

TLDR:

So this is actually even better news then I had hoped since we'll now be able to retrieve data usable for real forward testing and well simulated backtests.

I'd like to instead focus on getting real-time 1s OHLC sampled charting and move away from using the OHLC ws endpoint to instead use the trade stream; this will get us to basically the same results as from IB and traditional market feeds :)

Let me know what you think. I'm also cool to start this effort.