Skip to main content

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

FieldTypeRequiredDescription
botIdsstring[]yes1–100 bot ObjectIds, no duplicates.
nMinSwapSolnumberyesMin SOL per swap.
nMaxSwapSolnumberyesMax SOL per swap (>= 0.01, >= nMinSwapSol).

Response 200

{ "message": "Bots max swap amount updated" }

Errors

StatusMeaning
400nMaxSwapSol < nMinSwapSol or validation failed.
404No 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 }'