pikers / piker

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

Ib 1m hist #401

Closed goodboy closed 1 year ago

goodboy commented 1 year ago

~Super WIP~ Ready for action, ~but~ just a start at doing 1m long term (slow) chart alongside our classic 1s OHLC in the fast chart.

This adjust our history loading in the data feed layer (piker.data.feed) to do multi-time frame data loading concurrently and in a highly reliable manner such that both can be stored in the tsdb as well as explicitly queried, loaded and processed in shared mem arrays.


ib related

Since ib is the only currently supported backend with 1s OHLC history, this patch focuses around it but contains necessary adjustments to handle backends (like all the crypto$) which don't have this support (at least not without us writing our own sampler). When a backend doesn't have 1s OHLC history the fast chart simply starts empty and starts filling when the brokerd feed is first booted - during the pikerd parent's lifetime.

Further enhancements in this backend include:

The summary of enhancements and bug fixes is more or less in the todo section below:


TODO:

goodboy commented 1 year ago

Just pushed a bad timeframe wiper hack @guilledk