# Alpaca MCP connector

The Alpaca connector brings live and historical stock and crypto market data, news, and top movers into Claude, ChatGPT, Cursor, and the Elaichi Agent, so anyone on your team can ask about prices in plain language.

Source: https://elaichi.ai/connectors/alpaca/

## Facts

| | |
| --- | --- |
| Application | Alpaca |
| Category | Banking |
| AI tools | 139 |
| Authentication | Connects with an API key |
| Needs your own OAuth app | No |
| MCP endpoint | https://api.elaichi.ai/mcp |
| Works with | Claude, ChatGPT, Cursor, any MCP client, and the Elaichi Agent |
| Tools advertised by name | No. 139 tools is past the 30-tool threshold, so clients use `search_tools` and `execute_tool` |

## What you can ask once Alpaca is connected

- Show me latest quotes for AAPL, MSFT and NVDA.
- Compare daily bars for SPY over the last two weeks.
- List crypto trades for BTC/USD from this morning.

## Connect Alpaca in Elaichi

This happens once for the organization, before any client is involved.

1. Open Connections, choose Add connection, and pick Alpaca.
2. Optionally set Share with, then press Connect.
3. Paste an Alpaca API key. One person generates a token in Alpaca and pastes it once. Everyone else works through Share with, and never sees it.

Credentials are vaulted and nobody, including the AI, reads them back. The connection becomes a toolbox immediately, so you can curate which Alpaca tools are exposed, rename them, or freeze arguments before anyone points a client at it.

## Connect Alpaca to Claude

Endpoint: https://api.elaichi.ai/mcp

1. Open Customize, then Connectors.
2. Press Add.
3. Name it, paste the MCP server URL, then Continue.
4. Sign in and approve.

On Team and Enterprise, an Owner adds it once. Everyone else turns it on for themselves.

## Connect Alpaca to ChatGPT

Endpoint: https://api.elaichi.ai/mcp

1. Open Plugins, then press the + button.
2. Name it and paste the endpoint into Server URL.
3. Leave Authentication on OAuth, then tick the risk acknowledgement.
4. Press Create, then sign in and approve.

Works on the web today. The plugin directory lives at chatgpt.com/plugins.

## Connect Alpaca to Cursor

Endpoint: https://api.elaichi.ai/mcp

1. Open `~/.cursor/mcp.json`.
2. Add the endpoint under `mcpServers`.
3. Reload Cursor, then sign in and approve.

Set up per machine, so repeat it on each computer you work from.

## Connect Alpaca to any MCP client

Endpoint: https://api.elaichi.ai/mcp

1. Add the endpoint as a remote MCP server.
2. Sign in and approve.

The Elaichi Agent already has these tools, with nothing to set up.

## What the consent screen decides

Only Read is granted by default, which is not enough to call a Alpaca tool. Over MCP there is no trusted place to confirm a write in the moment, so the consent screen is the standing approval rather than a formality. Grant Read and Run tools. Think hard before granting Delete, which reaches into connected apps and cannot be undone.

## What teams do with Alpaca through Elaichi

### Check a price before the desk decides

Trading. Ask for the latest quote and trade on a ticker, plus the current bid and ask spread, and get the numbers back in the conversation before anyone commits.

### Pull a week of bars for a chart

Research. Request daily or intraday bars for a list of stocks over any date range and have the agent summarize the move, the range, and the volume without opening a spreadsheet.

### Mark the portfolio at today's prices

Finance. Fetch a snapshot for every holding at once and let the agent tally the day's change across the book for the morning update.

### Draft the market recap from live movers

Content. Ask for today's biggest gainers and losers and the latest Alpaca news on them, then have the agent draft the newsletter paragraph.

### Answer a client's question about a ticker

Client services. When a client asks why a stock dropped, pull the recent trades, the news headlines, and the day's snapshot in one ask and reply with a clear explanation.

### Compare crypto prices across venues

Product. Ask for the best bid and offer across exchanges for a coin and the latest crypto bars, so the team can see where liquidity sits before a launch.

## Frequently asked questions

### How do I connect Alpaca to Claude?

Connect Alpaca in Elaichi first by pasting your Alpaca API key when prompted. There is no OAuth application to register and no client ID or secret to generate. Then in Claude go to Customize, then Connectors, then Add, and paste the endpoint https://api.elaichi.ai/mcp. Sign in to Elaichi as yourself and Alpaca market data is available in Claude.

### Does Alpaca work with ChatGPT and Cursor as well as Claude?

Yes. Once Alpaca is connected in Elaichi, the same endpoint, https://api.elaichi.ai/mcp, works in Claude, ChatGPT, Cursor, any other MCP client, and the Elaichi Agent. You connect Alpaca once and every client picks it up.

### What can an AI agent actually do with my Alpaca data?

