{"uid":"cap_Deg5EzusvloAgaw4dNeLk","slug":"losbeto-backtest-trading-strategy-backtesting-api-2c013f77","name":"Losbeto Backtest — Trading Strategy Backtesting API","description":"Losbeto: 67 endpoints x402 monetizados. Solana + Base. USDC micropayments para AI agents. Preços a partir de $0.003.","url":"https://markets.losbeto.xyz/backtest","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","properties":{"queryParams":{"type":"object","properties":{"symbol":{"type":"string","description":"Asset ticker, e.g. AAPL, TSLA, BTC, GOLD"},"strategy":{"type":"string","description":"Strategy label, e.g. momentum, mean-reversion"}}}}},"output":{"type":"object","properties":{"example":{"type":"object","description":"Strategy backtest with PnL, win rate, drawdown and a written read of where the strategy actually makes its money."}}}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.06","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.06/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.06","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.06","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bN0_h3UH4wCLsiXjXEWDD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.06","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs a backtest of a trading strategy against historical market data, returning performance metrics and results.","exampleAgentPrompt":"Can you backtest a simple moving average crossover strategy for me — run it against historical crypto data and show me the performance metrics like total return, max drawdown, and win rate?","exampleUseCases":[{"title":"Validate crypto strategy before deploying capital","prompt":"Before I go live, can you backtest my momentum strategy on crypto markets and tell me what the annualized return and max drawdown would have been?"},{"title":"Compare multiple strategy configurations","prompt":"Run a backtest with my mean-reversion strategy parameters and show me the trade-by-trade performance so I can see where it wins and loses."},{"title":"Evaluate strategy for DeFi agent automation","prompt":"I'm building an AI trading agent on Base — can you backtest a RSI-based strategy for me and give me the Sharpe ratio and win rate so I know if it's worth automating?"}],"resultDescription":"Returns a JSON object containing historical backtest performance metrics such as total return, annualized return, maximum drawdown, win rate, Sharpe ratio, and a log of simulated trades executed during the backtest period.","failureModes":["Missing or malformed 'properties' parameter returns an error or empty result","Invalid strategy configuration causes computation failure","Strategy parameters outside supported range may return 400 or empty JSON","Payment of $0.06 USDC required; unpaid requests return HTTP 402","Server-side timeout for computationally expensive backtests"],"whenToPreferThis":"Choose this endpoint when you need to programmatically evaluate a trading strategy's historical performance with micropayment-based access via x402 on Solana or Base. Preferred over manual backtesting tools when integrating into an AI agent workflow that requires automated strategy validation at low per-call cost ($0.06 USDC).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:52:33.126Z","isFirstParty":false}