Skip to main content
PATCH

Authorizations

Authorization
string
header
required

User JWT access token issued by POST /api/auth/verify or POST /api/auth/social/verify. Routes that accept both auth modes declare api-key and bearer-jwt security schemes.

Headers

x-signature
string
required

Required for API-key authenticated requests. HMAC-SHA256(secretKey, timestamp + METHOD + path + body) as lowercase hex. Omit only for JWT/OAuth session tokens or public routes.

x-timestamp
string
required

Required with x-signature. Epoch milliseconds; rejected if drift exceeds 5 minutes. Omit only for JWT/OAuth session tokens or public routes.

Path Parameters

strategyId
string
required

Body

application/json
executionMode
enum<string>
required
Available options:
AUTO_TRADING,
ALERTS_ONLY,
TEST_TRADING,
FULL_TRADING
allocationMode
enum<string>
required
Available options:
PERCENTAGE_RANGE,
USD_AMOUNT,
SOL_AMOUNT
allocationPercentageMin
number
allocationPercentageMax
number
allocationAmountUsd
number
allocationAmountSol
number
allocationAmount
number
allocationPercentage
number
closeAllTrades
boolean

When true and executionMode is ALERTS_ONLY, close all open trades for this agent in the current wallet context. Ignored for any other mode. Same keep-open semantics as PATCH subscription closeAllTrades on FULL → ALERTS.

Response

200 - application/json

Updated activation.

success
boolean
required
Example:

true

data
object
required

Endpoint-specific payload