ems_no_last_required: don't require last field to boot dark-pool engine #38

Merged
goodboy merged 2 commits from ems_no_last_required into main 2026-01-01 20:15:57 +00:00

Adjust .clearing._ems.Router.open_trade_relays() to use the last row of the Flume.rt_shm: ShmArray’s 'close' column when the received live-quote msg’s 'last' field is null or DNE.

This allows the dark order engine to boot and be how to condition the submitted limit orders despite the last live quote msg not defining the last clearing price.

Adjust `.clearing._ems.Router.open_trade_relays()` to use the last row of the `Flume.rt_shm: ShmArray`'s `'close'` column when the received live-quote msg's `'last'` field is null or DNE. This allows the dark order engine to boot and be how to condition the submitted limit orders despite the last live quote msg not defining the last clearing price.
goodboy added 2 commits 2025-02-20 16:41:09 +00:00
aac0d79b6c .clearing._ems: Don't require `first_quote['last']`
Instead just check for the field (which i'm not huge on the key-name for
anyway) and if not found get the "last price" from the real-time shm
buffer's latest 'close' sample.

Unrelatedly, use a `subs.copy()` in the `Router.client_broadcast()` loop
such that if a `client_stream` is popped on connection failure, we don't
RTE for the "size changed on iteration".
goodboy force-pushed ems_no_last_required from 4bef6677a7 to 60390ae596 2025-02-21 21:25:32 +00:00 Compare
goodboy changed title from ems_no_last_required: don't require `last` field to boot dark-pool engine to ems_no_last_required: don't require `last` field to boot dark-pool engine 2026-01-01 20:10:51 +00:00
goodboy changed target branch from tsp_gaps to main 2026-01-01 20:10:51 +00:00
goodboy merged commit a00e9c0e64 into main 2026-01-01 20:15:57 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: pikers/piker#38
There is no content yet.