Build with the TradePro API
Access real-time market data, execute trades, and manage portfolios programmatically. RESTful API with WebSocket support for streaming data.
Simple & Powerful
Get started in minutes with our intuitive API. Comprehensive documentation, SDKs for popular languages, and sandbox environment for testing.
- RESTful API with JSON responses
- WebSocket for real-time streaming
- Official SDKs for Python, Node.js, Go
- 99.99% uptime SLA
import tradepro
client = tradepro.Client(api_key="your_api_key")
# Get real-time quote
quote = client.get_quote("AAPL")
print(f"AAPL: ${quote.price}")
# Place market order
order = client.create_order(
symbol="AAPL",
side="buy",
qty=10,
type="market"
)
print(f"Order ID: {order.id}")
API Endpoints
Comprehensive endpoints for every trading need
/v1/markets
Market Data
Real-time quotes, OHLCV data, order books, and trade history for all supported assets.
/v1/orders
Order Execution
Place market, limit, stop-loss, and advanced order types with millisecond execution.
/v1/account
Account Info
Portfolio positions, balances, buying power, and account status.
/stream
WebSocket Stream
Real-time price updates, order fills, and account changes via WebSocket.
/v1/history
Historical Data
Up to 20 years of historical price data with minute-level granularity.
/v1/news
Market News
Curated financial news and earnings data for informed trading decisions.