Command Reference¶
Use fq --help to see all commands, or fq <command> --help for detailed help on any command.
Market Data Commands¶
quote¶
Get current stock quotes with price, volume, and key metrics.
fq quote AAPL # Single symbol
fq quote AAPL MSFT GOOGL # Multiple symbols
fq quote AAPL -o json # JSON output
fq quote BTC-USD ETH-USD # Crypto
Options:
-o, --format- Output format (table, json, csv)-v, --verbose- Show more details
chart¶
View historical OHLCV data with interactive TUI.
fq chart AAPL # Default (1 month, 1 day interval)
fq chart AAPL -i 1d -r 6mo # 6 months, daily bars
fq chart AAPL -i 5m -r 1d # Intraday (5 minute)
fq chart AAPL -o csv # Export as CSV
Options:
-i, --interval- 1m, 5m, 15m, 30m, 1h, 1d, 1wk, 1mo-r, --range- 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max-o, --format- Output format
stream¶
Real-time price streaming via WebSocket.
Press Ctrl+C to stop.
market¶
Market summary including indices, futures, and crypto.
trending¶
Trending symbols by region.
indices¶
World market indices.
sector¶
Sector performance and companies.
fq sector technology # Technology sector
fq sector healthcare # Healthcare sector
fq sector --companies # Show top companies in sector
fq sector energy --industries # Show industries in sector
Available sectors: technology, financial-services, consumer-cyclical, communication-services, healthcare, industrials, consumer-defensive, energy, basic-materials, real-estate, utilities
Options:
--companies- Show top companies in the sector--industries- Show industries within the sector--all- Show all details
screener¶
Pre-built screeners for market analysis.
fq screener most-actives # Most active symbols
fq screener day-gainers # Top day gainers
fq screener day-losers # Top day losers
fq screener growth-technology-stocks # Growth tech stocks
fq screener most-shorted-stocks # Most shorted stocks
fq screener -l 50 # Limit to 50 results
Screener types:
- Equity movers: most-actives, day-gainers, day-losers, most-shorted-stocks
- Growth/Value: growth-technology-stocks, aggressive-small-caps, small-cap-gainers, undervalued-growth-stocks, undervalued-large-caps
- Funds: top-mutual-funds, solid-large-growth-funds, solid-midcap-growth-funds, conservative-foreign-funds, high-yield-bond, portfolio-anchors
Options:
-l, --limit- Maximum number of results (default: 25)
Company Information Commands¶
info¶
Full company details: profile, stats, and financials.
profile¶
Company description, sector, industry, and employee count.
financials¶
Financial statements: income, balance sheet, and cash flow.
earnings¶
Earnings history and estimates.
news¶
Recent company news.
recommendations¶
Analyst buy/hold/sell ratings.
holders¶
Institutional and insider ownership.
filings¶
SEC filings (10-K, 10-Q, 8-K, etc).
transcript¶
Earnings call transcripts.
grades¶
Analyst upgrade/downgrade history.
Technical Analysis Commands¶
indicator¶
Calculate 40+ technical indicators.
fq indicator AAPL # Interactive TUI (choose indicators)
fq indicator AAPL --indicator rsi:14 # RSI with period 14
fq indicator AAPL --indicator sma:20,50,200 # SMAs
fq indicator AAPL --indicator macd:12,26,9 # MACD
fq indicator AAPL --indicator bollinger:20,2 # Bollinger Bands
# Non-interactive with range/interval
fq indicator AAPL --indicator rsi:14 -i 1d -r 6mo
fq indicator AAPL --indicator sma:20,50,200 --no-tui -o csv
Available indicators: sma, ema, rsi, macd, bollinger, atr, stochastic, adx, obv, vwap, cci, williamsr, stochrsi, psar, supertrend, mfi, ichimoku, donchian
Options:
--indicator <INDICATOR>- Format:name:param1,param2,...(skips TUI)-i, --interval- Candle interval (1m, 5m, 15m, 1h, 1d, 1wk, 1mo)-r, --range- Historical range (1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max)--no-tui- Skip interactive TUI (requires --indicator)--latest- Show only the latest value-o, --format- Output format (table, json, csv)
backtest¶
Test trading strategies with performance metrics.
fq backtest AAPL # Interactive backtest TUI
fq backtest AAPL --preset swing # Use swing trading preset
fq backtest AAPL --preset trend # Use trend following preset
fq backtest AAPL --json # Output JSON instead of TUI
fq backtest AAPL --no-tui --preset aggressive # Run preset without TUI
Available presets: swing, day, trend, mean-reversion, conservative, aggressive
Options:
-p, --preset- Use a preset strategy--json- Output JSON instead of TUI--no-tui- Skip interactive TUI and run directly with preset
Options & Dividends Commands¶
options¶
Interactive options chain explorer (TUI).
dividends¶
Dividend payment history.
splits¶
Stock split history.
Utility Commands¶
lookup¶
Search for symbols by name or keyword.
hours¶
Market hours and trading status.
currencies¶
Currency list and exchange rates.
exchanges¶
Supported stock exchanges.
alerts¶
Price alerts with desktop notifications.
# Open alerts TUI
fq alerts
# Add alerts
fq alerts add AAPL price-above:200
fq alerts add TSLA price-below:150
fq alerts add AAPL change-above:5 # 5%+ change
fq alerts add TSLA volume-spike:2.0 # 2x volume
# List alerts
fq alerts list
# Check alerts (one-time)
fq alerts check
# Watch continuously
fq alerts watch
# Install as system service
fq alerts service install
fq alerts service status
# Manage alerts
fq alerts toggle <id> # Enable/disable
fq alerts remove <id> # Delete
fq alerts clear # Delete all
dashboard¶
Interactive market dashboard (TUI).
Keyboard shortcuts in dashboard:
j/kor arrow keys - NavigateEnter- Selectq- Quitr- Refresh+/-- Add/remove from watchlist
Global Options¶
fq [OPTIONS] [COMMAND]
Options:
-v, --verbose Enable verbose logging
--no-color Disable colored output
-h, --help Print help
-V, --version Print version
Output Formats¶
All commands support multiple output formats:
fq quote AAPL -o table # Pretty table (default)
fq quote AAPL -o json # JSON
fq quote AAPL -o csv # CSV (comma-separated)
Export to file: