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.
Authentication
All VecTrade API requests require authentication via Bearer token.API Key Types
| Key Prefix | Environment | Use Case |
|---|---|---|
vq_live_ | Production | Real-time data, production apps |
vq_test_ | Sandbox | Development, testing, CI |
Setting Your API Key
Environment Variable (Recommended)
VECTRADE_API_KEY:
Explicit Configuration
Key Security Best Practices
- Rotate regularly — Generate new keys and revoke old ones monthly
- Use scoped keys — Create keys with minimum required permissions
- Separate environments — Use different keys for dev/staging/production
- Monitor usage — Check the dashboard for unexpected activity
- Use secrets managers — Store keys in Vault, AWS Secrets Manager, etc.
Key Permissions (Scopes)
| Scope | Access |
|---|---|
quotes:read | Real-time and historical quotes |
fundamentals:read | Company financials and profiles |
technicals:read | Technical indicators and candles |
news:read | Financial news articles |
screener:read | Stock screener |
ai:read | AI analysis (streaming) |
webhooks:write | Create/delete webhooks |
options:read | Options chain data |
Error Responses
Missing or invalid keys return401 Unauthorized:
403 Forbidden: