Repository navigation
Closed as not planned
Labels
enhancementNew feature or request
Description
Context
Eric now has Polymarket access, so QuantWeather needs a first-class Polymarket venue path alongside the existing Kalshi integration. Start with configuration and runtime visibility before touching market data or order placement.
Relevant docs:
Current state:
quantweather_execution.api.ExecutionAPI.runtime_status()returns Polymarket as{ connected: false, mode: "not_configured" }.ExecutionConfigonly has Kalshi-specific venue configuration.- Dashboard already displays a Polymarket venue status slot, but it cannot reflect real Polymarket setup yet.
Work
- Add Polymarket config fields to
ExecutionConfigandload_config():- public data enabled flag
- trading enabled flag
- Gamma API base URL
- Data API base URL
- CLOB API base URL
- wallet / API-key env var names needed for authenticated CLOB trading
- dry-run safety interaction with
QW_EXEC_DRY_RUN
- Add a Polymarket runtime status object parallel to the Kalshi status object:
connectedmodemarket_data_connectedtrading_authenticatedtrading_enabledmessage
- Keep all trading disabled unless both dry-run is off and a dedicated Polymarket trading flag is enabled.
- Document required environment variables without committing credentials.
- Add tests for default/off, public-data-only, and trading-env-present status states.
Acceptance criteria
- With no Polymarket env vars, the dashboard shows Polymarket as not configured without errors.
- With public market data enabled, runtime status can report a public-data-ready state without trading auth.
- Trading status remains locked unless explicit trading enablement and credentials are present.
- Tests cover config loading and runtime status rendering.
Notes
The official docs split Polymarket APIs by domain: Gamma for markets/events, Data for positions/trades/activity, and CLOB for orderbooks plus trading. Authenticated CLOB trading is a separate credential/header flow, so this issue should not attempt order placement.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity