⚠ INTERNAL — Operator UX mock · Design preview of V2 development path · demo-wired ≠ production-live · back to dev guide
Polygon · pUSD 10
📓 Developer Guide 📋 Reason Codes 📈 Shadow Mode
JD John Doe · Admin

DuplicateMarketDetector

disc.duplicatemarketdetector
Market Discovery planned Spec started frozen

Detect semantically identical or dangerously overlapping Polymarket markets to prevent accidental correlated exposure and to surface cross-market arbi

What it does

Detect semantically identical or dangerously overlapping Polymarket markets to prevent accidental correlated exposure and to surface cross-market arbitrage opportunities. Emits ObservationReports tagging each duplicate cluster with a similarity score.

Pipeline placement

runs after: MarketScanner and MarketQualityRanker DuplicateMarketDetector runs before: Strategy OrderIntent generation

Applies to: All active Polymarket markets with similar question text or resolution criteria

Why it matters

If this failsConsequence
Duplicate markets not detectedA strategy may take independent positions on two semantically identical markets, creating unintended double exposure that bypasses position-size limits.
Near-duplicate neg-risk bundles missedNeg-risk outcome tokens across overlapping events can create correlated risk that is not visible from individual market inspection alone.

Inputs

Polymarket inputs

InputSourceRequiredUse
Market title, rules text, resolution source, and resolution dateGamma APIrequiredPrimary inputs for NLP-based semantic similarity computation.
Condition_id metadata and outcome-token listGamma APIrequiredIdentify neg-risk bundles that share outcome tokens across events.
Neg-risk flag and enableNegRisk statusGamma APIoptionalApply enhanced overlap detection for neg-risk market groups.

Internal inputs

InputSourceRequiredUse
MarketScanner candidate listdisc.marketscannerrequiredScope duplicate detection to tradable markets only.
KillSwitch active flagrisk.kill_switchrequiredSuppress emissions when KillSwitch is active.

Authority

What this bot is permitted to do

Read-only Recommend

State

Readiness

Spec started

Status

planned

Class

Signal Service

Default mode

shadow_only

Developer owner

Polytraders core — Intelligence pod

Capital impact

Indirect

Reason codes emitted

CodeSeverityMeaningAction
DUPLICATE_DETECTEDINFOTwo or more markets have been clustered as semantically identical.Emit ObservationReport with cluster details; downstream bots use this to suppress correlated positions.
POTENTIAL_OVERLAPWARNMarkets are similar but not identical; similarity between warning and default threshold.Emit ObservationReport with POTENTIAL_OVERLAP annotation.
LARGE_CLUSTER_WARNWARNCluster exceeds max_cluster_size, suggesting a data quality issue.Emit with LARGE_CLUSTER_WARN flag; escalate for manual review if require_manual_review=true.
STALE_MARKET_DATAHARD_REJECTGamma API or embedding model unavailable; detection cycle halted.Halt cycle; retry on next interval.
KILL_SWITCH_ACTIVEHARD_REJECTKillSwitch is active; all emissions suppressed.Return immediately.

Used by

Reverse index — strategies that currently reference disc.duplicatemarketdetector. If you change this bot's authority or reason codes, these strategies must re-pass shadow.

StrategyStateActivity
US Elections — sentiment fadedemo-wiredlast triggered 14m ago

Showing 1 of 1 · demo-wired ≠ production-live

Why this matters

Market Discovery bots does NOT propose or execute trades; only scores and ranks. Understanding the authority boundary prevents misuse and makes promotion-gate reviews faster and more reliable. View raw spec JSON →
Polytraders Operator UX Mock · INTERNAL · demo-wired ≠ production-live · the plan · reason codes · shadow-mode pipeline
⚙ Page Configuration
Current page settings
Loading configuration…