Overview
API keys allow AI agents and applications to access your LuckyLobster account programmatically. Each key has configurable permissions, budget limits, and rate limits.Creating an API Key
Configure Settings
| Setting | Description | Recommendation |
|---|---|---|
| Name | Descriptive identifier | Include agent name (e.g., “ClawdBot Prod”) |
| Permissions | Access scopes | Start with read + trade |
| Budget Limit | Max spending | Start low ($50-100) |
| Budget Period | Reset frequency | monthly for most use cases |
| Rate Limit | Requests/minute | 100 default is usually sufficient |
| Expiration | Auto-disable date | Optional, good for temporary access |
Permission Scopes
| Scope | Allows | Use Case |
|---|---|---|
read | View markets, balance, positions, orders | All agents need this |
trade | Place and cancel orders | Trading agents |
redeem | Redeem settled market winnings | Automated redemption |
Budget Configuration
Budget Limits
Set maximum spending per API key to protect against:- Bugs in agent logic
- Unexpected market conditions
- Compromised keys
Budget Periods
| Period | Best For |
|---|---|
daily | High-frequency trading with tight daily limits |
weekly | Balanced control and flexibility |
monthly | Standard agents with predictable spending |
never | Fixed total budget that doesn’t reset |
Checking Budget
Agents can check their remaining budget:Rate Limits
Default rate limit: 100 requests/minute Configure based on your agent’s needs:- Simple agents: 60-100 req/min
- Active traders: 100-200 req/min
- High-frequency: Contact us for custom limits
Managing Keys
Viewing Keys
All your API keys are listed at Dashboard > API Keys with:- Name and creation date
- Permission summary
- Budget usage
- Request count
- Status (active/expired/revoked)
Revoking Keys
To revoke a key:- Find the key in your list
- Click Revoke
- Confirm the action
Rotating Keys
Best practice: rotate keys periodically.- Create a new key with same permissions
- Update your agent configuration
- Verify the agent works with new key
- Revoke the old key
Best Practices
Use separate keys per agent
Use separate keys per agent
Create dedicated keys for each agent or use case. This allows:
- Individual budget tracking
- Selective revocation
- Clear audit trails
Start with conservative budgets
Start with conservative budgets
Begin with low budget limits ($50-100) and increase as you verify agent behavior.
Set expiration for temporary access
Set expiration for temporary access
For testing or temporary agents, set an expiration date so keys auto-disable.
Never expose keys in code
Never expose keys in code
Use environment variables or secure vaults. Never commit keys to repositories.
API Key Format
- Prefix:
ll_live_(production) orll_test_(sandbox/future) - Hash: 64-character secure random string
- Total: ~72 characters
