Relevance AI
Relevance AI
Alpaca logo

Alpaca integration

Commission-Free API First Stock Brokerage.

What your agents can do with Alpaca

8 pre-built Alpaca tool steps, ready to drop into any agent. Anything they do not cover, an agent can reach with an authenticated API call.

Actions (8)

Place Order

Places a new order for the given account. An order request may be rejected if the account is not authorized for trading, or if the tradable balance is insufficient to fill the order.

List Positions

Retrieves a list of the account’s open positions.

List Orders

Retrieves a list of orders for the account, filtered by the supplied query parameters, if no filter given all will be returned.

Get Account Info

Returns the account info.

Close Position

Closes (liquidates) the account’s open position. Works for both long and short positions.

Close All Positions

Closes (liquidates) all of the account’s open long and short positions. A response will be provided for each order that is attempted to be cancelled. If an order is no longer cancelable, the server will reject the request.

Cancel Order

Attempts to cancel an open order. If the order is no longer cancelable (example: status=filled), the server will reject the request.

Cancel All Orders

Attempts to cancel all open orders. A response will be provided for each order that is attempted to be cancelled. If an order is no longer cancelable, the server reject the request.

Set up Alpaca in Relevance AI

Do this once. Every agent in your workspace can then use the connection.

1

Create a Relevance AI account

Sign in, or create a free account. You do not need to be a developer to set this up.

2

Connect your Alpaca account

In Relevance AI, open Integrations and add Alpaca. You will be sent to Alpaca to sign in and approve access, and the connection is stored against your workspace.

3

Use Alpaca in an agent

Create a tool, add a Alpaca tool step, and connect it to an agent. The agent fills in the step's inputs each time it runs.

Put Alpaca to work in your agents

Connect Alpaca alongside 1,800+ other integrations and let your agents run the busywork.