Skip to main content

PATCH /flexi/interval/bulk

Bulk-update the swap-interval range on initiated and 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–20 bot ids, no duplicates.
nMinWaitTimeintegeryesMin seconds between swaps, 0–3599.
nMaxWaitTimeintegeryes0–3599, ≥ nMinWaitTime.

Response 200​

{ "message": "Bots interval updated" }

Errors​

StatusMeaning
400Validation failed (including nMaxWaitTime < nMinWaitTime).
404None of the ids is an initiated or running bot of the caller.

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 }'