Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.
This repository was archived by the owner on May 11, 2026. It is now read-only.

AFCON Tournament: Gamma API marks ended matches and eliminated teams as active/accepting orders #199

Description

@boniface

Summary

Several sports markets that are not live on polymarket.com are still reported by the Gamma API as active=true, closed=false, and
acceptingOrders=true. This makes it impossible for SDK consumers to reliably hide finished games or eliminated teams without heuristics.

Environment

Steps to Reproduce

  1. GET https://gamma-api.polymarket.com/markets/slug/acn-sen-egy-2026-01-14-total-1pt5
  2. GET https://gamma-api.polymarket.com/markets/slug/acn-sen-egy-2026-01-14-btts
  3. GET https://gamma-api.polymarket.com/markets/slug/will-egypt-win-the-caf-africa-cup-of-nations-morocco-2025

Observed

All three return active=true, closed=false, acceptingOrders=true.

acn-sen-egy-2026-01-14-total-1pt5 (UTC 2026-01-14T19:56:01Z)

{
"slug": "acn-sen-egy-2026-01-14-total-1pt5",
"active": true,
"closed": false,
"acceptingOrders": true,
"bestBid": null,
"bestAsk": "0.001",
"lastTradePrice": "0.001",
"events": [
{
"closed": false,
"ended": null,
"live": null,
"gameStatus": null,
"startTime": "2026-01-14T17:00:00Z",
"endDate": "2026-01-14T17:00:00Z"
}
]
}

acn-sen-egy-2026-01-14-btts (UTC 2026-01-14T19:56:01Z)

{
"slug": "acn-sen-egy-2026-01-14-btts",
"active": true,
"closed": false,
"acceptingOrders": true,
"bestBid": null,
"bestAsk": "0.001",
"lastTradePrice": "0.001",
"events": [
{
"closed": false,
"ended": null,
"live": null,
"gameStatus": null,
"startTime": "2026-01-14T17:00:00Z",
"endDate": "2026-01-14T17:00:00Z"
}
]
}

will-egypt-win-the-caf-africa-cup-of-nations-morocco-2025 (UTC 2026-01-14T19:56:01Z)

{
"slug": "will-egypt-win-the-caf-africa-cup-of-nations-morocco-2025",
"active": true,
"closed": false,
"acceptingOrders": true,
"bestBid": null,
"bestAsk": "0.001",
"lastTradePrice": "0.001",
"outcomePrices": ["0.0005", "0.9995"],
"umaResolutionStatus": "proposed",
"automaticallyResolved": null
}

Expected

  • Finished games should have clear status flags (closed=true, ended=true, or acceptingOrders=false).
  • Eliminated team winner markets should be marked closed/resolved or explicitly flagged.
  • If such flags exist, please document them for SDK consumers.

Impact

Third‑party apps using the official SDK cannot reliably match Polymarket’s UI without heuristics. This causes stale/ended markets to appear live/
tradable.

Notes

Polymarket.com does not show these markets as live, but Gamma still reports them as open.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions