{"partialResults":false,"resources":[{"accepts":[{"amount":"9000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","version":"2"},"maxTimeoutSeconds":300,"network":"eip155:8453","payTo":"0xeB12bB2f52EeD33DBa6A00774E48324032Fd87C6","scheme":"exact"},{"amount":"9000","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","extra":{"feePayer":"BFK9TLC3edb13K6v4YyH3DwPb5DSUpkWvb7XnqCL9b4F"},"maxTimeoutSeconds":300,"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","payTo":"J79PfB4V9mbNRD6XrWLGAPCQhB1htX4KW5gMYUgddtNV","scheme":"exact"}],"description":"Backtest a stated trading rule on a crypto asset's daily USD closes (Coinbase Exchange) and compare it with buying and holding: SMA crossover, RSI mean reversion, DCA or buy-and-hold, 30-365 days, with fees. Returns total return, drawdown, Sharpe, win rate, exposure, every trade and the equity curve; the rules are published in every answer. Send {} for BTC, SMA 20/50, 180 days. A test of the past, not advice. Pay-per-call via x402.","extensions":{"bazaar":{"info":{"input":{"body":{"asset":"BTC","days":180,"fast":20,"slow":50,"strategy":"sma_cross"},"bodyType":"json","method":"POST","type":"http"},"output":{"example":{"asOf":"2026-10-16T13:21:41.862Z","asset":"BTC","buyAndHoldReturnPct":11.25,"endPriceUsd":82131.46,"equityCurve":[{"date":"2026-04-19","equityUsd":999,"priceUsd":73823.14},{"date":"2026-05-25","equityUsd":1045.36,"priceUsd":77249.07},{"date":"2026-06-30","equityUsd":994.65,"priceUsd":58523.93},{"date":"2026-08-05","equityUsd":965.07,"priceUsd":64603.03},{"date":"2026-09-10","equityUsd":1143.34,"priceUsd":76536.55},{"date":"2026-10-15","equityUsd":1226.92,"priceUsd":82131.46}],"exposurePct":71.7,"finalEquityUsd":1226.92,"market":"BTC-USD","maxDrawdownPct":15.71,"method":"Daily USD closes of completed UTC days (Coinbase Exchange). A signal formed at a day's close is executed at the next day's close (no look-ahead); buy_and_hold buys at the first close and dca buys every dcaEveryDays from the first close. Long or flat only, no leverage, no slippage or funding; a fee of feeBps on every trade's notional. sma_cross: long while the fast simple moving average is above the slow one. rsi_reversion: Wilder RSI, seeded with the simple average of the first rsiPeriod changes of a warm-up of 10 x rsiPeriod days before the window, with the long/flat state carried through the warm-up; buy when it falls below rsiBuy, sell when it rises above rsiSell. dca: capitalUsd split into equal purchases, one every dcaEveryDays from the first close (floor((days - 1) / dcaEveryDays) + 1 of them). sma_cross reads the slow average's length of history before the window. A window with a missing day, or a market with no close in the last 3 days, is refused, never filled in. totalReturnPct = final equity / capital - 1; buyAndHoldReturnPct = last close / first close - 1 (no fee); maxDrawdownPct = the largest peak-to-trough fall of the equity curve; sharpe = mean / standard deviation of daily equity returns x sqrt(365), risk-free rate 0; winRatePct over closed round trips; exposurePct = share of days holding the asset.","note":"A test of a stated rule on past prices — not a forecast and not investment advice. Results ignore slippage, taxes and funding; a different window can give the opposite result.","params":{"capitalUsd":1000,"days":180,"fast":20,"feeBps":10,"slow":50},"period":{"days":180,"from":"2026-04-19","to":"2026-10-15"},"sharpe":1.54,"source":"Coinbase Exchange daily candles (api.exchange.coinbase.com)","startPriceUsd":73823.14,"strategy":"sma_cross","totalReturnPct":22.69,"tradeList":[{"date":"2026-04-19","priceUsd":73823.14,"side":"buy"},{"date":"2026-05-31","priceUsd":73575.17,"side":"sell"},{"date":"2026-07-21","priceUsd":66516.18,"side":"buy"}],"trades":3,"winRatePct":0},"type":"json"}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"asset":{"description":"Crypto asset ticker with a USD market on Coinbase Exchange (BTC, ETH, SOL, …). Default BTC","example":"BTC","maxLength":10,"type":"string"},"capitalUsd":{"description":"Starting capital in USD, 10-10000000 (default 1000)","example":1000,"maximum":10000000,"minimum":10,"type":"number"},"days":{"description":"Length of the tested window in days, 30-365 (default 180)","example":180,"maximum":365,"minimum":30,"type":"integer"},"dcaEveryDays":{"description":"dca: days between purchases, 1-30 (default 7)","example":7,"maximum":30,"minimum":1,"type":"integer"},"fast":{"description":"sma_cross: fast moving-average length in days, 2-100 (default 20)","example":20,"maximum":100,"minimum":2,"type":"integer"},"feeBps":{"description":"Fee on every trade in basis points, 0-100 (default 10 = 0.1%)","example":10,"maximum":100,"minimum":0,"type":"number"},"rsiBuy":{"description":"rsi_reversion: buy when RSI falls below this, 1-50 (default 30)","example":30,"maximum":50,"minimum":1,"type":"number"},"rsiPeriod":{"description":"rsi_reversion: RSI length in days, 2-50 (default 14)","example":14,"maximum":50,"minimum":2,"type":"integer"},"rsiSell":{"description":"rsi_reversion: sell when RSI rises above this, 50-99 (default 70)","example":70,"maximum":99,"minimum":50,"type":"number"},"slow":{"description":"sma_cross: slow moving-average length in days, 3-200, longer than fast (default 50)","example":50,"maximum":200,"minimum":3,"type":"integer"},"strategy":{"description":"sma_cross (long while the fast moving average is above the slow one), rsi_reversion (buy when RSI falls below rsiBuy, sell when it rises above rsiSell), dca (buy a fixed amount every dcaEveryDays), buy_and_hold. Default sma_cross","enum":["sma_cross","rsi_reversion","dca","buy_and_hold"],"example":"sma_cross","type":"string"}},"required":[]},"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":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"}}},"lastUpdated":"2026-11-30T05:27:17.1Z","quality":{"l30DaysTotalCalls":4,"l30DaysUniquePayers":1,"lastCalledAt":"2026-11-30T05:27:16.902Z"},"resource":"https://fiatdock.com/v1/market/backtest","serviceName":"FiatDock","tags":["backtest","trading","strategy","crypto","quant"],"type":"http","x402Version":2}],"searchMethod":"text","x402Version":2,"meta":{"searchToken":"frgx3c2u3wgs2aa"}}
