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.
Webhooks
Webhooks deliver real-time events to your server when market conditions match your criteria.Supported Events
| Event | Description |
|---|---|
quote.update | Price change exceeds threshold |
price.alert | Price crosses configured level |
news.published | New article for watched symbols |
screener.match | Stock newly matches screener criteria |
Creating a Webhook
Verifying Webhook Signatures
Every webhook delivery includes a signature header for verification. Always verify signatures to ensure events are from VecTrade. Headers sent with each delivery:| Header | Description |
|---|---|
X-VQ-Signature | HMAC-SHA256 hex signature |
X-VQ-Timestamp | Unix timestamp of signing |
X-VQ-Webhook-Id | Delivery ID for deduplication |
Verification
Webhook Payload Format
Managing Webhooks
Best Practices
- Always verify signatures — Never trust unverified payloads
- Respond quickly — Return 2xx within 5 seconds; process asynchronously
- Handle duplicates — Use
X-VQ-Webhook-Idfor idempotency - Implement retry tolerance — VecTrade retries failed deliveries 3 times
- Use HTTPS — Webhook URLs must use HTTPS
- Rotate secrets — Regenerate webhook secrets periodically