Skip to main content

Alpaca

Shanone’s Alpaca integration gives your agent 44 tools for trading — account info, orders, positions, watchlists, and both stock and crypto market data.
Alpaca’s order and position tools can place real trades and move real money if you connect a live-trading API key. Confirm arguments carefully, and consider connecting Alpaca’s paper-trading keys while you build and test agent workflows.

Getting Started

1

Generate an API key pair

In the Alpaca dashboard, go to API Keys and generate a key ID and secret key — for paper trading, use the paper-trading keys instead of live keys.
2

Connect in Shanone

Ask your agent to do something with Alpaca (e.g. “show my open positions”), or add the key ID and secret key proactively from Integrations in the Shanone dashboard.
3

Retry your request

Once the keys are stored, shanone_execute_tool calls for alpaca_* tools will succeed.

Available Tools

Shanone provides 44 tools for Alpaca, organized into these categories:
alpaca_get_account, alpaca_get_clock, alpaca_get_calendar, alpaca_list_assets, alpaca_get_asset, alpaca_get_account_configurations, alpaca_update_account_configurations, alpaca_get_account_activities
alpaca_create_order, alpaca_list_orders, alpaca_get_order, alpaca_get_order_by_client_id, alpaca_replace_order, alpaca_cancel_order, alpaca_cancel_all_orders
alpaca_list_positions, alpaca_get_position, alpaca_close_position, alpaca_close_all_positions, alpaca_get_portfolio_history
alpaca_list_watchlists, alpaca_get_watchlist, alpaca_create_watchlist, alpaca_update_watchlist, alpaca_add_watchlist_asset, alpaca_remove_watchlist_asset, alpaca_delete_watchlist
alpaca_get_stock_bars, alpaca_get_stock_latest_bars, alpaca_get_stock_quotes, alpaca_get_stock_latest_quotes, alpaca_get_stock_trades, alpaca_get_stock_latest_trades, alpaca_get_stock_snapshots
alpaca_get_crypto_bars, alpaca_get_crypto_latest_bars, alpaca_get_crypto_quotes, alpaca_get_crypto_latest_quotes, alpaca_get_crypto_trades, alpaca_get_crypto_latest_trades, alpaca_get_crypto_snapshots
alpaca_get_most_active_stocks, alpaca_get_market_movers, alpaca_get_news

Common Use Cases

Portfolio check-ins

Summarize open positions, unrealized P&L, and portfolio history on demand

Watchlist-driven alerts

Track a watchlist and surface notable price moves or news for its symbols

Order lifecycle management

Place, replace, and cancel orders, then confirm fills via alpaca_get_order

Market screening

Pull the day’s most active stocks and top movers before deciding what to research further

Troubleshooting

Check alpaca_get_account for current buying power and confirm the account isn’t restricted (e.g. pattern day trading rules) before resizing the order.
Use alpaca_get_clock and alpaca_get_calendar to confirm the market is open — some snapshot/latest endpoints only reflect data from the most recent session.
Paper and live trading use separate API key pairs and separate account states. Confirm which key pair is connected under Integrations in the Shanone dashboard.