Skip to content

sidepit 0.1.1: open-orders API, wallet meter, clearer terminal copy - #15

Merged
jaybny merged 3 commits into
mainfrom
tui-snapshot-fix
Sep 10, 2026
Merged

sidepit 0.1.1: open-orders API, wallet meter, clearer terminal copy#15
jaybny merged 3 commits into
mainfrom
tui-snapshot-fix

Conversation

@jaybny

@jaybny jaybny commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

sidepit 0.1.1

  • Terminal reads open orders through the account POSITIONS API; cleaner display.
  • Wallet view: the dollars/bitcoin meter is scaled by the account's available margin, with the current position marked.
  • sidepit positions [address]: print an account's POSITIONS reply for inspection.
  • Plainer wording for market orders throughout the terminal.
  • README: environment, requirements, and running the terminal from a local checkout.

jaybny and others added 3 commits September 9, 2026 17:26
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
@jaybny jaybny changed the title v0.1.1: TUI open orders from POSITIONS, no snapshot broadcasts sidepit 0.1.1: open-orders API, wallet meter, clearer terminal copy Sep 10, 2026
@jaybny
jaybny merged commit 0aadb17 into main Sep 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant