ClickAPIs

Financial markets analytics API

Stop downloading prices.
Ask for the answer.

ClickAPIs computes what teams usually build themselves from raw price data: performance and risk, event studies, backtests, screens and full symbol snapshots. One HTTPS call returns the finished numbers, for your apps, your models and AI agents.

46 analytics endpointsSnapshot, performance, risk, event study, backtest, screen, movers and more
49 functions, 17 fieldsOne expression language across screens, studies and backtests
60,000+ instrumentsStocks, ETFs, indices, FX and crypto, daily and intraday
Pay per useNo subscription. Add credits, spend fractions of a cent per call
Raw barsCleaned & adjustedIndicators & signalsAnswer

Five steps ahead of a data feed

A price feed gives you step one. Every team then rebuilds the same pipeline before it can answer a question. ClickAPIs starts where that pipeline ends.

1 · Raw barsDownload and store OHLCV
2 · CleanSplits, dividends, bad prints, gaps
3 · AlignCalendars, crypto vs stocks, benchmarks
4 · ComputeIndicators, returns, rolling windows
5 · TestStatistics, baselines, no look-ahead
6 · AnswerThat's where ClickAPIs starts

Ask a market question in one request

From a quick check on one symbol to a statistical test across years of history: the input is a few lines of JSON, the output is the finished answer.

One call gives the full picture of a symbol today: period returns, where price sits against its 20, 50 and 200-day averages, trend strength (ADX), momentum (RSI, MACD), the volatility regime, the 52-week range, volume and the signals that are active on the latest bar.

Input POST /v1/snapshot
{
  "symbol": "NVDA"
}
Output 200 OK
{
  "ok": true,
  "data": {
    "symbol": "NVDA",
    "date": "2026-11-12",
    "close": 164.13,
    "returns": {
      "1d": -0.055258,
      "1w": -0.0962,
      "1m": -0.274788,
      "3m": -0.266753,
      "6m": -0.254903,
      "ytd": -0.117913,
      "1y": -0.151081,
      "3y": 2.405187,
      "5y": 4.429375,
      "10y": null,
      "max": 6.34034,
      "since": "2021-09-10",
      "3y_annualized": 0.504459,
      "5y_annualized": 0.402652,
      "10y_annualized": null
    },
    "trend": {
      "label": "downtrend",
      "above_sma20": false,
      "above_sma50": false,
      "above_sma200": false,
      "sma20": 201.1495,
      "sma50": 215.8976,
      "sma200": 204.05605,
      "dist_sma50": -0.239778,
      "dist_sma200": -0.195662,
      "adx14": 39.48983,
      "strength": "trending"
    },
    "momentum": {
      "rsi14": 25.331331,
      "state": "oversold",
      "macd": -13.399382,
      "macd_signal": -9.102401,
      "macd_hist": -4.296981,
      "streak_days": -1
    },
    "volatility": {
      "realized_20d": 0.5493,
      "realized_1y": 0.388969,
      "regime": "elevated",
      "atr14": 9.836377,
      "atr14_pct": 0.05993,
      "bollinger_pct_b": -0.014295
    },
    "range": {
      "high_52w": 243.37,
      "low_52w": 148.8,
      "position_in_52w_range": 0.162102,
      "dist_from_52w_high": -0.325595,
      "drawdown_from_ath": -0.313953
    },
    "volume": {
      "last": 680574013.0,
      "avg_20d": 189158434.9,
      "relative": 3.597905,
      "dollar_volume_20d": 35492375936.0
    },
    "risk": {
      "days": 250,
      "annual_return": -0.119823,
      "annual_volatility": 0.387365,
      "sharpe": -0.136096,
      "sortino": -0.189242,
      "max_drawdown": -0.313953,
      "calmar": -0.381658,
      "best_day": 0.08738,
      "worst_day": -0.09259,
      "up_days_pct": 0.496,
      "avg_up_day": 0.018952,
      "avg_down_day": -0.019068,
      "skew": -0.049187,
      "excess_kurtosis": 1.003318,
      "var_95_1d": 0.041955,
      "cvar_95_1d": 0.052155,
      "var_99_1d": 0.055003,
      "cvar_99_1d": 0.069961
    },
    "signals": [
      {
        "signal": "RSI(14) oversold (<30)",
        "type": "bullish"
      },
      {
        "signal": "Close below lower Bollinger band",
        "type": "stretched"
      },
      {
        "signal": "Volume more than 2x its 20-day average",
        "type": "attention"
      }
    ],
    "vs_benchmark_1y": {
      "benchmark": "SPY",
      "days": 251,
      "beta": 1.780165,
      "correlation": 0.629319,
      "alpha_annual": -0.301672,
      "r_squared": 0.396043,
      "tracking_error": 0.320992,
      "information_ratio": -0.649138,
      "up_capture": 1.654895,
      "down_capture": 2.034324,
      "excess_return_total": -0.267004
    }
  },
  "meta": {
    "op": "snapshot",
    "units": 3,
    "cost_usd": 0.0,
    "billing": "internal",
    "free_call": false,
    "free_calls_left": 0,
    "balance_usd": 5.0,
    "ms": 127,
    "interval": "1day",
    "data_as_of": "2026-11-12",
    "partial_last_bar": false
  }
}

