You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds CLOB_HOST = "https://clob.polymarket.com" to py_clob_client_v2/constants.py and re-exports it from the top-level package so users can do from py_clob_client_v2 import CLOB_HOST rather than redefining their own.
py_clob_client_v2/__init__.py — re-export and add to __all__
Note
Low Risk
Additive constant and public export only; no runtime or API behavior changes.
Overview
Adds a shared CLOB_HOST (https://clob.polymarket.com) in constants.py and re-exports it from py_clob_client_v2 so callers can import the official CLOB base URL instead of duplicating it locally.
No client or request behavior changes—only a new public constant.
Reviewed by Cursor Bugbot for commit 8ee30d6. Bugbot is set up for automated code reviews on this repo. Configure here.
Quick follow-up: I merged the latest main into this branch and resolved the export conflict in py_clob_client_v2/__init__.py. I verified the touched module with python3 -m py_compile py_clob_client_v2/__init__.py; full pytest could not be run locally because poly_eip712_structs==0.0.1 was not resolvable from PyPI in this environment. From my side the remaining blocker appears to be maintainer review.
Refreshed this PR against the current main with a non-rewriting merge commit.
Verification on the merged tree:
python -m pytest -q: 227 passed
top-level import check: from py_clob_client_v2 import CLOB_HOST
verified CLOB_HOST == https://clob.polymarket.com
The final PR diff remains limited to defining CLOB_HOST in constants.py and re-exporting it from __init__.py. PR #80 was also closed by its author in favor of this earlier contribution.
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
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.
Closes #30
Adds
CLOB_HOST = "https://clob.polymarket.com"topy_clob_client_v2/constants.pyand re-exports it from the top-level package so users can dofrom py_clob_client_v2 import CLOB_HOSTrather than redefining their own.Verification
Files changed
py_clob_client_v2/constants.py— defineCLOB_HOSTpy_clob_client_v2/__init__.py— re-export and add to__all__Note
Low Risk
Additive constant and public export only; no runtime or API behavior changes.
Overview
Adds a shared
CLOB_HOST(https://clob.polymarket.com) inconstants.pyand re-exports it frompy_clob_client_v2so callers can import the official CLOB base URL instead of duplicating it locally.No client or request behavior changes—only a new public constant.
Reviewed by Cursor Bugbot for commit 8ee30d6. Bugbot is set up for automated code reviews on this repo. Configure here.