Skip to main content

PATCH /smart-sell/change-config

Update one bot's configuration. Only the fields you send are changed; missing fields are left alone. Array fields (aWhitelistedWallets, aWallets) replace the stored array.

Live-applied — no restart needed.

Use case

Tune reactiveness on the fly: raise nSellPercent during a rally, extend the whitelist to ignore a new MM wallet, etc.

Body

FieldTypeRequiredDescription
sBotIdstringyesSmart Sell ObjectId.
nSellPercentnumbernoNew sell percentage (0–100).
nMarketCapnumbernoNew MC cap.
nMinSellAmountnumbernoNew min buy trigger (>= 0.1 SOL).
nMaxSellAmountnumbernoNew max buy trigger.
aWhitelistedWalletsstring[]noReplaces the whitelist.
aWalletsstring[]noReplaces the wallet list.

Response 200

{ "message": "Bot config updated" }

Errors

StatusMeaning
403Bot not owned by caller.
404Bot not found.

Example

curl -X PATCH "$BASE_URL/smart-sell/change-config" \
-H "Authorization: Bearer $ACCESS" \
-H "x-user-id: $USER_ID" \
-H "Content-Type: application/json" \
-d '{ "sBotId": "<id>", "nSellPercent": 75 }'