Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Get Account
ALPACA_GET_ACCOUNTRetrieves account information for the authenticated Alpaca account. Use this action when you need to check account status, available buying power, cash balance, equity, margin information, day trade count, or other account details. This is a read-only operation that returns the current state of the authenticated account. The response includes important account flags such as trading_blocked, account_blocked, pattern_day_trader, and shorting_enabled which indicate any restrictions on the account's trading capabilities.
Get Account Activities
ALPACA_GET_ACCOUNT_ACTIVITIESRetrieves account activities for the authenticated Alpaca account. Use this action when you need to retrieve transaction history, dividend payments, interest payments, fees, transfers, or other account-related activities. Supports filtering by date range, account ID, and sorting direction. Results are paginated using page_token for efficient retrieval of large datasets.
Get Account Activities V2
ALPACA_GET_ACCOUNT_ACTIVITIES2Retrieves account activities for the authenticated Alpaca account using the v2 API, including trade fills and non-trade activities. Supports date range and activity type filters, sorting, and page-token pagination; multiple activity types can be requested.
Get Account Activities By Activity Type
ALPACA_GET_ACCOUNT_ACTIVITIES_BY_ACTIVITY_TYPERetrieves account activities of a specific type for the authenticated Alpaca account. Use when you need to filter account activities by a specific type such as trade fills, dividends, interest payments, fees, or transfers. Supports date range filtering, pagination, and sorting. This endpoint is useful for retrieving a specific category of account transactions rather than all activities. Note: date parameter cannot be used with 'after' parameter. Use 'date' for a single day or 'until'/'after' for date ranges.
Get Account Configurations
ALPACA_GET_ACCOUNT_CONFIGRetrieves the current trading account configuration settings for the authenticated Alpaca account. Use this action when you need to check the current trading account settings such as day-trading margin call (DTMC) checks, fractional trading status, shorting permissions, trade suspension status, and trade confirmation email preferences. This is a read-only operation that returns the current configuration without any modifications. The account is determined from the authentication credentials.
Get Account Portfolio History
ALPACA_GET_ACCOUNT_PORTFOLIO_HISTORYRetrieves the portfolio history statistics for an Alpaca trading account. Portfolio history provides a time series of equity values, profit/loss metrics, and other performance data over a specified time period. Use when you need to analyze account performance over time, track equity curves, or review historical P&L. Note: The timeframe parameter auto-selects based on the period: 1Min for <7 days, 15Min for <30 days, or 1D otherwise.
Get Account Portfolio History
ALPACA_GET_ACCOUNT_PORTFOLIO_HISTORY1Retrieves the portfolio history statistics for a trading account. Portfolio history provides a time series of equity values, profit/loss metrics, and optionally cashflow data over a specified time period. Use when you need to analyze account performance over time, track equity curves, or review historical P&L. Note: The timeframe parameter auto-selects based on the period: 1Min for <7 days, 15Min for <30 days, or 1D otherwise.
Get All Account Positions
ALPACA_GET_ACCOUNTS_POSITIONSBulk fetches all open positions for the authenticated account. Use when you need to retrieve all current positions, monitor overall portfolio holdings, or check unrealized P&L across the entire account. This action does not require an account_id parameter as it automatically uses the account associated with the API credentials. Note: This action returns positions for the account associated with the authenticated API key. Use this read-only action to get a complete view of the account's open positions.
Get All Open Positions
ALPACA_GET_ALL_OPEN_POSITIONSRetrieves all open positions for the authenticated Alpaca trading account, including holdings and unrealized P&L. This read-only action uses the account associated with the credentials.
Get All Orders
ALPACA_GET_ALL_ORDERSRetrieves all orders for an account based on specified filter criteria. Returns a list of orders with their current status, filled quantity, prices, and any nested legs for complex orders. Use when you need to query historical or current orders for a trading account, such as checking open positions or reviewing trade history. By default, only open orders are returned. Use status='all' to include closed orders, or status='closed' for only closed/canceled orders.
Get Historical Crypto US Bars
ALPACA_GET_ALPACA_DATA_CRYPTO_US_BARSRetrieves historical OHLCV bars for crypto symbols at a selected location, aggregated by the specified timeframe. Results are sorted by symbol, then timestamp.
Get Crypto Bars for Multiple Symbols
ALPACA_GET_BARS_FOR_MULTIPLE_CRYPTO_SYMBOLSRetrieves historical OHLCV bars for multiple crypto symbols from the US market data location. Results are sorted by symbol and then timestamp; use the returned next page token to continue through available bars.
Get Stock Bars for Multiple Symbols
ALPACA_GET_BARS_FOR_MULTIPLE_STOCK_SYMBOLSRetrieves OHLCV (Open, High, Low, Close, Volume) bars for multiple stock symbols. Use this action when you need to: - Get historical price data for multiple stock symbols - Analyze price trends over a specific timeframe - Fetch aggregated bar data for stock analysis - Backtest trading strategies on multiple stocks Results are sorted by symbol first, then by bar timestamp. If the limit is reached for one symbol, subsequent requests with the next_page_token will retrieve bars for remaining symbols. Note: This endpoint uses the data.alpaca.markets base URL and requires appropriate data subscriptions for SIP and OTC feeds.
Get Historical Bars for Stock Symbol
ALPACA_GET_BARS_FOR_STOCK_SYMBOLRetrieves historical OHLCV (Open, High, Low, Close, Volume) bars for a single stock symbol. Use this action when you need to analyze historical price movements and trading activity for a specific stock ticker over a given timeframe. The bars are aggregated based on the specified timeframe (e.g., 1 minute, 15 minutes, 1 hour, 1 day). Note: This endpoint uses the data.alpaca.markets base URL.
Get Historical Stock Bars
ALPACA_GET_BARS_STOCKSRetrieves historical OHLCV (Open, High, Low, Close, Volume) bars for a single stock symbol. Use this action when you need to analyze historical price movements and trading activity for a specific stock ticker over a given timeframe. The bars are aggregated based on the specified timeframe (e.g., 1 minute, 15 minutes, 1 hour, 1 day). Results are sorted by timestamp and support pagination via the next_page_token field when the limit is reached and more data is available. Note: This endpoint uses the data.alpaca.markets base URL and requires appropriate data subscriptions for SIP and OTC feeds.
Get Calendar
ALPACA_GET_CALENDARRetrieves market calendar information for trading days from the Alpaca Trading API. Use this action when you need to: - Get market open and close times for specific dates - Check trading session times - Verify market operating hours for date ranges - Plan trading activities around market hours This is a read-only operation that returns market calendar data.
Get Clock
ALPACA_GET_CLOCKRetrieves the current market clock information from the Alpaca Trading API. Use this action when you need to: - Check if the market is currently open - Determine when the next market open or close will occur - Plan trading activities based on market hours - Verify server time for timestamp-sensitive operations This is a read-only operation that returns the current state of the market clock including whether the market is open and the timestamps for the next open and close.
Get Stock Conditions
ALPACA_GET_CONDITIONSRetrieves the mapping of condition codes to their names from Alpaca Markets API for the specified type (trade or quote conditions) and tape. Use this action when you need to: - Decode condition codes from stock market data - Get the list of all valid condition codes and their meanings for a specific type - Translate raw condition code integers to human-readable names - Understand the meaning of condition codes from trade or quote data This is a read-only action that queries the stocks meta conditions endpoint.
Get Crypto Latest Quotes
ALPACA_GET_CRYPTO_LATEST_QUOTESRetrieves the latest bid and ask prices for specified crypto symbols at a specific location. Use when you need real-time quote data for cryptocurrency trading, such as checking current market prices before placing orders or monitoring price movements.
Get Crypto Perp Latest Bars
ALPACA_GET_CRYPTO_PERP_LATEST_BARSRetrieves the latest OHLCV (Open, High, Low, Close, Volume) bars for crypto perpetual futures symbols. Use this action when you need real-time or near real-time price data for crypto perpetual futures contracts for a specific location (e.g., 'global'). Returns the most recent bar for each requested symbol, including open, high, low, close prices, volume, trade count, and volume-weighted average price.