Improve market & order fetching clarity and update README #260
+79
−4
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.


Overview
This PR improves the clarity and usability of the early Polymarket market intelligence MVP, with a focus on making market and order data fetching easier to understand and extend.
Description
What changed
fetch_markets.py.get_orders.pyto expose orderbook and liquidity-related data.README.mdto better describe:All changes are non-breaking and focused on developer experience and faster iteration.
Testing instructions
Run the scripts locally:
python fetch_markets.py
python get_orders.py
Expected behavior
Types of changes
Notes
Status
[WIP]if necessaryNote
Low Risk
Low risk: documentation and example-script updates only; no library/runtime behavior changes beyond how sample code is invoked.
Overview
Adds a new Examples section to
README.mdthat points users to minimal Python scripts for fetching markets, orderbooks, and open orders.Introduces
examples/fetch_markets.py(cursor-based market listing) and tightens existing example scripts with clearer docstrings and properif __name__ == "__main__":entrypoints forget_orderbook.py,get_orderbooks.py, andget_orders.py.Written by Cursor Bugbot for commit fdfc70b. This will update automatically on new commits. Configure here.