Installation Issues
polymarket: command not found
polymarket: command not found
Symptoms:Causes:
- The
polymarketCLI is not installed - The binary is not on your system
PATH - Installation failed or is incomplete
-
Install the CLI (macOS/Linux via Homebrew):
-
Verify installation:
-
Check your PATH:
- Restart your terminal after installation to refresh the PATH.
Python not found or wrong version
Python not found or wrong version
Symptoms:Solution:The chart script requires Python 3.9 or later.
-
Check Python version:
-
Install Python 3.9+:
- macOS:
brew install [email protected] - Ubuntu/Debian:
sudo apt-get install python3.9 - Fedora:
sudo dnf install python3.9
- macOS:
-
Use the full path if needed:
Lookup Errors
404 error on event/market lookup
404 error on event/market lookup
Symptoms:Cause: Using the wrong command namespace for the resource type.Solution:Use the command that matches the URL path:Ambiguous slug? Try
- Event URL (
/event/) →polymarket events get <slug> - Market URL (
/market/) →polymarket markets get <slug>
events get first. If that returns 404, try markets get.Invalid slug format
Invalid slug format
Symptoms:Cause: The slug contains invalid characters or formatting.Solution:Incorrect:
-
Extract the slug correctly from the URL:
- Take only the last path segment
- Example:
https://polymarket.com/event/democratic-presidential-nominee-2028 - Slug:
democratic-presidential-nominee-2028
-
Don’t include:
- The domain (
polymarket.com) - The path prefix (
/event/or/market/) - Query parameters (
?anything=value) - Trailing slashes
- The domain (
Search and Query Errors
422 error when searching markets
422 error when searching markets
Symptoms:Cause: Using snake_case instead of camelCase for the Valid order values:
--order parameter.Solution:Use camelCase for all order values:volumeNumliquidityNumendDate
Token ID and Price History Issues
No price history returned
No price history returned
Symptoms:Causes:
- Using hex token ID instead of decimal
- Invalid token ID
- Market has no trading history
-
Get the decimal token ID from CLOB market command:
-
Don’t use hex format:
-
Verify the token ID exists:
Token ID conversion errors
Token ID conversion errors
Symptoms:
Incorrect or mismatched token IDs when converting from hex to decimal.Solution:Don’t convert manually. Always get decimal token IDs directly from the CLOB API:The Remove the
tokens array contains decimal token_id values you can use directly.If you must convert from hex:0x prefix and any leading zeros:Chart Generation Issues
Browser does not open automatically
Browser does not open automatically
Symptoms:
Chart script runs successfully but no browser window opens.Solution:Open the HTML file manually:The chart script prints the full path to the generated HTML file. Copy and paste it into your browser.
Chart script module errors
Chart script module errors
Symptoms:Cause: Missing Python dependencies.Solution:Install required modules:Or if using a virtual environment:
Chart shows no data
Chart shows no data
Symptoms:
Chart opens but is blank or shows “No data available.”Causes:
- Invalid token ID
- Market has no trading history
- Network connectivity issues
-
Verify the token ID:
-
Check price history manually:
-
Check network connectivity:
Data Analysis Errors
Empty trades array for wallet
Empty trades array for wallet
Symptoms:Causes:These wallets obtained tokens via CTF splits, not purchases, so they have no trade history.
- Wallet has no trading history (might be an infrastructure wallet)
- Invalid wallet address
- Wallet hasn’t traded on Polymarket
- Empty trades array
[] - Very large portfolio value (millions or billions)
- Only YIELD activity in history
- Average price of $0 on all positions
- Identical token amounts across all outcomes
Holder data seems incorrect
Holder data seems incorrect
Symptoms:
Top holders show unexpected addresses or values.Cause: Data includes infrastructure wallets alongside real traders.Solution:Filter out infrastructure wallets when analyzing holders:
-
Get holder data:
-
For each holder, check trade history:
-
Skip wallets with:
- Empty trades array
- Identical YES/NO position sizes
- Billions in total value
Network and API Issues
Connection timeout or network errors
Connection timeout or network errors
Symptoms:Solutions:
-
Check internet connectivity:
-
Verify Polymarket API is accessible:
-
Check for firewall/proxy issues:
- Corporate networks may block Polymarket APIs
- VPNs may interfere with connections
- Try temporarily disabling VPN/proxy
-
Increase timeout (if CLI supports it):
Rate limiting errors
Rate limiting errors
Symptoms:Cause: Making too many API requests in a short time period.Solutions:
-
Add delays between requests:
- Reduce request frequency in scripts
- Cache results to avoid repeated lookups
-
Wait and retry:
Getting Help
Where to get more help
Where to get more help
If you’re still experiencing issues:
-
Check the CLI help:
- Review the official documentation:
-
Check for updates:
-
Common debugging steps:
- Run with
-o jsonfor structured output - Check the exact error message
- Verify all prerequisites are installed
- Test with a known-working example
- Run with
-
Create a minimal reproduction: