# ClickAPIs > Financial markets analytics API. Send a question about one or more instruments as JSON and get computed answers back: snapshots, performance and risk, drawdowns, seasonality, return distributions, support and resistance, correlation, comparisons, portfolio risk, event studies, backtests, screens, movers, sector performance and peers. Pay per use from prepaid credits. Also an MCP server for AI agents. - Base URL: https://clickapis.com/v1 — every operation is POST /v1/ with a JSON body. - Auth: header `Authorization: Bearer ` (keys start with ck_live_). Read the key from env CLICKAPIS_KEY. - Reply: {"ok": true, "data": {...}, "meta": {op, units, cost_usd, ms, interval, billing, balance_usd, data_as_of, partial_last_bar}} or {"ok": false, "error": {code, message}}. - Numbers are decimals (0.05 = 5%). Dates ISO YYYY-MM-DD. Uncomputable values are null. - Price: $0.50 per 1,000 units; intraday intervals cost 5x. Failed calls are free. - MCP: POST https://clickapis.com/mcp (Streamable HTTP), same Bearer key. ## Docs - [Quickstart](https://clickapis.com/docs) - [Authentication](https://clickapis.com/docs/authentication) - [Errors](https://clickapis.com/docs/errors) - [Billing & units](https://clickapis.com/docs/billing) - [Jobs, polling and signed webhooks](https://clickapis.com/docs/jobs) - [Testing a webhook receiver (POST /v1/webhooks/test)](https://clickapis.com/docs/jobs#testing) - [Limits](https://clickapis.com/docs/limits) - [Expression language (conditions like rsi(14) < 30 and close > sma(200))](https://clickapis.com/docs/dsl) - [Universes & symbols](https://clickapis.com/docs/universes) - [Intraday intervals](https://clickapis.com/docs/intraday) - [Fair use](https://clickapis.com/docs/fair-use) ## Endpoints - [Snapshot — POST /v1/snapshot](https://clickapis.com/docs/snapshot): Everything about one symbol today in a single call: period returns, trend, momentum, volatility regime, 52-week range, volume, one-year risk and the signals active on the latest bar. - [Performance & risk — POST /v1/performance](https://clickapis.com/docs/performance): Period returns, CAGR, volatility, Sharpe, Sortino, maximum drawdown, VaR and CVaR, skew and kurtosis, plus beta, alpha, R², tracking error and up/down capture against a benchmark. - [Query — POST /v1/query](https://clickapis.com/docs/query): Evaluate any expressions over a symbol’s history and keep only the bars where a condition holds. Same expression language as screens, event studies and backtests. - [Drawdowns — POST /v1/drawdowns](https://clickapis.com/docs/drawdowns): Every drawdown episode: peak, trough, depth, bars to the trough and to recovery, the current drawdown and the share of time spent under water. - [Seasonality — POST /v1/seasonality](https://clickapis.com/docs/seasonality): Average, median, win rate and t-statistic for each calendar month and weekday, the best and worst years, and a year-by-month grid. - [Return distribution — POST /v1/distribution](https://clickapis.com/docs/distribution): The distribution of returns over a horizon: percentiles, skew and fat tails, a histogram, how often moves beyond given thresholds happen, and where the latest move sits. - [Support & resistance — POST /v1/levels](https://clickapis.com/docs/levels): Support and resistance levels from clustered swing highs and lows, with touches and distance from the last close, plus pivot points and the position in the range. - [Correlation — POST /v1/correlation](https://clickapis.com/docs/correlation): Correlation matrix over a window, the most and least correlated pairs, annualised volatilities, and a rolling correlation for the first pair. - [Compare — POST /v1/compare](https://clickapis.com/docs/compare): Several symbols side by side over the same dates: total return, CAGR, volatility, Sharpe, max drawdown, beta, and a growth-of-1 series for charting. - [Portfolio risk — POST /v1/risk](https://clickapis.com/docs/risk): Portfolio volatility, historical and parametric VaR and CVaR (in money with a portfolio value), each holding’s share of risk, diversification ratio, beta and the worst days. - [Event study — POST /v1/event-study](https://clickapis.com/docs/event-study): Every time a condition was true, what happened next: forward returns at several horizons, win rate, and the edge over all other bars with t-statistics. Pool up to 100 symbols in one call. - [Backtest — POST /v1/backtest](https://clickapis.com/docs/backtest): Rule-based backtest with entry and exit expressions, stops, targets, time limits, fees and slippage, filled at the next open with no look-ahead. Returns statistics against buy-and-hold, every trade and the equity curve. - [Screen — POST /v1/screen](https://clickapis.com/docs/screen): Run a condition across a universe or your own list, add computed columns and sort. Returns the symbols that match on the latest bar. - [Movers — POST /v1/movers](https://clickapis.com/docs/movers): Biggest gainers, losers, gappers, volume surges or widest ranges in a universe over the last day, five days or month. - [Sectors — POST /v1/sectors](https://clickapis.com/docs/sectors): Sector performance across a universe: median return per sector over several periods, breadth (share above the 50-day average) and the leading sector for each period. - [Peers — POST /v1/peers](https://clickapis.com/docs/peers): The instruments that behave most like a symbol: same sector and industry, ranked by a similarity score that includes one-year return correlation. - [Trader statistics — POST /v1/trader-stats](https://clickapis.com/docs/trader-stats): How a symbol trades: the win rate of days, weeks, months and years, average and largest up and down moves, the longest winning and losing streaks, volume on up versus down days, and a year-by-year table. - [Volatility — POST /v1/volatility](https://clickapis.com/docs/volatility): Realised volatility with five estimators (close-to-close, Parkinson, Garman-Klass, Rogers-Satchell, Yang-Zhang) over several windows, the volatility cone with today’s percentile in each window, and a regime label. - [Volume profile — POST /v1/volume-profile](https://clickapis.com/docs/volume-profile): Volume by price over the lookback: the point of control, the value area high and low, high- and low-volume nodes, and where the current price sits in the profile. - [Unusual volume — POST /v1/unusual-volume](https://clickapis.com/docs/unusual-volume): Every volume spike (volume at least threshold times its average) with the return that day and 1, 5 and 20 bars later, and what followed up-day and down-day spikes compared with all bars. - [Gaps — POST /v1/gaps](https://clickapis.com/docs/gaps): Opening gaps up and down: how often they fill the same day and within N days, how long filling takes, open-to-close and next-five-day returns by gap size, and the recent gaps that are still open. - [Streaks — POST /v1/streaks](https://clickapis.com/docs/streaks): Runs of consecutive up and down closes: how long they last, the current streak and how often one that long carried on, and what happened over the next bar and next five bars after an N-day up or down streak. - [Candlestick patterns — POST /v1/candles](https://clickapis.com/docs/candles): Seventeen candlestick patterns with stated rules (doji, hammer, engulfing, harami, piercing line, stars, three soldiers and crows, marubozu): occurrences, forward returns and win rates against all bars, the latest occurrences and the patterns on the last bar. - [Technical signals — POST /v1/signals](https://clickapis.com/docs/signals): Twenty-three technical signals (golden and death crosses, RSI, MACD, Bollinger breaks, 52-week highs and lows, ADX, volume breakouts, SMA and stochastic crosses): which fired recently, and how each one has done on this symbol before. - [Best & worst days — POST /v1/best-days](https://clickapis.com/docs/best-days): The best and worst days with dates, what buy-and-hold returned against missing the best (or the worst, or both) 5, 10, 20 or 30 days, and how closely the best days cluster around the worst ones. - [Earnings moves — POST /v1/earnings-moves](https://clickapis.com/docs/earnings-moves): How a stock reacted to every earnings report, measured on the right day for before-the-open and after-the-close reports: the gap, the day’s move, the close-to-close reaction and the 5- and 20-day drift, with move statistics, beats against misses and the next report date. - [Dividends — POST /v1/dividends](https://clickapis.com/docs/dividends): Dividend history adjusted for splits, annual totals, 1, 3, 5 and 10-year growth, consecutive years of increases, payment frequency, trailing and forward yield, and where today’s yield sits in its own history. Stocks and ETFs. - [Fibonacci levels — POST /v1/fibonacci](https://clickapis.com/docs/fibonacci): Fibonacci retracements (23.6% to 78.6%) and extensions (127.2% to 261.8%) of the dominant swing in the lookback, with prices, distances from the last close and the nearest support and resistance. - [Factor exposures — POST /v1/factors](https://clickapis.com/docs/factors): OLS of excess returns on ETF factor proxies (market, size, value, momentum, quality, low volatility, or your own long/short legs): betas, t-stats, R², annual alpha, residual volatility and a rolling 1-year market beta. - [Liquidity — POST /v1/liquidity](https://clickapis.com/docs/liquidity): Average and median dollar volume (20/60/252 days), Amihud illiquidity, Roll and Corwin-Schultz spread estimates, turnover, volume variability and an optional liquidity percentile within a universe. - [Range & ATR — POST /v1/range](https://clickapis.com/docs/range): True range and ATR with its regime percentile, inside/outside days, NR4/NR7 bars and what followed them, average range by weekday and expansion/contraction streaks. - [Skew & tails — POST /v1/skew](https://clickapis.com/docs/skew): Rolling skewness and kurtosis with their percentiles, up vs down volatility, tail ratio, 3-sigma counts and the largest down days. - [Herding — POST /v1/herding](https://clickapis.com/docs/herding): Cross-sectional dispersion (CSSD, CSAD) across a universe, the Chang-Cheng-Khorana herding regression, the extreme-market-day test and a rolling CSAD series. - [Return attribution — POST /v1/attribution](https://clickapis.com/docs/attribution): Portfolio total return split into additive contributions by holding, by sector and by month (best and worst contributor), buy-and-hold or rebalanced. - [Stress test — POST /v1/stress](https://clickapis.com/docs/stress): Portfolio return, max drawdown and worst day through historical crises (2008, 2011, 2015, 2018, 2020, 2022, 2023) and your own windows, contributions per holding, plus beta-scaled benchmark shocks. - [Z-score & mean reversion — POST /v1/zscore](https://clickapis.com/docs/zscore): Z-score of price vs its 20/50/200-bar averages and of recent returns, with how often and how fast past 2-sigma excursions reverted and the AR(1) half-life. - [Market regime — POST /v1/regime](https://clickapis.com/docs/regime): Each bar classified as bull/sideways/bear x low/normal/high volatility: the current regime, time in each, transition probabilities and forward returns by regime. - [Price-action setups — POST /v1/price-actions](https://clickapis.com/docs/price-actions): Inside-bar and NR7 breakouts, outside and key reversals, 3-bar reversals, 20-EMA pullbacks and 52-week-high retests: occurrences, forward returns and win rate vs baseline, and which are active now. - [Chart patterns — POST /v1/patterns](https://clickapis.com/docs/patterns): Double tops/bottoms, head & shoulders, triangles, wedges and flags from zigzag swing points, with breakout levels, targets, status, and this symbol's history of what followed confirmed patterns. - [Entry & exit plan — POST /v1/entry-exit](https://clickapis.com/docs/entry-exit): ATR, chandelier and swing stops, R-multiple and level targets, reward/risk, position size for your account and risk, and how often the stop or the 2R target was hit first in the past. - [Trend analysis — POST /v1/trends](https://clickapis.com/docs/trends): Regression channels (slope per year, R², position), trend age vs the 200-day average, ADX and DI, swing structure (higher highs/lows) and a daily/weekly/monthly trend table. - [Intraday VWAP — POST /v1/intraday-vwap](https://clickapis.com/docs/intraday-vwap): Session VWAP with 1 and 2 standard-deviation bands, time above VWAP, current deviation, an anchored VWAP and the VWAP of previous sessions, on 1min or 5min bars. - [Intraday levels — POST /v1/intraday-levels](https://clickapis.com/docs/intraday-levels): Opening ranges (5/15/30 min) and breakouts, prior-day high/low/close, gap, floor pivots, round numbers and the distance to each, plus opening-range breakout follow-through over earlier sessions. - [Pairs analysis — POST /v1/pairs](https://clickapis.com/docs/pairs): Hedge ratio (static and rolling), spread and z-score, Engle-Granger cointegration with a MacKinnon p-value, half-life, correlation, z-band signals and a no-look-ahead backtest. - [Signal dashboard — POST /v1/signal-dashboard](https://clickapis.com/docs/signal-dashboard): A matrix of 13 scored signals per symbol (trend, momentum, RSI, MACD, Bollinger, stochastic, 52-week range, volume, volatility, MA cross, z-score, ADX) with a composite score, breadth and sorting. - [Multi-factor rank — POST /v1/rank](https://clickapis.com/docs/rank): Rank a list or universe by a weighted composite of z-scored metrics (momentum, volatility, Sharpe, drawdown, RSI, distance from high, liquidity) or your own expressions, with ranks and percentiles. ## Integrations - [Claude (Claude Code, Desktop, API)](https://clickapis.com/docs/claude) - [OpenAI (Responses API, function calling)](https://clickapis.com/docs/openai) - [Any MCP client](https://clickapis.com/docs/mcp) - [LangChain & Python agents](https://clickapis.com/docs/langchain) ## Examples - [Is NVDA in an uptrend?](https://clickapis.com/examples/nvda-uptrend) (POST /v1/snapshot) - [Who are Apple's closest peers?](https://clickapis.com/examples/aapl-peers) (POST /v1/peers) - [Today's biggest gappers](https://clickapis.com/examples/todays-gappers) (POST /v1/movers) - [Which sectors lead this month?](https://clickapis.com/examples/sectors-leading) (POST /v1/sectors) - [MSFT: ten years of return and risk](https://clickapis.com/examples/msft-performance-10y) (POST /v1/performance) - [Where are SPY's support and resistance levels?](https://clickapis.com/examples/spy-support-resistance) (POST /v1/levels) - [QQQ's worst drawdowns and how long they took to recover](https://clickapis.com/examples/qqq-drawdowns) (POST /v1/drawdowns) - [Best and worst months for SPY](https://clickapis.com/examples/spy-best-months) (POST /v1/seasonality) - [How big is a normal day for TSLA?](https://clickapis.com/examples/tsla-daily-moves) (POST /v1/distribution) - [Compare the megacaps since 2023](https://clickapis.com/examples/megacaps-compare) (POST /v1/compare) - [Do stocks, bonds and gold still diversify?](https://clickapis.com/examples/stocks-bonds-gold-corr) (POST /v1/correlation) - [Days AAPL traded three times its normal volume](https://clickapis.com/examples/aapl-volume-spikes) (POST /v1/query) - [Oversold large caps right now](https://clickapis.com/examples/oversold-large-caps) (POST /v1/screen) - [This week's biggest losers in the top 500](https://clickapis.com/examples/weekly-losers) (POST /v1/movers) - [Strongest sector ETFs by three-month momentum](https://clickapis.com/examples/sector-etf-momentum) (POST /v1/screen) - [What usually happens after a 3-day losing streak in QQQ?](https://clickapis.com/examples/qqq-losing-streak) (POST /v1/event-study) - [Oversold in an uptrend: the index ETFs](https://clickapis.com/examples/oversold-uptrend-etfs) (POST /v1/event-study) - [Portfolio VaR for a 60/40](https://clickapis.com/examples/portfolio-var-6040) (POST /v1/risk) - [Which holding drives the risk in a tech-heavy portfolio?](https://clickapis.com/examples/tech-heavy-risk) (POST /v1/risk) - [Golden cross backtest with stops](https://clickapis.com/examples/golden-cross-stops) (POST /v1/backtest) - [Near 52-week highs with volatility compressed](https://clickapis.com/examples/near-highs-squeeze) (POST /v1/screen) - [5-minute RSI extremes in SPY](https://clickapis.com/examples/spy-5min-rsi) (POST /v1/query) - [How far does SPY move in an hour?](https://clickapis.com/examples/spy-hourly-moves) (POST /v1/distribution) - [52-week breakouts across the megacaps](https://clickapis.com/examples/breakouts-pooled) (POST /v1/event-study) - [RSI(2) mean reversion with a time stop](https://clickapis.com/examples/rsi2-mean-reversion) (POST /v1/backtest) - [Short QQQ below its 200-day average](https://clickapis.com/examples/qqq-short-breakdown) (POST /v1/backtest) - [EMA crossover on 15-minute QQQ bars](https://clickapis.com/examples/qqq-15min-ema) (POST /v1/backtest) - [Does 'oversold in an uptrend' work across 100 stocks?](https://clickapis.com/examples/oversold-study-top500) (POST /v1/event-study) - [How often does SPY close higher?](https://clickapis.com/examples/spy-trader-stats) (POST /v1/trader-stats) - [Is TSLA's volatility high right now?](https://clickapis.com/examples/tsla-volatility-cone) (POST /v1/volatility) - [Where did NVDA trade the most volume?](https://clickapis.com/examples/nvda-volume-profile) (POST /v1/volume-profile) - [What happens after AAPL's volume spikes?](https://clickapis.com/examples/aapl-unusual-volume) (POST /v1/unusual-volume) - [Do TSLA's big gaps fill?](https://clickapis.com/examples/tsla-gap-fills) (POST /v1/gaps) - [After 5 down days in a row, what does QQQ do?](https://clickapis.com/examples/qqq-streaks) (POST /v1/streaks) - [Do candlestick patterns work on SPY?](https://clickapis.com/examples/spy-candle-patterns) (POST /v1/candles) - [Which technical signals fired on NVDA this week?](https://clickapis.com/examples/nvda-signals) (POST /v1/signals) - [What if you missed SPY's 10 best days?](https://clickapis.com/examples/spy-missing-best-days) (POST /v1/best-days) - [How much does NVDA move on earnings?](https://clickapis.com/examples/nvda-earnings-moves) (POST /v1/earnings-moves) - [How fast does Coca-Cola grow its dividend?](https://clickapis.com/examples/ko-dividend-growth) (POST /v1/dividends) - [AAPL Fibonacci retracement levels](https://clickapis.com/examples/aapl-fibonacci) (POST /v1/fibonacci) - [Where SPY traded most in the last week (5-minute volume profile)](https://clickapis.com/examples/spy-5min-volume-profile) (POST /v1/volume-profile) - [NVDA 15-minute volume spikes and what followed](https://clickapis.com/examples/nvda-15min-unusual-volume) (POST /v1/unusual-volume) - [QQQ hourly Fibonacci levels](https://clickapis.com/examples/qqq-hourly-fibonacci) (POST /v1/fibonacci) - [TSLA 15-minute candlestick patterns with forward returns](https://clickapis.com/examples/tsla-15min-candles) (POST /v1/candles) - [SPY 30-minute technical signals and their edge](https://clickapis.com/examples/spy-30min-signals) (POST /v1/signals) - [AAPL hourly trader statistics](https://clickapis.com/examples/aapl-hourly-trader-stats) (POST /v1/trader-stats) - [What drives AAPL: market, size, value, momentum, quality?](https://clickapis.com/examples/aapl-factor-exposures) (POST /v1/factors) - [How liquid is SMCI compared with the top 500?](https://clickapis.com/examples/smci-liquidity) (POST /v1/liquidity) - [Is TSLA's daily range unusually wide or narrow?](https://clickapis.com/examples/tsla-atr-regime) (POST /v1/range) - [How fat are SPY's tails, and is skew unusual now?](https://clickapis.com/examples/spy-tails) (POST /v1/skew) - [Are the 100 largest US stocks herding?](https://clickapis.com/examples/top100-herding) (POST /v1/herding) - [Which holdings made this portfolio's return?](https://clickapis.com/examples/portfolio-attribution) (POST /v1/attribution) - [How would a 60/40 portfolio have done in past crises?](https://clickapis.com/examples/6040-stress-test) (POST /v1/stress) - [How stretched is NVDA from its averages?](https://clickapis.com/examples/nvda-zscore) (POST /v1/zscore) - [What regime is SPY in, and what usually follows?](https://clickapis.com/examples/spy-regime) (POST /v1/regime) - [Do classic price-action setups work on QQQ?](https://clickapis.com/examples/qqq-price-action) (POST /v1/price-actions) - [Which chart patterns are forming on AAPL?](https://clickapis.com/examples/aapl-chart-patterns) (POST /v1/patterns) - [Where should a MSFT long put its stop and targets?](https://clickapis.com/examples/msft-trade-plan) (POST /v1/entry-exit) - [How strong and how old is AAPL's trend?](https://clickapis.com/examples/aapl-trend-check) (POST /v1/trends) - [Where is SPY trading against today's VWAP?](https://clickapis.com/examples/spy-session-vwap) (POST /v1/intraday-vwap) - [What are AAPL's key intraday levels today?](https://clickapis.com/examples/aapl-intraday-levels) (POST /v1/intraday-levels) - [Are Australia and Canada ETFs a tradable pair?](https://clickapis.com/examples/ewa-ewc-pair) (POST /v1/pairs) - [Signal matrix for the megacaps](https://clickapis.com/examples/megacap-signal-matrix) (POST /v1/signal-dashboard) - [Rank the top 100 by momentum and low volatility](https://clickapis.com/examples/top100-momentum-lowvol) (POST /v1/rank) ## Optional - [Everything in one file](https://clickapis.com/llms-full.txt) - [Machine-readable catalog (JSON Schema)](https://clickapis.com/v1/catalog) - [Terms](https://clickapis.com/terms), [Fair use](https://clickapis.com/fair-use)