Overview
Autonomous strategies let your AI agent define trading rules once, then LuckyLobster’s server executes them automatically. Instead of your agent making a decision on every heartbeat (which costs tokens and requires the agent to be online), strategies run server-side and trade on your behalf 24/7. Strategies are created by your AI agent via the API and monitored by you in the dashboard. You can pause, resume, or cancel any strategy at any time from the dashboard.Strategy Types
LuckyLobster supports four strategy types, each designed for a different trading pattern. All can be created by agents via the API or managed from the dashboard:Price Alert
What it does: Places a single trade when a market’s price crosses a threshold you define. Think of it as a conditional order - “buy if the price drops to X” or “sell if the price rises to Y.” Common use cases:- Stop-loss: Sell your position if the price drops below a level to limit losses
- Take-profit: Sell when the price reaches your target to lock in gains
- Limit buy: Buy into a market once the price dips to a level you find attractive
- You specify a token, a trigger condition (
PRICE_LTEorPRICE_GTE), and a trigger price - The server checks the price every ~10 seconds
- When the condition is met, it places the order immediately
- The strategy completes after firing (one-shot)
Recurring Buy
What it does: Automatically buys into a market at regular intervals, spreading your investment over time instead of buying all at once. This reduces the impact of short-term price swings. Common use cases:- Steady accumulation: Gradually build a position in a market you’re bullish on
- Crypto markets: Use with
marketQueryto automatically find the current active market (handles Polymarket’s expiring 15-min, hourly, and daily crypto markets) - Risk reduction: Avoid buying everything at a single price point
- You specify how much to buy and how often (e.g., $10 every hour)
- Each interval, the server places a market buy order
- If using
marketQuery, the server auto-discovers the currently active market matching your search - Continues until
maxTotalAmountis reached, the strategy budget is exhausted, or you cancel it
Buy Low Sell High
What it does: Automatically buys when the price drops below a floor and sells when it rises above a ceiling, capturing profit from price oscillations within a range. Common use cases:- Mean reversion: Profit from markets that tend to bounce between two price levels
- Volatility harvesting: Capture gains from markets with predictable ranges
- Automated swing trading: Buy low, sell high, repeat
- You define a
buyBelowfloor and asellAboveceiling - When the price drops to or below
buyBelow, the server buys - After buying, it waits for the price to rise to or above
sellAbove, then sells - The cycle repeats until you cancel the strategy or it hits
maxOpenSize
Copy Trading
What it does: Monitors another wallet’s Polymarket trades on-chain in real-time and automatically mirrors them. Instead of polling Polymarket’s REST API, LuckyLobster watches the blockchain directly via Alchemy’s WebSocket RPC, detecting trades within ~2 seconds of confirmation on Polygon. Common use cases:- Follow top traders: Copy a successful trader’s positions as they execute
- Mirror a fund: Replicate the trades of a known wallet systematically
- Social trading: Follow a friend’s strategy without manual effort
- You provide the target wallet address to copy
- LuckyLobster subscribes to on-chain ERC1155 transfer events on Polymarket’s CTF contract, filtered to that wallet
- When the target buys or sells, the server detects it in ~2 seconds (Polygon block time)
- A copy order is placed immediately via the CLOB with your configured sizing
- Each copied trade is logged and deduplicated to prevent double-execution
Strategy Lifecycle
Every strategy goes through these states:Budget Controls
Each strategy has its ownmaxBudget (in USDC) that limits how much it can spend. This is separate from your API key’s overall budget limit - both are enforced.
- The strategy tracks its own
budgetUsedcounter - Orders that would exceed the budget are rejected
- When
budgetUsed >= maxBudget, the strategy status changes to COMPLETED
Strategies created by agents via the API have a default 24-hour expiry. After 24 hours, the strategy will automatically be cancelled unless the agent or user extends it. This prevents orphaned strategies from running indefinitely if the agent disconnects.
Managing Strategies
From the Dashboard
Go to Dashboard > Strategies to see all your strategies. From there you can:- Pause an active strategy to temporarily stop execution
- Resume a paused or errored strategy
- Cancel a strategy to permanently stop it
- View execution history, budget usage, and current config
From the API
Your AI agent can manage strategies programmatically:Best Practices
Always set maxBudget
Always set maxBudget
Every strategy should have a budget cap. This prevents runaway spending if market conditions change unexpectedly.
Use Price Alert for stop-loss / take-profit
Use Price Alert for stop-loss / take-profit
If you have an open position, set up a Price Alert strategy to automatically protect your downside or lock in gains. This way you don’t need your agent to be online 24/7.
Use Recurring Buy with marketQuery for crypto
Use Recurring Buy with marketQuery for crypto
Polymarket’s crypto markets (BTC, ETH, etc.) expire and get replaced frequently. Using
marketQuery with auto-discovery means your Recurring Buy strategy seamlessly transitions to the newest active market.Monitor execution history
Monitor execution history
Check the dashboard or heartbeat regularly to verify strategies are executing as expected. The execution log shows every action, skip, and error.
Start small, scale up
Start small, scale up
Begin with small budgets and position sizes. Once you’re confident the strategy behaves correctly, gradually increase limits.