{"uid":"cap_0xuzsMBS8sofrpH5yiHSh","slug":"api-quantoracle-dev-f73b8c03","name":"QuantOracle Indicators Crossover","description":"QuantOracle: indicators/crossover","url":"https://api.quantoracle.dev/v1/indicators/crossover","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"prices":{"type":"array","items":{"type":"number"},"title":"Prices","minItems":30,"description":"Array of price data"},"fast_period":{"type":"integer","title":"Fast Period","default":10,"description":"Fast moving average period"},"slow_period":{"type":"integer","title":"Slow Period","default":50,"description":"Slow moving average period"}}},"responseSchema":null,"example":{"request":{"params":{"fast":12,"slow":26},"prices":[100.5,101.2,102.1,101.8,103.5,104.2,103.9,105.1,106.3,105.8,107.2,108.1,107.5,109.3,110.2,109.8,111.5,112.3,111.9,113.7,114.5,113.2,115.1,116.8,115.9,117.6,118.4,117.8,119.5,120.3],"strategy":"sma_crossover","slippage_bps":5,"commission_bps":5,"initial_capital":10000},"response":{"ms":101.84,"_meta":{"url":"https://quantoracle.dev","docs":"https://api.quantoracle.dev/docs","powered_by":"QuantOracle"},"signal":"BULLISH","spread":6.7939,"fast_ema":116.96,"slow_ema":110.17,"spread_pct":6.167,"last_signals":[],"total_crosses":0}},"exampleRequest":{"params":{"fast":12,"slow":26},"prices":[100.5,101.2,102.1,101.8,103.5,104.2,103.9,105.1,106.3,105.8,107.2,108.1,107.5,109.3,110.2,109.8,111.5,112.3,111.9,113.7,114.5,113.2,115.1,116.8,115.9,117.6,118.4,117.8,119.5,120.3],"strategy":"sma_crossover","slippage_bps":5,"commission_bps":5,"initial_capital":10000},"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_a3mfUYJlXjDYU-Li0nJFJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes EMA crossover signal (BULLISH/BEARISH) between a fast and slow exponential moving average from a price series","exampleAgentPrompt":"Check whether there's a bullish or bearish EMA crossover in this 30-day price series for BTC: [100.5, 101.2, 102.1, ... 120.3] — use a fast period of 12 and slow period of 26 and tell me the spread and signal.","exampleUseCases":null,"resultDescription":"Returns a signal string ('BULLISH' or 'BEARISH'), the computed fast and slow EMA values, the absolute spread between them, the spread as a percentage, a list of recent crossover events, and the total number of crosses detected in the series.","failureModes":["Insufficient price data for the requested slow_period — series must have at least slow_period+1 data points","fast_period must be less than slow_period otherwise computation is undefined","Empty or malformed prices array returns a 400 error","Non-numeric values in prices array cause validation failure","slow_period larger than prices array length causes computation error"],"whenToPreferThis":"Use this endpoint when you need a fast, low-latency EMA crossover calculation with explicit BULLISH/BEARISH signal output and spread metrics from raw price data. Prefer this over full technical analysis suites when you only need moving average crossover detection without additional indicators. Ideal for automated trading signal pipelines or momentum screening.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:48:01.751Z","isFirstParty":false}