Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.vectrade.io/llms.txt

Use this file to discover all available pages before exploring further.

Installation

brew install VecTrade-io/vectrade/vectrade

Authentication

# Interactive login (opens browser)
vectrade auth login

# Or set via environment variable
export VECTRADE_API_KEY=vq_live_...

Commands

Market Data

# Real-time quote
vectrade quote AAPL

# With specific fields
vectrade quote AAPL --fields price,volume,change

# JSON output
vectrade quote AAPL --output json

# CSV output (for piping)
vectrade quote AAPL --output csv

AI Analysis

# Streaming AI analysis
vectrade ai "Analyze MSFT earnings trend"

# Compare stocks
vectrade ai "Compare AAPL vs GOOGL for 2026"

API Key Management

# Create a new key
vectrade keys create --label "production"

# List all keys
vectrade keys list

# Revoke a key
vectrade keys revoke key_abc123

MCP IDE Setup

# Auto-configure Cursor IDE
vectrade mcp setup cursor

# Auto-configure VS Code
vectrade mcp setup vscode

# Auto-configure Claude Desktop
vectrade mcp setup claude

Webhooks

# Listen for webhook events locally (for development)
vectrade webhook listen

# Create a webhook subscription
vectrade webhook create --url https://example.com/hook --events quote.alert,trade.fill

# List subscriptions
vectrade webhook list

# Delete a subscription
vectrade webhook delete whk_abc123

Usage & Billing

# View current month usage
vectrade usage

# View API quota status
vectrade usage --this-month

OpenAPI Spec

# Download the latest spec
vectrade openapi download

# Diff against a local spec
vectrade openapi diff ./old-spec.yaml

Configuration

Config file location: ~/.vectrade/config.yaml
api_key: vq_live_...
base_url: https://api.vectrade.io/v1
output: table        # table | json | csv
timeout: 30          # seconds

Resolution Order

  1. Command-line flags (--api-key, --sandbox)
  2. Environment variables (VECTRADE_API_KEY, VECTRADE_BASE_URL)
  3. Config file (~/.vectrade/config.yaml)
  4. Defaults

Global Flags

FlagDescription
--api-keyOverride API key
--sandboxUse sandbox environment
--configCustom config file path
--outputOutput format: table, json, csv

GitHub

Source code, issues, and contributions