Catalog/trade-stop-loss-level

Calculators

Stop-loss & take-profit levels API

Derive stop-loss and take-profit prices from an entry, a stop distance (percent or absolute) and a target R:R: long stop = entry − d, target = entry + R·d. Deterministic level math. Answers 'where's my stop for a 5% risk','what's the take profit at 2R','set my stop and target prices'.

Price$0.01per request
MethodPOST
Route/v1/calc/trade-stop-loss-level
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
calctradingstop-losstake-profitrisk-rewardlevelsentryexit
API URLhttps://x402.hexl.dev/v1/calc/trade-stop-loss-level
Integration docs
Example request
{
  "entry": 100,
  "direction": "long",
  "stopPct": 5,
  "riskReward": 2
}
Example response
{
  "entry": 100,
  "direction": "long",
  "stopDistance": 5,
  "stopLoss": 95,
  "takeProfit": 110,
  "riskReward": 2,
  "stopPct": 5,
  "formula": "long: stop = entry − d, target = entry + R·d"
}
Input schema
{
  "type": "object",
  "required": [
    "entry"
  ],
  "properties": {
    "entry": {
      "type": "number",
      "examples": [
        100
      ]
    },
    "direction": {
      "type": "string",
      "enum": [
        "long",
        "short"
      ],
      "default": "long"
    },
    "stopPct": {
      "type": "number",
      "description": "Stop distance as percent of entry.",
      "examples": [
        5
      ]
    },
    "stopDistance": {
      "type": "number",
      "description": "Absolute stop distance (overrides stopPct).",
      "examples": [
        5
      ]
    },
    "riskReward": {
      "type": "number",
      "default": 2,
      "examples": [
        2
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}