The Alpaca connector lets your AI agent act in each user's Alpaca account. Each user connects their own Alpaca API key and secret once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 30 tools.
- Tools
- 30
- What they doRead · write · destructive
- 19 · 5 · 619 read5 write6 destructive
- Users sign in with
- API key
Setup
Install the SDK
Terminal window npm install @scalekit-sdk/node dotenvTerminal window pip install scalekit-sdk-python python-dotenvSet your credentials
Add your Scalekit credentials to your
.envfile. Find values in app.scalekit.com > Developers > API Credentials..env SCALEKIT_ENVIRONMENT_URL=<your-environment-url>SCALEKIT_CLIENT_ID=<your-client-id>SCALEKIT_CLIENT_SECRET=<your-client-secret>Create the Alpaca connection
In AgentKit > Connections, create an Alpaca connection. The name you give it is the
connection_nameyour code passes. See Configure connections.
Tools
Pass the exact name toexecute_toolalpaca_account_activities_listList account activities such as order fills, dividends, fees, interest and cash transfers, newest first.Read-onlyList Account Activities
List account activities such as order fills, dividends, fees, interest and cash transfers, newest first. Returns an array of activities with id, activity_type, date or transaction_time, symbol, qty, price, net_amount and order_id. Use this to reconcile trades and cash movements. Use alpaca_orders_list for order status and alpaca_portfolio_history_get for equity over time.
Inputs
activity_typesstring- Comma-separated activity types to include, such as FILL (order fills), DIV (dividends), TRANS (cash transactions), FEE, INT (interest), JNLC (cash journals) or CSD (cash deposits). Cannot be used with category. Example: FILL,DIV
afterstring- Only return activities created after this time. Format YYYY-MM-DD or RFC 3339. Example: 2026-10-01T00:00:00Z
categorystring- Activity category: trade_activity (fills) or non_trade_activity (cash, dividends, fees and other entries). Cannot be used with activity_types. Example: trade_activityone of
trade_activitynon_trade_activity datestring- Only return activities created on this date (creation date, not settlement date). Format YYYY-MM-DD or RFC 3339. Example: 2026-11-02
directionstring- Sort order by activity time: asc or desc. Default: desc. Example: descone of
ascdesc order_idstring- Only return activities for this order ID, for example the fills that make up an order. Example: 61e69015-8549-4bfd-b9c3-01e75843f47d
page_sizeinteger- Maximum activities to return, 1 to 100. Default: 100. Example: 50
page_tokenstring- Pagination token: the ID of the last activity on the previous page. Example: 20261102093000000::8e2b3c3f-6a37-4c6f-9d1c-0d9b5c9a1f00
untilstring- Only return activities created before this time. Format YYYY-MM-DD or RFC 3339. Example: 2026-11-01T00:00:00Z
alpaca_account_configurations_getGet the account's trading configuration.Read-onlyGet Account Configurations
Get the account's trading configuration. Returns settings such as dtbp_check, no_shorting, suspend_trade, trade_confirm_email, fractional_trading, max_margin_multiplier and max_options_trading_level. Use this to see why an order type or margin level is blocked. Use alpaca_account_get for balances.
Inputs
This tool takes no inputs.
alpaca_account_getGet the trading account the connection belongs to.Read-onlyGet Account
Get the trading account the connection belongs to. Returns account id, number, status, currency, cash, buying power, equity, portfolio value, pattern day trader flag and trading restrictions. Use this to check funds and buying power before placing an order. Use alpaca_positions_list for holdings.
Inputs
This tool takes no inputs.
alpaca_asset_getGet one asset by symbol, asset ID or CUSIP.Read-onlyGet Asset
Get one asset by symbol, asset ID or CUSIP. Returns id, symbol, name, class, exchange, status, tradable, marginable, shortable, easy_to_borrow and fractionable. Use this to check whether a symbol can be traded before placing an order. Use alpaca_assets_list to browse.
Inputs
symbol_or_asset_idstringrequired- Ticker symbol, asset ID (UUID) or CUSIP of the asset. Example: AAPL
alpaca_assets_listList tradable and non-tradable assets, filtered by status, class, exchange or attributes.Read-onlyList Assets
List tradable and non-tradable assets, filtered by status, class, exchange or attributes. Returns an array of assets with id, symbol, name, class, exchange, status, tradable, fractionable and shortable. The list can be very large; filter it. Use this to browse the universe. Use alpaca_asset_get when you know the symbol.
Inputs
asset_classstring- Asset class: us_equity (the default), us_option, crypto, crypto_perp or us_index. Example: us_equity
attributesstring- Comma-separated asset attributes to filter by, such as ptp_no_exception, ptp_with_exception, ipo, has_options or options_late_close. Example: has_options
exchangestring- Comma-separated exchanges for us_equity and us_index assets: AMEX, ARCA, BATS, NYSE, NASDAQ, NYSEARCA, OTC, TXSE or INDEX. Example: NASDAQ
statusstring- Asset status to include, for example active or inactive. All statuses by default. Example: active
alpaca_calendar_getGet a market's trading calendar between two dates.Read-onlyGet Market Calendar
Get a market's trading calendar between two dates. Returns each trading day with its date, sessions, and open and close times. Use this to plan around holidays and early closes. Use alpaca_clock_get for the current session.
Inputs
marketstringrequired- Market identifier (MIC, BIC or acronym), such as NYSE, NASDAQ, OPRA, BOATS, SIFMA or XLON. Example: NYSE
endstring- Last date to return, YYYY-MM-DD. Default: one week after start. Example: 2026-12-31
startstring- First date to return, YYYY-MM-DD. Default: today. Example: 2026-11-16
timezonestring- Timezone for the returned times. Only UTC is accepted; default is the market's own timezone. Example: UTCone of
UTC
alpaca_clock_getGet whether markets are open now and when they next open and close.Read-onlyGet Market Clock
Get whether markets are open now and when they next open and close. Returns, per market, is_market_day, phase, the current session and the next market open and close times. Use this before trading to check the session. Use alpaca_calendar_get for future trading days.
Inputs
marketsstring- Comma-separated market codes, such as NYSE, NASDAQ, OPRA, IEX, BOATS or XLON. Example: NYSE,NASDAQ
timestring- Use this time instead of now, RFC 3339. Example: 2026-11-16T14:30:00Z
alpaca_news_listList market news articles, newest first, optionally for specific symbols.Read-onlyList News
List market news articles, newest first, optionally for specific symbols. Returns news with id, headline, author, summary, url, symbols, source, created_at and optional content, plus next_page_token. Use this to research a stock before trading.
Inputs
endstring- Inclusive end, RFC 3339 or YYYY-MM-DD. Default: now. Example: 2026-11-15
exclude_contentlessboolean- If true, leave out articles that have no content. Example: false
include_contentboolean- If true, include the article content when available. Example: false
limitinteger- Articles per page, 1 to 50. Example: 10
page_tokenstring- Token from next_page_token of the previous response. Example: MTcwMDAwMDAwMDAwMDAwMDAwMHwzNTk5MTYwNg==
sortstring- Sort by updated date: asc or desc. Default: desc. Example: descone of
ascdesc startstring- Inclusive start, RFC 3339 or YYYY-MM-DD. Default: start of today. Example: 2026-11-10
symbolsstring- Comma-separated symbols to get news for. Example: AAPL,TSLA
alpaca_option_contracts_listList option contracts, filtered by underlying, expiration, type, style and strike range.Read-onlyList Option Contracts
List option contracts, filtered by underlying, expiration, type, style and strike range. Returns option_contracts with id, symbol, name, type, style, strike_price, expiration_date, open_interest and close_price, plus next_page_token. Use this to find a contract symbol before placing an options order with alpaca_order_create.
Inputs
expiration_datestring- Exact expiration date, YYYY-MM-DD. Example: 2026-12-18
expiration_date_gtestring- Expiration on or after this date, YYYY-MM-DD. Example: 2026-11-20
expiration_date_ltestring- Expiration on or before this date, YYYY-MM-DD. Defaults to the next weekend. Example: 2027-01-15
limitinteger- Contracts per page. Default 100, maximum 10000. Example: 100
page_tokenstring- Token from next_page_token of the previous response, to get the next page. Example: eyJpZCI6IjU1MGU4NDAwLWUyOWIifQ
root_symbolstring- Root symbol to filter by. Example: AAPL
show_deliverablesboolean- If true, include the deliverables array for each contract. Example: false
statusstring- Contract status: active or inactive. Only active contracts by default. Example: activeone of
activeinactive strike_price_gtenumber- Strike price greater than or equal to this value. Example: 180
strike_price_ltenumber- Strike price less than or equal to this value. Example: 220
stylestring- Exercise style: american or european. Example: americanone of
americaneuropean typestring- Contract type: call or put. Example: callone of
callput underlying_symbolsstring- Comma-separated underlying symbols to filter by. Example: AAPL,SPY
alpaca_order_getGet one order by its ID.Read-onlyGet Order
Get one order by its ID. Returns the order with status, filled_qty, filled_avg_price, limit and stop prices, timestamps and any legs. Use this to check whether an order filled. Use alpaca_orders_list to find order IDs.
Inputs
order_idstringrequired- Alpaca order ID (a UUID). Get it from alpaca_orders_list or the response of alpaca_order_create. Example: 61e69015-8549-4bfd-b9c3-01e75843f47d
nestedboolean- If true, legs of a multi-leg order are rolled up under the legs field. Example: true
alpaca_orders_listList orders on the account, open ones by default, optionally filtered by status, time, symbol or side.Read-onlyList Orders
List orders on the account, open ones by default, optionally filtered by status, time, symbol or side. Returns an array of orders with id, client_order_id, symbol, side, type, qty, filled_qty, limit_price, status and submitted_at. Use this to find an order ID or check fills. Use alpaca_order_get for one order and alpaca_account_activities_list for fill history.
Inputs
afterstring- Only orders submitted after this timestamp (exclusive), RFC 3339. Example: 2026-11-01T00:00:00Z
asset_classstring- Comma-separated asset classes to include, such as us_equity, us_option or crypto. Example: us_equity,us_option
directionstring- Sort by submission time: asc or desc. Default: desc. Example: descone of
ascdesc limitinteger- Maximum orders to return. Default 50, maximum 500. Example: 50
nestedboolean- If true, multi-leg orders (bracket, OCO, OTO, mleg) are rolled up under the legs field of the primary order. Example: true
sidestring- Only orders on this side: buy or sell. Example: buyone of
buysell statusstring- Which orders to return: open, closed or all. Default: open. Example: allone of
openclosedall symbolsstring- Comma-separated symbols to filter by. Crypto orders need the currency pair. Example: AAPL,TSLA
untilstring- Only orders submitted until this timestamp (exclusive), RFC 3339. Example: 2026-11-08T00:00:00Z
alpaca_portfolio_history_getGet the account's equity and profit-and-loss time series over a period.Read-onlyGet Portfolio History
Get the account's equity and profit-and-loss time series over a period. Returns parallel arrays timestamp, equity, profit_loss and profit_loss_pct, plus base_value and timeframe. Use this to chart performance. Use alpaca_account_get for the current balance only.
Inputs
cashflow_typesstring- Cash flow activities to include in the report: ALL, NONE, or a comma-separated list of activity types. Example: ALL
endstring- Last timestamp of the series, RFC 3339 or YYYY-MM-DD. Defaults to the most recent session. Example: 2026-11-01
intraday_reportingstring- For intraday timeframes, which timestamps to return: market_hours, extended_hours or continuous. Default: market_hours. Example: market_hoursone of
market_hoursextended_hourscontinuous periodstring- Total duration as a number plus unit: D (day), W (week), M (month) or A (year). Do not send together with both start and end. Default: 1M. Example: 1M
pnl_resetstring- For intraday queries, how the profit-and-loss baseline is set: per_day (reset every day, the default) or no_reset. Example: per_dayone of
no_resetper_day startstring- First timestamp of the series, RFC 3339 or YYYY-MM-DD. Defaults to end minus period. Example: 2026-10-01
timeframestring- Resolution of each data point: 1Min, 5Min, 15Min, 1H or 1D. If empty, Alpaca picks one based on the period. Example: 1Done of
1D1H15Min5Min1Min
alpaca_position_getGet the open position for one symbol or asset ID.Read-onlyGet Position
Get the open position for one symbol or asset ID. Returns qty, side, avg_entry_price, market_value, cost_basis, unrealized_pl and current_price; 404 if there is no position. Use this for one holding. Use alpaca_positions_list for all holdings.
Inputs
symbol_or_asset_idstringrequired- Ticker symbol or asset ID (UUID) of the position. Crypto pairs are written without the slash. Example: AAPL
alpaca_positions_listList all open positions on the account.Read-onlyList Positions
List all open positions on the account. Returns an array of positions with symbol, asset_class, qty, side, avg_entry_price, market_value, cost_basis, unrealized_pl and current_price. Use this to see holdings. Use alpaca_position_get for one symbol.
Inputs
This tool takes no inputs.
alpaca_stock_bars_getGet historical price bars (open, high, low, close, volume) for one or more stocks.Read-onlyGet Stock Bars
Get historical price bars (open, high, low, close, volume) for one or more stocks. Returns bars keyed by symbol, each with t, o, h, l, c, v, n and vw, plus next_page_token. Use this for price history and charts. Use alpaca_stock_snapshots_get for the latest prices.
Inputs
symbolsstringrequired- Comma-separated list of stock ticker symbols. Example: AAPL,MSFT,TSLA
timeframestringrequired- Bar size: [1-59]Min (or T), [1-23]Hour (or H), 1Day (or D), 1Week (or W), or [1,2,3,4,6,12]Month (or M). Example: 1Day
adjustmentstring- Corporate action adjustment, as a comma-separated list of raw, split, dividend, spin-off or all. Default: raw. Example: split,dividend
asofstring- As-of date used to map the symbol to its underlying entity across name changes, YYYY-MM-DD. Default: today. Example: 2026-11-15
currencystring- Currency for all prices, in ISO 4217 format. Default: USD. Example: USD
endstring- Inclusive end of the interval, RFC 3339 or YYYY-MM-DD. Default: now (15 minutes ago without real-time access). Example: 2026-11-01
feedstring- Data feed: sip (all US exchanges, the default; recent data needs a paid subscription), iex (free), boats or otc. Example: iexone of
iexotcsipboats limitinteger- Maximum data points per page across all symbols, 1 to 10000. Default: 1000. Example: 1000
page_tokenstring- Token from next_page_token of the previous response. Example: QUFQTHxNfDIwMjYtMTAtMDE=
sortstring- Sort by timestamp: asc or desc. Default: asc. Example: ascone of
ascdesc startstring- Inclusive start of the interval, RFC 3339 or YYYY-MM-DD. Default: start of today. Example: 2026-10-01
alpaca_stock_latest_quotes_getGet the latest bid and ask quote for one or more stocks.Read-onlyGet Latest Stock Quotes
Get the latest bid and ask quote for one or more stocks. Returns quotes keyed by symbol, each with t, bp (bid price), bs (bid size), ap (ask price), as (ask size) and exchange codes. Use this to price a limit order. Use alpaca_stock_snapshots_get for trades and bars as well.
Inputs
symbolsstringrequired- Comma-separated list of stock ticker symbols. Example: AAPL,MSFT,TSLA
currencystring- Currency for all prices, in ISO 4217 format. Default: USD. Example: USD
feedstring- Market data feed. sip covers all US exchanges and needs a paid Algo Trader Plus subscription for recent data; iex is the free Investors Exchange feed; delayed_sip is SIP with a 15-minute delay; boats and overnight are overnight trading feeds; otc is over-the-counter. Leave empty for Alpaca's default for your subscription. Example: iexone of
delayed_sipiexotcsipboatsovernight
alpaca_stock_snapshots_getGet a snapshot of the latest market state for one or more stocks.Read-onlyGet Stock Snapshots
Get a snapshot of the latest market state for one or more stocks. Returns per symbol the latestTrade, latestQuote, minuteBar, dailyBar and prevDailyBar. Use this for a current price overview. Use alpaca_stock_latest_quotes_get for bid and ask only and alpaca_stock_bars_get for history.
Inputs
symbolsstringrequired- Comma-separated list of stock ticker symbols. Example: AAPL,MSFT,TSLA
currencystring- Currency for all prices, in ISO 4217 format. Default: USD. Example: USD
feedstring- Market data feed. sip covers all US exchanges and needs a paid Algo Trader Plus subscription for recent data; iex is the free Investors Exchange feed; delayed_sip is SIP with a 15-minute delay; boats and overnight are overnight trading feeds; otc is over-the-counter. Leave empty for Alpaca's default for your subscription. Example: iexone of
delayed_sipiexotcsipboatsovernight
alpaca_watchlist_getGet one watchlist by ID, with its assets.Read-onlyGet Watchlist
Get one watchlist by ID, with its assets. Returns id, name and assets (each with symbol, name, exchange and tradable). Use this to read the symbols in a list. Use alpaca_watchlists_list to find the ID.
Inputs
watchlist_idstringrequired- Watchlist ID (a UUID). Get it from alpaca_watchlists_list. Example: 3174d6df-7726-44b4-a5bd-7fda5ae6e009
alpaca_watchlists_listList the account's watchlists.Read-onlyList Watchlists
List the account's watchlists. Returns an array of watchlists with id, name, created_at and updated_at (without their assets). Use this to find a watchlist ID. Use alpaca_watchlist_get to see the symbols in one.
Inputs
This tool takes no inputs.
alpaca_order_createPlace a stock, option or crypto order: market, limit, stop, stop-limit or trailing stop, including bracket, OCO, OTO and multi-leg option orders.WritePlace Order
Place a stock, option or crypto order: market, limit, stop, stop-limit or trailing stop, including bracket, OCO, OTO and multi-leg option orders. Returns the new order with id, client_order_id, status, symbol, side, type, qty and submitted_at. On a live connection this trades real money. Use alpaca_order_replace to change an open order and alpaca_order_cancel to cancel it. Check buying power with alpaca_account_get first.
Inputs
time_in_forcestringrequired- How long the order stays active: day, gtc, opg, cls, ioc or fok. Options accept day and gtc; crypto accepts gtc and ioc. Example: dayone of
daygtcopgclsiocfok typestringrequired- Order type: market, limit, stop, stop_limit or trailing_stop. Options support market, limit, stop and stop_limit; multi-leg options support market and limit. Example: limitone of
marketlimitstopstop_limittrailing_stop client_order_idstring- Your own unique ID for the order, up to 128 characters. Generated if empty. Example: rebalance-2026-11-15-aapl
extended_hoursboolean- If true, the order can fill in pre-market, after-hours and overnight sessions. Only for limit orders with time_in_force day or gtc. Default: false. Example: false
legsarray- Up to 4 legs for an mleg (multi-leg options) order. Each leg names the option contract symbol, its side, a ratio_qty and optionally a position_intent. Example: [{"symbol": "AAPL261218C00190000", "side": "buy", "ratio_qty": "1", "position_intent": "buy_to_open"}, {"symbol": "AAPL261218C00200000", "side": "sell", "ratio_qty": "1", "position_intent": "sell_to_open"}]
limit_pricestring- Limit price, as a string. Required for limit and stop_limit orders. For mleg orders a positive value is a debit and a negative value a credit. Example: 182.50
notionalstring- Dollar amount to trade, as a string. Only for market orders with time_in_force day. Send qty or notional, not both. Example: 500.00
order_classstring- Order class: simple (or empty), bracket, oco or oto for equities; mleg for multi-leg option strategies. Example: bracketone of
simplebracketocootomleg position_intentstring- For options, the position strategy: buy_to_open, buy_to_close, sell_to_open or sell_to_close. Example: buy_to_openone of
buy_to_openbuy_to_closesell_to_opensell_to_close qtystring- Number of shares or contracts, as a string. Fractional quantities work only for market and day orders. Send qty or notional, not both. Required for mleg orders. Example: 10
sidestring- buy or sell. Required for every order class except mleg. Example: buyone of
buysell stop_lossobject- Stop-loss leg for bracket, oco or oto orders, with a stop_price and an optional limit_price. Example: {"stop_price": "170.00", "limit_price": "169.50"}
stop_pricestring- Stop price, as a string. Required for stop and stop_limit orders. Example: 175.00
symbolstring- Symbol, asset ID or crypto currency pair to trade. Required for every order class except mleg. Example: AAPL
take_profitobject- Take-profit leg for bracket, oco or oto orders, with a limit_price. Example: {"limit_price": "195.00"}
trail_percentstring- Trailing amount as a percent of the high-water mark, as a string. trailing_stop orders need trail_price or trail_percent. Example: 1.5
trail_pricestring- Trailing amount in dollars, as a string. trailing_stop orders need trail_price or trail_percent. Example: 2.50
alpaca_order_replaceReplace an open order with new quantity, prices or time in force.WriteReplace Order
Replace an open order with new quantity, prices or time in force. Returns the new order that replaces the original; the original is marked replaced. Use this to adjust a working order. Use alpaca_order_cancel to cancel it instead and alpaca_order_create to place a new one.
Inputs
order_idstringrequired- Alpaca order ID (a UUID). Get it from alpaca_orders_list or the response of alpaca_order_create. Example: 61e69015-8549-4bfd-b9c3-01e75843f47d
client_order_idstring- New unique client order ID for the replacement order, up to 128 characters. Example: rebalance-2026-11-15-aapl-v2
limit_pricestring- New limit price, as a string. Needed when the original order is limit or stop_limit. Example: 181.00
qtystring- New quantity, as a string. Only whole shares can be changed; fractional and non-IPO notional orders cannot be replaced. Example: 15
stop_pricestring- New stop price, as a string, for stop or stop_limit orders. Example: 174.00
time_in_forcestring- New time in force: day, gtc, opg, cls, ioc or fok. Example: gtcone of
daygtcopgclsiocfok trailstring- New trail_price or trail_percent value, as a string. Only for trailing_stop orders. Example: 2.00
alpaca_watchlist_asset_addAdd one symbol to a watchlist.WriteAdd Asset to Watchlist
Add one symbol to a watchlist. Returns the updated watchlist with id, name and assets. Use this to append a symbol. Use alpaca_watchlist_update to replace the whole list.
Inputs
symbolstringrequired- Symbol to add to the watchlist. Example: TSLA
watchlist_idstringrequired- Watchlist ID (a UUID). Get it from alpaca_watchlists_list. Example: 3174d6df-7726-44b4-a5bd-7fda5ae6e009
alpaca_watchlist_createCreate a watchlist with a name and optional symbols.WriteCreate Watchlist
Create a watchlist with a name and optional symbols. Returns the watchlist with id, name and assets. Use this to start a new list. Use alpaca_watchlist_asset_add to add symbols to an existing one.
Inputs
namestringrequired- Watchlist name, unique on the account. Example: Tech Stocks
symbolsarray- Symbols to add to the watchlist. Example: ["AAPL", "MSFT"]
alpaca_watchlist_updateRename a watchlist and/or replace its whole symbol list.WriteUpdate Watchlist
Rename a watchlist and/or replace its whole symbol list. Returns the updated watchlist with id, name and assets. Use this to overwrite the list. Use alpaca_watchlist_asset_add or alpaca_watchlist_asset_remove to change one symbol.
- Idempotent
Inputs
watchlist_idstringrequired- Watchlist ID (a UUID). Get it from alpaca_watchlists_list. Example: 3174d6df-7726-44b4-a5bd-7fda5ae6e009
namestring- New watchlist name. Send name, symbols or both. Example: Tech Leaders
symbolsarray- Full list of symbols; it replaces the current assets. Send name, symbols or both. Example: ["AAPL", "NVDA"]
alpaca_order_cancelCancel one open order by its ID.DestructiveCancel Order
Cancel one open order by its ID. Returns no content on success; 422 if the order can no longer be canceled. Use this for a single order. Use alpaca_orders_cancel_all to cancel every open order.
- Idempotent
Inputs
order_idstringrequired- Alpaca order ID (a UUID). Get it from alpaca_orders_list or the response of alpaca_order_create. Example: 61e69015-8549-4bfd-b9c3-01e75843f47d
alpaca_orders_cancel_allCancel every open order on the account.DestructiveCancel All Orders
Cancel every open order on the account. Returns an array with each order ID and the HTTP status of its cancel request. Use this to stop all trading activity at once. Use alpaca_order_cancel for a single order.
- Idempotent
Inputs
This tool takes no inputs.
alpaca_position_closeClose all or part of the position in one symbol by placing a market order against it.DestructiveClose Position
Close all or part of the position in one symbol by placing a market order against it. Returns the liquidation order with id, symbol, side, qty and status. On a live connection this trades real money. Use alpaca_positions_close_all to close every position.
Inputs
symbol_or_asset_idstringrequired- Ticker symbol or asset ID (UUID) of the position. Crypto pairs are written without the slash. Example: AAPL
percentagenumber- Percent of the position to liquidate, 0 to 100, up to 9 decimals. Cannot be used with qty. Example: 50
qtynumber- Number of shares to liquidate, up to 9 decimals. Cannot be used with percentage. Leave both empty to close the whole position. Example: 5
alpaca_positions_close_allLiquidate every open position on the account with market orders.DestructiveClose All Positions
Liquidate every open position on the account with market orders. Returns an array with each symbol, the HTTP status of its close request and the order placed. On a live connection this trades real money. Use alpaca_position_close for a single symbol.
Inputs
cancel_ordersboolean- If true, cancel all open orders before liquidating the positions. Example: true
alpaca_watchlist_asset_removeRemove one symbol from a watchlist.DestructiveRemove Asset from Watchlist
Remove one symbol from a watchlist. Returns the updated watchlist with id, name and assets. Use this to drop a symbol. Use alpaca_watchlist_delete to delete the whole list.
- Idempotent
Inputs
symbolstringrequired- Symbol to remove from the watchlist. Example: TSLA
watchlist_idstringrequired- Watchlist ID (a UUID). Get it from alpaca_watchlists_list. Example: 3174d6df-7726-44b4-a5bd-7fda5ae6e009
alpaca_watchlist_deleteDelete a watchlist.DestructiveDelete Watchlist
Delete a watchlist. Returns no content on success. Use this to remove the whole list. Use alpaca_watchlist_asset_remove to drop one symbol.
- Idempotent
Inputs
watchlist_idstringrequired- Watchlist ID (a UUID). Get it from alpaca_watchlists_list. Example: 3174d6df-7726-44b4-a5bd-7fda5ae6e009
No tools match.