Skip to main content

PATCH /flexi/interval/bulk

Bulk-update the swap-interval range on running bots.

Takes effect on the next swap cycle for each bot — no restart needed.

Use case

Tune cadence across a whole group in response to market conditions (slow down during illiquidity, speed up during a campaign push).

Body

FieldTypeRequiredDescription
botIdsstring[]yes1–100 bot ObjectIds, no duplicates.
nMinWaitTimeintegeryesMin seconds between swaps.
nMaxWaitTimeintegeryesMax ≥ nMinWaitTime.

Response 200

{ "message": "Bots interval updated" }

Errors

StatusMeaning
400nMaxWaitTime < nMinWaitTime or no matching bots.
404Some ids missing.

Example

curl -X PATCH "$BASE_URL/flexi/interval/bulk" \
-H "Authorization: Bearer $ACCESS" \
-H "x-user-id: $USER_ID" \
-H "Content-Type: application/json" \
-d '{ "botIds": ["<id1>"], "nMinWaitTime": 30, "nMaxWaitTime": 120 }'