Api Endpoint

RugProbe

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.

Open interactive test console

Offering

Provider
x402-weblens-api-production.up.railway.app
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://x402-weblens-api-production.up.railway.app/v1/position-size
MIME type
Not provided
First seen
2026-11-13T17:18:00.515Z
Last seen
Tags
Trading, position-sizing, atr, risk-management, stop-loss

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.002 USDC
Atomic price: 2000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "2000",
    "payTo": "0x02DDECd0378e8d08f4f5D019AB27f752B2b2dD6a"
  }
]

Observed health

Status
Healthy
Latest latency
46 ms
Average latency
48 ms
HTTP status
200
Last checked
Reachability
100% over 5 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "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 schema

{
  "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"
}