Brokerage API for Developers

The unified brokerage API for data and trading

Connect users’ existing brokerage accounts to your app with one API. Access normalized investment data (balances, positions, orders, and transactions) and place trades where supported — across 45+ brokerages and 450M+ retail investor accounts.

$ npm install snaptrade-typescript-sdk
added 1 package in 1.2s
import { Snaptrade } from "snaptrade-typescript-sdk";
const snaptrade = new Snaptrade({ clientId, consumerKey });
const { userSecret } = (await snaptrade.authentication
.registerSnapTradeUser({ userId })).data;
const { redirectURI } = (await snaptrade.authentication
.loginSnapTradeUser({ userId, userSecret })).data;

Used by 15,000+ developers.

Why developers choose SnapTrade as their brokerage API

  • Integrate in under an hour — from SDK install to first API call
  • Access major brokers (including Fidelity, Schwab, and Robinhood) through a single integration
  • Execute trades via API where the brokerage and application permit it — banking aggregators are generally read-only
  • Normalized investment data in one consistent schema
  • SOC 2 Type II security infrastructure handled for you
  • Real responses from people who know the product

What you can build with a brokerage API

Embedded trading

Place stock, ETF, crypto, and options trades (and futures where supported) using your users’ existing brokerage accounts — without becoming a broker-dealer. Trading availability varies by brokerage.

Portfolio dashboards & tracking

Unified view of holdings, balances, and allocation across brokers. Real-time holdings data on Real-time plans; daily cached holdings on Daily plans.

Portfolio rebalancing

Automated rebalancing across multi-broker portfolios using holdings and balance data (user-authorized rules).

Copy trading & social investing

Monitor trader activity and power account-linked experiences with order data.

AI-powered investing tools

Build insights and tools on normalized brokerage data across connected accounts.

Alerts and automation

Trigger workflows from transactions, portfolio changes, or custom conditions via webhooks.

“SnapTrade is the engine that drives our core engagement tools. The API gives our users the power to share their investments and learn from each other.”
Max Nicholson · Founder, Blossom

Access the brokers you need

SnapTrade provides connectivity to 45+ brokerages, including institutions that traditional banking aggregators often do not support (such as eToro, moomoo, Public, and Webull).

“I can't imagine the effort it would be to integrate with so many different brokerages, all of them having their weird quirks and surprising APIs. I appreciate good communication with the SnapTrade team, including the developers, and their proactive approach.”
Mike Darkowski · Founder, Scrab

How the SnapTrade brokerage API works

SnapTrade supports two main ways for apps to connect users. You can use the Commercial API Key model, let users connect through SnapTrade Personal with OAuth, or support both.

Commercial API Key

Best when your app manages the full SnapTrade user and connection lifecycle.

  • Your app creates and manages the SnapTrade user
  • Your app owns the user relationship
  • Some brokerages require app-level approval or additional credentials
  • On the Launch plan: $2 per connected user/month for Real-time (trading included where supported) or $1 per connected user/month for Daily (read-only; trading not included)

OAuth with SnapTrade Personal

Best when users manage their own connections in SnapTrade Personal and authorize your app.

  • Users sign in to SnapTrade and approve your app’s requested permissions
  • Existing Personal connections can be reused across authorized apps
  • No separate broker-level approvals required for the app (SnapTrade production approval is still needed)
  • During the limited-time OAuth preview, there is no per-user charge for users connecting via OAuth (the $100/month Launch platform fee still applies)
  • Trading through OAuth is currently in beta and requires app approval for trading plus the user granting read trade permission

The $100/month Launch platform fee applies to either model. View full pricing.

There is also a free Build plan (up to 5 brokerage connections) for development and testing that includes real-time data and trading where supported.

“We successfully integrated SnapTrade into our platform in record time, surpassing larger API aggregators. This highlights the commitment and customer-centric approach of their team. SnapTrade's outstanding API documentation and support distinguish them from other providers.”
Boldizsár · Founder, DivTracker App

