📈 A2A Alpaca — Live

A2A Alpaca Trading API

27 Alpaca skill groups — trading, order management, portfolio, and market data — all accessible via A2A JSON-RPC. Your agent passes Alpaca credentials per-request. No credentials stored on our side.

27
Skill Groups
Paper + Live
Trading Modes
Per-request
Credentials
CF Access
Auth
✅ Protocol Compliance
A2A v1.0 (Agent2Agent Protocol) JSON-RPC 2.0 CF Access JWT Alpaca Markets API v2
Credential Model
🔐 Your Alpaca keys stay yours. Credentials are passed inside the A2A request metadata per-call — never stored on TradeVoiceLab servers. Each request to the Alpaca API uses the key/secret you supply in that request. Use paper trading keys for testing, live keys for production.
27 Skill Groups
📋 Account Info
Balance, buying power, account status, pattern day trader flag
📦 Positions
Open positions, P&L per position, close all positions
📝 Place Order
Market, limit, stop, stop-limit, trailing stop orders
📋 List Orders
Open, closed, all orders with filters by symbol/status
❌ Cancel Order
Cancel single or all open orders
📊 Order Status
Fill status, partial fills, order timeline
💰 Portfolio Value
Total equity, cash, portfolio history over time
📈 Latest Quote
Real-time bid/ask, last trade price for any symbol
📉 Historical Bars
OHLCV bars any timeframe (1m to monthly)
📰 News
Latest news headlines and summaries for any symbol
🔍 Asset Search
Search tradeable assets, check if symbol is fractionable
📅 Calendar
Market open/close times, trading days, holidays
⏱ Market Clock
Is market open right now? Time to open/close
📊 Snapshot
Full quote snapshot for multiple symbols at once
🔄 Replace Order
Modify quantity or limit price of an open order
📈 Gainers/Losers
Top movers by % change for the current session
💼 Watchlist
Create, read, update watchlists; add/remove symbols
📐 Options Chain
Options contracts by expiry, strike, type
📊 Trade History
Executed trades with timestamps and fill prices
🌐 Multi-symbol Bars
OHLCV for a list of symbols in one call
📉 Corporate Actions
Splits, dividends, and other corporate events
🔢 Crypto Bars
OHLCV data for BTC, ETH, and other crypto pairs
💱 Crypto Quote
Real-time crypto quotes and order book data
🏦 Funding
ACH relationships, transfers, and funding status
📋 Activities
Account activity log: fills, dividends, transfers
🎯 Screener
Filter symbols by volume, price, % change criteria
📊 Options Snapshot
Greeks, IV, OI for specific options contracts
Authentication
Two layers of auth: CF Access token (your TradeVoiceLab developer token from the portal) controls access to the A2A server itself. Alpaca API key + secret (your own Alpaca account keys) are passed per-request in the metadata.
Python Client Example
import httpx

CF_CLIENT_ID     = "your-cf-client-id"       # from Developer Portal
CF_CLIENT_SECRET = "your-cf-client-secret"
ALPACA_API_KEY   = "your-alpaca-paper-key"
ALPACA_SECRET    = "your-alpaca-paper-secret"
ALPACA_ENDPOINT  = "https://paper-api.alpaca.markets/v2"

A2A_URL = "https://alpaca-a2a.tradevoicelab.com"

headers = {
    "CF-Access-Client-Id":     CF_CLIENT_ID,
    "CF-Access-Client-Secret": CF_CLIENT_SECRET,
    "Content-Type":            "application/json",
}

# Alpaca credentials passed per-request in metadata
def alpaca_meta():
    return {
        "alpaca_api_key":    ALPACA_API_KEY,
        "alpaca_api_secret": ALPACA_SECRET,
        "alpaca_endpoint":   ALPACA_ENDPOINT,
    }

# 1. Get account info
r = httpx.post(f"{A2A_URL}/a2a/alpaca", headers=headers, json={
    "jsonrpc": "2.0", "id": "1", "method": "tasks/send",
    "params": {
        "id": "t1",
        "message": {"role": "user", "parts": [{"type": "text",
            "text": "Show my account balance and buying power"}]},
        "metadata": alpaca_meta()
    }
}, timeout=30)
print(r.json()["result"]["status"]["message"]["parts"][0]["text"])

# 2. Place a paper market order
r = httpx.post(f"{A2A_URL}/a2a/alpaca", headers=headers, json={
    "jsonrpc": "2.0", "id": "2", "method": "tasks/send",
    "params": {
        "id": "t2",
        "message": {"role": "user", "parts": [{"type": "text",
            "text": "Buy 1 share of AAPL at market price"}]},
        "metadata": alpaca_meta()
    }
}, timeout=30)
print(r.json()["result"]["status"]["message"]["parts"][0]["text"])
Endpoints
Endpoint Description
POST /a2a/alpacaMain A2A endpoint — all 27 skill groups
GET /.well-known/agent.jsonAgent card — capabilities and schema
GET /healthHealth check — no auth required

Base URL: https://alpaca-a2a.tradevoicelab.com  |  Direct nodes: alpaca-a2a1, alpaca-a2a2, alpaca-a2a3

Start trading with AI agents

Free developer account — generate your CF Access token instantly. Bring your own Alpaca paper key to test safely.