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:Your app never sees the user's Aries password. It holds a token limited to the scopes the user approved.
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.
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.market:supplemental scope. Building for other users? Swap step 1 for the Authorization Code flow. The rest stays the same.
Frequently Asked Questions
Is a trading API the same as a brokerage API?
Is a trading API the same as a brokerage API?
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.
Can an AI agent use a brokerage API?
Can an AI agent use a brokerage API?
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.