Overview
The@vectrade/ai-provider package integrates VecTrade financial data as tools in the Vercel AI SDK. This lets any LLM access real-time market data, fundamentals, and AI analysis through function calling.
Installation
Quick Start
Available Tools
The provider exposes 16 VecTrade API endpoints as AI-callable tools:
Quote tools accept symbols such as
BTC-USD and EURUSD=X when the selected endpoint supports them. Provider-dependent fields may be absent for non-equity quotes. The AI provider is read-only; use the separate Bot API for simulated order placement.
Configuration
Framework Examples
Next.js Route Handler
With Claude
Requirements
- Node.js 18+
aipackage (Vercel AI SDK) v3+- VecTrade API key