Get Balance
Get raw wallet balance (live from chain).
Example
curl "https://luckylobster.io/api/agent/v1/balance" \
-H "Authorization: Bearer ll_..."
{
"success": true,
"data": {
"usdc": 93.16,
"address": "0x1234...",
"walletType": "proxy"
}
}
| Field | Description |
|---|
usdc | USDC balance for trading |
walletType | proxy (Polymarket) or eoa (direct) |
Get Budget
Get how much you can spend. Check this before placing orders.
Budget = min(wallet balance, fixed limit, % of wallet)
Example
curl "https://luckylobster.io/api/agent/v1/budget" \
-H "Authorization: Bearer ll_..."
{
"success": true,
"data": {
"usdc": 46.58,
"limitedBy": "percent",
"wallet": 93.16,
"config": {
"fixedLimit": null,
"budgetPercent": 50,
"maxPositionValue": null,
"used": 0
}
}
}
| Field | Description |
|---|
usdc | What you can spend (accounts for all limits) |
limitedBy | Why you’re capped: wallet, fixed_limit, percent, position_limit |
wallet | Raw wallet balance |
config | Your budget settings (configured at Dashboard > Manage Agents) |
Get Stats
Get trading performance statistics.
Example
curl "https://luckylobster.io/api/agent/v1/stats" \
-H "Authorization: Bearer ll_..."
{
"success": true,
"data": {
"totalOrders": 150,
"filledOrders": 142,
"totalVolume": 25000.00,
"realizedPnL": 1250.75,
"unrealizedPnL": 320.50,
"winRate": 62.5,
"avgTradeSize": 166.67
}
}