PATCH /flexi/maxswap/bulk
Bulk-update the per-swap size range on multiple bots.
Live-applied; worker picks up the new bounds on the next randomized pick.
Use case
Change swap sizing across a group — e.g. raise the ceiling during high volume periods.
Body
| Field | Type | Required | Description |
|---|---|---|---|
botIds | string[] | yes | 1–100 bot ObjectIds, no duplicates. |
nMinSwapSol | number | yes | Min SOL per swap. |
nMaxSwapSol | number | yes | Max SOL per swap (>= 0.01, >= nMinSwapSol). |
Response 200
{ "message": "Bots max swap amount updated" }
Errors
| Status | Meaning |
|---|---|
400 | nMaxSwapSol < nMinSwapSol or validation failed. |
404 | No initiated or running bots matched. |
Example
curl -X PATCH "$BASE_URL/flexi/maxswap/bulk" \
-H "Authorization: Bearer $ACCESS" \
-H "x-user-id: $USER_ID" \
-H "Content-Type: application/json" \
-d '{ "botIds": ["<id1>", "<id2>"], "nMinSwapSol": 0.1, "nMaxSwapSol": 1.5 }'