Skip to content

Conversation

@fciaf420
Copy link

Summary

  • Auto-Claim: Automatically redeem winning positions with Polygon Gas Station V2
  • Dump Sniper: Real-time WebSocket price monitoring for market opportunities
  • Ladder Bot: Fixed signature type support for browser wallets (Gnosis Safe)
  • derive-polymarket-creds.js: Script to auto-generate API credentials

Features Added

Auto-Claim

  • Uses Polygon Gas Station V2 for accurate gas pricing
  • Gnosis Safe signature format for browser wallet users
  • Configurable check intervals (5-60 min)
  • Persists settings via localStorage
  • Shows wallet balance (USDC + POL for gas)

Dump Sniper

  • Real-time WebSocket price monitoring
  • Configurable drop threshold triggers
  • Market limit order execution

Ladder Bot Improvements

  • Signature type support: EOA (0), Magic/Email (1), Browser Wallet (2)
  • Pre-derived API credentials to avoid CPU timeouts
  • Position tracker using public Data API

Developer Experience

  • scripts/derive-polymarket-creds.js auto-populates API credentials
  • Updated documentation for wallet types and signature types
  • Fixed edge function URLs in terminal/.env
  • Added auto-claim.md documentation

Test Results

  • Auto-claim successfully redeemed winning position ($1.14 USDC)
  • Ladder bot places orders with correct signature type
  • API routes properly forward to edge functions
  • Polygon Gas Station V2 returns accurate gas prices (36 gwei)

Files Changed

  • supabase/functions/auto-claim/ - New edge function
  • supabase/functions/polymarket-sniper-order/ - New edge function
  • terminal/src/components/AutoClaimPanel.tsx - New UI component
  • terminal/src/components/DumpSniperTerminal.tsx - New UI component
  • scripts/derive-polymarket-creds.js - New utility script
  • docs/features/auto-claim.md - New documentation
  • Updated betting-bots.md with signature type docs

🤖 Generated with Claude Code

fciaf420 and others added 2 commits December 20, 2025 11:23
- Add ladder betting mode with exponential taper allocation (49% → 35%)
- Add position tracker using public Data API (no auth required)
- Add PositionDashboard component for real-time position monitoring
- Switch from CLOB API to data-api.polymarket.com for positions/activity
- Remove time decay mode (doesn't work for binary markets)
- Simplify limit order bot to ladder-only approach

Key changes:
- client.ts: Add getPositions(), getActivity() using public Data API
- types.ts: Add MarketPosition, SidePosition, PairStatus types
- polymarket-position-tracker: New edge function for tracking fills
- BettingBotTerminal: Add ladder mode UI controls
- PositionDashboard: New component for position visualization

The arb strategy remains: pair cost < 1.00 = guaranteed profit

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add Auto-Claim functionality for winning positions
  - Uses Polygon Gas Station V2 for accurate gas pricing
  - Gnosis Safe signature format for browser wallets
  - Configurable check intervals (5-60 min)
  - Persists settings via localStorage

- Add Dump Sniper bot for market opportunities
  - Real-time price monitoring via WebSocket
  - Configurable drop threshold triggers

- Add derive-polymarket-creds.js script
  - Auto-populates API credentials in .env.local
  - Documents when/how to regenerate

- Update betting-bots.md with signature type docs
- Add auto-claim.md documentation
- Fix edge function URLs in terminal/.env

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant