Install
openclaw skills install klickanalytics-cliDemonstrates and teaches the KlickAnalytics CLI (`ka`) — a powerful analytics tool and agent-ready interface for financial markets intelligence. Use this ski...
openclaw skills install klickanalytics-cliThe 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:
# 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.
ka [command] -s [SYMBOL] [optional flags]
| Flag | Meaning | Example |
|---|---|---|
-s | Ticker symbol | -s MSFT |
-sd | Start date (YYYY-MM-DD) | -sd 2025-01-01 |
-ed | End date (YYYY-MM-DD) | -ed 2025-12-31 |
-limit | Max rows to return | -limit 100 |
-lookback | Number of bars to look back | -lookback 252 |
-min_days | Minimum days for pattern match | -min_days 3 |
-period | Period length | -period annual |
-tf | Timeframe | -tf daily |
-datatype | Output format | -datatype json |
-q | Natural 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.
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 goal | Command |
|---|---|
| Current price / real-time quote | ka quote -s MSFT |
| Historical OHLCV price data | ka prices -s MSFT -sd 2025-01-01 |
| Company background, sector, profile | ka profile -s MSFT |
| Earnings history & EPS vs estimates | ka earnings -s MSFT |
| How stock moves around earnings | ka earnings-moves -s MSFT |
| Dividend history | ka dividends -s MSFT |
| Stock split history | ka splits -s MSFT |
| Comparable / peer companies | ka peers -s MSFT |
| Latest news digest | ka news-summary -s MSFT |
| Risk-adjusted performance (Sharpe, CAGR) | ka quantstats -s MSFT -limit 252 |
| Trader stats (win rate, streaks) | ka traderstats -s MSFT |
| Technical indicators (RSI, MACD, BBands) | ka ta -s MSFT |
| Buy/sell signal pack | ka ta-signals -s MSFT |
| Volume profile by price level | ka vol-profile -s MSFT |
| Unusual volume spikes | ka vol-unusual -s MSFT |
| Historical volatility | ka volatility -s MSFT -sd 2025-01-01 |
| Price return distribution & skewness | ka price-dist -s MSFT |
| Fibonacci retracement levels | ka fib -s MSFT -lookback 360 |
| Gap open/fill analysis | ka gap-analysis -s MSFT |
| Up/down rally streaks | ka updown -s MSFT |
| Candlestick pattern detection | ka candle_patterns -s MSFT |
| Price action strategy analysis | ka price-actions -s MSFT |
| Seasonal monthly return patterns | ka seasonality -s MSFT |
| Best historical trading days | ka bestdays -s MSFT |
| Ask anything in plain English | ka 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.
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)
#!/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
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
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
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