How to read this answer →

Scans the 500 largest US stocks for names that are short-term oversold (RSI below 30) while still in a long-term uptrend (above the 200-day average).

Input POST /v1/screen
{
  "universe": "us.top500",
  "where": "rsi(14) < 30 and close > sma(200)",
  "select": [
    "rsi(14) as rsi",
    "ret(20) as ret_20d",
    "dist_high(252) as off_high"
  ],
  "sort": "rsi(14)",
  "order": "asc",
  "limit": 25
}
Output 200 OK
{
  "ok": true,
  "data": {
    "rows": [
      {
        "rsi": 26.411771,
        "date": "2026-11-12",
        "close": 44.79,
        "symbol": "DT",
        "ret_20d": -0.297191,
        "off_high": -0.324434,
        "sort_value": 26.411771
      },
      {
        "rsi": 29.946263,
        "date": "2026-11-12",
        "close": 317.91,
        "symbol": "ZBRA",
        "ret_20d": -0.157877,
        "off_high": -0.190616,
        "sort_value": 29.946263
      }
    ],
    "sort": "rsi(14)",
    "order": "asc",
    "where": "rsi(14) < 30 and close > sma(200)",
    "matched": 2,
    "scanned": 500,
    "universe": "us.top500",
    "not_found": 0
  },
  "meta": {
    "op": "screen",
    "units": 50,
    "cost_usd": 0.0,
    "job_id": "5aa46740-680e-4907-840d-287474ea399a",
    "via": "job (POST returned 202, result fetched from GET /v1/jobs/{id})"
  }
}

How to read this answer →

Finds every day QQQ closed lower for the third day in a row since 2010, then measures returns 1, 5 and 20 days later and compares them with all other days.

