# Alpaca integration

> Trading API (account, orders, positions, watchlists, assets, options, crypto wallets) and Market Data API (stocks, options, crypto, news, forex) for an Alpaca account.

- Authentication: apiKey

## Tools (100)

- **Add Asset to Watchlist**: Append an asset for the symbol to the end of watchlist asset list
- **Add Asset to Watchlist By Name**: Append an asset for the symbol to the end of watchlist asset list
- **Close All Positions**: Closes (liquidates) all of the account's open long and short positions.
- **Close a Position**: Closes (liquidates) the account's open position for the given symbol, long or short.
- **Create an Order**: Places a new order for stocks, options (including multi-leg) or crypto. On a live key this trades real money.
- **Create Locate**: Creates a locate request for a short sale. Not available in paper trading.
- **Create Watchlist**: Create a new watchlist with an initial set of assets.
- **Crypto historical bars**: Historical aggregates (bars) for a list of crypto symbols between the specified dates.
- **Crypto historical quotes**: Historical quote data for a list of crypto symbols between the specified dates.
- **Crypto historical trades**: Historical trade data for a list of crypto symbols between the specified dates.
- **Crypto latest bars**: Latest minute-aggregated bar for each of the crypto symbols provided.
- **Crypto latest orderbooks**: Latest bid and ask orderbook for the crypto symbols provided.
- **Crypto latest quotes**: Latest bid and ask prices for the crypto symbols provided.
- **Crypto latest trades**: Latest trade data for the crypto symbols provided.
- **Crypto snapshots**: Latest trade, quote, minute bar, daily bar and previous daily bar for crypto symbols.
- **Delete All Orders**: Attempts to cancel all open orders.
- **Delete Order by ID**: Attempts to cancel an open order.
- **Delete Symbol from Watchlist**: Remove one asset by symbol from a watchlist.
- **Delete Watchlist By Id**: Delete a watchlist. This is a permanent deletion.
- **Delete Watchlist By Name**: Delete a watchlist by name. This is a permanent deletion.
- **Delete Whitelisted Address**: Deletes a whitelisted withdrawal address by ID.
- **Do Not Exercise an Options Position**: Submit a do-not-exercise instruction for a held option contract, preventing automatic exercise at expiry.
- **Estimate Crypto Transfer Gas Fee**: Estimated on-chain network (gas) fee for a proposed crypto withdrawal.
- **Exercise an Options Position**: Exercise a held option contract, converting it into the underlying asset.
- **Fixed income latest prices**: Latest prices for the given fixed income securities.
- **Fixed income latest quotes**: Latest quotes for the given fixed income securities.
- **Forex historical rates**: Historical forex rates for currency pairs over an interval at a given sampling timeframe.
- **Forex latest rates**: Latest forex rates for the given currency pairs.
- **Get Account**: Returns the account details: status, equity, cash and buying power.
- **Get Account Configurations**: Gets the current account configuration values.
- **Get Account Portfolio History**: Timeseries of account equity and profit/loss over the requested span.
- **Get All Open Positions**: The account's current open positions with cost basis, quantity and market value.
- **Get All Orders**: Retrieves a list of orders for the account, filtered by the supplied query parameters.
- **Get All Watchlists**: Returns the list of watchlists registered under the account.
- **Get an Asset by ID or Symbol**: Get the asset model for a given symbol or asset ID.
- **Get an Open Position**: Retrieves the account's open position for the given symbol or asset ID.
- **Get an option contract by ID or Symbol**: Get an option contract by symbol or contract ID.
- **Get Assets**: Master list of assets available for trade and data consumption, sorted by asset class, exchange and symbol.
- **Get Corporate Actions**: Corporate actions (splits, dividends, mergers, spin-offs and more) for given symbols over a time period.
- **Get Locate**: Returns a short-sale locate by ID. Not available in paper trading.
- **Get Locate Quotes**: Locate availability and pricing for one or more symbols. Not available in paper trading.
- **Get Logo for Symbol**: The company logo image for a symbol.
- **Get Market Calendar by Market**: Returns the market calendar for a given market code.
- **Get Market Clock for Markets**: Serves clock information for multiple markets: current time, whether it is a market day, current market phase.
- **Get Most Active Stocks**: Most active stocks by volume or trade count based on real-time SIP data.
- **Get News Articles**: Latest news articles across stocks and crypto, optionally filtered by symbol.
- **Get Option Contracts**: List option contracts filtered by underlying, expiration, strike, type and more.
- **Get Order by Client Order ID**: Retrieves a single order by client order ID.
- **Get Order by ID**: Retrieves a single order for the given order_id. Also the reference for the Order object fields.
- **Get Tokenization Request by Client Request ID**: Retrieve a single mint tokenization request by the AP-supplied client_request_id.
- **Get Tokenization Request by ID**: Retrieve a single tokenization request (mint or redeem) by tokenization_request_id. For Authorized Participants.
- **Get Top Market Movers**: Top market movers (gainers and losers) for stocks or crypto based on real-time SIP data.
- **Get US Market Calendar (legacy)**: Market days from 1970 to 2029 with open and close times, optionally narrowed by date.
- **Get US Market Clock (legacy)**: Current market timestamp, whether the market is open, and next open and close times.
- **Get Watchlist by ID**: Returns a watchlist identified by the ID.
- **Get Watchlist by Name**: Returns a watchlist by name.
- **List Locates**: Locates filtered by status, symbol or date range. Not available in paper trading.
- **List Tokenization Requests**: List tokenization requests performed on the Instant Tokenization Network. For Authorized Participants.
- **List Whitelisted Addresses**: The account's whitelisted crypto withdrawal addresses.
- **Mint a Tokenized Asset**: Request minting of a tokenized asset. For Authorized Participants.
- **Options chain**: Latest trade, quote and greeks for each contract of an underlying symbol.
- **Options condition codes**: Mapping between option trade or quote condition codes and names.
- **Options exchange codes**: Mapping between option exchange codes and exchange names.
- **Options historical bars**: Historical aggregates (bars) for a list of option contract symbols between the specified dates.
- **Options historical trades**: Historical trade data for a list of option contract symbols between the specified dates.
- **Options latest quotes**: Latest bid and ask prices for each given option contract symbol.
- **Options latest trades**: Latest trade data for multiple option contract symbols.
- **Options snapshots**: Latest trade, quote and greeks for each given option contract symbol.
- **Replace Order by ID**: Replaces a single open order with updated parameters; returns the new order with a new ID.
- **Request Whitelisted Address**: Submits a new whitelisted crypto withdrawal address for the account.
- **Retrieve Account Activities**: List account activities (fills and non-trade activities), filtered by type, category, order or date.
- **Retrieve Account Activities of Specific Type**: Account activity entries for one activity type.
- **Retrieve a Crypto Funding Transfer**: Returns a specific crypto wallet transfer by transfer_id.
- **Retrieve Announcements**: Deprecated corporate action announcements endpoint; Alpaca recommends Get Corporate Actions.
- **Retrieve a Specific Announcement**: Deprecated: one corporate action announcement by ID.
- **Retrieve Crypto Funding Transfers**: All crypto transfers associated with the account across all wallets.
- **Retrieve Crypto Funding Wallets**: Lists the account's crypto funding wallets; creates one when an asset is given and none exists.
- **Search for VASPs**: Search crypto exchanges (VASPs) on Notabene's network to find a beneficiary VASP DID for travel rule info.
- **Stock historical auctions (single symbol)**: Auction prices for one stock symbol between the specified dates.
- **Stock historical bars (single symbol)**: Historical OHLC bars for one stock symbol between the specified dates.
- **Stock historical quotes (single symbol)**: Historical quote data for one stock symbol between the specified dates.
- **Stock historical trades (single symbol)**: Historical trade data for one stock symbol between the specified dates.
- **Stock latest bar (single symbol)**: Latest minute bar for one stock symbol.
- **Stock latest quote (single symbol)**: Latest best bid and ask prices for one stock symbol.
- **Stock latest trade (single symbol)**: Latest trade for one stock symbol.
- **Stocks condition codes**: Mapping between stock trade or quote condition codes and names.
- **Stocks exchange codes**: Mapping between stock exchange codes and exchange names.
- **Stocks historical auctions**: Auction prices for a list of stock symbols between the specified dates.
- **Stocks historical bars**: Historical OHLC bars for a list of stock symbols between the specified dates.
- **Stocks historical quotes**: Historical quote data for a list of stock symbols between the specified dates.
- **Stocks historical trades**: Historical trade data for a list of stock symbols between the specified dates.
- **Stocks latest bars**: Latest minute bar for the given stock ticker symbols.
- **Stocks latest quotes**: Latest best bid and ask prices for the given stock ticker symbols.
- **Stocks latest trades**: Latest trade for the given stock ticker symbols.
- **Stock snapshot (single symbol)**: Latest trade, quote, minute bar, daily bar and previous daily bar for one stock symbol.
- **Stocks snapshots**: Latest trade, quote, minute bar, daily bar and previous daily bar for each given stock symbol.
- **Update Account Configurations**: Updates and returns the current account configuration values.
- **Update travel rule information for a whitelisted wallet**: Supply travel rule information for a whitelisted crypto withdrawal address.
- **Update Watchlist By Id**: Update the name and/or content of a watchlist.
- **Update Watchlist By Name**: Update the name and/or content of a watchlist identified by name.

Connect Alpaca in General Input: https://www.generalinput.com/apps/alpaca