{"uid":"cap_Tk8xu7Syux1dvH4Ajtda4","slug":"losbeto-backtest-endpoint-c881f04e","name":"Losbeto Backtest Endpoint","description":"OpenAI-compatible LLM gateway at $0.005/call — change base_url, pay in USDC. Plus pay-per-call market data: multi-oracle price consensus, sentiment, forex, equities, commodities, Brazil macro (BCB/B3) and crypto. No API keys, no accounts. USDC on Base, Solana and Algorand via x402.","url":"https://api.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_myc51YvR-8h7j6jHtob72","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 on a trading strategy using historical market data, payable via USDC micropayment on Solana or Base.","exampleAgentPrompt":"Run a backtest on my momentum trading strategy using the properties I've defined and show me the historical performance results — pay the $0.06 USDC fee via x402.","exampleUseCases":[{"title":"Crypto strategy historical evaluation","prompt":"Backtest my mean reversion strategy on historical crypto price data and give me the performance metrics — win rate, drawdown, and returns."},{"title":"Algorithm validation before live trading","prompt":"Before I go live, can you run a backtest on my trading algorithm with these parameters and tell me how it would have performed over the past year?"},{"title":"Compare strategy variants","prompt":"Run a backtest with my current strategy properties and return the JSON results so I can compare it against my previous run."}],"resultDescription":"A JSON object containing the results of the backtest simulation, likely including performance metrics such as returns, drawdown, win rate, trade count, and other quantitative measures of strategy performance over historical data.","failureModes":["Missing or malformed 'properties' parameter returns an error or empty result","Payment failure via x402 protocol results in 402 Payment Required response","Invalid strategy configuration may return an error or meaningless simulation output","Unsupported asset or time range may result in no data returned","Rate limiting or server overload may cause timeouts"],"whenToPreferThis":"Choose this endpoint when you need to evaluate a trading strategy's historical performance via a pay-per-call micropayment model using USDC on Solana or Base. Useful for AI agents that want to test strategies on-demand without a subscription, leveraging x402 protocol for seamless crypto payments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:49:04.467Z","isFirstParty":false}