Position size
GET https://www.octio.xyz/v1/markets/position-size: 0.001 CREDIT per successful call. First 3 calls free per account.
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 liquidation estimates (maintenance margin from the venue's maximum leverage when a symbol is given) and warnings such as a stop beyond liquidation. A plain calculator without a symbol; with one it uses the live mark and the venue's size step. Not advice. Prices are Hyperliquid perpetuals (crypto on the main dex; stocks, indexes and commodities on trade.xyz), which trade 24/7 and track the asset but are not exchange quotes.
Params (query)
side(string, required)account_usd(number, required): Account equity in USD.stop(number): Stop price (below entry for long, above for short). Give this or atr_multiple.entry(number): Entry price. Default with a symbol: its live mark.symbol(string): 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(number): Fee per side in basis points, counted in the risk (on the entry and the stop notional).interval(string): Candle interval of the ATR.leverage(number): Leverage the margin is posted at.risk_pct(number): Share of the account to lose if the stop fills, fees included, in percent.atr_multiple(number): Stop this many ATR 14 (Wilder, closed candles of interval) from the entry. Needs symbol.maintenance_margin_pct(number): Maintenance margin rate for the liquidation estimates, in percent. Default with a symbol: 50 / the venue’s maximum leverage.
Provider: Octio. Category: Market data.
For agents: llms.txt, llms-full.txt, OpenAPI, MCP server https://www.octio.xyz/mcp.