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
| Field | Type | Required | Description |
|---|---|---|---|
sBotId | string | yes | Smart Sell ObjectId. |
nSellPercent | number | no | New sell percentage (0–100). |
nMarketCap | number | no | New MC cap. |
nMinSellAmount | number | no | New min buy trigger (>= 0.1 SOL). |
nMaxSellAmount | number | no | New max buy trigger. |
aWhitelistedWallets | string[] | no | Replaces the whitelist. |
aWallets | string[] | no | Replaces the wallet list. |
Response 200
{ "message": "Bot config updated" }
Errors
| Status | Meaning |
|---|---|
403 | Bot not owned by caller. |
404 | Bot 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 }'