Skip to content

Integration · Payments

alpaca.markets

Connect Claude & ChatGPT to Alpaca

Ask your AI about buying power, open positions or today's orders in your Alpaca trading account. It can read your account, positions, orders, activities and portfolio history, look up assets and option contracts, check whether the market is open, cancel an open order and keep your watchlists up to date. It works with paper and live accounts.

Connect Alpaca free

Free plan, no credit card. Takes about a minute.

Try asking

  • “How much buying power do I have right now?”

    The AI reads your account and returns status, cash, buying power, equity and portfolio value.

  • “Which positions are down the most?”

    It lists open positions with quantity, average entry price, market value and unrealized profit or loss.

  • “Which orders are still open?”

    It lists orders with status open, with symbol, side, type and quantity.

What your AI can do

Account and positions

Read account status, cash, buying power and equity, open positions, portfolio history and account activities like fills, dividends and fees.

Orders

List and read orders with their fill price and status, and cancel open orders.

Assets, market and watchlists

Look up assets and option contracts, check the market clock and calendar, and create, update and read watchlists.

  • “Cancel my open order for TSLA.”

    It finds the order and cancels it. Orders that are already filled cannot be cancelled.

  • “Is the market open, and when does it close today?”

    It reads the market clock and gives the next open and close times.

  • “Add NVDA and AMD to my tech watchlist.”

    It finds the watchlist and updates its list of symbols.

55 tools for Alpaca

These tools are switched on when you connect. You can switch any of them off, or require your approval before it runs.

  • cancel_orderDeletesCancel an open order by `order_id`. Orders that are already filled cannot be cancelled.
  • create_addressChanges dataCreate a new address. API summary: Request a new whitelisted address.
  • create_locateChanges dataCreate a new locate. Required: qty or symbol. API summary: Create Locate.
  • create_mintChanges dataCreate a new mint. Required: issuer, network, qty, underlying symbol or wallet address. API summary: Mint a Tokenized Asset.
  • create_orderChanges dataCreate a new order. Required: time in force or type. API summary: Create an Order.
  • create_position_do_not_exerciseChanges dataCreate a new do not exercise for a position. API summary: Do Not Exercise an Options Position.
  • create_position_exerciseChanges dataCreate a new exercise for a position. API summary: Exercise an Options Position.
  • create_watchlistChanges dataCreate a watchlist with a `name` and an optional list of `symbols`.
  • create_watchlists_by_nameChanges dataCreate a new watchlists by name. Required: name. Search watchlists by names first to avoid duplicates. API summary: Add Asset to Watchlist By Name.
  • delete_addressDeletesPermanently delete a address by whitelisted address id. Destructive action; may require approval. API summary: Delete a whitelisted address.
  • delete_ordersMoves moneyPermanently delete a order. Financial or irreversible action; may require approval. API summary: Delete All Orders.
  • delete_positionDeletesPermanently delete a position by symbol or asset id. Destructive action; may require approval. API summary: Close a Position.
  • delete_positionsMoves moneyPermanently delete a position. Financial or irreversible action; may require approval. API summary: Close All Positions.
  • delete_watchlistDeletesPermanently delete a watchlist by watchlist id. Destructive action; may require approval. API summary: Delete Watchlist By Id.
  • delete_watchlists_by_namesMoves moneyPermanently delete a watchlists by name. Financial or irreversible action; may require approval. API summary: Delete Watchlist By Name.
  • get_accountGet the connected Alpaca trading account: status, cash, buying power, equity and portfolio value.
  • get_account_configurationsList accounts. API summary: Get Account Configurations.
  • get_assetGet one asset by symbol or ID, including whether it is tradable, shortable and fractionable.
  • get_calendarGet one calendar by market. API summary: Get Market Calendar.
  • get_locateGet one locate by locate id. API summary: Get Locate.
  • get_market_calendarList market trading days with open and close times, optionally up to an `end` date.
  • get_market_clockGet the market clock: whether the US market is open now and the next open and close times.
  • get_market_clock_2List clocks. Optional filters: markets or time. API summary: Get Market Clock.
  • get_option_contractGet one option contract by symbol or ID, with strike, expiration and type.
  • get_orderGet one order by `order_id`, with its type, quantity, fill price and status.
  • get_order_by_client_order_idList orders. Optional filters: client order id. API summary: Get Order by Client Order ID.
  • get_portfolio_historyGet portfolio value and profit/loss over time, set by `period` (e.g. 1M) and `timeframe` (e.g. 1D).
  • get_positionGet the open position for one `symbol_or_asset_id` (e.g. AAPL).
  • get_requestGet one request by tokenization request id. API summary: Get Tokenization Request by ID.
  • get_taskGet one task by task type. Results are paginated. API summary: Retrieve Account Activities of Specific Type.
  • get_transferGet one transfer by transfer id. API summary: Retrieve a Crypto Funding Transfer.
  • get_watchlistGet one watchlist by `watchlist_id`, with its symbols.
  • list_account_activitiesList account activities such as fills, dividends, fees and transfers, filtered by `activity_types`, date or range.
  • list_addressesList addresses. API summary: An array of whitelisted addresses.
  • list_assetsList tradable assets, filtered by `status`, `asset_class` (us_equity, crypto, us_option) or exchange.
  • list_locatesList locates. Optional filters: status, symbol, start or end. Results are paginated.
  • list_option_contractsList option contracts for `underlying_symbols`, filtered by type, strike price range and expiration dates.
  • list_ordersList orders, filtered by `status` (open, closed, all), symbols, side, date range (`after`/`until`) and limit.
  • list_positionsList all open positions with quantity, average entry price, market value and unrealized profit/loss.
  • list_quotesList quotes. Optional filters: symbols. API summary: Get Locate Quotes.
  • list_quotes_get_crypto_transfer_estimateList quotes. Optional filters: asset, from address, to address or amount. API summary: Returns the estimated gas fee for a proposed transaction.
  • list_requestsList requests. Optional filters: type, status, underlying symbol, issuer, network or before. Results are paginated. API summary: List Tokenization Requests.
  • list_requests_by_client_request_idsList requests by client request ids. Optional filters: client request id. API summary: Get Tokenization Request by clientrequestid.
  • list_tasksList tasks. Optional filters: since, until, since id or until id. API summary: Subscribe to Activity Events (SSE).
  • list_transfersList transfers. API summary: Retrieve Crypto Funding Transfers.
  • list_walletsList wallets. Optional filters: asset, chain or network. API summary: Retrieve Crypto Funding Wallets.
  • list_watchlistsList the account's watchlists.
  • remove_watchlist_symbolDeletesRemove one `symbol` from a watchlist by `watchlist_id`.
  • search_vaspsSearch vasps by q, email domain, chainalysis name, order or include subsidiary vas ps. Use this to find existing vasps before creating a new vasp. Results are paginated. API summary: Search for VASPs.
  • search_watchlists_by_namesSearch watchlists by names by name. Use this to find existing watchlists by names before creating a new watchlists by name. API summary: Get Watchlist by Name.
  • update_accountsVisible to othersUpdate an existing account. Only the fields you pass are changed. Has effects visible outside this system. API summary: Account Configurations.
  • update_addressesVisible to othersUpdate an existing address identified by whitelisted address id. Only the fields you pass are changed. Has effects visible outside this system. API summary: Update travel rule information for a whitelisted wallet.
  • update_orderChanges dataUpdate an existing order identified by order id. Only the fields you pass are changed. API summary: Replace Order by ID.
  • update_watchlistChanges dataRename a watchlist or replace its `symbols` list by `watchlist_id`.
  • update_watchlists_by_namesVisible to othersUpdate an existing watchlists by name. Has effects visible outside this system. API summary: Update Watchlist By Name.

