{"library":"alpaca-py","type":"library","category":null,"description":"Alpaca-py is the official Python SDK for interacting with Alpaca's comprehensive suite of APIs, including Trading, Market Data, and Broker services. It enables developers to build sophisticated algorithmic trading strategies, access real-time and historical market data for stocks, crypto, and options, and even develop custom investment applications. The library features an object-oriented design, leveraging request objects for API calls and Pydantic for robust data validation. It is actively maintained with a rapid release cadence, ensuring support for new Alpaca API features and improvements.","language":"python","status":"active","version":"0.43.2","tags":["trading","finance","api","algorithmic trading","market data","brokerage"],"last_verified":"Fri May 22","install":[{"cmd":"pip install alpaca-py","imports":["from alpaca.trading.client import TradingClient","from alpaca.data.historical import StockHistoricalDataClient","from alpaca.trading.requests import MarketOrderRequest","from alpaca.trading.enums import OrderSide","from alpaca.data.timeframe import TimeFrame","from alpaca.data.requests import StockBarsRequest","Not applicable in alpaca-py"]}],"homepage":"https://alpaca.markets","github":"https://github.com/alpacahq/alpaca-py","docs":"https://alpaca.markets/docs/python-sdk/","changelog":null,"pypi":"https://pypi.org/project/alpaca-py/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":10.5,"avg_import_s":2.1,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/alpaca-py/compatibility"}}