Skip to content

Spec drift: polymarket — POST /v1/heartbeats endpoint missing from CLOB spec #534

@realfishsam

Description

@realfishsam

Summary

Polymarket's CLOB API includes a POST /v1/heartbeats endpoint required to keep authenticated WebSocket sessions alive. This endpoint is not present in core/specs/polymarket-clob.yaml and is not called by the PMXT Polymarket adapter.

Impact

MEDIUM — without periodic heartbeat calls, authenticated Polymarket WebSocket connections may be terminated by the server, causing silent disconnects during active trading sessions.

Details

  • Endpoint: POST /v1/heartbeats
  • Authentication: required (L1 auth headers)
  • Request body: empty or {}
  • Response: { status: "ok" }
  • Purpose: resets the server-side inactivity timer for the authenticated session
  • Spec file: core/specs/polymarket-clob.yaml

Required Fix

  1. Add POST /v1/heartbeats to core/specs/polymarket-clob.yaml
  2. Implement periodic heartbeat calls in the Polymarket WebSocket handler or connection manager
  3. Recommended interval: every 15–30 seconds while a session is active

Metadata

Metadata

Assignees

No one assigned

    Labels

    spec-driftCached OpenAPI spec out of date vs venue's live docs

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions