Alpaca - Best broker for API trading

Modern Infrastructure for Crypto & Stock Investing

Chosen by businesses of various sizes from around the world, our easy-to-use APIs make it easier than ever to open customer accounts, embed 24/7 crypto trading and fractional stock trading with full extended hours and more into your app.

Get API Keys

*Crypto trading is offered through Alpaca Crypto, LLC, and full and fractional securities trading is offered through Alpaca Securities, LLC.

Fractional and Notional Stocks

Fractional & Notional Stocks

We offer extended hours trading for fractional, notional and whole shares via a set of developer-centric APIs for start-ups, enterprises, brokerages, and more to access the US capital markets.

Developer-First API

Developer-First API

Alpaca's API-first crypto and stock platform is built from the ground up with a modern infrastructure, real-time event-driven architecture, and delivers scalable low latency processing.

Crypto coins

20+ Crypto Coins

Build your own crypto trading app with Broker API. Unlock new revenue opportunities and enable your end-users to trade more than 20 popular crypto coins such as Bitcoin, Shiba Inu, Dogecoin, and more.

Embed Crypto and Stock Solutions with Broker API

Alpaca Broker API allows you to seamlessly embed crypto and stock trading into your app with ease. Depending on your platform's unique strategy, add crypto then securities or vice versa, or choose to focus on one solution.

Crypto

Try For Free
  • Instant access to 20+ coins
  • Available in 49 U.S states, US territories, and Washington DC & select international jurisdictions
  • Unlock a new revenue stream with crypto
  • 24/7/365 crypto trading
  • Access to real-time crypto market data
  • Secure crypto custody solutions

Stocks

Try For Free
  • Thousands of U.S equities
  • Fractional & notional trading
  • Full extended hours trading
  • Access to real-time stock market data
  • Flexible minimum trade amounts
  • Access to exchanged traded and OTC ADRs

Broker API Plans

We believe in opening access to financial services. We offer flexible plans to help you get started. Our plans are built for everyone from developers to rapidly scaling startups, to large enterprises.

Essential

A great place to start if you are an app developer, start-up, or tech entrepreneur looking to build, test, and launch your app.

Get API Keys

Core

Perfect for high-growth companies, our Core plan is designed to enable partners to rapidly scale to the next level.

Get API Keys
Essential*
Core*
Trading
US Stocks & ETFs
Green check mark
Green check mark
Crypto
Green check mark
Green check mark
Extended Hours
Green check mark
Green check mark
ADRs
Green check mark
Green check mark
Funding Models
Basic funding Model
Green check mark
Green check mark
Advanced funding models available
Red X mark
Green check mark
Accounts
Limited Margin
Green check mark
Green check mark
Margin Trading
Red X mark
Green check mark
Shorting
Red X mark
Green check mark
Services
Account Opening (KYC)
Green check mark
Green check mark
Books & Records
Green check mark
Green check mark
Trade Confirms and Statements
Green check mark
Green check mark
Tax Reporting
Green check mark
Green check mark
Fee Configurations
Green check mark
Green check mark
Dedicated Customer Success Managers
Red X mark
Green check mark
Whitelabeling: Key Documents
Fees
Fees may be applied
Included
Market Data API
Stock Pricing Data
Basic Plus Explore Offering
Crypto Pricing Data
Green check mark
Green check mark

Enterprise

Customized product solutions, and service packages for medium to large enterprises.

Performance and Scale are in Our DNA

Broker API offers a modern architecture, support for real-time events, and access to battle-tested technology that powers some of the most demanding algorithmic traders in the world.

Scalability

Scalability

Our platform is built on dynamic cutting-edge technology combined with seamless product velocity that ensures your product is built for scale.

Real-Time event-driven architecture

Real-Time Event-Driven Architecture

In order for you to build a reactive and responsive system, our APIs are centered around a real-time event-driven architecture.

Order Processing

Order Processing

We deliver a reliable order management system. Alpaca's OMS v2 makes order processing 100x faster and consistently under 1.5 ms.

Building Blocks for Your Specific Needs

We help make it possible for you to build great products by providing the tools, expertise, flexibility, and support to be as successful as possible.

Get API Keys
Account

Seamless and flexible account opening features ranging from KYC as a service, instant account opening, and bulk account opening.

Seamless and flexible account opening features ranging from KYC as a service, instant account opening, and bulk account opening.

Parameters

Attribute
Notes
contact
Contact information about the user
identity
KYC information about the user
disclosures
Required disclosures about the user
documents
Any documents that need to be uploaded (eg. passport, visa, …)
trusted_contact
The contact information of a trusted contact to the user in case account recovery is needed.
Read Docs
Journal

Reward users with stock or crypto, offer cash gifting, referral programs or integrate other strategies to grow your user base.

Reward users with stock or crypto, offer cash gifting, referral programs or integrate other strategies to grow your user base.

