DEPRECATED. alpaca-trade-api (3.2.0) is the old Alpaca Python SDK — deprecated in 2022, no new features, no patches. The official replacement is 'alpaca-py' (pip install alpaca-py). LLMs heavily trained on alpaca-trade-api tutorials since it dominated for years. New projects must use alpaca-py. alpaca-trade-api still installs and partially works but uses the old v1/v2 API patterns.
pip install alpaca-pyVerified import paths — ran on the pinned version, not inferred.
alpaca-py (replacement for alpaca-trade-api) — trading and market data.
pip install alpaca-py; from alpaca.trading.client import TradingClient
TradingClient for orders/account. StockHistoricalDataClient for historical data. StockDataStream for live data.
TradingClient(api_key=..., secret_key=..., paper=True)
from alpaca.trading.requests import MarketOrderRequest; trading.submit_order(MarketOrderRequest(...))
Ensure you are using valid API Key ID and Secret Key for your Alpaca account. Double-check environment variables or the `api_key` and `secret_key` parameters passed directly to `TradingClient`.
pip install pytz
No dependency data recorded yet.