sidepit 0.1.1: open-orders API, wallet meter, clearer terminal copy - #15
Merged
Conversation
The bridge refreshed its Open Orders panel with snapshot_sync every 10s, making the engine broadcast the ENTIRE order book on 12129 as a per-account refresh (seen in production worker_snapshot logs at ~12.8s cadence). Open orders are now the remaining>0 subset of the POSITIONS reply's orderfills — the per-account door the bridge already polls every 3s — and the 12129 snapshot path is removed from the TUI entirely. Post-submit refresh accelerates the account poll instead. Two regression tests pin the behavior. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Bump sidepit to 0.1.1 (root package and python-client subset kept in step) and record the candidate in DISTRIBUTION.md. The only behavior change since v0.1.0 is 6c0e2f6: the cockpit TUI derives open orders from the account's POSITIONS reply and never triggers the 12129 whole-book snapshot. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HnPbE6DzqEyuWyFaaJmF9K
… local-run docs - doggie: the dollars/bitcoin bar is now scaled by the exchange's margin (available_margin / maint_margin = room in your direction; reach either side = room + |position|), dot at your position, neutral LONG at zero, MAX at the limits; RC_MARGIN rejections pin MAX briefly. Bridge captures maint/initial margin from ACTIVE_PRODUCT. Even spacing; footer without "at market price". - `sidepit positions [bc1q…]`: keyless raw dump of the POSITIONS reply (protobuf text) for debugging; default = the active wallet. - Drop "IOC" from every user-facing string: market orders "fill what they can in the next auction, the rest cancels". - README: environment, requirements and how to run the TUI from a local checkout (the venv, `pip install -e .`, the ModuleNotFoundError case). - Tests: doggie meter fixture from Jay's live numbers; positions dump; copy. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HnPbE6DzqEyuWyFaaJmF9K
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
sidepit 0.1.1
sidepit positions [address]: print an account's POSITIONS reply for inspection.