Parameters

Attribute
Notes
id
The journal ID
to_account
The account ID that received the journal - account_status must equal to ACTIVE
from_account
The account ID that initiates the journal - account_status must equal to ACTIVE or CLOSED
entry_type
ENUM: JNLC or JNLS
status
The status of the journal
settle_date
Date string in “%Y-%m-%d” format
system_date
Date string in “%Y-%m-%d” format
net_amount
In the case of JNLC - the total cash amount journaled
description
Description of the journal
Read Docs
Trading

Enable trading functionality for your end-users, from long, short, fractional to complex order types.

Enable trading functionality for your end-users, from long, short, fractional to complex order types.

Parameters

Attribute
Notes
asset_id
Asset ID
symbol
Asset symbol
exchange
Exchange name of the asset
asset_class
Asset class name
avg_entry_price
Average entry of the position
qty
The number of shares
side
long
Read Docs
Documents

View, download, and create custom-branded documents such as monthly statements, trade confirmations, tax forms, and more.

View, download, and create custom-branded documents such as monthly statements, trade confirmations, tax forms, and more.

Parameters

Attribute
Notes
id
The UUID of the document
name
The title of the document (if applicable)
type
account_statement, trade_confirmation, or tax_statement
sub_type
ENUM: either empty string "", 1099-Comp 1042-S, or 480.6
date
format: “2020-01-01”
Read Docs
Events

Receive real-time updates on trades, fund flows and improve your back-office operations by replaying past events via Server-Sent-Events (SSE).

Receive real-time updates on trades, fund flows and improve your back-office operations by replaying past events via Server-Sent-Events (SSE).

Parameters

Attribute
Notes
account_id
UUID
account_number
Human readable
at
Timestamp of event
event_id
monotonically increasing 64bit integer
kyc_results
Results of KYC if applicable. Can be nullable.
status_from
Account status changed from
status_to
Account status changed to
reason
Optional
Read Docs
News

Deliver market-moving content by displaying real-time stock and crypto headlines from trusted sources.

Deliver market-moving content by displaying real-time stock and crypto headlines from trusted sources.

Parameters

Attribute
Notes
symbols
List of symbols to obtain news
start
(Default: 01-01-2015) Start date to obtain news
end
(Default: now) End date to obtain news
limit
(Default: 10, Max: 50) Limit of news items to be returned for given page
sort
Optional (Default: DESC) Sort articles by updated date. Options: DESC, ASC
include_content
(Default: false) Boolean whether to include content for news articles
exclude_contentless
(Default: false) Exclude news articles that do not contain content (just headline and summary)
page_token
Pagination token to continue to next page
Read Docs
Orders

Allow your users to monitor, place orders on the stock & crypto market without having to leave your platform.

Allow your users to monitor, place orders on the stock & crypto market without having to leave your platform.

Parameters

Attribute
Notes
id
Order ID generated by Alpaca
client_order_id
Client unique order ID
created_at
Timestamp
asset_id
The asset ID
symbol
The asset symbol
asset_class
The asset class
qty
Order quantity
filled_qty
Filled quantity
order_class
Valid values: simple, bracket, oco, oto
type
Valid values: market, limit, stop, stop_limit, trailing_stop
Read Docs
Corporate Actions

Improve your brokerage's bookkeeping, reconciliation and display notifications to end-users on upcoming public announcements on dividends, mergers, spinoffs, and stock split.

Improve your brokerage's bookkeeping, reconciliation and display notifications to end-users on upcoming public announcements on dividends, mergers, spinoffs, and stock split.

Parameters

Attribute
Notes
id
ID that is specific to a single announcement.
corporate_action_id
ID that remains consistent across all announcements for the same corporate action.
ca_type
ENUM.CorporateActionType
ca_sub_type
ENUM.CorporateActionType
initiating_symbol
Symbol of the company initiating the announcement.
initiating_original_cusip
CUSIP of the company initiating the announcement.
Read Docs
Funding

Accelerate a wide range of fund flows internationally and domestically through our Plaid integration, wire, and ACH transfers.

Accelerate a wide range of fund flows internationally and domestically through our Plaid integration, wire, and ACH transfers.

Parameters

Attribute
Notes
id
UUID
account_id
UUID
created_at
Timestamp
updated_at
Timestamp
status
QUEUED, APPROVED, PENDING
account_owner_name
Name of the account owner
bank_account_type
Must be CHECKING or SAVINGS
bank_account_number
Bank account number
bank_routing_number
Bank routing number
nickname
nickname
Read Docs
Stonks trading

Anthony Hughes, CEO at Stonks Trading

"A relationship first approach is exactly what Stonks Trading needed when looking for a BD partner. We are moving quickly and Alpaca gives a clear direction on new products, timelines, and brings us into the process of determining what offerings should be considered."

Find more customer stories

Ashby Foltz, COO & Co-founder, Charityvest