Input POST /v1/event-study
{
  "symbols": [
    "QQQ"
  ],
  "condition": "streak() == -3",
  "horizons": [
    1,
    5,
    20
  ],
  "start_date": "2010-01-01"
}
Output 200 OK
{
  "ok": true,
  "data": {
    "condition": "streak() == -3",
    "cooldown_bars": 1,
    "symbols": 1,
    "occurrences": 202,
    "horizon_unit": "trading days",
    "results": [
      {
        "count": 202,
        "mean": 0.003496,
        "median": 0.003472,
        "win_rate": 0.594059,
        "stdev": 0.014759,
        "t_stat": 3.366597,
        "p25": -0.004901,
        "p75": 0.010527,
        "best": 0.054445,
        "worst": -0.046493,
        "horizon": 1,
        "baseline_mean": 0.000754,
        "baseline_win_rate": 0.557416,
        "edge": 0.002742,
        "edge_t_stat": 2.592218
      },
      {
        "count": 202,
        "mean": 0.006411,
        "median": 0.007394,
        "win_rate": 0.628713,
        "stdev": 0.031401,
        "t_stat": 2.901629,
        "p25": -0.00938,
        "p75": 0.027084,
        "best": 0.101641,
        "worst": -0.12539,
        "horizon": 5,
        "baseline_mean": 0.003705,
        "baseline_win_rate": 0.602549,
        "edge": 0.002706,
        "edge_t_stat": 1.203891
      },
      {
        "count": 201,
        "mean": 0.017638,
        "median": 0.022334,
        "win_rate": 0.666667,
        "stdev": 0.057333,
        "t_stat": 4.361595,
        "p25": -0.016626,
        "p75": 0.053894,
        "best": 0.205272,
        "worst": -0.228383,
        "horizon": 20,
        "baseline_mean": 0.015009,
        "baseline_win_rate": 0.670298,
        "edge": 0.002629,
        "edge_t_stat": 0.638132
      }
    ],
    "per_symbol": null,
    "recent": [
      {
        "symbol": "QQQ",
        "date": "2026-11-02",
        "close": 681.09,
        "ret_1d": 0.006152,
        "ret_5d": -0.002555,
        "ret_20d": null
      },
      {
        "symbol": "QQQ",
        "date": "2026-10-14",
        "close": 728.95,
        "ret_1d": -0.001303,
        "ret_5d": -0.005144,
        "ret_20d": -0.052912
      },
      {
        "symbol": "QQQ",
        "date": "2026-09-10",
        "close": 708.69,
        "ret_1d": 0.008734,
        "ret_5d": 0.011613,
        "ret_20d": 0.054876
      },
      {
        "symbol": "QQQ",
        "date": "2026-08-18",
        "close": 717.51,
        "ret_1d": -0.001993,
        "ret_5d": -0.009463,
        "ret_20d": -0.017826
      },
      {
        "symbol": "QQQ",
        "date": "2026-07-24",
        "close": 684.23,
        "ret_1d": -0.003084,
        "ret_5d": 0.005495,
        "ret_20d": 0.04269
      },
      "… 12 more items …",
      {
        "symbol": "QQQ",
        "date": "2025-08-18",
        "close": 574.35,
        "ret_1d": -0.013581,
        "ret_5d": -0.01177,
        "ret_20d": 0.024375
      },
      {
        "symbol": "QQQ",
        "date": "2025-06-20",
        "close": 523.72,
        "ret_1d": 0.010273,
        "ret_5d": 0.041511,
        "ret_20d": 0.072081
      },
      {
        "symbol": "QQQ",
        "date": "2025-04-21",
        "close": 430.55,
        "ret_1d": 0.026269,
        "ret_5d": 0.090744,
        "ret_20d": 0.205272
      }
    ],
    "notes": [
      "Forward returns are close-to-close from the signal bar and overlap when occurrences are closer together than the horizon; t-stats are therefore optimistic."
    ],
    "interval": "1day"
  },
  "meta": {
    "op": "event-study",
    "units": 3,
    "cost_usd": 0.0,
    "billing": "internal",
    "free_call": false,
    "free_calls_left": 0,
    "balance_usd": 5.0,
    "ms": 27,
    "interval": "1day",
    "data_as_of": "2026-11-12",
    "partial_last_bar": false
  }
}

How to read this answer →

Buys SPY when the 50-day average crosses above the 200-day and sells on the opposite cross, with an 8% stop loss and a 15% trailing stop, fees and slippage included, since 2000.

