pikers / piker

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

Run dark cleaing loop in `pikerd` subactor #405

Closed goodboy closed 1 year ago

goodboy commented 1 year ago

As per the final unfinished item in #402, it's obviously ideal to be able to keep dark-cleared (aka algorithmic) order processing running when a client/UI is not connected to an emsd.

We need to persist both the rt quote feed and dark clearing task with any spawned brokerd order-dialog daemon-task.

Implementation should require a slight refactor to move components from _emsd_main() into Router.maybe_open_brokerd_trades_dialogue().


Testing:

goodboy commented 1 year ago

I think this is done now right?

goodboy commented 1 year ago

Yeah pretty sure this landed in https://github.com/pikers/piker/pull/408

I think it would be good however if we could write some tests for these mostly simple cases and just do some state checking on the paper engine to verify all the bullets above?

I think i'll just make a new issue to cover the test suite requirements (ping @algorandpa)