Alpaca support is read-only for now. Order placement and trade execution are not yet exposed but are currently on the roadmap
What are the exposed tools?
The following tools are available when using the Alpaca provider:| Tool | Description |
|---|---|
alpaca_get_account | Account balances, equity, and buying power |
alpaca_list_positions | All open positions |
alpaca_get_position | A single position by symbol or asset ID |
alpaca_get_clock | Market open / close status |
alpaca_list_assets | Tradable assets with optional filters |
alpaca_get_asset | A single asset by symbol or ID |
alpaca_list_orders | Orders with optional filtering |
alpaca_get_order | A single order by ID |
alpaca_get_portfolio_history | Equity and P&L time series |
Quick example
Below is a quick way to construct an Alpaca trading service which exposes all the avaiable tools:tools can be passed into a tool loop using run_with_tool or connect to an agentic framework.
What are all the configuration options?
Alpaca supports all shared Trading features:-
Paper/live
Usepaper=Trueto target Alpaca’s paper trading environment. -
Minimal
Setminimal=Trueto omit provider metadata and reduce token usage. -
Include/Exclude
Control which tools are exposed to the model usingincludeandexclude.