Skip to content

Allow custom Gamma and Data API URLs - #87

Closed
jsj wants to merge 1 commit into
Polymarket:mainfrom
jsj:fix/api-host-overrides
Closed

jsj wants to merge 1 commit into
Polymarket:mainfrom
jsj:fix/api-host-overrides

Conversation

@jsj

@jsj jsj commented Sep 13, 2026 •

Copy link
Copy Markdown

Gamma and Data commands always call production. Custom API URLs let developers test CLI workflows against mock servers or recorded responses without production requests.

Adds POLYMARKET_GAMMA_HOST and POLYMARKET_DATA_HOST, like the existing CLOB override. Also fixes path prefixes with or without a trailing slash.

All 134 tests pass, including local HTTP tests for all three APIs.

@jsj jsj changed the title fix: support Gamma and Data API host overrides Allow local Gamma and Data API URLs Sep 13, 2026
@jsj jsj changed the title Allow local Gamma and Data API URLs Allow custom Gamma and Data API URLs Sep 13, 2026
@jsj jsj closed this Oct 2, 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.

1 participant