Market backtest
GET https://www.octio.xyz/v1/markets/backtest: 0.005 CREDIT per successful call. First 3 calls free per account.
Backtests one rule from a fixed menu (RSI thresholds, EMA cross, Bollinger band touch, channel breakout; long or short; optional stop loss and take profit) on up to 600 closed candles of a crypto, US stock, index or commodity market: trades, win rate, total and average return, profit factor, max drawdown and exposure against buy and hold. Signals at a close fill at the next open, fees per side as set (default 5 bps), funding and slippage not modelled. Hypothetical, 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)
symbol(string, required): 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).strategy(string, required): rsi: enter when RSI < lower, exit when RSI > upper. ema_cross: enter when EMA fast crosses above EMA slow, exit when it crosses below. bollinger: enter when the close is below the lower band, exit when it is above the middle. breakout: enter when the close is above the highest high of the previous period candles, exit when it is below the lowest low of the previous exit_period candles. side=short mirrors each rule. A param of another strategy is refused.fast(number): ema_cross only: fast EMA, a whole number 2–100, default 20.side(string)slow(number): ema_cross only: slow EMA, a whole number 3–200, default 50.lower(number): rsi only: lower threshold, 1–99, default 30.upper(number): rsi only: upper threshold, 1–99, default 70.period(number): rsi, bollinger and breakout: look-back, a whole number 2–100. Defaults rsi 14, bollinger 20, breakout 20.stddev(number): bollinger only: band width in standard deviations, 0.5–4, default 2.candles(integer): Trade on this many of the latest closed candles; earlier candles in memory only warm the indicators up.fee_bps(number): Fee per side in basis points, on the entry and the exit notional (default 5, about Hyperliquid’s base taker fee; 0 for gross results).interval(string): Candle interval.exit_period(number): breakout only: exit channel look-back, a whole number 2–100, default 10.stop_loss_pct(number): Optional stop loss, percent from the entry, checked inside every candle (the stop first when both levels are touched in one candle).take_profit_pct(number): Optional take profit, percent from the entry.
Provider: Octio. Category: Market data.
For agents: llms.txt, llms-full.txt, OpenAPI, MCP server https://www.octio.xyz/mcp.