Integrations

Alpaca

9 actions for Alpaca.

Cancel Order in Alpaca#

Cancels an open order in Alpaca Trading API.

Plans: Trial, Pro, Premium, Enterprise · Type: AlpacaCancelOrder

Inputs#

FieldTypeRequiredDefaultWhat it does
Order IDTextYes(empty)The ID of the order to cancel.

Outputs#

OutputType
Order IdText
SuccessYes/No
ResultObject

Use as an agent tool#

Tool name: alpaca_cancel_order

Cancel an open order in Alpaca Trading API

Close All Positions in Alpaca#

Closes all open positions in Alpaca Trading API.

Plans: Trial, Pro, Premium, Enterprise · Type: AlpacaCloseAllPositions

Inputs#

FieldTypeRequiredDefaultWhat it does
Cancel OrdersTextNofalseWhether to also cancel all open orders. Use ’true’ or ‘false’.

Outputs#

OutputType
OrdersList
Cancel OrdersYes/No

Use as an agent tool#

Tool name: alpaca_close_all_positions

Close all open positions in Alpaca Trading API

Close Position in Alpaca#

Closes a specific position in Alpaca Trading API.

Plans: Trial, Pro, Premium, Enterprise · Type: AlpacaClosePosition

Inputs#

FieldTypeRequiredDefaultWhat it does
SymbolTextYes(empty)The stock symbol to close the position for (e.g., AAPL, TSLA).
QuantityTextNo(empty)Quantity to close. Leave empty to close the entire position.

Outputs#

OutputType
SymbolText
Order DataObject

Use as an agent tool#

Tool name: alpaca_close_position

Close a specific position in Alpaca Trading API

Get Account Info from Alpaca#

Gets account information including balance and buying power from Alpaca Trading API.

Plans: Trial, Pro, Premium, Enterprise · Type: AlpacaGetAccountInfo

Outputs#

OutputType
Account DataObject

Use as an agent tool#

Tool name: alpaca_get_account_info

Get account information including balance and buying power from Alpaca Trading API

Get Orders from Alpaca#

Gets orders from Alpaca Trading API with optional status filtering.

Plans: Trial, Pro, Premium, Enterprise · Type: AlpacaGetOrders

Inputs#

FieldTypeRequiredDefaultWhat it does
Status FilterTextNoallFilter orders by status: ‘open’, ‘closed’, or ‘all’. Defaults to ‘all’.
LimitTextNo100Maximum number of orders to return. Defaults to 100.

Outputs#

OutputType
OrdersList
Status FilterText

Use as an agent tool#

Tool name: alpaca_get_orders

Get orders from Alpaca Trading API with optional status filtering

Get Positions from Alpaca#

Gets all current positions in the portfolio from Alpaca Trading API.

Plans: Trial, Pro, Premium, Enterprise · Type: AlpacaGetPositions

Outputs#

OutputType
PositionsList

Use as an agent tool#

Tool name: alpaca_get_positions

Get all current positions in the portfolio from Alpaca Trading API

Get Stock Quote from Alpaca#

Gets real-time stock quote from Alpaca Trading API.

Plans: Trial, Pro, Premium, Enterprise · Type: AlpacaGetStockQuote

Inputs#

FieldTypeRequiredDefaultWhat it does
SymbolTextYes(empty)The stock symbol to get the quote for (e.g., AAPL, TSLA).

Outputs#

OutputType
SymbolText
Quote DataObject

Use as an agent tool#

Tool name: alpaca_get_stock_quote

Get real-time stock quote from Alpaca Trading API

Place Limit Order in Alpaca#

Places a limit order in Alpaca Trading API.

Plans: Trial, Pro, Premium, Enterprise · Type: AlpacaPlaceLimitOrder

Inputs#

FieldTypeRequiredDefaultWhat it does
SymbolTextYes(empty)The stock symbol to trade (e.g., AAPL, TSLA).
QuantityTextYes(empty)The quantity of shares to trade.
SideTextYesbuyThe order side: ‘buy’ or ‘sell’.
Limit PriceTextYes(empty)The limit price for the order.
Time in ForceTextNodayOrder time in force: ‘day’, ‘gtc’, ‘ioc’, or ‘fok’. Defaults to ‘day’.

Outputs#

OutputType
Order DataObject
SymbolText
QtyText
SideText
Limit PriceText

Use as an agent tool#

Tool name: alpaca_place_limit_order

Place a limit order in Alpaca Trading API

Place Market Order in Alpaca#

Places a market order in Alpaca Trading API.

Plans: Trial, Pro, Premium, Enterprise · Type: AlpacaPlaceMarketOrder

Inputs#

FieldTypeRequiredDefaultWhat it does
SymbolTextYes(empty)The stock symbol to trade (e.g., AAPL, TSLA).
QuantityTextYes(empty)The quantity of shares to trade.
SideTextYesbuyThe order side: ‘buy’ or ‘sell’.
Time in ForceTextNodayOrder time in force: ‘day’, ‘gtc’, ‘ioc’, or ‘fok’. Defaults to ‘day’.

Outputs#

OutputType
Order DataObject
SymbolText
QtyText
SideText

Use as an agent tool#

Tool name: alpaca_place_market_order

Place a market order in Alpaca Trading API