With Alpaca connected, an agent can look up the latest quote, trade, and snapshot for a stock or crypto pair, pull historical bars over any date range, show the spread between bid and ask, list today's top movers, and read recent market news. Because Alpaca has a large set of actions, short concrete asks such as "latest quote for AAPL" work better than long sentences. The agent finds the right action and returns the numbers in the conversation.

### Does connecting Alpaca give the AI access to everything in my account?

No. The agent can only reach what the Alpaca API key you connected can reach, and this connector covers market data such as bars, quotes, trades, snapshots, news, and movers. Elaichi can narrow that further with restrictions, but it can never widen it beyond what the connected Alpaca key allows.

### Can my team share one Alpaca connection?

Yes. One person connects Alpaca with their API key and shares the connection with a team in Elaichi. Nobody else ever sees or handles the key, and each teammate still signs in to Elaichi as themselves, so the audit log names the person who asked for each Alpaca quote or bar.

### Can I stop an agent from deleting or changing things in Alpaca?

The Alpaca connector in Elaichi reads market data, so its actions look up bars, quotes, trades, snapshots, news, and movers rather than placing orders or editing anything. Restrictions still apply per action, so you can switch off any Alpaca action you do not want used. A blocked action is never advertised to Claude, ChatGPT, or Cursor, so no prompt can reach it.

### What happens to an Alpaca connection when someone leaves?

Offboarding a person in Elaichi ends their access to Alpaca at once, in every client they used. If the Alpaca connection was shared with a team, it keeps working for everyone else. Disconnecting Alpaca once in Elaichi removes it from Claude, ChatGPT, Cursor, and every other client at the same time.

## All 139 Alpaca tools

Every tool below is callable through https://api.elaichi.ai/mcp once Alpaca is connected, subject to the toolbox it is in and the restrictions on the caller.

