Alpaca
Shanone’s Alpaca integration gives your agent 44 tools for trading — account info, orders, positions, watchlists, and both stock and crypto market data.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:Account
Account
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_activitiesOrders
Orders
alpaca_create_order, alpaca_list_orders, alpaca_get_order, alpaca_get_order_by_client_id, alpaca_replace_order, alpaca_cancel_order, alpaca_cancel_all_ordersPositions
Positions
alpaca_list_positions, alpaca_get_position, alpaca_close_position, alpaca_close_all_positions, alpaca_get_portfolio_historyWatchlists
Watchlists
alpaca_list_watchlists, alpaca_get_watchlist, alpaca_create_watchlist, alpaca_update_watchlist, alpaca_add_watchlist_asset, alpaca_remove_watchlist_asset, alpaca_delete_watchlistStock market data
Stock market data
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_snapshotsCrypto market data
Crypto market data
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_snapshotsMarket movers & news
Market movers & news
alpaca_get_most_active_stocks, alpaca_get_market_movers, alpaca_get_newsCommon 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_orderMarket screening
Pull the day’s most active stocks and top movers before deciding what to research further
Troubleshooting
alpaca_create_order fails with an insufficient buying power error
alpaca_create_order fails with an insufficient buying power error
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.Market data tools return no data outside market hours
Market data tools return no data outside market hours
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.Trades placed with a live key don't show up in the paper dashboard (or vice versa)
Trades placed with a live key don't show up in the paper dashboard (or vice versa)
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.