Api Endpoint

Octio

Position size for a risk budget: account size, risk percent, side, entry and stop (or a stop at a multiple of the live ATR 14) and leverage give the quantity, notional, margin, effective leverage and fees, with isolated and cross...

Open interactive test console

Offering

Provider
www.octio.xyz
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://www.octio.xyz/v1/markets/position-size
MIME type
application/json
First seen
2026-11-25T19:22:21.746Z
Last seen
Tags
market-data

Payment pricing

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

Payment option 1
0.01 USDC
Atomic price: 10000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.01 USDC
Atomic price: 10000 · Network: eip155:4663 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "payTo": "0x3c7022c492bAD845106430dB43D1A3fBFB88f3eB"
  },
  {
    "scheme": "exact",
    "network": "eip155:4663",
    "asset": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
    "amount": "10000",
    "payTo": "0x3c7022c492bAD845106430dB43D1A3fBFB88f3eB"
  }
]

Observed health

Status
Healthy
Latest latency
130 ms
Average latency
130 ms
HTTP status
402
Last checked
Reachability
100% over 1 checks

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

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "required": [
        "account_usd",
        "side"
      ],
      "properties": {
        "side": {
          "enum": [
            "long",
            "short"
          ],
          "type": "string"
        },
        "stop": {
          "type": "number",
          "maximum": 1000000000000,
          "description": "Stop price (below entry for long, above for short). Give this or atr_multiple.",
          "exclusiveMinimum": 0
        },
        "entry": {
          "type": "number",
          "maximum": 1000000000000,
          "description": "Entry price. Default with a symbol: its live mark.",
          "exclusiveMinimum": 0
        },
        "symbol": {
          "enum": [
            "BTC",
            "ETH",
            "SOL",
            "XRP",
            "HYPE",
            "BNB",
            "DOGE",
            "NVDA",
            "AAPL",
            "MSFT",
            "GOOGL",
            "AMZN",
            "META",
            "TSLA",
            "AMD",
            "MU",
            "COIN",
            "MSTR",
            "HOOD",
            "PLTR",
            "SP500",
            "XYZ100",
            "GOLD",
            "SILVER",
            "CL",
            "BRENTOIL"
          ],
          "type": "string",
          "description": "Optional: for the live mark, the ATR, the venue size step and maintenance margin. Crypto: BTC, ETH, SOL, XRP, HYPE, BNB, DOGE. US stocks: NVDA, AAPL, MSFT, GOOGL, AMZN, META, TSLA, AMD, MU, COIN, MSTR, HOOD, PLTR. Indexes: SP500, XYZ100. Commodities: GOLD, SILVER, CL (WTI crude), BRENTOIL (Brent crude)."
        },
        "fee_bps": {
          "type": "number",
          "default": 0,
          "maximum": 100,
          "minimum": 0,
          "description": "Fee per side in basis points, counted in the risk (on the entry and the stop notional)."
        },
        "interval": {
          "enum": [
            "15m",
            "1h",
            "4h",
            "1d",
            "1w"
          ],
          "type": "string",
          "default": "4h",
          "description": "Candle interval of the ATR."
        },
        "leverage": {
          "type": "number",
          "default": 1,
          "maximum": 200,
          "minimum": 1,
          "description": "Leverage the margin is posted at."
        },
        "risk_pct": {
          "type": "number",
          "default": 1,
          "maximum": 100,
          "minimum": 0.01,
          "description": "Share of the account to lose if the stop fills, fees included, in percent."
        },
        "account_usd": {
          "type": "number",
          "maximum": 1000000000,
          "minimum": 1,
          "description": "Account equity in USD."
        },
        "atr_multiple": {
          "type": "number",
          "maximum": 20,
          "minimum": 0.1,
          "description": "Stop this many ATR 14 (Wilder, closed candles of interval) from the entry. Needs symbol."
        },
        "maintenance_margin_pct": {
          "type": "number",
          "maximum": 50,
          "minimum": 0.01,
          "description": "Maintenance margin rate for the liquidation estimates, in percent. Default with a symbol: 50 / the venue’s maximum leverage."
        }
      },
      "additionalProperties": false
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ]
}