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.

Quickstart

1. Get Your API Key

Sign up at app.vectrade.io and copy your API key from the Keys page. Set it as an environment variable:
export VECTRADE_API_KEY="vq_live_your_key_here"

2. Install the SDK

pip install vectrade

3. Make Your First Request

from vectrade import VecTrade

client = VecTrade()
quote = client.quotes.get("AAPL")

print(f"Symbol: {quote.symbol}")
print(f"Price:  ${quote.price:.2f}")
print(f"Change: {quote.change_pct:+.2f}%")
print(f"Volume: {quote.volume:,}")

4. Try AI Analysis

# Streaming AI analysis
for chunk in client.ai.stream("Analyze AAPL earnings trend"):
    print(chunk.text, end="", flush=True)

5. Use the Sandbox

For development and testing, use the sandbox environment with free unlimited requests:
client = VecTrade(sandbox=True)
Sandbox data is delayed and simulated. Use production keys for real-time data.

Next Steps