Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

Polymarket Longshot Bias Trader

v0.0.3

Systematically trades against longshot bias by selling overpriced low-probability outcomes (buy NO ≤10%) and buying underpriced near-certainties (buy YES ≥88...

0· 178·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for diagnostikon/polymarket-longshot-bias-trader.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Polymarket Longshot Bias Trader" (diagnostikon/polymarket-longshot-bias-trader) from ClawHub.
Skill page: https://clawhub.ai/diagnostikon/polymarket-longshot-bias-trader
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install polymarket-longshot-bias-trader

ClawHub CLI

Package manager switcher

npx clawhub@latest install polymarket-longshot-bias-trader
Security Scan
Capability signals
CryptoCan make purchasesRequires sensitive credentials
These labels describe what authority the skill may exercise. They are separate from suspicious or malicious moderation verdicts.
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Suspicious
medium confidence
Purpose & Capability
The skill's name, description, and trader.py all align: it discovers markets and places trades to exploit longshot bias. However clawhub.json declares a required SIMMER_API_KEY and a pip dependency on 'simmer-sdk' while SKILL.md states 'no external API required' (which is misleading). Requiring a market/trading API is appropriate for this purpose, but the documentation omission is an inconsistency.
Instruction Scope
SKILL.md and trader.py limit behavior to market discovery, signal computation, and trade execution. The code enforces a paper-trading default (no --live) and contains market gating (spread, volume, days-to-resolve). It does not instruct reading unrelated files or exfiltrating data.
Install Mechanism
There is no explicit install script included, but clawhub.json lists a pip dependency ('simmer-sdk'). That is a normal distribution channel, but no package version is pinned and the skill source/homepage are missing. Confirm where 'simmer-sdk' will be installed from (PyPI or other) and review that package before allowing installation.
Credentials
The only required credential declared in clawhub.json is SIMMER_API_KEY, and trader.py reads a set of SIMMER_* tunables. These variables are proportional to a trading client that needs API access. The concern is SKILL.md did not document the API requirement, so a user could install without realizing an API key is needed (and what permissions that key grants).
Persistence & Privilege
The skill is not marked always:true and autostart is false. disable-model-invocation is the platform default (agent may invoke autonomously), which is expected for a trading skill. Automaton entrypoint is trader.py, which is appropriate for a managed trading component.
What to consider before installing
This skill appears to implement the advertised longshot-bias trading strategy, but take these precautions before installing: - Confirm the SIMMER_API_KEY: clawhub.json requires it; SKILL.md fails to mention it. Ask the publisher what permissions the key needs (paper-only vs. live trading) and whether it can be scoped to allow only paper trades. - Inspect the 'simmer-sdk' package: the skill depends on this pip package but no version or upstream source is provided. Verify it comes from a trustworthy registry (PyPI) and review its code or maintainers. - Verify live vs paper behavior: the code defaults to paper trading, but a --live option can make real trades. Ensure the platform prevents accidental use of live credentials or requires explicit confirmation. - Source provenance: there is no homepage or publisher info. If you plan to run against real money, ask for a canonical source repo, release notes, and an author identity you trust. - If possible, run the skill in a sandboxed environment with limited API credentials (read-only or paper-trade scope) and audit its network calls before granting broader access. These issues make the package internally inconsistent (documentation vs. declared requirements) — sensible to treat it as suspicious until the above clarifications are provided.

Like a lobster shell, security has layers — review code before you run it.

latestvk978qd65yas2mbmg24y507t9f985q8m4
178downloads
0stars
4versions
Updated 6h ago
v0.0.3
MIT-0

Longshot Bias Trader

This is a template. The default signal is purely price-based — no external API required. The skill discovers liquid markets across all categories, identifies extreme probabilities where behavioral mispricing is strongest, and trades against the crowd. The skill handles all the plumbing (market discovery, trade execution, safeguards). Your agent provides the alpha.

Strategy Overview

Longshot bias is the single most replicated anomaly in betting market research. First documented by Griffith (1949) in horse racing, it has since been confirmed across sports betting, financial options (the volatility smile is its cousin), and prediction markets.

The core finding: Participants systematically overweight the excitement of low-probability outcomes and underweight the boring reliability of near-certainties.

  • A market priced at 6% is more likely to have a true probability of 2–3% — retail bets the dream.
  • A market priced at 91% is more likely to have a true probability of 95–97% — retail finds it too boring to back fully.

This creates two exploitable edges in opposite directions:

  1. Fade the longshot (buy NO when p is very low): The crowd overprices rare events. Buying NO when p ≤ 10% gives you the opposite side of that overpriced bet.
  2. Back the near-certainty (buy YES when p is very high): The crowd underprices likely outcomes. Buying YES when p ≥ 88% gives you the underpriced side.

These are not directional bets on events — they are structural bets against a known behavioral bias that regenerates in every market, every day.

The Core Insight: Why Longshot Bias Exists

Three behavioral mechanisms drive the bias simultaneously:

1. Probability distortion (Kahneman & Tversky) Humans do not perceive probabilities linearly. We treat 5% as "might happen" and 95% as "probably won't fail." This distorts prices in predictable ways: low probabilities are overweighted, high probabilities are underweighted.

2. Narrative salience A 5% longshot has a compelling story. "Imagine if it happened." Retail pays a premium for the story. A 95% near-certainty is boring — retail won't pay full price for something "obviously going to happen anyway."

3. Skewness preference Small chance of a large gain is psychologically attractive even at negative expected value. This is the same reason people buy lottery tickets. In prediction markets, the NO side of a longshot offers a small chance of a large gain in the other direction — but retail doesn't frame it that way.

Signal Logic

Default Signal: Conviction-Based Extreme Probability Fading

This skill uses inverted thresholds compared to standard prediction market traders:

Standard traderLongshot bias trader
Buy YES when p is low (you think it'll happen)Buy NO when p is low (market overprices the longshot)
Buy NO when p is high (you think it won't happen)Buy YES when p is high (market underprices the certainty)

Step 1 — Market discovery: Broad keyword sweep across all high-liquidity categories (politics, crypto, sports, macro, tech, geopolitics). Longshot bias is category-agnostic — it exists wherever retail trades.

Step 2 — Signal gates:

  • Spread ≤ MAX_SPREAD (wide spreads eat the edge)
  • Days to resolution ≥ MIN_DAYS (avoid near-resolution noise where convergence may have already started)

Step 3 — Signal direction:

  • p ≤ LONGSHOT_THRESHOLD → buy NO (fade the overpriced longshot)
  • p ≥ CERTAINTY_THRESHOLD → buy YES (back the underpriced near-certainty)
  • Between thresholds → skip

Step 4 — Conviction sizing:

For NO (fading longshot):

conviction = (LONGSHOT_THRESHOLD - p) / LONGSHOT_THRESHOLD

At p=0%: conviction=1.0 → MAX_POSITION. At p=LONGSHOT_THRESHOLD: conviction=0.0 → MIN_TRADE floor.

For YES (backing near-certainty):

conviction = (p - CERTAINTY_THRESHOLD) / (1 - CERTAINTY_THRESHOLD)

At p=100%: conviction=1.0 → MAX_POSITION. At p=CERTAINTY_THRESHOLD: conviction=0.0 → MIN_TRADE floor.

Step 5 — Quality multiplier (_longshot_quality_mult):

Three factors adjust conviction up or down:

FactorWhat it capturesRange
Depth of mispricingDeeper longshots / higher certainties are more mispriced1.00 → 1.25x
Narrative salienceEmotionally charged framing inflates longshot prices further1.00 → 1.15x
Resolution clarityObjective criteria → cleaner edge; vague criteria → noise0.90 → 1.05x

Combined and capped at 1.30x.

How Sizing Works

With defaults (LONGSHOT_THRESHOLD=10%, CERTAINTY_THRESHOLD=88%, MIN_TRADE=$5, MAX_POSITION=$30):

Fading longshots (buy NO):

Market price pConvictionSize
10% (at threshold)0%$5 (floor)
7%30%$9
4%60%$18
1%90%$27
0%100%$30

Backing near-certainties (buy YES):

Market price pConvictionSize
88% (at threshold)0%$5 (floor)
92%33%$10
96%67%$20
99%92%$28

Keywords Monitored

president, election, congress, senate, federal reserve, rate cut, rate hike,
inflation, recession, gdp, unemployment,
bitcoin, ethereum, crypto, btc, eth,
championship, world cup, super bowl, nba finals, world series,
premier league, champions league,
ipo, acquisition, merger, bankruptcy, earnings,
agi, artificial intelligence, gpt, clinical trial, fda,
ceasefire, sanctions, invasion, treaty, nato

Remix Signal Ideas

  • Calibration data from historical Polymarket markets: If resolved markets show that markets priced at 5% resolved YES only 1.5% of the time, you have a precise expected-value edge to trade against — replace keyword thresholds with a calibration curve
  • Cross-category calibration: The bias is stronger in some categories (sports, celebrity) than others (macro, crypto) — weight conviction by category-specific historical overpricing rates
  • Volume filter on longshots: Very low-volume longshots may be mispriced for liquidity reasons rather than behavioral reasons — add a minimum volume gate specifically for sub-10% markets to separate behavioral edge from illiquidity risk
  • Resolution source quality: Markets resolving via a single authoritative source (official election results, exchange close price) have cleaner edge than markets resolving via "admin discretion" — apply a resolution clarity multiplier to the conviction
  • Temporal decay toward resolution: As a market approaches resolution, the bias should compress (less time for narrative to accumulate). Wire in a decay function: mult *= max(0.7, days_to_resolution / 30) to reduce size as markets near their end date

Safety & Execution Mode

The skill defaults to paper trading (venue="sim"). Real trades only with --live flag.

ScenarioModeFinancial risk
python trader.pyPaper (sim)None
Cron / automatonPaper (sim)None
python trader.py --liveLive (polymarket)Real USDC

autostart: false and cron: null — nothing runs automatically until you configure it in Simmer UI.

Required Credentials

VariableRequiredNotes
SIMMER_API_KEYYesTrading authority. Treat as high-value credential.

Tunables (Risk Parameters)

All declared as tunables in clawhub.json and adjustable from the Simmer UI.

VariableDefaultPurpose
SIMMER_MAX_POSITION30Max USDC per trade (reached at 100% conviction)
SIMMER_MIN_VOLUME10000Min market volume filter — higher bar to ensure genuine behavioral pricing, not illiquidity
SIMMER_MAX_SPREAD0.06Max bid-ask spread (6%) — tight to preserve statistical edge
SIMMER_MIN_DAYS3Min days until resolution — avoid markets where convergence has already started
SIMMER_MAX_POSITIONS10Max concurrent open positions
SIMMER_MIN_TRADE5Floor for any trade (min USDC regardless of conviction)
SIMMER_LONGSHOT_THRESHOLD0.10Buy NO when market probability ≤ this value
SIMMER_CERTAINTY_THRESHOLD0.88Buy YES when market probability ≥ this value

Dependency

simmer-sdk by Simmer Markets (SpartanLabsXyz)

Comments

Loading comments...