This guide covers the most common errors encountered when using PolyClaw and how to resolve them. Errors are grouped by category — start with environment errors if you’re setting up for the first time, or jump to the trading or hedge sections for runtime issues.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/deniszidbaev-cmyk/polyclaw-cmyk/llms.txt
Use this file to discover all available pages before exploring further.
Environment errors
"No wallet available" / "POLYCLAW_PRIVATE_KEY not set"
"No wallet available" / "POLYCLAW_PRIVATE_KEY not set"
POLYCLAW_PRIVATE_KEY environment variable has not been set. PolyClaw cannot sign transactions or authenticate with the CLOB without it.Fix: Export your EVM private key:openclaw.json under skills.polyclaw.env:"CHAINSTACK_NODE not set" / "ValueError: CHAINSTACK_NODE environment variable not set"
"CHAINSTACK_NODE not set" / "ValueError: CHAINSTACK_NODE environment variable not set"
CHAINSTACK_NODE variable:"OPENROUTER_API_KEY not set"
"OPENROUTER_API_KEY not set"
hedge scan and hedge analyze commands, which call an LLM via OpenRouter. Wallet and trading commands do not need it.Fix:nvidia/nemotron-nano-9b-v2:free) is free to use.Trading errors
"Insufficient pUSD: have X, need Y"
"Insufficient pUSD: have X, need Y"
0x93070a847efEf7F70739046A929D47a521F5B8ee — call the wrap() function with the amount of USDC.e you want to convert. The polymarket.com UI does this automatically when you deposit; API-only users must wrap manually.wallet status command shows both balances so you can see exactly what you have."Approvals not set" or trade fails with approval error
"Approvals not set" or trade fails with approval error
"CLOB order failed" / "IP blocked by Cloudflare" (HTTP 403)
"CLOB order failed" / "IP blocked by Cloudflare" (HTTP 403)
splitPosition on-chain transaction has already succeeded. You hold both YES and NO tokens — only the CLOB sell step failed.Fix option 1 (recommended) — Use a rotating residential proxy:CLOB_MAX_RETRIES times, creating a fresh HTTP client (and thus a fresh IP) on each attempt. See the Proxy Setup guide for full details.Fix option 2 — Use --skip-sell and sell manually:"Split failed" / transaction reverted
"Split failed" / transaction reverted
splitPosition transaction was rejected by the CTF contract. Common causes include:- Insufficient POL for gas — the split transaction requires a small amount of POL (typically < 0.01 POL)
- pUSD approval not set — the CTF contract is not approved to spend your pUSD
- Market no longer active — the market has resolved or been paused
- Incorrect collateral amount — rounding or decimal issues with the amount
Hedge scan issues
Hedge scan finds 0 results
Hedge scan finds 0 results
- Expected behavior — The LLM correctly found no logically necessary implications in the scanned markets. PolyClaw’s hedge scanner only accepts strict logical implications (contrapositive logic), not correlations or “likely” relationships. Most market pairs do not qualify, so zero results is the correct and common outcome.
- Model returned invalid JSON — Some models return malformed or empty responses.
--query to narrow the market set:Hedge scan returns too many spurious results (false positives)
Hedge scan returns too many spurious results (false positives)
- DeepSeek R1 — Uses
reasoning_contentin its response format, which causes output parsing failures - Models known to hallucinate causal links will generate high volumes of low-quality results
nvidia/nemotron-nano-9b-v2:free model is free via OpenRouter and produces reliable logical implication analysis.Other issues
Positions not showing up
Positions not showing up
~/.openclaw/polyclaw/positions.json. If this file does not exist (no trades have been executed yet) or was manually deleted, no positions will be shown.The file is created automatically on your first successful trade. Until then, polyclaw positions will return an empty list — this is expected behavior, not an error."Market not found: <slug>" or "404 from Gamma API"
"Market not found: <slug>" or "404 from Gamma API"
Redemption errors after a market resolves
Redemption errors after a market resolves
condition_idnot stored — older positions recorded before PolyClaw tracked this field- Market not yet resolved on-chain — the market may show as resolved on the Polymarket UI before the on-chain settlement is final
- Insufficient POL — redemption requires a small gas fee
condition_id from the Gamma API for positions that are missing it. Check your POL balance with wallet status, and verify the market is fully settled on polymarket.com before redeeming:Still stuck?
If the above steps don’t resolve your issue:- Browse the source code and open an issue at github.com/deniszidbaev-cmyk/polyclaw-cmyk
- PolyClaw is based on Chainstack’s polymarket-alpha-bot, which has its own documentation and community for lower-level Polymarket API questions