Input POST /v1/backtest
{
  "symbol": "SPY",
  "entry": "cross_above(sma(50), sma(200))",
  "exit": "cross_below(sma(50), sma(200))",
  "start_date": "2000-01-01",
  "stop_loss": 0.08,
  "trailing_stop": 0.15,
  "fee_bps": 1,
  "slippage_bps": 2
}
Output 200 OK
{
  "ok": true,
  "data": {
    "symbol": "SPY",
    "start": "2000-01-03",
    "end": "2026-11-12",
    "rules": {
      "entry": "cross_above(sma(50), sma(200))",
      "exit": "cross_below(sma(50), sma(200))",
      "side": "long",
      "initial_capital": 10000,
      "position_size": 1.0,
      "stop_loss": 0.08,
      "take_profit": null,
      "trailing_stop": 0.15,
      "max_bars": null,
      "cooldown_bars": 0,
      "fill": "next_open",
      "fee_bps": 1.0,
      "slippage_bps": 2.0
    },
    "stats": {
      "initial_capital": 10000.0,
      "final_equity": 83087.79,
      "net_profit": 73087.79,
      "total_return": 7.308779,
      "cagr": 0.081715,
      "max_drawdown": -0.20408,
      "sharpe": 0.753515,
      "sortino": 1.045296,
      "trades": 12,
      "win_rate": 0.75,
      "avg_trade_return": 0.18606,
      "median_trade_return": 0.157892,
      "avg_trade_pnl": 4758.09,
      "best_trade_return": 0.581233,
      "worst_trade_return": -0.08056,
      "avg_win": 6618.01,
      "avg_loss": -821.66,
      "profit_factor": 24.163251,
      "avg_bars_held": 365.8,
      "exposure": 0.701791,
      "total_fees": 66.93,
      "total_slippage": 133.85,
      "buy_hold_return": 7.303326,
      "buy_hold_max_drawdown": -0.551908
    },
    "trades": [
      {
        "entry_date": "2002-04-22",
        "exit_date": "2002-05-17",
        "side": "long",
        "entry_price": 72.2515,
        "exit_price": 71.1215,
        "shares": 138.405428,
        "pnl": -158.38,
        "return": -0.015838,
        "fees": 1.98,
        "bars": 19,
        "exit_reason": "exit_rule"
      },
      {
        "entry_date": "2003-05-13",
        "exit_date": "2004-08-26",
        "side": "long",
        "entry_price": 61.8247,
        "exit_price": 73.9619,
        "shares": 159.185929,
        "pnl": 1929.91,
        "return": 0.196097,
        "fees": 2.16,
        "bars": 325,
        "exit_reason": "exit_rule"
      },
      {
        "entry_date": "2004-10-28",
        "exit_date": "2006-07-26",
        "side": "long",
        "entry_price": 75.5205,
        "exit_price": 87.6363,
        "shares": 155.871891,
        "pnl": 1885.96,
        "return": 0.160214,
        "fees": 2.54,
        "bars": 438,
        "exit_reason": "exit_rule"
      },
      {
        "entry_date": "2006-08-30",
        "exit_date": "2007-12-31",
        "side": "long",
        "entry_price": 90.6335,
        "exit_price": 104.753,
        "shares": 150.689163,
        "pnl": 2124.7,
        "return": 0.15557,
        "fees": 2.94,
        "bars": 335,
        "exit_reason": "exit_rule"
      },
      {
        "entry_date": "2009-06-19",
        "exit_date": "2010-06-30",
        "side": "long",
        "entry_price": 68.4126,
        "exit_price": 77.7739,
        "shares": 230.691174,
        "pnl": 2156.19,
        "return": 0.136622,
        "fees": 3.37,
        "bars": 259,
        "exit_reason": "trailing_stop"
      },
      {
        "entry_date": "2010-10-14",
        "exit_date": "2011-08-08",
        "side": "long",
        "entry_price": 89.2128,
        "exit_price": 89.1079,
        "shares": 201.074067,
        "pnl": -24.69,
        "return": -0.001376,
        "fees": 3.59,
        "bars": 205,
        "exit_reason": "trailing_stop"
      },
      {
        "entry_date": "2012-01-24",
        "exit_date": "2015-09-04",
        "side": "long",
        "entry_price": 101.6475,
        "exit_price": 160.7546,
        "shares": 176.2335,
        "pnl": 10412.02,
        "return": 0.581233,
        "fees": 4.62,
        "bars": 910,
        "exit_reason": "exit_rule"
      },
      {
        "entry_date": "2015-12-10",
        "exit_date": "2016-01-14",
        "side": "long",
        "entry_price": 172.1973,
        "exit_price": 158.3581,
        "shares": 164.495762,
        "pnl": -2281.92,
        "return": -0.08056,
        "fees": 5.44,
        "bars": 23,
        "exit_reason": "stop_loss"
      },
      {
        "entry_date": "2016-04-21",
        "exit_date": "2018-12-13",
        "side": "long",
        "entry_price": 178.1002,
        "exit_price": 237.0054,
        "shares": 146.231228,
        "pnl": 8607.72,
        "return": 0.330509,
        "fees": 6.07,
        "bars": 667,
        "exit_reason": "exit_rule"
      },
      {
        "entry_date": "2019-03-27",
        "exit_date": "2020-02-28",
        "side": "long",
        "entry_price": 252.6525,
        "exit_price": 262.6778,
        "shares": 137.150958,
        "pnl": 1367.92,
        "return": 0.039477,
        "fees": 7.07,
        "bars": 233,
        "exit_reason": "trailing_stop"
      },
      {
        "entry_date": "2020-07-07",
        "exit_date": "2022-03-17",
        "side": "long",
        "entry_price": 290.5116,
        "exit_price": 407.9002,
        "shares": 123.986251,
        "pnl": 14545.91,
        "return": 0.403835,
        "fees": 8.66,
        "bars": 428,
        "exit_reason": "exit_rule"
      },
      {
        "entry_date": "2023-01-27",
        "exit_date": "2025-04-04",
        "side": "long",
        "entry_price": 386.0656,
        "exit_price": 512.3752,
        "shares": 130.976059,
        "pnl": 16531.76,
        "return": 0.326939,
        "fees": 11.77,
        "bars": 548,
        "exit_reason": "trailing_stop"
      }
    ],
    "trades_truncated": false,
    "open_trade": {
      "entry_date": "2025-06-30",
      "entry_price": 610.7373,
      "shares": 109.862493,
      "unrealized_pnl": 15990.67,
      "unrealized_return": 0.238421
    },
    "equity_curve": [
      {
        "date": "2000-01-03",
        "equity": 10000.0,
        "drawdown": 0.0
      },
      {
        "date": "2000-01-26",
        "equity": 10000.0,
        "drawdown": 0.0
      },
      {
        "date": "2000-02-17",
        "equity": 10000.0,
        "drawdown": 0.0
      },
      {
        "date": "2000-03-13",
        "equity": 10000.0,
        "drawdown": 0.0
      },
      {
        "date": "2000-04-04",
        "equity": 10000.0,
        "drawdown": 0.0
      },
      "… 416 more items …",
      {
        "date": "2026-10-15",
        "equity": 84784.06,
        "drawdown": -0.009371
      },
      {
        "date": "2026-11-06",
        "equity": 80774.08,
        "drawdown": -0.056224
      },
      {
        "date": "2026-11-12",
        "equity": 83087.79,
        "drawdown": -0.02919
      }
    ],
    "monthly_returns": [
      {
        "year": 2026,
        "months": [
          0.014729,
          -0.008645,
          -0.049376,
          0.105054,
          0.052626,
          -0.010298,
          0.000348,
          0.024258,
          -0.003294,
          -0.009061,
          0.000834,
          null
        ],
        "total": 0.115028
      },
      {
        "year": 2025,
        "months": [
          0.026867,
          -0.012693,
          -0.055722,
          -0.071276,
          0.0,
          0.000461,
          0.023043,
          0.020525,
          0.035631,
          0.02384,
          0.001951,
          0.000797
        ],
        "total": -0.012584
      },
      {
        "year": 2024,
        "months": [
          0.015931,
          0.052186,
          0.032707,
          -0.04033,
          0.050597,
          0.035268,
          0.012114,
          0.023363,
          0.021013,
          -0.00893,
          0.059642,
          -0.024069
        ],
        "total": 0.248872
      },
      {
        "year": 2023,
        "months": [
          0.006672,
          -0.025139,
          0.037084,
          0.015983,
          0.004609,
          0.064806,
          0.032738,
          -0.016258,
          -0.047437,
          -0.02173,
          0.091372,
          0.045646
        ],
        "total": 0.195034
      },
      {
        "year": 2022,
        "months": [
          -0.052743,
          -0.029529,
          -0.007255,
          0.0,
          0.0,
          0.0,
          0.0,
          0.0,
          0.0,
          0.0,
          0.0,
          0.0
        ],
        "total": -0.087385
      },
      "… 19 more items …",
      {
        "year": 2002,
        "months": [
          0.0,
          0.0,
          0.0,
          -0.040535,
          0.02574,
          0.0,
          0.0,
          0.0,
          0.0,
          0.0,
          0.0,
          0.0
        ],
        "total": -0.015838
      },
      {
        "year": 2001,
        "months": [
          0.0,
          0.0,
          0.0,
          0.0,
          0.0,
          0.0,
          0.0,
          0.0,
          0.0,
          0.0,
          0.0,
          0.0
        ],
        "total": 0.0
      },
      {
        "year": 2000,
        "months": [
          0.0,
          0.0,
          0.0,
          0.0,
          0.0,
          0.0,
          0.0,
          0.0,
          0.0,
          0.0,
          0.0,
          0.0
        ],
        "total": 0.0
      }
    ],
    "notes": [
      "Rules are evaluated on each bar's close; with fill=next_open orders fill at the next bar's open (no look-ahead). Daily prices are split- and dividend-adjusted.",
      "Trade prices include slippage; pnl is net of fees on both legs."
    ],
    "interval": "1day"
  },
  "meta": {
    "op": "backtest",
    "units": 9,
    "cost_usd": 0.0,
    "billing": "internal",
    "free_call": false,
    "free_calls_left": 0,
    "balance_usd": 5.0,
    "ms": 27,
    "interval": "1day",
    "data_as_of": "2026-11-12",
    "partial_last_bar": false
  }
}

