⚠ 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

PriceBandValidator

exec.pricebandvalidator
Execution planned Spec started frozen

PriceBandValidator is a fat-finger and decimal-shift catcher.

What it does

PriceBandValidator is a fat-finger and decimal-shift catcher. It rejects or warns on any order priced outside a sanity band relative to the current top-of-book mid, preventing obviously erroneous prices from reaching the CLOB V2 signing step.

Pipeline placement

runs after: SmartRouter (ExecutionPlan assembled) PriceBandValidator runs before: Order signing and CLOB V2 submission

Applies to: Every ExecutionPlan before order signing

Why it matters

If this failsConsequence
Fat-finger price not caughtAn order priced at 0.06 instead of 0.60 submits at a tenfold mispricing, immediately filling against informed counterparties at a large loss.
Decimal shift not detectedA misconfigured strategy submitting pUSD amounts as probabilities (e.g. 45.0 instead of 0.45) creates orders orders of magnitude outside market range.
NegRisk sum-to-one constraint not checkedOrders across a negRisk market group that sum to above 1.0 in probability are fundamentally mis-priced and represent an arb against the strategy.

Inputs

Polymarket inputs

InputSourceRequiredUse
CLOB V2 top-of-book snapshotclob_publicrequiredCompute current mid price for band validation.
Market negRisk flaggammaoptionalApply sum-to-one constraint for negRisk markets.

Internal inputs

InputSourceRequiredUse
ExecutionPlan from SmartRouterexec.smart_routerrequiredValidate plan.price against current mid ± max_offset_from_mid_pct.

Authority

What this bot is permitted to do

Reshape

State

Readiness

Spec started

Status

planned

Class

Execution Utility

Default mode

shadow_only

Developer owner

Polytraders core — Execution pod

Capital impact

Direct

Reason codes emitted

CodeSeverityMeaningAction
PRICE_BAND_PASSINFOOrder price within max_offset_from_mid_pct of current mid.Forward ExecutionPlan to signing.
PRICE_BAND_WARNWARNOrder price between warning and hard threshold; or shadow mode warn-only.Annotate ExecutionPlan; proceed.
PRICE_BAND_BREACHHARD_REJECTOrder price exceeds max_offset_from_mid_pct and action_on_breach=reject.Discard ExecutionPlan; emit no order.
PRICE_BAND_RESHAPEDRESHAPEOrder price snapped to band edge; action_on_breach=reshape.Update plan.price to band edge; forward to signing.
PRICE_BAND_NEGRISK_BREACHHARD_REJECTNegRisk market: sum of outcome leg prices > 1.0.Discard ExecutionPlan.

Used by

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

StrategyStateActivity
Crypto Q2 — basket rebalancefrozenlast triggered 23m ago

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

Why this matters

Execution bots does NOT propose new positions; only routes and shapes approved intents. 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…