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#
| Field | Type | Required | Default | What it does |
|---|---|---|---|---|
| Order ID | Text | Yes | (empty) | The ID of the order to cancel. |
Outputs#
| Output | Type |
|---|---|
| Order Id | Text |
| Success | Yes/No |
| Result | Object |
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#
| Field | Type | Required | Default | What it does |
|---|---|---|---|---|
| Cancel Orders | Text | No | false | Whether to also cancel all open orders. Use ’true’ or ‘false’. |
Outputs#
| Output | Type |
|---|---|
| Orders | List |
| Cancel Orders | Yes/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#
| Field | Type | Required | Default | What it does |
|---|---|---|---|---|
| Symbol | Text | Yes | (empty) | The stock symbol to close the position for (e.g., AAPL, TSLA). |
| Quantity | Text | No | (empty) | Quantity to close. Leave empty to close the entire position. |
Outputs#
| Output | Type |
|---|---|
| Symbol | Text |
| Order Data | Object |
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#
| Output | Type |
|---|---|
| Account Data | Object |
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#
| Field | Type | Required | Default | What it does |
|---|---|---|---|---|
| Status Filter | Text | No | all | Filter orders by status: ‘open’, ‘closed’, or ‘all’. Defaults to ‘all’. |
| Limit | Text | No | 100 | Maximum number of orders to return. Defaults to 100. |
Outputs#
| Output | Type |
|---|---|
| Orders | List |
| Status Filter | Text |
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#
| Output | Type |
|---|---|
| Positions | List |
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#
| Field | Type | Required | Default | What it does |
|---|---|---|---|---|
| Symbol | Text | Yes | (empty) | The stock symbol to get the quote for (e.g., AAPL, TSLA). |
Outputs#
| Output | Type |
|---|---|
| Symbol | Text |
| Quote Data | Object |
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#
| Field | Type | Required | Default | What it does |
|---|---|---|---|---|
| Symbol | Text | Yes | (empty) | The stock symbol to trade (e.g., AAPL, TSLA). |
| Quantity | Text | Yes | (empty) | The quantity of shares to trade. |
| Side | Text | Yes | buy | The order side: ‘buy’ or ‘sell’. |
| Limit Price | Text | Yes | (empty) | The limit price for the order. |
| Time in Force | Text | No | day | Order time in force: ‘day’, ‘gtc’, ‘ioc’, or ‘fok’. Defaults to ‘day’. |
Outputs#
| Output | Type |
|---|---|
| Order Data | Object |
| Symbol | Text |
| Qty | Text |
| Side | Text |
| Limit Price | Text |
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#
| Field | Type | Required | Default | What it does |
|---|---|---|---|---|
| Symbol | Text | Yes | (empty) | The stock symbol to trade (e.g., AAPL, TSLA). |
| Quantity | Text | Yes | (empty) | The quantity of shares to trade. |
| Side | Text | Yes | buy | The order side: ‘buy’ or ‘sell’. |
| Time in Force | Text | No | day | Order time in force: ‘day’, ‘gtc’, ‘ioc’, or ‘fok’. Defaults to ‘day’. |
Outputs#
| Output | Type |
|---|---|
| Order Data | Object |
| Symbol | Text |
| Qty | Text |
| Side | Text |
Use as an agent tool#
Tool name: alpaca_place_market_order
Place a market order in Alpaca Trading API