kucoin_and_binance_fix #9

Open
ntorres wants to merge 4 commits from kucoin_and_binance_fix into nix-qt6-fix

4 Commits (310_plus)

Author SHA1 Message Date
Tyler Goodlet 27df649fbf .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".
2024-10-09 16:04:34 -04:00
Tyler Goodlet df34791d2f `kucoin`: repair live quotes streaming..
This must have broke at some point during the new `MktPair` and thus
`.fqme: str` updates; mas-o-menos the symbol key in the quote-msg-`dict`
was NOT set to the `MktPair.bs_fqme: str` value and thus wasn't being
processed by the downstream sampling and feed subsys.

So fix that as well as a few other refinements,
- set the `topic: mkt.bs_fqme` in quote msgs obvi.
- drop the "wait for first clearing vlm" quote poll loop; going to fix
  the sampler to handle a `first_quote` without a `'last'` key.
- add some typing around calls to `get_mkt_info()`.
- rename `stream_messages()` -> `iter_normed_quotes()`.
2024-10-09 15:58:02 -04:00
Nelson Torres 573268bac1 Deleted settlePlan field from binance FutesPair. 2024-09-23 20:24:12 +00:00
Nelson Torres 9890ab2811 Added missing fields for kucoin.
feeCategory, makerFeeCoefficient, takerFeeCoefficient and st.
2024-09-23 20:21:59 +00:00