Skip to content

Fix orderbook display to show best prices first - #90

Closed
superbroker1 wants to merge 1 commit into
Polymarket:mainfrom
superbroker1:fix-issue-75-efa2bf
Closed

superbroker1 wants to merge 1 commit into
Polymarket:mainfrom
superbroker1:fix-issue-75-efa2bf

Conversation

@superbroker1

@superbroker1 superbroker1 commented Oct 23, 2026 •

Copy link
Copy Markdown

Fixes #75

Reverses the orderbook display so best bid and best ask appear at the top of their respective tables, matching standard exchange UI conventions. JSON output preserves API order for backward compatibility.


Note

Low Risk
CLI table display only; JSON and API data paths are untouched.

Overview
Table order book output now reverses bid and ask rows before rendering so the best prices appear at the top of each table, matching typical exchange order book UIs.

JSON output is unchanged—it still serializes the API response as-is for backward compatibility.

Reviewed by Cursor Bugbot for commit 741f5b8. Bugbot is set up for automated code reviews on this repo. Configure here.

@superbroker1 superbroker1 closed this by deleting the head repository Oct 23, 2026
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.

polymarket clob book: orderbook table shows worst prices first (best bid/ask buried at bottom)

1 participant