Skip to main content
Before you compare brokerage APIs on features or fees, decide whose account the trade runs in. A brokerage API lets your code read accounts and place orders at a broker, and it comes in three kinds: your own account with a personal token, your users’ own accounts through OAuth sign-in, or accounts the provider opens for your customers under your brand. Aries covers the first two, on the same infrastructure its own brokerage runs on.

What Is a Brokerage API?

A brokerage API connects your code to a broker. It reads balances, positions and order history, streams prices, and places, changes and cancels orders. Most use REST for requests and WebSockets for live updates. A market-data API only tells you prices. A brokerage API moves money in a real account.

Three Kinds of Brokerage API: Whose Account Does the Trade Run In?

Trading Your Own Account With a Personal Token

If your code only ever trades for you (a script, a scheduled job, your own AI agent), you don’t need a sign-in screen. Aries gives you a personal-token client, bound to your account. Your code swaps its client ID and secret for an access token with the Client Credentials flow, with no login redirect. That client can only act as you. An app that signs in many different users is a partner client, and partner clients must use the OAuth sign-in flow in the next section.

Building a Trading App for Other Users: OAuth Delegated Access

When your app trades for other people, each user signs in at their broker and approves what your app can do. Your app gets a token, never their password. That’s the core idea of OAuth: “instead of using the resource owner’s credentials to access protected resources, the client obtains an access token.” This is the model Aries is built for. Your users sign in with their own account at Aries, a FINRA broker-dealer:
Four steps. 1 Your app sends the user to app.aries.com/oauth2/authorize with the scopes it needs. 2 The user signs in with their own Aries account and approves. 3 Aries sends the user back to your app with a one-time code. 4 Your server exchanges the code at POST /v1/oauth2/token and calls the API with the access token.Four steps. 1 Your app sends the user to app.aries.com/oauth2/authorize with the scopes it needs. 2 The user signs in with their own Aries account and approves. 3 Aries sends the user back to your app with a one-time code. 4 Your server exchanges the code at POST /v1/oauth2/token and calls the API with the access token.

Your app never sees the user's Aries password. It holds a token limited to the scopes the user approved.

Pick the flow by where your code runs. An app with a backend that can keep a secret uses the Authorization Code flow. A single-page or mobile app can’t keep one, so it uses PKCE. Either way, ask only for the scopes your app uses: order:execution is the one that places orders, so a read-only app never needs it.

Brokerage API as a Service: Opening Accounts for Your Customers

Broker-as-a-service is a different job. The provider opens and holds brokerage accounts for your customers, under your brand, and your app runs sign-up, funding and trading through its API. Alpaca’s Broker API and DriveWealth’s embedded investing work this way, so if you’re building that product, you want a broker-as-a-service. With Aries, your users bring their own Aries account. You build the app, and Aries runs the brokerage.

Brokerage API With Built-In Market Data and Multi-Leg Options

With Aries, data, research and trading come from one provider, on one token:
  • Market data: the full SIP feed with level 2, plus real-time WebSockets for market data and account updates.
  • Research data: options chains, Greeks, company financials, filings, ETF data, news and calendars.
  • Orders: market, limit, stop and stop-limit, single-leg options, and multi-leg options orders with 2 to 4 legs placed as one order, all through POST /v1/orders.
  • Prediction markets: events, contracts and orders in the same API.
  • Simulation accounts: a user can have a simulation account beside their live one, and every account carries a simulation flag.
  • SDKs and agents: official Python and TypeScript SDKs, a hosted MCP server for Claude, ChatGPT, Cursor and other AI tools, and llms.txt.
All of it, market data and the MCP server included, is free with an Aries account.

Your First Aries API Call

These two requests use a personal-token client: get a token, then read the last quote for a stock. Register the client in Client Center under API, and keep the secret out of your code.
The token lasts 15 minutes and has no refresh token, so request a new one when it expires. The quote needs the market:supplemental scope. Building for other users? Swap step 1 for the Authorization Code flow. The rest stays the same.

Frequently Asked Questions

People use the two names for the same thing: an API that places orders in a brokerage account. Some “trading APIs” only send orders, and some only serve prices, so check that the one you pick covers accounts, orders and market data together.
Yes. An agent can call the REST API directly, or connect to the hosted Aries MCP server. The AI trading agent guide shows how to keep every order waiting for your approval.
Ready to build? The Quick Start takes you from registering your app to your first authenticated call.