- **List all Alpaca stocks bars** (List). List aggregate historical OHLCV bar data for multiple stock symbols in Alpaca over a specified time period. Returns bars keyed by symbol, each with t (timestamp), o (open), h (high), l (low), c (close), v (volume), n (trade count), and vw (volume-weighted average price). Required: symbols.
- **List all Alpaca bars latests** (List). Get the latest bar data for a single crypto symbol in Alpaca. Returns: symbol, bar. Required: symbol.
- **List all Alpaca stock bars** (List). List aggregate historical bars for a single stock symbol in Alpaca. Returns: bars, symbol. Required: symbol.
- **List all Alpaca stocks trades** (List). List historical trade data for multiple Alpaca stock symbols over a specified time period. Returns: trades, next_page_token. Required: symbols.
- **List all Alpaca trades latests** (List). Get the latest trade for a single crypto symbol in Alpaca. Returns the queried symbol and a trade object with timestamp (t), exchange (x), price (p), size (s), taker side (tks), and trade ID (i). Required: symbol.
- **List all Alpaca stock trades** (List). Trades. Required: symbol.
- **List all Alpaca stocks quotes** (List). List NBBO quotes for multiple Alpaca stock symbols over a specified time period. Returns the quotes object — a map of symbol to arrays of NBBO quote objects including t, ax, ap, as, bx, bp, bs, c, z — plus next_page_token. Required: symbols. Results sorted by symbol then timestamp; the first page may contain only one symbol if it fills the page limit.
- **List all Alpaca quotes latests** (List). Get the latest quote for a single crypto symbol in Alpaca. Returns the symbol and a quote object containing timestamp, exchange, bid price, bid size, ask price, and ask size. Required: symbol.
- **List all Alpaca stock quotes** (List). List NBBO quotes for a single stock symbol in Alpaca. Returns: t, ax, ap, as, bx, bp, bs, c, z. Required: symbol.
- **List all Alpaca stocks snapshots** (List). List snapshots for multiple stock symbols in Alpaca, providing the latest trade, latest quote, minute bar, daily bar, and previous daily bar for each requested ticker. Returns: latestTrade, latestQuote, minuteBar, dailyBar, prevDailyBar. Required: symbols.
- **List all Alpaca stock snapshots** (List). Get a market data snapshot for a single Alpaca stock symbol, including the latest trade, latest quote, minute bar, daily bar, and previous daily bar. Returns: symbol, latestTrade, latestQuote, minuteBar, dailyBar, prevDailyBar. Required: symbol.
- **List all Alpaca crypto trades** (List). List historical crypto trade data for multiple symbols from Alpaca. Returns trades grouped by symbol, each trade including timestamp (t), exchange (x), price (p), size (s), taker side (tks), and trade id (i), plus a next_page_token for pagination. Required: symbols. Results are sorted by symbol then by trade timestamp, so early pages may contain only one symbol.
- **List all Alpaca trades** (List). List historical trade data for a single crypto symbol in Alpaca. Returns trades with timestamp (t), exchange (x), price (p), size (s), taker side (tks), and trade id (i). Required: symbol.
- **List all Alpaca crypto bars** (List). List aggregate historical bar data for multiple Alpaca crypto symbols over a given time range. Returns: bars, next_page_token. Required: symbols.
- **List all Alpaca bars** (List). List historical OHLCV bar data for a single crypto symbol in Alpaca. Returns: bars, symbol, next_page_token. Required: symbol.
- **List all Alpaca crypto quotes** (List). List historical quotes for multiple Alpaca crypto symbols within a time range. Returns per quote: t (timestamp), x (exchange), bp (bid price), bs (bid size), ap (ask price), as (ask size). Required: symbols. Results are sorted by symbol then quote timestamp, so the first page may contain only one symbol.
- **List all Alpaca quotes** (List). List historical quotes for a single Alpaca crypto symbol filtered by time range and exchange. Returns each quote with t (timestamp), x (exchange), bp (bid price), bs (bid size), ap (ask price), and as (ask size). Required: symbol.
- **List all Alpaca crypto snapshots** (List). List snapshots for multiple Alpaca crypto symbols in a single request. Returns the latest trade, latest quote, minute bar, daily bar, and previous daily bar for each requested symbol. Required: symbols.
- **List all Alpaca snapshots** (List). Get a crypto market snapshot from Alpaca for a single symbol, including the latest trade, latest quote, minute bar, daily bar, and previous daily bar. Returns: symbol, latestTrade, latestQuote, minuteBar, dailyBar, prevDailyBar. Required: symbol.
- **List all Alpaca xbbos latests** (List). Get the latest crypto XBBO (Cross-Exchange Best Bid and Offer) across multiple exchanges for multiple symbols from Alpaca. Returns: xbbos. Required: symbols.
- **List all Alpaca xbbo latests** (List). Get the latest XBBO (Cross-Exchange Best Bid and Offer) for a single crypto symbol from Alpaca, calculating the best bid and offer across multiple exchanges. Returns the XBBO object including the symbol, timestamp, best ask exchange, ask price, ask size, best bid exchange, bid price, and bid size. Required: symbol.
- **List all Alpaca meta spreads** (List). List crypto spreads for each exchange Alpaca supports, expressed in basis points. Returns: spreads.
- **List all Alpaca news** (List). List latest news articles across stocks and crypto from Alpaca. Returns articles with id, headline, author, created_at, updated_at, summary, content, url, images, symbols, and source. By default returns the latest 10 articles.
- **List all Alpaca movers** (List). List top market movers (gainers and losers) by market type from Alpaca. Returns: gainers, losers, market_type, last_updated. Required: market_type. The optional top parameter controls how many of each to fetch (maximum 50, defaults to 10).
- **List all Alpaca logos** (List). Get the logo image for a crypto or stock symbol from Alpaca. Returns the requested logo as a binary image file (e.g., PNG, SVG). When placeholder is true (the default), Alpaca generates a placeholder image if no logo is found for the symbol; a 404 is only returned when placeholder is false. Required: crypto_or_stock_symbol.
- **List all Alpaca meta exchanges** (List). List the stock exchanges supported by Alpaca. Returns a map of exchange short-form codes (A, B, C, N, Q, V, etc.) to their respective full names.
- **List all Alpaca meta conditions** (List). List Alpaca trade and quote condition codes mapped to plain text descriptions for a given condition type and tape. Returns a JSON object mapping condition codes (e.g. " ", "4", "F") to description strings. Required: type, tape.
- **List all Alpaca accounts** (List). List Alpaca brokerage accounts with optional filtering by search tokens, creation date range, and status. Returns: id, created_at. Up to 1000 items per query ordered by created_at; use created_after to scroll results.
- **Create a Alpaca account** (Create). Create a new trading account in Alpaca by submitting an account application with KYC information. Returns: id, created_at. The account status may not be ACTIVE immediately; status updates are delivered via the event API. Required: a request body conforming to the AccountCreationRequest schema.
- **Get single Alpaca account by ID** (Get). Get a single Alpaca brokerage account by id. Returns: id, created_at. Required: id.
- **Update a Alpaca account by ID** (Update). Update an existing Alpaca brokerage account's information. Returns: id, created_at. Required: id and a request body conforming to the AccountUpdateRequest schema.
- **Delete a Alpaca account by ID** (Delete). Close an active Alpaca brokerage account by id. Returns an empty 204 response on success. Required: id.
- **Alpaca accounts get trading account** (Get). Retrieve trading details for an Alpaca broker account. Returns the Trading Account model with the account's trading-specific details. Required: account_id.
- **List all Alpaca account documents** (List). List all documents belonging to a specific Alpaca account, filterable by date range and document type. Returns each document's id, type, and date. Required: account_id.
- **Create a Alpaca documents upload** (Create). Upload a base64-encoded document to an existing Alpaca account for KYC or other compliance purposes. Returns an empty 204 response on success. Required: account_id. Encoded content size is limited to 10MB when using Alpaca for KYCaaS; no size limitation applies if you perform your own KYC.
- **List all Alpaca document downloads** (List). Download a document PDF that belongs to an Alpaca account. The endpoint returns a 301 redirect to a pre-signed downloadable link for the PDF file; no JSON body is returned. Required: account_id, document_id.
- **Get single Alpaca document by ID** (Get). Download an Alpaca document file directly by id. The operation returns a 301 redirect to a pre-signed downloadable link for the document PDF file; no response body is returned. Required: id.
- **List all Alpaca account recipient banks** (List). List bank relationships for an Alpaca account, filterable by status and bank name. Returns: id, bank_name, status, created_at, updated_at. Required: account_id.
- **Create a Alpaca account recipient bank** (Create). Create a bank relationship for an Alpaca account. Returns: id, bank_name, status, created_at, updated_at. Required: account_id, bank_name.
- **Delete a Alpaca account recipient bank by ID** (Delete). Delete a bank relationship for an Alpaca account by id. Returns an empty 204 response on success. Required: account_id, id.
- **List all Alpaca account transfers** (List). List transfers for an Alpaca account, optionally filtered by transfer direction. Returns each transfer with id, relationship_id, bank_id, account_id, type, status, reason, amount, direction, created_at, updated_at, expires_at, and additional_information. Required: account_id.
- **Create a Alpaca account transfer** (Create). Create a new transfer to fund an Alpaca account. Returns the created transfer object including id, account_id, type, status, amount, and direction. Required: account_id. In production, only outgoing wire withdrawals are supported and a bank resource must be created first via the Bank API.
- **Delete a Alpaca account transfer by ID** (Delete). Cancel an Alpaca account transfer by requesting to close it. Returns an empty 204 response on success. Required: account_id, id.
- **List all Alpaca accounts activities** (List). List Alpaca account activities with optional filtering by account, date, and chronological direction. Returns: id. The after parameter cannot be used with date.
- **Alpaca accounts activities list by type** (List). List Alpaca account activities for a specific activity type, with optional filtering by account and date range. Returns: id, activity_type, date, account_id. Required: activity_type.
- **List all Alpaca account ach relationships** (List). List ACH relationships for an Alpaca account, optionally filtered by status. Returns: id. Required: account_id.
- **Create a Alpaca account ach relationship** (Create). Create a new ACH relationship for an Alpaca account. Returns the newly created ACH relationship including id and status. Required: account_id. The request fails if the account already has an active relationship.
- **Delete a Alpaca account ach relationship by ID** (Delete). Delete an existing ACH relationship for an Alpaca account. Returns an empty 204 response on success. Required: account_id, id.
- **Delete a Alpaca account position by ID** (Delete). Close (liquidate) all open long and short positions for an Alpaca trading account. Returns an array of close responses with symbol, status, and body (the order created to close each position). Required: account_id, id.
- **Alpaca account positions delete all** (Delete). Close (liquidate) all open long and short positions for an Alpaca trading account. Returns a 207 Multi-Status array where each item includes symbol, status (HTTP code), and body containing the full order object (id, side, qty, order_type, status, created_at, submitted_at). Required: account_id. If an order is no longer cancelable, the server responds with status 500.
- **Get single Alpaca account position by ID** (Get). Get a specific open position in an Alpaca trading account by symbol or asset id. Returns the position object including asset_id, symbol, qty, avg_entry_price, side, market_value, cost_basis, and unrealized_pl. Required: account_id, id.
- **List all Alpaca account orders** (List). List orders for an Alpaca trading account. Returns the Order object including id, client_order_id, symbol, asset_class, qty, filled_qty, status, side, type, time_in_force, created_at, updated_at, and submitted_at. Required: account_id.
- **Update a Alpaca account order by ID** (Update). Replace a single Alpaca order with updated parameters that override the existing order; unmodified attributes remain unchanged. Returns a new Order object with a new id, including symbol, qty, status, side, type, time_in_force, created_at, and updated_at. Required: account_id, id. qty and notional are mutually exclusive; non-IPO notional orders cannot be replaced.
- **Delete a Alpaca account order by ID** (Delete). Cancel an open Alpaca order by id. If the order is no longer cancelable (e.g. status is filled), the request is rejected with 422. Returns an empty 204 response on success. Required: account_id, id.
- **Create a Alpaca account order** (Create). Create a new order for an Alpaca trading account. Returns the Order object including id, status, symbol, qty, filled_qty, side, type, time_in_force, created_at, and submitted_at. Required: account_id, type, time_in_force. qty and notional are mutually exclusive; symbol and side are required for all order classes except mleg.
- **Get single Alpaca account order by ID** (Get). Get a single order from an Alpaca trading account by id. Returns the Order object including id, status, symbol, qty, side, type, time_in_force, created_at, and filled_qty. Required: account_id, id.
- **Alpaca account orders delete all** (Delete). Cancel all open orders for an Alpaca trading account. Returns a 207 Multi-Status response containing an array of cancellation results, each with the order id and HTTP status code. Required: account_id.
- **List all Alpaca assets** (List). List all Alpaca assets available for trade and data consumption. Returns: id. Filter by asset status (active, inactive, or all) and asset class (us_equity or crypto).
- **Get single Alpaca asset by ID** (Get). Get a single Alpaca asset by id (UUID, symbol, or CUSIP). Returns: id. Required: id.
- **Alpaca assets list trading** (List). List Alpaca assets available for trade and data consumption, sorted by asset class, exchange and symbol. Returns: id, issuer, network. Filter by status, asset_class, exchange, and attributes.
- **Alpaca assets get trading** (Get). Get a single Alpaca asset by symbol, asset_id or CUSIP for US equities. Returns: id, issuer, network. Required: asset_id.
- **List all Alpaca calendars** (List). List Alpaca market calendar days from 1970 to 2029, optionally filtered by an inclusive date range. Returns each market day with its date, open time, and close time, accounting for early closures. Accepts optional start and end dates in YYYY-MM-DD format.
- **List all Alpaca clocks** (List). Query the Alpaca market clock to get the current market timestamp, whether the market is open, and the next open and close times. Returns: timestamp, is_open, next_open, next_close.
- **List all Alpaca accounts status** (List). List Alpaca account status events as an SSE stream. Historical events are streamed when since or since_id is provided, and live updates are pushed as they occur. Returns the account status event object including its id and event-specific attributes. The since and since_id parameters are mutually exclusive; since is required when until is specified, and since_id is required when until_id is…
- **List all Alpaca journals status** (List). List journal status events from Alpaca via SSE streaming, receiving status updates as journals are processed by the backoffice. Returns: id. No historical events are returned unless since or since_id is supplied. The params since and since_id are mutually exclusive; since is required when until is given, and since_id is required when until_id is given.
- **List all Alpaca transfers status** (List). Subscribe to Alpaca transfer status events via SSE, receiving real-time and historical transfer status updates for end-user and firm accounts. Returns: id, type, created_at, updated_at. If until is specified, since is required; if until_id is specified, since_id is required; since and since_id are mutually exclusive. Without since or since_id, no historical data is returned.
- **List all Alpaca events trades** (List). List Alpaca trade update events streamed via SSE. Historical events are returned immediately when since or since_id is provided; live updates are pushed as they occur. Returns trade update event records (id, attributes) whose fields follow the upstream TradeUpdateEvent schema. since and since_id are mutually exclusive; until requires since, and until_id requires since_id. Without since or…
- **List all Alpaca journals** (List). List Alpaca journals with optional filtering by creation date, status, entry type, and source or destination account. Returns: id.
- **Create a Alpaca journal** (Create). Create a journal in Alpaca to move cash (JNLC) or shares (JNLS) between accounts. New journals start in pending status and are subject to approval. Returns: id, entry_type, from_account, to_account, amount, status. Required: entry_type, from_account, to_account, amount.
- **Delete a Alpaca journal by ID** (Delete). Cancel a pending Alpaca journal by id. Only journals still in pending status can be deleted; executed journals cannot be canceled. Returns an empty 204 response on success. Required: id.
- **Create a Alpaca journals batch** (Create). Create a batch of Alpaca journal transactions (one-to-many) from one source account to multiple destination accounts. Returns an array of journal objects including id, entry_type, from_account, to_account, amount, status, and error_message for any account that fails. Only JNLC journals are supported; every request must be valid for the batch to succeed. Required: entry_type, from_account,…
- **Get single Alpaca oauth client by ID** (Get). Get a specific Alpaca OAuth client by id to display its details on an authorization page. Returns: client_id, name, description, url, terms_of_use, privacy_policy, status, redirect_uri, live_trading_approved. Required: id.
- **Create a Alpaca oauth token** (Create). Issue an OAuth token in Alpaca for use in the OAuth code flow. Returns: access_token, token_type, scope. Required: account_id, client_id, client_secret, redirect_uri, scope.
- **Create a Alpaca oauth authorize** (Create). Authorize an OAuth token in Alpaca by issuing an OAuth code for use in the OAuth code flow. Returns: code. Required: account_id, client_id, client_secret, redirect_uri, scope.
- **List all Alpaca account watchlists** (List). List all watchlists for an Alpaca trading account. Returns: id, name, and assets for each watchlist. Required: account_id.
- **Create a Alpaca account watchlist** (Create). Create a new watchlist for an Alpaca trading account with an initial set of asset symbols. Returns the created watchlist object including id, account_id, name, created_at, updated_at, and assets. Required: account_id, name.
- **Update a Alpaca account watchlist by ID** (Update). Update an existing Alpaca account watchlist, replacing its entire set of securities and optionally renaming it. Returns the updated watchlist including id, account_id, name, created_at, and updated_at. Required: account_id, id, name. This is a destructive operation that replaces all securities in the watchlist.
- **Delete a Alpaca account watchlist by ID** (Delete). Delete an Alpaca watchlist by id for a specific account. The deletion is irrevocable. Returns an empty 200 response on success. Required: account_id, id.
- **Get single Alpaca account watchlist by ID** (Get). Get a single Alpaca watchlist by id for a specific account. Returns the watchlist object including its id, account_id, name, assets, created_at, and updated_at. Required: account_id, id.
- **List all Alpaca corporate actions announcements** (List). List corporate action announcements from Alpaca by type and date range. Returns an array of announcements including id, ca_type, ex_date, record_date, and payable_date. Required: ca_types, since, until. The date range is limited to 90 days.
- **List all Alpaca account** (List). Get your Alpaca trading account details. Returns: id, account_number, status, cash, equity, buying_power, portfolio_value. No parameters required.
- **Alpaca account get config** (Get). Get the current Alpaca account configuration values controlling trading settings. Returns: disable_overnight_trading, fractional_trading, max_margin_multiplier, max_options_trading_level, no_shorting, ptp_no_exception_entry, suspend_trade, trade_confirm_email.
- **Alpaca account bulk update** (Update). Update Alpaca account configuration settings such as fractional trading, margin multiplier, and options trading level. Returns: disable_overnight_trading, fractional_trading, max_margin_multiplier, max_options_trading_level, no_shorting, ptp_no_exception_entry, suspend_trade, trade_confirm_email.
- **List all Alpaca option contracts** (List). List Alpaca option contracts with filtering by underlying symbol, status, expiration date range, strike price range, type, style, root symbol, and penny-program eligibility. Returns: id, symbol, underlying_symbol, root_symbol, expiration_date, strike_price, type, style, status, deliverables, ppind. Max 10000 contracts per page.
- **Get single Alpaca option contract by ID** (Get). Get a single Alpaca option contract by its symbol or contract ID. Returns the contract object including id, symbol, status, type, style, strike_price, expiration_date, underlying_symbol, root_symbol, ppind, and deliverables. Required: id.
- **Create a Alpaca order** (Create). Create a new order in Alpaca. Returns the created order object including id, client_order_id, status, symbol, qty, side, type, time_in_force, created_at, and submitted_at. Required: type, time_in_force.
- **List all Alpaca orders** (List). List orders in Alpaca filtered by status, symbols, side, asset class, and submission time. Returns an array of order objects with id, client_order_id, status, symbol, qty, side, type, time_in_force, created_at, and submitted_at. Max 500 per page.
- **Alpaca orders delete all** (Delete). Cancel all open orders in Alpaca. Returns an array of objects with id and status for each cancellation attempt.
- **Alpaca orders get by client order ID** (Get). Get a single Alpaca order by its client-assigned order ID. Returns: id, client_order_id, created_at, updated_at, submitted_at, filled_at, expired_at, canceled_at, failed_at, replaced_at, replaced_by, replaces, asset_id, symbol, asset_class, notional, qty, filled_qty, filled_avg_price, order_class, order_type, type, side, time_in_force, limit_price, stop_price, status, extended_hours, legs,…
- **Get single Alpaca order by ID** (Get). Get a single Alpaca order by its server-assigned order ID. Returns: id, client_order_id, created_at, updated_at, submitted_at, filled_at, expired_at, canceled_at, failed_at, replaced_at, replaced_by, replaces, asset_id, symbol, asset_class, notional, qty, filled_qty, filled_avg_price, order_class, order_type, type, side, time_in_force, limit_price, stop_price, status, extended_hours, legs,…
- **Update a Alpaca order by ID** (Update). Replace a single Alpaca order by id with updated parameters. Returns the new Order object including id, client_order_id, status, symbol, qty, side, type, time_in_force, and created_at. Required: id. qty and notional are mutually exclusive; notional is only valid for IPO indications of interest.
- **Delete a Alpaca order by ID** (Delete). Cancel an open Alpaca order by id. Returns an empty 204 response on success. Required: id. The order must be in a cancelable status; a 422 is returned if the order status is not cancelable.
- **List all Alpaca positions** (List). List all open positions in an Alpaca trading account. Returns: asset_id, symbol.
- **Alpaca positions delete all** (Delete). Close (liquidate) all open long and short positions in an Alpaca account, optionally canceling open orders first. Returns an array of PositionClosed responses, each containing symbol, status, and the order body.
- **Get single Alpaca position by ID** (Get). Get a single open position in an Alpaca account by symbol or asset id. Returns: asset_id, symbol. Required: id.
- **Delete a Alpaca position by ID** (Delete). Close (liquidate) an open position in an Alpaca account by symbol or asset id, optionally specifying a quantity or percentage to liquidate. Returns the order created to close the position including id, symbol, qty, side, and status. Required: id. qty and percentage are mutually exclusive.
- **Alpaca positions exercise option** (Action). Exercise an options position in an Alpaca account by contract symbol or ID. Returns: message. Required: symbol_or_asset_id.
- **Alpaca positions do not exercise** (Action). Submit a do-not-exercise (DNE) instruction for a held option contract in Alpaca to prevent automatic exercise at expiry. Returns a success confirmation. Required: symbol_or_asset_id.
- **Alpaca account portfolio get history** (Get). Get timeseries equity and profit/loss (P/L) history for the Alpaca account over a requested timespan. Returns: timestamp, equity, profit_loss, profit_loss_pct, base_value, base_value_asof, timeframe. Only two of start, end, and period may be specified simultaneously; intraday timeframes (<1D) are limited to 30 days or less.
- **List all Alpaca watchlists** (List). List all watchlists registered under the account in Alpaca. Returns: id, account_id, name, assets, created_at, updated_at.
- **Create a Alpaca watchlist** (Create). Create a new watchlist in Alpaca with an initial set of asset symbols. Returns the created watchlist object including its id, name, account_id, assets, created_at, and updated_at. Required: name.
- **Get single Alpaca watchlist by ID** (Get). Get a single Alpaca watchlist by its id. Returns the full watchlist object including its id, account_id, name, and the array of assets it contains. Required: id.
- **Update a Alpaca watchlist by ID** (Update). Update the name and/or content of an Alpaca watchlist by id. Returns the updated watchlist object including its id, name, and asset symbols. Required: id. The request body accepts a new watchlist name and a list of asset symbols to replace the current contents.
- **Alpaca watchlists add asset** (Add). Add an asset to an existing Alpaca watchlist by appending its symbol to the end of the watchlist's asset list. Returns the updated watchlist including its id, account_id, name, created_at, updated_at, and assets. Required: watchlist_id, symbol.
- **Delete a Alpaca watchlist by ID** (Delete). Delete an Alpaca watchlist by id. This is a permanent deletion. Returns an empty 204 response on success. Required: id.
- **Alpaca watchlists get by name** (Get). Get an Alpaca watchlist by its name. Returns: account_id, id, name, created_at, updated_at, assets. Required: name.
- **Alpaca watchlists add asset by name** (Add). Add an asset to an Alpaca watchlist identified by name, appending the symbol to the end of the watchlist's asset list. Returns the updated watchlist including account_id, id, name, created_at, updated_at, and assets. Required: name, symbol.
- **Alpaca watchlists delete by name** (Delete). Delete an Alpaca watchlist by name. This is a permanent deletion. Returns an empty 204 response on success. Required: name.
- **Alpaca watchlists remove asset** (Delete). Remove an asset from an Alpaca watchlist by symbol. Returns the updated watchlist including its id, account_id, name, created_at, updated_at, and assets. Required: watchlist_id, symbol.
- **Alpaca watchlists bulk update** (Update). Update the name and/or content of a watchlist in Alpaca by watchlist name. Returns the updated watchlist object including id, account_id, name, created_at, updated_at, and assets. Required: name.
- **Alpaca account activities list activities** (List). List Alpaca account activities with optional filtering by activity type, category, order, or date range. Returns an array of activities with id, activity_type, and created_at. The category and activity_types parameters are mutually exclusive. Max 100 entries per page.
- **Alpaca account activities list activities by type** (List). List Alpaca account activities filtered by a specific activity type. Returns an array of activities with id, activity_type, and created_at. Required: activity_type.
- **Alpaca calendar get calendar** (Get). Get the Alpaca market calendar of trading days from 1970 to 2029, optionally filtered by a start and end date range. Returns: date, open, close.
- **Alpaca calendar get clock** (Get). Get the Alpaca market clock showing the current market timestamp and whether the market is open. Returns: timestamp, is_open, next_open, next_close.
- **Alpaca calendar get market calendar** (Get). Get the Alpaca market calendar for a specific market identified by MIC, BIC, or acronym code, including trading session dates and open/close times. Returns: date, open, close. Required: market.
- **Alpaca calendar get market clock** (Get). Get market clock information for one or more Alpaca markets, including the current time, whether the market is open, and the current market phase. Returns: timestamp, is_open, next_open, next_close.
- **Alpaca crypto wallets list wallets** (List). List crypto funding wallets for the Alpaca account. If an asset is specified and no matching wallet exists, one will be created. Returns: id, address, asset, chain, created_at, updated_at. Supports optional filtering by asset and chain.
- **Alpaca crypto wallets list transfers** (List). List all crypto wallet transfers for the Alpaca account across all wallets. Returns: id, transfer_id, address, amount, asset, chain, created_at, updated_at.
- **Alpaca crypto wallets create withdrawal** (Create). Create a crypto withdrawal from an Alpaca wallet to a whitelisted destination address. Returns: id, transfer_id, address, amount, asset, chain, created_at, updated_at. Required: address, amount, asset. Withdrawals must be sent to a whitelisted address.
- **Alpaca crypto wallets get transfer** (Get). Get a specific Alpaca crypto wallet transfer by its transfer ID. Returns a single crypto transfer object including id, created_at, and updated_at. Required: transfer_id.
- **Alpaca crypto wallets list whitelisted addresses** (List). List whitelisted withdrawal addresses for your Alpaca account. Returns an array of whitelisted address objects, each including id, address, asset, and chain.
- **Alpaca crypto wallets create whitelisted address** (Create). Create a whitelisted crypto withdrawal address for your Alpaca account. Returns: id, address, asset, chain. Required: address, asset.
- **Alpaca crypto wallets delete whitelisted address** (Delete). Delete a whitelisted crypto withdrawal address from your Alpaca account. Returns an empty 204 response on success. Required: whitelisted_addresse_id.
- **Alpaca crypto wallets get transfer estimate** (Get). Get an estimated on-chain network (gas) fee for a proposed crypto withdrawal from Alpaca. Returns: fee. Required: asset, from_address, to_address, amount.
- **Alpaca tokenization mint** (Action). Mint a tokenized asset on Alpaca's Instant Tokenization Network. Returns the created tokenization request including tokenization_request_id, client_request_id, type, status, issuer, network, underlying_symbol, qty, and wallet_address. Required: issuer, network, qty, underlying_symbol, wallet_address.
- **List all Alpaca tokenization** (List). List tokenization requests on Alpaca's Instant Tokenization Network. Returns each request with tokenization_request_id, client_request_id, type, status, issuer, network, underlying_symbol, qty, and wallet_address.
- **Get single Alpaca tokenization by ID** (Get). Get a single Alpaca tokenization request by id. Returns tokenization_request_id, client_request_id, type, status, issuer, network, underlying_symbol, qty, and wallet_address. Required: id.
- **Alpaca tokenization get by client request ID** (Get). Get a single Alpaca mint tokenization request by client_request_id. Returns tokenization_request_id, client_request_id, type, status, issuer, network, underlying_symbol, qty, and wallet_address. Required: client_request_id.
- **List all Alpaca locates** (List). List Alpaca locates filtered by status, symbol, or date range, sorted by created_at descending. Returns: id, symbol, status, qty, created_at.
- **Create a Alpaca locate** (Create). Create an Alpaca locate request to locate shares for a short sale. Returns: id, symbol, qty, status, created_at, all_or_none, limit_price. Required: symbol, qty. Qty must be positive and in round lots of 100; invalid quantities return HTTP 400.
- **Alpaca corporate actions list announcements** (List). List Alpaca corporate action announcements filtered by type and date range. Returns: id, ca_type, symbol, cusip, declaration_date, ex_date, record_date, payable_date. Required: ca_types, since, until. The date range is limited to 90 days. This endpoint is deprecated.
- **Alpaca corporate actions get announcement** (Get). Get a single Alpaca corporate action announcement by id. Returns: id, ca_type, symbol, cusip, declaration_date, ex_date, record_date, payable_date. Required: announcement_id. This endpoint is deprecated.
- **List all Alpaca stock bars latests** (List). Get the latest bar for a single Alpaca stock symbol. Returns: symbol, bar. Required: symbol.
- **List all Alpaca crypto bars latests** (List). Get the latest bars for multiple crypto symbols from Alpaca, optionally filtered by exchange. Returns a bars map keyed by symbol, each bar containing timestamp (t), exchange (x), open (o), high (h), low (l), close (c), volume (v), trade count (n), and volume-weighted average price (vw). Required: symbols.
- **List all Alpaca stocks trades latests** (List). Get the latest trades for multiple Alpaca stock symbols. Returns a trades object keyed by symbol, each containing the trade timestamp (t), exchange (x), price (p), size (s), conditions (c), trade id (i), and tape (z). Required: symbols.
- **List all Alpaca stock trades latests** (List). Get the latest trade data for a single stock symbol in Alpaca. Returns: symbol, trade. Required: symbol.
- **List all Alpaca stocks quotes latests** (List). Get the latest quotes for multiple Alpaca stock symbols at once. Returns a quote object per symbol with timestamp (t), ask exchange/price/size (ax, ap, as), bid exchange/price/size (bx, bp, bs), condition codes (c), and tape (z). Required: symbols.
- **List all Alpaca stock quotes latests** (List). Get the latest quote for a single stock symbol in Alpaca. Returns: symbol, quote. Required: symbol.
- **List all Alpaca crypto quotes latests** (List). Get the latest quotes for multiple crypto symbols in Alpaca. Returns a quotes map keyed by symbol, each containing the quote timestamp (t), exchange (x), bid price (bp), bid size (bs), ask price (ap), and ask size (as). Required: symbols.