Quick start: three API calls

With the Commercial API Key model, your app creates and manages a SnapTrade user for each end user.

1

Register the user

1 2 3 4 5 6 7 8 9 10 11 import { Snaptrade } from "snaptrade-typescript-sdk"; const snaptrade = new Snaptrade({ clientId: process.env.SNAPTRADE_CLIENT_ID!, consumerKey: process.env.SNAPTRADE_CONSUMER_KEY!, }); const { data: user } = await snaptrade.authentication.registerSnapTradeUser({ userId: "user_123", // Unique, immutable - do not use email }); // Store user.userSecret securely - it cannot be retrieved later
2

Generate a Connection Portal link

1 2 3 4 5 6 7 8 const { data: login } = await snaptrade.authentication.loginSnapTradeUser({ userId: user.userId, userSecret: user.userSecret, // connectionType: "trade" requests data + trading access // Use "trade-if-available" to request trading where supported // Omit or set to "read" for read-only access }); // Redirect user to login.redirectURI - link expires in 5 minutes
3

Retrieve their connections and accounts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 // First list connections to get the connection ID const { data: connections } = await snaptrade.connections.listBrokerageAuthorizations({ userId: user.userId, userSecret: user.userSecret, }); // Then list accounts for a specific connection const { data: accounts } = await snaptrade.connections.listBrokerageAuthorizationAccounts({ authorizationId: connections[0].id, userId: user.userId, userSecret: user.userSecret, });

Full code examples and SDKs (TypeScript, Python, and others) are in the documentation.

The data you get

One consistent schema across supported brokers. Field availability depends on what each brokerage provides.

Data classWhat’s includedNotes
AccountsAccount types, institution, currency, sync statusAll connected brokers
BalancesCash, buying power, multi-currency where supportedAll connected brokers
PositionsEquities, ETFs, crypto, mutual funds, options, futures, and moreAll connected brokers
OrdersRecent order data and execution detailsWhere supported; real-time on Real-time plans where available
TransactionsBuys, sells, dividends, deposits, withdrawals, feesDaily cached (one-day delay) on both plans

Real-time plans return the latest available holdings data on request. Daily plans use once-per-day cached data. You cannot mix Real-time and Daily on the same API key.

Execute trades through the API

SnapTrade supports authorized trade execution where the brokerage and your application permit it.

Supported asset classes (availability varies by brokerage):

  • Stocks, ETFs, and other equities
  • Options (single-leg and multi-leg)
  • Futures and futures options (beta)
  • Crypto (on supported exchanges such as Kraken, Binance, Coinbase)

To enable trading, create a trading-enabled connection (connectionType: "trade" or "trade-if-available"). OAuth trading requires additional app approval and user permission.

See the Broker Access Guide and trading docs.

Security and compliance

SOC 2 Type II
  • SOC 2 Type II certified
  • TLS encryption in transit
  • Data encrypted at rest
  • OAuth-based broker authentication where supported by the brokerage
  • Read-only or trading access is configurable per connection

With the Commercial API model your app owns the user relationship. With Personal/OAuth your app keeps its customer relationship while SnapTrade maintains the user’s Personal account.

Built for production

  • Integrations are continuously maintained as brokers update their systems
  • Webhooks for connection and data updates
  • Hosted Connection Portal for user authentication
>95%connection success rate
“The API is a dream come true. It has been above and beyond any other company I've ever worked with. Our support tickets have legitimately dropped by 50%.”
Bryce Matheson · Co-Founder, The Dividend Tracker
“Our development crew found the SnapTrade API easy to work with and our delivery times beat expectations.”
Ben Clendon · Sharesight

Start building for free

Build and test on the free Build plan (up to 5 connections, real-time data and trading where supported). When you’re ready for production, Launch is $100/month plus per-connected-user usage.