npx claudepluginhub fakoli/terminalq --plugin terminalqParse the arguments "$ARGUMENTS" to extract: - **symbol**: the ticker symbol (first word, e.g., AAPL) - **period**: optional lookback period (1mo, 3mo, 6mo, 1y, 2y, 5y). Default: 6mo - **chart_type**: optional type — "line" (default) or "candlestick" Examples: "AAPL" → symbol=AAPL, period=6mo, chart_type=line. "AAPL 3mo" → symbol=AAPL, period=3mo, chart_type=line. "AAPL 1y candlestick" → symbol=AAPL, period=1y, chart_type=candlestick. **Steps:** 1. Call `terminalq_get_historical` with the symbol and period (interval="1d"). 2. From the result, extract the `prices` array (each item has: ...
Parse the arguments "$ARGUMENTS" to extract:
Examples: "AAPL" → symbol=AAPL, period=6mo, chart_type=line. "AAPL 3mo" → symbol=AAPL, period=3mo, chart_type=line. "AAPL 1y candlestick" → symbol=AAPL, period=1y, chart_type=candlestick.
Steps:
Call terminalq_get_historical with the symbol and period (interval="1d").
From the result, extract the prices array (each item has: date, open, high, low, close, volume).
Use the terminalq.charts module to render the chart:
charts.candlestick_chart(prices, title=f"{symbol} — {period}").charts.line_chart(closes, labels=dates, title=f"{symbol} — {period}").Also generate a sparkline: charts.sparkline(closes, label=symbol).
Present the output as:
Example output format:
AAPL — 6mo
195.00 ┤ ╭─╮
190.00 ┤ ╭────╯ │
185.00 ┤ ╭──────────╯ ╰──
...
2024-09-15 2024-12-15 2025-03-15
AAPL ▁▂▃▃▄▅▅▆▇█▇▆▅
Open: $171.22 Close: $192.53 High: $198.11 Low: $168.30 Return: +12.4%