Skip to content

Conversation

@fciaf420
Copy link

@fciaf420 fciaf420 commented Dec 20, 2025

Summary

  • 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

Why These Changes

After analysis, we determined that only ladder mode works for the arbitrage strategy on 15-minute binary markets:

  • Time decay doesn't help (prices diverge near resolution, not stay 50/50)
  • Rebalancing doesn't work (chasing means paying >50% on other side = loss)
  • Sniper mode doesn't fit (during spikes, one side expensive + one cheap = $1.00)

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

Test Plan

  • Test ladder mode order placement with various bankroll sizes
  • Verify position tracker shows filled orders correctly
  • Confirm PositionDashboard updates in real-time

🤖 Generated with Claude Code

- 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>
@arbitrageprophet
Copy link
Contributor

arbitrageprophet commented Dec 20, 2025

@fciaf420 thank you for this! looks great. What's your tg, so I create a gp and chat technical stuff there.

Plan of to expand this, etc

@arbitrageprophet
Copy link
Contributor

@fciaf420 possible to update docs/features/betting-bots.md?

- 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>
@fciaf420 fciaf420 closed this Dec 21, 2025
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.

2 participants