⚠ 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

Cross-Market Arb

strat.cross-market-arb
Strategy beta Limited live frozen

Cross-Market Arb detects logically constrained relationships between pairs of Polymarket binary markets — e.

What it does

Cross-Market Arb detects logically constrained relationships between pairs of Polymarket binary markets — e.g. 'Candidate A wins primary' should price at or below 'Candidate A wins general', or 'Team X advances to semi-final' should price at or below 'Team X wins tournament'. When the logical constraint is violated by more than tolerance_bps (after fee buffer), the bot emits a pair of OrderIntents (one per market) to exploit the mispricing. Market pairs must pass manual review before the bot will trade them (require_manual_pair_review=true). This is a user-controlled execution tool; it does not copy trades or make performance claims.

Pipeline placement

runs after: Market scanner / opportunity feed Cross-Market Arb runs before: Risk guardrail pipeline

Applies to: Manually reviewed pairs of binary markets with logical price constraints (e.g. nominee ≤ winner, team advances ≤ tournam

Why it matters

If this failsConsequence
Logically distinct markets paired incorrectlyA pair that looks logically constrained but has different resolution conditions may diverge legitimately. Trading a false constraint produces losses when both markets resolve consistently with their actual rules.
One market resolves while the paired order is still restingIf market A resolves YES and the paired market B order has not filled, the bot holds a one-sided position with no offsetting settlement path.
Tolerance_bps too tight on high-spread marketsThe bot may fire on transient spread noise rather than genuine constraint violations, incurring fee costs with no structural edge.
feeRateBps present on signed order (V1 pattern)CTFExchangeV2 rejects orders with feeRateBps. Fees are operator-set at match time. No leg intent may contain this field.

Inputs

Polymarket inputs

InputSourceRequiredUse
Best bid/ask for each market in registered pairsws_market (CLOB WebSocket)requiredMonitor for constraint violations: p_market_A > p_market_B + tolerance_bps when A implies B.
Market metadata: condition ID, outcome token IDs, resolution rules, categorygammarequiredValidate that pair logic and resolution conditions align before registering a market pair.
Market open/closed/resolved statusclob_publicrequiredSkip pairs where either market is closed or resolved; cancel resting legs immediately.
Top-of-book depth on both marketsclob_publicrequiredSize each leg to min(depth, per-leg budget from liquidity budget).
Embedding-based similarity score (e5-large-v2 or similar)internaloptionalCross-check that proposed pair markets are semantically related; flag low-similarity pairs for human review.

Internal inputs

InputSourceRequiredUse
KillSwitch active flagKillSwitchrequiredAbort all intent emission immediately if KillSwitch is active.
Registered market-pair registry (manually reviewed)internal configrequiredBot only evaluates pairs in the approved registry. Pairs require human review before entry.
Builder code bytes32internal configrequiredInjected into builder field on every signed V2 OrderIntent.

Authority

What this bot is permitted to do

Trade

State

Readiness

Limited live

Status

beta

Class

Alpha Strategy

Default mode

limited_live

Developer owner

Polytraders core — Strategy pod

Capital impact

Direct

Reason codes emitted

CodeSeverityMeaningAction
CROSS_MARKET_ARB_EDGE_DETECTEDINFOLogical constraint violation exceeds tolerance_bps after fee buffer. Paired OrderIntents emitted.Emit two FOK OrderIntents (one per market in the pair).
CROSS_MARKET_ARB_NO_EDGEINFOViolation is below the 5 bps hard floor. No trade opportunity exists after fees.Skip; emit sampled DecisionReport.
CROSS_MARKET_ARB_VIOLATION_MARGINALWARNViolation is between 5 and 30 bps (warning threshold). Trade is marginal.Emit OrderIntents at 50% leg size; log warning.
CROSS_MARKET_ARB_PAIR_NOT_APPROVEDHARD_REJECTMarket pair is not in the manually reviewed approved registry.Skip; no OrderIntents emitted.
CROSS_MARKET_ARB_LOW_SIMILARITYWARNEmbedding similarity score for the proposed pair is below min_similarity_score warning threshold.Block pair auto-registration; require additional manual review.
STALE_MARKET_DATAHARD_REJECTBook snapshot older than 5s for either market in the pair.Skip; no OrderIntents; cancel resting legs if any.
MARKET_CLOSEDHARD_REJECTEither market in the pair is closed or resolved.Skip; cancel resting legs; deactivate pair until re-reviewed.
KILL_SWITCH_ACTIVEHARD_REJECTGlobal kill switch is active.Skip all pairs; no OrderIntents emitted.
PARAMETER_CHANGE_REQUIRES_APPROVALHARD_REJECTA config change would push a parameter past its locked hard limit.Reject config change; do not apply.

Used by

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

StrategyStateActivity
NBA props — line-shopdemo-wiredlast triggered 47m ago
Crypto Q2 — basket rebalancefrozenlast triggered 7m ago

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

Why this matters

Strategy bots does NOT sign, route, or directly submit orders to the chain. 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…