Position size and stop-loss from account risk
Position size and stop-loss from account risk: send price bars (high/low/close) or an ATR, account size and risk %, get Wilder ATR, stop price, units and position value. Long or short. Pure math, no data feed.
Not tested: has real-world effectsour last check, 2026-11-28
0 of 0checks answered this week
n/amedian answer time
$0.002listed price per call
n/aprice it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://x402-weblens-api-production.up.railway.app/v1/position-size
| Category | Market data |
|---|---|
| Provider host | x402-weblens-api-production.up.railway.app |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"body": {
"accountSize": 10000,
"atr": 2.5,
"entry": 100,
"multiplier": 2,
"riskPct": 1,
"side": "long"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"accountSize": {
"description": "Account size in your currency",
"type": "number"
},
"atr": {
"description": "ATR if you already have it",
"type": "number"
},
"bars": {
"description": "Price bars, oldest first (or send atr + entry)",
"items": {
"properties": {
"close": {
"type": "number"
},
"high": {
"type": "number"
},
"low": {
"type": "number"
}
},
"required": [
"high",
"low",
"close"
],
"type": "object"
},
"maxItems": 5000,
"type": "array"
},
"entry": {
"description": "Entry price (default: last close)",
"type": "number"
},
"multiplier": {
"default": 2,
"description": "Stop distance in ATRs",
"type": "number"
},
"period": {
"default": 14,
"description": "ATR period",
"type": "integer"
},
"riskPct": {
"description": "Percent of account to risk, e.g. 1",
"type": "number"
},
"side": {
"default": "long",
"description": "Trade direction",
"enum": [
"long",
"short"
],
"type": "string"
}
},
"required": [
"accountSize",
"riskPct"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"atr": {
"type": "number"
},
"positionUnits": {
"type": "number"
},
"positionValue": {
"type": "number"
},
"riskAmount": {
"type": "number"
},
"stop": {
"type": "number"
}
},
"required": [
"stop",
"positionUnits"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}