"Alpaca's Broker API gives us the tools we need to manage investment activity, rebalance portfolios, and liquidate holdings to fund the missions of the 1.4 million nonprofits we support at Charityvest."

Find more customer stories

Martin Sokk, Co-founder, CEO, Lightyear

"When dealing with customer money, it's important to have a partner who understands customer problems and is willing to make an effort to provide solutions. This is not a common practice, but it is an area where Alpaca excels."

Find more customer stories
Trading application build with Alpaca APIs

Build Your Fintech App with Broker API

There are a myriad of different ways our developer-centric APIs can be used to build your product. Broker API is specifically designed to support and offer flexibility to several different use cases; below are some common examples.

Get API Keys
Broker Dealers

Broker Dealers

Build a trading app to allow users to trade US stocks. Alpaca powers brokerage apps from all over the world and offers solutions that support fully-disclosed, or omnibus relationships

Investment Advisors

Investment Advisors

Connect your investment advisor service with fractional, and notional investing. Utilize our developer-friendly APIs to build quants-heavy apps

Tech Innovators

Tech Innovators

We offer start-ups and tech entrepreneurs to build and test with Broker API, along with accessing the full functionality of an operational brokerage in compliance with rules and regulations

Neobanks

Neobanks

Embed an investment capability into your banking service. Offer your users the ability to make investments without leaving your app

App Developers

App Developers

Are you curious and want to learn how to quickly start building an app?

For app development projects, recreation, or more you can easily build, test, and scale your idea with Broker API.

Your Next Venture

Your Next Venture

With investing becoming an integral part of our lives, every app is now a fintech app.

Learn more about how Broker API can help differentiate your product and add new features such as adding rewards, gifting of shares, cash, portfolio rebalancing, and more.

GotradeGotrade
GotradeGotrade

Powered by Broker API, Gotrade enables users in 150 countries to invest commission-free in fractional US stocks. Gotrade is backed by top investors in the industry including LocalGlobe, Social Leverage, and Y Combinator.

Gotrade mobile application, powered by Broker API
MidasMidas
MidasMidas

Powered by Broker API, Midas is the first zero-commission, fully digital stock brokerage of Turkey; providing access to Turkish and US stock markets. Midas is backed by one of the largest private banks of Turkey, DenizBank.

Midas mobile application, powered by Broker API
Xantos LabsXantos Labs
Xantos LabsXantos Labs

Powered by Broker API, Xantos Labs offers a premium investing experience. As the investment manager for the next generation of investors, Xantos Labs builds and manages portfolios for everday folks.

Xantos Labs mobile application, powered by Broker API
LightyearLightyear
LightyearLightyear

Powered by Broker API, Lightyear is Europe’s first commission-free trading app providing the UK access to US stock markets. Lightyear is backed by top European investors including Mosaic Ventures, Taavet+Sten, and Metaplanet.

Lightyear mobile application, powered by Broker API
Regulatory

Regulatory

Our regulatory status as a carrying broker allows our partners all around the world to integrate stock and crypto trading into their product offerings and create countless individual brokerage accounts for their end-users. We have expertise and experience in compliance and broker-dealer operations that help make running and growing your business easier.

Member of FINRA

We are a Broker-dealer, licensed to directly onboard end customers globally and facilitate fund transfers, and approved to offer trading of fractional securities.

Federal MSB

Through a combination of our Federal MSB license and our partner's licenses, we offer access to crypto trading in 49 states, all US territories, and Washington DC.*

Brokerage services are offered by Alpaca Securities LLC, member FINRA/SIPC, a wholly-owned subsidiary of AlpacaDB, Inc.

*Please refer to Disclosures at the bottom of the page for important information about how Alpaca provides securities and cryptocurrency services.

Simple and Modern API

Our simple and modern RESTful Web API allows you to build scalable trading services, while staying compliant with applicable rules and regulations. We also offer Open API support.

1 2 3 4 5 6 7 8 9 10
curl --request POST 'https://broker-api.alpaca.markets/v1/journals' \
--header 'Authorization: *****' \
--header 'Content-Type: application/json' \
--data-raw '{
  "from_account": "64972779-bf75-497f-a023-2e8370e573d4",
  "entry_type": "JNLC",
  "to_account": "6e6ba475-8f14-4645-baa0-0beaf75f7346",
  "amount": "10"
}'
              
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// Response
{
    "id": "09b72899-152f-4899-aea5-8d8d0f9071bf",
    "entry_type": "JNLC",
    "from_account": "64972779-bf75-497f-a023-2e8370e573d4",
    "to_account": "6e6ba475-8f14-4645-baa0-0beaf75f7346",
    "symbol": "",
    "qty": null,
    "price": "0",
    "status": "queued",
    "settle_date": null,
    "system_date": null,
    "net_amount": "10",
    "description": ""
}
              

Contact Us