{"chart":{"path":"/ta/chart","method":"POST","kind":"data","tier":"basic","description":"Fetch OHLCV history (timestamps/OHLCV + meta) for a symbol from Yahoo Finance.","parameters":{"symbol":{"type":"string","description":"Ticker, e.g. TSLA, EURUSD=X, GC=F"},"range_":{"type":"string","description":"e.g. 1y, 6mo, 3y"},"interval":{"type":"string","description":"e.g. 1d"}},"required":["symbol"],"output_example":{"symbol":"TSLA","periodicity":"1d","timestamps":["2026-01-02T00:00:00Z","2026-01-03T00:00:00Z"],"closes":[400.0,402.5],"source":"Yahoo Finance v8 chart"},"latency_class":"fast"},"quote":{"path":"/ta/quote","method":"POST","kind":"data","tier":"basic","description":"Fetch fundamentals snapshot (price, EPS, mcap, debt) for ratio context.","parameters":{"symbol":{"type":"string"},"sector":{"type":"string","description":"for context"}},"required":["symbol"],"output_example":{"symbol":"TSLA","price":400.0,"eps_ttm":6.5,"market_cap":1280000000000,"source":"Yahoo quoteSummary"},"latency_class":"fast"},"fx":{"path":"/ta/fx","method":"POST","kind":"data","tier":"basic","description":"Fetch FX rates (US 24h) from open.er-api (stamped midnight UTC).","parameters":{},"required":[],"output_example":{"source":"open.er-api.com","base":"USD","rates":{"EUR":0.91,"JPY":149.0}},"latency_class":"fast"},"crypto_resolve":{"path":"/ta/crypto_resolve","method":"POST","kind":"data","tier":"basic","description":"Resolve a crypto symbol to its CoinGecko id.","parameters":{"symbol":{"type":"string","description":"e.g. SOL, ETH"}},"required":["symbol"],"output_example":{"symbol":"SOL","coin_id":"solana","source":"CoinGecko"},"latency_class":"fast"},"crypto_chart":{"path":"/ta/crypto_chart","method":"POST","kind":"data","tier":"basic","description":"Fetch CoinGecko OHLCV (normalized to the same shape as chart) for a coin.","parameters":{"coin_id":{"type":"string","description":"CoinGecko id, e.g. solana"},"days":{"type":"integer","description":"lookback days (default 90)"}},"required":["coin_id"],"output_example":{"coin_id":"solana","timestamps":["2026-01-02T00:00:00Z"],"closes":[190.0],"source":"CoinGecko"},"latency_class":"fast"},"crypto_quote":{"path":"/ta/crypto_quote","method":"POST","kind":"data","tier":"basic","description":"Fetch a live CoinGecko price + 24h change.","parameters":{"coin_id":{"type":"string","description":"CoinGecko id"}},"required":["coin_id"],"output_example":{"coin_id":"ethereum","price":3200.0,"change_24h_pct":1.3,"source":"CoinGecko"},"latency_class":"fast"},"indicator":{"path":"/ta/indicator","method":"POST","kind":"compute","tier":"basic","description":"Compute a deterministic technical indicator from an OHLCV envelope (sma/ema/rsi/macd/bollinger/atr/adx/supertrend…).","parameters":{"name":{"type":"string","enum":["adx","atr","bollinger","cci","donchian","ema","hist_vol","keltner","linreg","macd","momentum","pct_b","pivots","psar","roc","rsi","sma","stochastic","supertrend","swing_levels","williams_r"]},"ohlc":{"type":"object","description":"OHLCV envelope (timestamps/opens/highs/lows/closes/volumes)"},"period":{"type":"integer","description":"lookback period (default 14)"},"multiplier":{"type":"number","description":"supertrend multiplier (default 3.0)"}},"required":["name","ohlc"],"output_example":{"indicator":"rsi","values":[55.0,57.2],"last":57.2,"formula":"Wilder RSI"},"latency_class":"fast"},"volume":{"path":"/ta/volume","method":"POST","kind":"compute","tier":"basic","description":"Compute a deterministic volume indicator from an OHLCV envelope (obv/vwap/mfi/ad/volume_ma/cmf).","parameters":{"name":{"type":"string","enum":["ad","cmf","mfi","obv","volume_ma","vwap"]},"ohlc":{"type":"object","description":"OHLCV envelope"},"period":{"type":"integer","description":"default 14"}},"required":["name","ohlc"],"output_example":{"formula":"vwap","values":[398.5,399.0],"last":399.0},"latency_class":"fast"},"orderbook":{"path":"/ta/orderbook","method":"POST","kind":"compute","tier":"basic","description":"Compute order-book metrics from a level-2 snapshot (spread/mid/depth_imbalance/weighted_mid).","parameters":{"name":{"type":"string","enum":["depth_imbalance","mid","spread","weighted_mid"]},"book":{"type":"object","description":"{bids:[{price,size}], asks:[...]}"},"levels":{"type":"integer","description":"depth levels (default 10)"}},"required":["name","book"],"output_example":{"formula":"spread","value":0.5,"spread_pct":0.5},"latency_class":"fast"},"ratio":{"path":"/ta/ratio","method":"POST","kind":"compute","tier":"basic","description":"Compute a fundamental ratio (pe/eps/ps/pb/ev_ebitda/peg/margins/roe/de).","parameters":{"name":{"type":"string","enum":["de","eps","ev_ebitda","margins","pb","pe","peg","ps","roe"]},"inputs":{"type":"object","description":"numeric inputs for the ratio"}},"required":["name","inputs"],"output_example":{"formula":"pe","value":65.2,"units":"x","method":"price / eps_ttm"},"latency_class":"fast"},"signal":{"path":"/ta/signal","method":"POST","kind":"compute","tier":"basic","description":"Deterministic technical signal / sentiment from an OHLCV envelope (trend/rsi/macd/breakout/volatility/volume/adx/stoch/sentiment/snapshot).","parameters":{"name":{"type":"string","enum":["adx","breakout","macd","rsi","sentiment","snapshot","stoch","trend","volatility","volume"]},"ohlc":{"type":"object","description":"OHLCV envelope"},"period":{"type":"integer","description":"default 14"}},"required":["name","ohlc"],"output_example":{"signal":"sentiment","value":0.62,"label":"bullish"},"latency_class":"fast"},"verify":{"path":"/ta/verify","method":"POST","kind":"validate","tier":"basic","description":"Cross-verify two independent values (price pct tolerance or value abs tolerance).","parameters":{"type":{"type":"string","enum":["price","value"]},"a":{"type":"number","description":"first value"},"b":{"type":"number","description":"second value"},"tolerance":{"type":"number","description":"override tolerance"}},"required":["type","a","b"],"output_example":{"type":"price","a":100.0,"b":99.8,"match":true,"pct_diff":0.2},"latency_class":"fast"},"sources":{"path":"/ta/sources","method":"POST","kind":"helper","tier":"basic","description":"List the service's data sources and their reliability ratings.","parameters":{},"required":[],"output_example":{"sources":[{"name":"yahoo_chart","kind":"ohlcv","auth":"none","reliability":"high"}]},"latency_class":"fast"},"knowledge":{"path":"/ta/knowledge","method":"POST","kind":"helper","tier":"basic","description":"Retrieve the service's methodology corpus (determinism contract, verification, sources, output format).","parameters":{"query":{"type":"string","description":"what you need guidance on"},"limit":{"type":"integer","description":"chunk count"}},"required":["query"],"output_example":{"query":"verification tolerances","count":1,"chunks":[{"topic":"verify","text":"..."}]},"latency_class":"fast"},"snapshot":{"path":"/ta/snapshot","method":"POST","kind":"assembly","tier":"basic","description":"One structured packet for a fast trade read: quote + OHLCV + full technical signal(snapshot) + sentiment.","parameters":{"symbol":{"type":"string"},"sector":{"type":"string","description":"for context"}},"required":["symbol"],"output_example":{"symbol":"TSLA","chart":{"closes":[400.0]},"signals":{"snapshot":{"value":0.6}},"sentiment":{"value":0.62}},"latency_class":"medium"},"ta_ask":{"path":"/ta/ask","method":"POST","kind":"assembly","tier":"exclusive","description":"One-call trade-ready analysis. DeepSeek orchestrates the deterministic operations and returns a structured brief (snapshot, signals, levels, entry/target/stop, risk, bottom line).","parameters":{"question":{"type":"string","description":"Ask the trade analyst anything."},"symbol":{"type":"string","description":"optional focus symbol"}},"required":["question"],"output_example":{"question":"Give me a trade-ready technical view on TSLA","report":{"markdown":"## snapshot\n..."},"tools_used":["ta_chart","ta_signal"],"turns_taken":3},"latency_class":"slow"},"backtest":{"path":"/ta/backtest","method":"POST","kind":"compute","tier":"basic","description":"Deterministic strategy backtest over a caller-supplied OHLCV envelope with a declarative strategy spec and optional cost model. No lookahead: signal on close(t) executes at open(t+1); whole-share accounting; metrics from a daily mark-to-market equity curve.","parameters":{"ohlc":{"type":"object","description":"OHLCV envelope (timestamps/opens/highs/lows/closes)"},"strategy":{"type":"object","description":"{initial_capital, signal:{type,..}, exit:{stop_atr_mult, take_profit_atr_mult, trail:{period}, max_bars}, sizing:{mode, deploy_pct, risk_pct}}"},"costs":{"type":"object","description":"optional cost-model overrides; defaults to the Indian delivery-equity model (STT both sides, stamp, exchange, SEBI, GST, brokerage, slippage ~0.39% round trip)"}},"required":["ohlc","strategy"],"output_example":{"metrics":{"total_return_pct":26.6,"sharpe":1.2,"max_drawdown_pct":-9.0,"trade_count":18},"trades":[{"entry_bar":5,"exit_bar":22,"return_pct":3.1,"reason":"signal"}]},"latency_class":"fast"},"options_brief":{"path":"/ta/options_brief","method":"POST","kind":"compute","tier":"basic","description":"Deterministic option-chain analytics from a caller-supplied chain + spot: ATM straddle expected move, optional VIX-1SD cross-check, IV/delta ladder, 16-delta strangle, and a sample iron-condor credit/max-loss/risk-reward.","parameters":{"chain":{"type":"object","description":"{strikes[], call_bids[], call_asks[], put_bids[], put_asks[]}"},"spot":{"type":"number","description":"underlying spot (e.g. SPY)"},"spx_ratio":{"type":"number","description":"SPX/SPY conversion (default 10.03)"},"ttm_years":{"type":"number","description":"years to expiry (default 1/252)"},"vix":{"type":"number","description":"optional, for the VIX-1SD cross-check"},"spx_close":{"type":"number","description":"optional SPX close for the VIX-1SD range"},"width":{"type":"number","description":"iron-condor wing width in underlying pts (default 5.0)"},"min_mid":{"type":"number","description":"min mid to include in IV/delta ladder (default 0.05)"}},"required":["chain","spot"],"output_example":{"expected_move":{"pct":0.62,"spx_abs":36.7},"strangle_16d":{"credit":1.4},"iron_condor":{"risk_reward":0.32}},"latency_class":"fast"}}