How to read this answer →

Browse all examples

What the API computes

Every endpoint returns JSON you can put straight in front of a user, a model or a spreadsheet. Long scans run as jobs with signed webhooks.

POST /v1/snapshot

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.

POST /v1/performance

Performance & risk

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.

POST /v1/query

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.

POST /v1/drawdowns

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.

POST /v1/seasonality

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.

POST /v1/distribution

Return 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.

POST /v1/levels

Support & resistance

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.

POST /v1/correlation

Correlation

Correlation matrix over a window, the most and least correlated pairs, annualised volatilities, and a rolling correlation for the first pair.

POST /v1/compare

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.

POST /v1/risk

Portfolio 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.

POST /v1/event-study

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.

POST /v1/backtest

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.

POST /v1/screen

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.

POST /v1/movers

Movers

Biggest gainers, losers, gappers, volume surges or widest ranges in a universe over the last day, five days or month.

POST /v1/sectors

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.

POST /v1/peers

Peers

The instruments that behave most like a symbol: same sector and industry, ranked by a similarity score that includes one-year return correlation.

POST /v1/trader-stats

Trader statistics

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.

POST /v1/volatility

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.

POST /v1/volume-profile

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.

POST /v1/unusual-volume

Unusual volume

Every volume spike (volume at least <code>threshold</code> 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.

POST /v1/gaps

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.

POST /v1/streaks

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.

POST /v1/candles

Candlestick patterns

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.

POST /v1/signals

Technical 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.

POST /v1/best-days

Best & worst 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.

POST /v1/earnings-moves

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.

POST /v1/dividends

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.

POST /v1/fibonacci

Fibonacci levels

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.

POST /v1/factors

Factor exposures

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.

POST /v1/liquidity

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.

POST /v1/range

Range & ATR

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.

POST /v1/skew

Skew & tails

Rolling skewness and kurtosis with their percentiles, up vs down volatility, tail ratio, 3-sigma counts and the largest down days.

POST /v1/herding

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.

POST /v1/attribution

Return attribution

Portfolio total return split into additive contributions by holding, by sector and by month (best and worst contributor), buy-and-hold or rebalanced.

POST /v1/stress

Stress test

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.

POST /v1/zscore

Z-score & mean reversion

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.

POST /v1/regime

Market 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.

POST /v1/price-actions

Price-action setups

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.

POST /v1/patterns

Chart 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.

POST /v1/entry-exit

Entry & exit plan

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.

POST /v1/trends

Trend analysis

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.

POST /v1/intraday-vwap

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.

POST /v1/intraday-levels

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.

POST /v1/pairs

Pairs analysis

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.

POST /v1/signal-dashboard

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.

POST /v1/rank

Multi-factor 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.

One expression language everywhere

Write a condition once and use it as a screen filter, an event trigger, a backtest rule or a computed column. It is parsed and evaluated by our own engine; nothing you send is executed as code.

rsi(14) < 30 and close > sma(200)                 oversold inside an uptrend
cross_above(sma(50), sma(200))                    golden cross
ret(20) > 15% and rvol(20) > 2                    momentum on heavy volume
dist_high(252) > -2% and vol(20) < vol(252)        near highs, volatility compressed
count(close > open, 10) >= 8                       8 green days out of 10
bb_width(20) < lowest(bb_width(20), 120) * 1.05   tightest squeeze in 6 months

Learn the expression language

Built for AI agents

Language models are poor calculators and worse backtesters. ClickAPIs gives them a tool that returns computed, checkable numbers. Connect it as an MCP server and every endpoint becomes a tool the model can call with the user's question.

claude mcp add --transport http clickapis https://clickapis.com/mcp \
  --header "Authorization: Bearer $CLICKAPIS_KEY"

Claude   OpenAI   Any MCP client

An engine for data platforms

The calculation engine is independent of where the data lives. It can run against our dataset, against a vendor's own data, or inside their platform, so their customers get analytics, not just bars.

Partner with us

Pay only for what you compute

$0.50 per 1,000 units. A snapshot costs $0.0015, a backtest about $0.0035.

Sign up free and add credits whenever you need them. No subscription and no minimum; failed calls are free, intraday calls cost five times the units, and every response shows its exact cost.