⚠ 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

OpportunityQueue

disc.opportunityqueue
Market Discovery planned Spec started frozen flagship

Maintain a ranked queue of the best candidate markets per registered strategy type by combining MarketQualityRanker scores, EventCalendarMapper proxim

What it does

Maintain a ranked queue of the best candidate markets per registered strategy type by combining MarketQualityRanker scores, EventCalendarMapper proximity signals, and per-strategy fit-scores into a single ordered list that strategies consume without re-running discovery.

Pipeline placement

runs after: MarketQualityRanker and EventCalendarMapper OpportunityQueue runs before: Strategy OrderIntent generation

Applies to: All markets that have passed quality scoring

Why it matters

If this failsConsequence
Strategies independently re-rank marketsEach strategy duplicates discovery logic, wasting compute and producing inconsistent rankings across the system.
Existing positions not suppressedA strategy may generate a new intent on a market where the user already has an open position, causing unintended double-up exposure.

Inputs

Polymarket inputs

InputSourceRequiredUse
Top-of-book size and current spreadCLOB + ws_marketrequiredRefresh queue entries with current execution cost estimates.

Internal inputs

InputSourceRequiredUse
MarketQualityRanker ObservationReportsdisc.marketqualityrankerrequiredBase quality score for each queue entry.
EventCalendarMapper ObservationReportsdisc.eventcalendarmapperoptionalBoost ranking for markets near a calendar event.
Open positions per market (double-up suppression)exec.position_trackeroptionalSuppress markets where the user already has an open position if suppress_existing_position=true.
KillSwitch active flagrisk.kill_switchrequiredFreeze queue and suppress 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
STALE_QUEUEWARNMarketQualityRanker reports are older than 2× refresh_interval_s; queue frozen.Freeze queue; emit STALE_QUEUE warning; notify downstream strategies.
QUEUE_TOO_SHALLOWWARNActive queue depth has dropped below the warning threshold.Log warning; relax strategy_filters if configured to do so.
KILL_SWITCH_ACTIVEHARD_REJECTKillSwitch is active; queue frozen and emissions suppressed.Return immediately without emitting any reports.
PARAMETER_CHANGE_REQUIRES_APPROVALHARD_REJECTqueue_depth or refresh_interval_s below locked hard minimum.Reject config change; do not apply.

Used by

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

StrategyStateActivity
BTC weekly — close-aware quotesdemo-wiredlast triggered 9m 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…