The power of analytics at your fingertips. Pull deep financial intelligence straight into your terminal, agents, scripts, and AI workflows.
Built by the team behind KlickAnalytics.com — a financial markets platform developed by ex-Bloomberg professionals with decades of experience in market data, terminal design, and institutional analytics.
KlickAnalytics CLI is not just a data API — it is a rich analytics engine exposing pre-computed market intelligence: technical signals, earnings move analysis, volatility models, trader statistics, price action strategies, seasonality, and much more. Everything outputs clean JSON, purpose-built for agents and automation.
ka commands as tools inside OpenAI, Claude, LangChain, or any LLM pipelineVia the CLI and OpenClaw integration, KlickAnalytics covers the full spectrum of global assets:
bash
# 1. Install
pip install klickanalytics-cli
# 2. Set API key — add to ~/.bashrc or ~/.zshrc for persistence
export KLICKANALYTICS_CLI_API_KEY=your_api_key_here
# 3. Verify
ka help
Get your free API key at klickanalytics.com/signup.
text
ka [command] -s [SYMBOL] [optional flags]
FlagMeaningExample-sTicker symbol-s MSFT``-sdStart date (YYYY-MM-DD)-sd 2025-01-01``-edEnd date (YYYY-MM-DD)-ed 2025-12-31``-limitMax rows to return-limit 100``-lookbackNumber of bars to look back-lookback 252``-min_daysMinimum days for pattern match-min_days 3``-periodPeriod length-period annual``-tfTimeframe-tf daily``-datatypeOutput format-datatype json``-qNatural language query (ai-chat)-q "your query"
The CLI includes a direct AI chat interface — ask questions in plain English and get market intelligence back, without writing any code.
bash
ka ai-chat -q "What is the technical outlook for MSFT right now?"
ka ai-chat -q "Summarize the latest earnings surprise history for NVDA"
ka ai-chat -q "Which S&P 500 sectors are showing the strongest momentum this month?"
ka ai-chat -q "Compare volatility between MSFT and AAPL over the last year"
See references/commands.md for every command with flags, examples, and output field shapes.
Load it when the user asks about a specific command or wants a comprehensive overview.
Research goalCommandCurrent price / real-time quoteka quote -s MSFTHistorical OHLCV price dataka prices -s MSFT -sd 2025-01-01Company background, sector, profileka profile -s MSFTEarnings history & EPS vs estimateska earnings -s MSFTHow stock moves around earningska earnings-moves -s MSFTDividend historyka dividends -s MSFTStock split historyka splits -s MSFTComparable / peer companieska peers -s MSFTLatest news digestka news-summary -s MSFTRisk-adjusted performance (Sharpe, CAGR)ka quantstats -s MSFT -limit 252Trader stats (win rate, streaks)ka traderstats -s MSFTTechnical indicators (RSI, MACD, BBands)ka ta -s MSFTBuy/sell signal packka ta-signals -s MSFTVolume profile by price levelka vol-profile -s MSFTUnusual volume spikeska vol-unusual -s MSFTHistorical volatilityka volatility -s MSFT -sd 2025-01-01Price return distribution & skewnesska price-dist -s MSFTFibonacci retracement levelska fib -s MSFT -lookback 360Gap open/fill analysiska gap-analysis -s MSFTUp/down rally streakska updown -s MSFTCandlestick pattern detectionka candle_patterns -s MSFTPrice action strategy analysiska price-actions -s MSFTSeasonal monthly return patternska seasonality -s MSFTBest historical trading dayska bestdays -s MSFTAsk anything in plain Englishka ai-chat -q "your question"
The CLI is designed as a first-class tool for AI agents. Every command outputs JSON. Each command maps cleanly to a tool definition in any LLM framework.
python
tools = [
{
"name": "ka_quote",
"description": "Fetch real-time market quote for a stock symbol",
"parameters": {
"type": "object",
"properties": {
"symbol": {"type": "string", "description": "Ticker symbol, e.g. MSFT"}
},
"required": ["symbol"]
}
},
{
"name": "ka_ta_signals",
"description": "Get technical buy/sell signals for a symbol",
"parameters": {
"type": "object",
"properties": {
"symbol": {"type": "string"},
"lookback": {"type": "integer", "description": "Bars to look back"}
},
"required": ["symbol"]
}
}
]
# Execute on tool call:
import subprocess, json
result = subprocess.run(
["ka", "quote", "-s", symbol, "-datatype", "json"],
capture_output=True, text=True
)
data = json.loads(result.stdout)
bash
#!/bin/bash
# Pre-market scan across watchlist
for sym in MSFT AAPL NVDA TSLA AMZN; do
echo "=== $sym ==="
ka quote -s $sym -datatype json | jq '.price, .changesPercentage'
done
OpenClaw is the recommended path for production agent workflows using KlickAnalytics. With OpenClaw + KlickAnalytics CLI you get:
→ Full integration guide: klickanalytics.com/cli_integration
bash
ka profile -s MSFT # sector context
ka earnings -s MSFT # EPS history vs estimates
ka earnings-moves -s MSFT # historical move patterns around earnings
ka ta-signals -s MSFT # current technical setup
ka vol-unusual -s MSFT # any unusual pre-earnings activity
bash
ka quantstats -s MSFT -limit 504 # 2yr risk-adjusted stats
ka volatility -s MSFT -lookback 252 # rolling annualized volatility
ka seasonality -s MSFT # seasonal return bias by month
ka price-dist -s MSFT -lookback 252 # return distribution shape
bash
ka ai-chat -q "Give me a pre-market summary for US tech stocks today"
ka ai-chat -q "Which of MSFT, AAPL, NVDA has the strongest technical signal right now?"
MSFT as the example symbol unless the user specifies otherwiseka ai-chat when the user's goal is exploratory or question-based