# User Story: Building AlphaDesk: A Multi-Agent AI Trading System

Canonical: https://brew.new/templates/alpaca/user-story-building-alphadesk-a-multi-agent-ai-trading-system

Brand: alpaca.markets
Category: general

![Preview of User Story: Building AlphaDesk: A Multi-Agent AI Trading System](https://cdn.brew.new/email-preview-c25f7ab00c19daa0-tracking_r57pc28hg6kk2xywpgjyvvj65n8ef6m1-1791822123719.png)

## Email content

Alpaca Markets

Hi there,

Curious how a developer might build a multi-agent paper trading system using Alpaca’s APIs? Yuvraj Singh Hajari, an Alpaca community member, recently published an educational case study describing how he built AlphaDesk, an experimental AI paper-trading platform. The project combines market data, news information, predefined risk rules and an AI model to generate proposed actions and, when specified conditions are satisfied, submit simulated orders. programmatically.

In the article, Yuvraj discusses:

✅ Orchestrating Signal, Risk, Sentiment, Decision, and Execution nodes as a deterministic state machine

✅ Retrieving 5-minute OHLCV bars and submitting paper orders with Alpaca's official Python SDK

✅ Blocking trades the model suggests but the guardrails reject like SELL signals with no position to close

✅ What broke during a 48-hour deployment push, and what he'd change before treating any of it as production-ready

Yuvraj started as a final-year CS student who wanted to understand how modern trading infrastructure actually works, not just plot moving averages. The result was a LangGraph pipeline that runs every five minutes: technical signals from Alpaca market data, hard-coded risk checks against your paper account, news sentiment from a vector store, an LLM decision node, and programmatic execution through alpaca-py only if the risk node approves.

Want to explore the project and its design?bound layer would evaluate the relevant constraints before submitting it.

Read Building AlphaDesk

Building across multiple brokers, markets, or asset classes? Reply and tell us what stayed shared and what had to change.

Curious to learn more about agentic trading with Alpaca? Check out some additional resources below:

Alpaca’s Skills Library for AI Agents

Building AI Trading Applications with Alpaca

Alpaca’s MCP Server

Alpaca’s Command-Line Interface

Blogs on agentic trading

The Alpaca Team

X / Twitter

LinkedIn

Github

AlphaDesk is an independent educational project created by the author. All orders, positions, account information, trading activity, and results shown were generated in Alpaca’s paper-trading environment. They do not reflect actual trading or actual customer results. Paper trading is a simulation and may not account for market impact, liquidity, slippage, order priority, price availability, latency, regulatory restrictions, or other conditions affecting live trading. Automated and AI-assisted trading systems involve risks, including inaccurate or incomplete data, model errors, software failures, cybersecurity events, and unintended orders. AI-generated outputs should not be relied upon as investment recommendations.

Insights generated by our CLI, MCP server, and connected AI agents are for educational and informational purposes only and should not be taken as investment advice. Alpaca does not recommend any specific securities or investment strategies. Past performance from models does not guarantee future results. Please conduct your own due diligence before making any decisions. All firms mentioned operate independently and are not liable for one another.

Brokerage services are provided by Alpaca Securities LLC (dba Alpaca Clearing), member

FINRA/SIPC,

a wholly-owned subsidiary of AlpacaDB, Inc.

Cryptocurrency services are made available by Alpaca Crypto LLC (Alpaca Crypto), a FinCEN-registered money services business (NMLS #2160858) and a wholly-owned subsidiary of AlpacaDB, Inc. Alpaca Crypto is not a member of SIPC or FINRA. Cryptocurrencies are not stocks, and your cryptocurrency investments are not protected by either FDIC or SIPC.

Neither Alpaca Clearing nor Alpaca Crypto takes responsibility for or accepts time-sensitive instructions sent by email, including orders or funds transfer instructions.

This is not an offer, solicitation of an offer, or advice to buy or sell securities or cryptocurrencies or open a brokerage account or cryptocurrency account in any jurisdiction where Alpaca Clearing or Alpaca Crypto, respectively, are not registered or licensed, as applicable.

Options trading is not suitable for all investors due to its inherent high risk, which can potentially result in significant losses. Please read

Characteristics and Risks of Standardized Options

before investing in options.

Commission-free trading means that there are no commission charges for Alpaca Clearing self-directed individual brokerage accounts that trade U.S.-listed securities through an API. Relevant regulatory fees may apply. Commissions may be charged if your account is held at one of Alpaca Clearing's correspondent firms.

Technology and services are offered by AlpacaDB, Inc.

The Paper Trading API is offered by AlpacaDB, Inc. and does not require real money or permit a user to transact in real securities in the market. Providing use of the Paper Trading API is not an offer or solicitation to buy or sell securities, securities derivatives, or futures products of any kind, or any type of trading or investment advice, recommendation, or strategy, given or in any manner endorsed by AlpacaDB, Inc. or any AlpacaDB, Inc. affiliate and the information made available through the Paper Trading API is not an offer or solicitation of any kind in any jurisdiction where AlpacaDB, Inc. or any AlpacaDB, Inc. affiliate (collectively, "Alpaca") is not authorized to do business.

Please see the

Disclosure Library

for additional information and disclosures from Alpaca Clearing and Alpaca Crypto.

© 2026 Alpaca Securities LLC (dba Alpaca Clearing). All rights reserved.

12 E 49th St., Floor 11, New York, NY 10017

© 2026 Alpaca Crypto LLC. All rights reserved.

© 2026 AlpacaDB, Inc. All rights reserved.

3 East Third Ave, Suite 214, San Mateo, CA 94401

Unsubscribe from our emails

intercom

[Open and remix this design](https://brew.new/templates/alpaca/user-story-building-alphadesk-a-multi-agent-ai-trading-system)

[Browse email designs](https://brew.new/browse/templates)
