Skip to content

Instantly share code, notes, and snippets.

@chen710
chen710 / Place-order-on-current-15m-btc-with-relayer-and-builders-account.py Place order on the current 15m BTC market with the relayer client and builder's credentials.
"""
Create and submit a minimal Polymarket order for smoke-testing credentials.
This script automatically places a limit order on the current BTC 15-minute market.
It supports multiple methods to resolve the token ID:
1. Direct token ID via --token-id or POLYMARKET_TEST_TOKEN_ID env var
2. Auto-discovery via Gamma API (for crypto 15m markets - default: BTC)
DEPENDENCIES:
-------------