polymarket-ai-trading-codex-and-claude-bot README

The project's README from github.com/pmarket-14/polymarket-ai-trading-codex-and-claude-bot. As one markdown file: README.md.


๐Ÿ“ฆ CLICK FOR DOWNLOAD NOW DOWNLOAD NOW

The download will start automatically when you open the link in your browser.


๐Ÿ“ธ Screenshots Visitors: 10K+ Subscribers: 3K+ Last Updated: today


Polymarket CodeX CopyTrading Bot

Written and optimized by codex-6.1sol using TypeScript, it is capable of generating real profits.

This is trading software. Run npm run test first, use tiny sizes, and review every config value before using npm start.

Requirements

The bot uses the non-beta CLOB package @polymarket/clob-client-v2 for trading and the public Data API for wallet activity polling.

Edit .env:

Live Trading

POLYMARKET_CLOB_HOST=https://clob.polymarket.com
POLYMARKET_CHAIN_ID=137
POLYMARKET_SIGNATURE_TYPE=POLY_1271
POLYMARKET_PRIVATE_KEY=0x...
POLYMARKET_DEPOSIT_WALLET=0x...

POLYMARKET_SIGNATURE_TYPE accepts EOA, POLY_PROXY, POLY_GNOSIS_SAFE, or POLY_1271. For new deposit-wallet users, POLY_1271 is usually the right value. For EOA trading, POLYMARKET_DEPOSIT_WALLET can be omitted.

You can also provide existing L2 credentials to avoid deriving them on startup:

CLOB_API_KEY=...
CLOB_SECRET=...
CLOB_PASS_PHRASE=...

The executor uses createAndPostMarketOrder. Before live trading, your trading wallet still needs funds and the required Polymarket approvals; this bot does not try to deploy wallets or auto-approve spending.

Copy Modes

Fixed mode:

COPY_MODE=fixed
FIXED_BUY_AMOUNT_USD=5
FIXED_SELL_AMOUNT_USD=5

Percentage mode:

COPY_MODE=percentage
COPY_PERCENTAGE=0.10

For buys, percentage mode copies a percentage of the followed trade's USD notional. For sells, it copies a percentage of the followed sell shares, capped by your locally tracked position.

Risk Controls

MIN_ORDER_USD=1
MAX_ORDER_USD=25
MAX_POSITION_USD_PER_TOKEN=100
DAILY_MAX_NOTIONAL_USD=250
ORDER_TYPE=FAK
PRICE_PROTECTION_BPS=0

FAK allows partial fills and cancels the rest. FOK requires the full order to fill or fail.

PRICE_PROTECTION_BPS=0 lets the CLOB client estimate the marketable worst price. If set, buy orders get a worst-price limit above the followed fill price, and sells get one below it.

State

State is stored in:

./data/state.json

Positions are approximate because market orders can partially fill. For production use, add a periodic reconciliation job against the Data API /positions endpoint for POLYMARKET_DEPOSIT_WALLET.

File Map

src/config.ts                  .env parsing and safety checks
src/index.ts                   main polling loop
src/polymarket/dataApi.ts      direct public Data API reads
src/watchers/walletWatcher.ts  multi-wallet activity polling
src/polymarket/tradeParser.ts  activity event normalization
src/strategy/copyStrategy.ts   fixed/percentage copy sizing
src/strategy/riskManager.ts    min/max, daily, and position limits
src/polymarket/orderExecutor.ts dry-run/live execution
src/storage/stateStore.ts      local JSON state

polymarket-ai-trading-codex-and-claude-bot (pmarket-14/polymarket-ai-trading-codex-and-claude-bot)

Searching Databaseโ€ฆ

  ๐Ÿ“ฆ CLICK FOR DOWNLOAD NOW | DOWNLOAD NOW | |---------------------|----------------------:|

Creator
pmarket-14
Size
0.2 MB
Stars
133
Updated
CommitOct 20
Age
7d
Commits ยท 90 Days