Skip to content

Add Polymarket venue configuration and runtime status #1

Closed as not planned

Description

@EricGrill

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" }.
  • ExecutionConfig only 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 ExecutionConfig and load_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:
    • connected
    • mode
    • market_data_connected
    • trading_authenticated
    • trading_enabled
    • message
  • 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.

Activity

  1. added
    enhancement
    on May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ Proxy