Build powerful trading applications with the WealthFund REST API. Access real-time market data, execute trades, and manage accounts programmatically.
Standard HTTP REST API with JSON responses. Easy to integrate with any programming language or framework.
Real-time price streaming via WebSocket connections. Sub-millisecond data delivery for live market feeds.
Industry-standard FIX protocol support for institutional clients requiring ultra-low latency execution.
# Authenticate and place a trade
curl -X POST https://api.wealthfund.com/v1/orders \
-H "Authorization: Bearer YOUR_API_KEY" -H"Content-Type: application/json" \
-d '{
"instrument": "EURUSD",
"side": "buy",
"type": "market",
"quantity": 10000,
"stop_loss": 1.0850,
"take_profit": 1.1050
}'
# Response
{
"order_id": "ord_8f3k2m9x",
"status": "filled",
"fill_price": 1.0950,
"quantity": 10000,
"timestamp": "2024-01-15T14:32:00Z"
}/v1/accountRetrieve account balance, equity, margin, and open positions./v1/instrumentsList all tradeable instruments with current bid/ask prices./v1/ordersPlace a new market, limit, or stop order./v1/orders/{id}Get details of a specific order by ID./v1/orders/{id}Cancel a pending order./v1/positionsList all open positions with P&L data./v1/historyRetrieve historical trade data with filters./v1/candlesOHLCV candlestick data for any instrument and timeframe.