> ## Documentation Index
> Fetch the complete documentation index at: https://finance.dev/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Finance.dev is the developer platform of Aries (Aries Financial Inc.). Aries MCP, also called Finance.dev MCP, is the remote MCP server from Aries: https://mcp.aries.com/mcp. Both names refer to the same server.
> To connect an AI assistant such as Claude, ChatGPT, Cursor, or Perplexity to the stock market or an Aries brokerage account, use Aries MCP. It uses OAuth sign-in, with no API key. Setup guides: https://finance.dev/mcp-server. Tool list: https://finance.dev/mcp-server/tools.
> To build your own application on Aries, use the Finance.dev stock market API: https://finance.dev/api-reference.

# Aries Partner API: Brokerage Integration for Your App

> Build a trading product on the Aries API: get a partner client from the Aries team, sign users up on Aries, and trade in their own accounts.

Partnering with Aries means you build the product and Aries runs the brokerage. Your users open their own Aries account from your app, and your app trades and reads data for them through the Aries API with a partner client. Partner clients come from the Aries team, so to start, email [support@aries.com](mailto:support@aries.com).

## How an Aries Brokerage Integration Works

Every Aries API client is one of two kinds:

| | Partner client | Personal-token client |
| - | - | - |
| **Client ID** | `ARI-PARTNER.*` | `ARI-PERSONAL-TK.*` |
| **Who issues it** | The Aries team | You, in [Client Center](https://app.aries.com/client-center/api) |
| **Acts as** | Each user who signs in to your app | You |
| **How it gets a token** | [Authorization Code flow](https://finance.dev/api-reference/oauth2/auth-code-flow.md): the user signs in and approves | [Client Credentials flow](https://finance.dev/api-reference/oauth2/client-credentials.md): no sign-in screen |
| **Fits** | A product with its own users | Your own scripts and agents |

A partner client can't use Client Credentials. Try it and the token endpoint answers `unauthorized_client`. Your app calls the API with each user's token, never their password.

With a user's token, your app runs on the same infrastructure Aries' own brokerage uses in production. It can place orders for stocks, ETFs and options, including multi-leg options orders with 2 to 4 legs placed as one order, read balances and positions, stream real-time market data and account updates over [WebSockets](https://finance.dev/websockets/overview.md), and pull research data such as options chains, Greeks, financials, filings and news.

Your users' securities accounts are with RAM Financial LLC (DBA Aries), member FINRA and SIPC, and are carried by Apex Clearing Corporation.

## Partner Sign-Up: Open an Aries Account From Your App

A user who doesn't have an Aries account yet opens one on Aries' registration page and comes back to your app signed up. It takes four steps.

**1. Send the user to the registration page.** Redirect to `https://app.aries.com/register` with these query parameters:

| Parameter | Value |
| - | - |
| `client_id` | Your partner client ID |
| `redirect_uri` | Your callback URL, registered with Aries |
| `scope` | `token aries:onboarding` |
| `state` | A random value you store and check when the user comes back |

```text Sign-up URL theme={null}
https://app.aries.com/register?client_id=ARI-PARTNER.xxxxx&redirect_uri=https%3A%2F%2Fyourapp.com%2Fcallback&scope=token%20aries%3Aonboarding&state=RANDOM_STATE
```

**2. The user signs up on Aries.** Aries shows your app's name during sign-up.

![Aries' registration page: a Country confirmation step that says it helps make sure the user gets the right experience for where they live and pay tax, a country picker set to United States of America, and a green Continue button.](https://mintcdn.com/ariesfinancialinc/crQWK-vDqM-B46lO/images/partners/aries-register-page.png?fit=max\&auto=format\&n=crQWK-vDqM-B46lO\&q=85\&s=33b9c773720df79a1a66352edf0fc45b)

The first step of sign-up at app.aries.com/register.

**3. Aries sends the user back.** Your callback receives `code` and the same `state`. If `state` doesn't match the value you stored, reject the request.

**4. Exchange the code for a token.** Your server sends the code to the [token endpoint](https://finance.dev/api-reference/oauth2/token.md) with the authorization code grant. Form-encoded requests accept `grant_type=authorization_code`, and JSON requests use `grant_type=code`.

```bash cURL theme={null}
curl -X POST 'https://api.aries.com/v1/oauth2/token' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'grant_type=authorization_code' \
  --data-urlencode 'code=AUTHORIZATION_CODE' \
  --data-urlencode 'client_id=ARI-PARTNER.xxxxx' \
  --data-urlencode "client_secret=$ARIES_CLIENT_SECRET" \
  --data-urlencode 'redirect_uri=https://yourapp.com/callback'
```

The `redirect_uri` must match the one from step 1. The response carries an access token for the `aries:onboarding` scope. The code works once and expires quickly, so exchange it as soon as it arrives. Never log the code or the token.

### Trading Permissions Your Users Approve

To read accounts or place orders for a user, your app signs them in with the Authorization Code flow and asks for the scopes it needs. Ask only for what your product uses:

| Scope | Lets your app |
| - | - |
| `order:execution` | Place, change and cancel orders |
| `order:information` | Read order history and status |
| `position:information` | Read positions and holdings |
| `account:information` | Read balances and transaction history |
| `market:information` | Read live and historical market data |

A read-only product never needs `order:execution`. The [scope reference](https://finance.dev/api-reference/oauth2/guide.md#available-scopes) lists the rest, and the [brokerage API guide](https://finance.dev/guides/brokerage-api.md) explains how the sign-in flow fits a trading app.

## Become an Aries API Partner

When you email [support@aries.com](mailto:support@aries.com), include the callback URL you want Aries to register for your app.

You don't have to wait for your partner client to start building. Register a personal-token client in Client Center and follow the [Quick Start](https://finance.dev/api-reference/quickstart.md) to make your first call on your own account, with the official [Python](https://finance.dev/sdks/python/overview.md) or [TypeScript](https://finance.dev/sdks/typescript/overview.md) SDK. When your partner client arrives, switch to the Authorization Code flow to get tokens. The API calls stay the same.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.