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
| Field | Type | Required | Description |
|---|---|---|---|
botIds | string[] | yes | 1–100 bot ObjectIds, no duplicates. |
nMinWaitTime | integer | yes | Min seconds between swaps. |
nMaxWaitTime | integer | yes | Max ≥ nMinWaitTime. |
Response 200
{ "message": "Bots interval updated" }
Errors
| Status | Meaning |
|---|---|
400 | nMaxWaitTime < nMinWaitTime or no matching bots. |
404 | Some 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 }'