Skip to main content
POST
/
api
/
sandbox
/
strategies
/
{id}
/
signals
/
simulate
Simulate a strategy signal message
curl --request POST \
  --url https://mcp.echozero.app/api/sandbox/strategies/{id}/signals/simulate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "message": "Buy SOL at $145, TP $160, SL $138"
}
'
{
  "success": true,
  "data": {
    "id": "<string>",
    "strategyId": "<string>",
    "strategyName": "<string>",
    "message": "<string>",
    "status": "simulated",
    "parsed": {
      "matched": true,
      "action": "<string>",
      "intent": "<string>",
      "token": "<string>",
      "tokenUnresolved": true,
      "entryPrice": "<string>",
      "takeProfit": "<string>",
      "stopLoss": "<string>",
      "takeProfitLevels": [
        {
          "index": 123,
          "price": "<string>",
          "allocationPercent": 123
        }
      ],
      "leverage": 123,
      "partialPercent": 123,
      "ruleMatched": "<string>",
      "tradeTriggered": "<string>",
      "confidence": 123
    },
    "createdAt": "2023-11-07T05:31:56Z"
  }
}

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

HMAC-SHA256 signature: HMAC-SHA256(secretKey, timestamp + METHOD + path + body). Optional -- when omitted, HMAC verification is skipped.

x-timestamp
string

Request timestamp in epoch milliseconds. Required when x-signature is provided. Rejected if drift exceeds 5 minutes.

Path Parameters

id
string
required

Body

application/json
message
string
required

Raw signal message to parse and simulate

Example:

"Buy SOL at $145, TP $160, SL $138"

Response

Signal simulation completed.

success
boolean
required
Example:

true

data
object
required

Endpoint-specific payload