Skip to content

Add require_env helper to python-order-utils README example#38

Open
TheAlonze01 wants to merge 1 commit intoPolymarket:mainfrom
TheAlonze01:docs/usage-example-require-env
Open

Add require_env helper to python-order-utils README example#38
TheAlonze01 wants to merge 1 commit intoPolymarket:mainfrom
TheAlonze01:docs/usage-example-require-env

Conversation

@TheAlonze01
Copy link

@TheAlonze01 TheAlonze01 commented Dec 20, 2025

Add a small require_env helper to the README usage example so that
missing EXCHANGE_ADDRESS, CHAIN_ID or PRIVATE_KEY fail with a clear
error instead of a KeyError.


Note

Update README usage to load EXCHANGE_ADDRESS, CHAIN_ID, and PRIVATE_KEY via a new require_env helper instead of hardcoded placeholders.

  • Documentation (README):
    • Add require_env helper for fetching environment variables with clear errors.
    • Replace hardcoded exchange_address, chain_id, and signer setup with env-based values (EXCHANGE_ADDRESS, CHAIN_ID, PRIVATE_KEY), casting CHAIN_ID to int.

Written by Cursor Bugbot for commit a11a523. This will update automatically on new commits. Configure here.

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