Set up in three steps

  1. 1

    Pick the app

    Create a free HeyMyApps account and choose Alpaca from the app list.

  2. 2

    Paste your key

    Enter three things: your Alpaca Trading API address, your API key ID and your API secret key. In the Alpaca dashboard, pick your paper or live account and generate API keys there. Paper and live accounts have separate keys. Use https://paper-api.alpaca.markets for paper trading or https://api.alpaca.markets for live.

  3. 3

    Add the link to your AI

    You get a personal MCP link. Add it to Claude, ChatGPT or Cursor:

    1. Click your name, then Settings › Connectors › Add custom connector.
    2. Paste your link as the Remote MCP server URL.
    3. Switch it on from the + menu in a chat.

Questions

What can the AI do in Alpaca?

The AI can read your account, positions, orders, account activities, portfolio history, assets, option contracts, watchlists and the market clock and calendar. It can cancel open orders, create and update watchlists and remove a symbol from a watchlist. The Alpaca tools in HeyMyApps do not place new orders.

Does the AI see my Alpaca API keys?

No. Your Alpaca API key ID and secret key are encrypted at rest and never shown to the AI. After you save them, they are not shown again, not even to you. The AI only sees the results of the tools it calls.

Can I control what the AI is allowed to do?

Yes. You choose which tools are switched on, so you can start read-only. Cancelling an order cannot be undone, and it can require your approval before it runs. Every tool call is logged.

Does it work with ChatGPT?

Yes. In ChatGPT go to Settings › Apps & Connectors › Advanced and turn on Developer mode, then add your HeyMyApps link. Developer mode needs a paid ChatGPT plan: Plus, Pro, Business or Enterprise. The same link also works in Claude (Settings › Connectors › Add custom connector), Cursor and other MCP clients.

What does it cost?

HeyMyApps has a free plan with no credit card required. Paid plans bill per completed task. You also need your own Alpaca account.

Can I use a paper trading account?

Yes. Generate API keys for your paper account in the Alpaca dashboard and use the address https://paper-api.alpaca.markets. Paper and live accounts have separate keys, so you can try everything on paper before you connect a live account.

Let your AI work in Alpaca today.

Start free. Your key stays encrypted, and you decide what the AI may do.

Connect Alpaca free

HeyMyApps is not affiliated with Alpaca. Product names are trademarks of their owners.