Alpaca Launches Prediction Markets for Paper Trading on Trading API

Prediction markets are now available in paper trading through Alpaca's Trading API. You can build and test strategies with simulated cash on Yes/No event contracts tied to real-world outcomes listed on Kalshi, a CFTC-regulated exchange that accounts for 75% of prediction market trading volume.1 This integration takes full advantage of Alpaca’s developer-first philosophy with orders going through the same API infrastructure you already use for stocks, options, and crypto, with one new field.

What are prediction markets?

Prediction markets have moved into the mainstream this year, becoming one of the fastest-growing asset classes, with total trading volume projected to pass $400 billion in 2026.2 Driven by surging retail participation and broader institutional interest, their rapid adoption highlights a fundamental shift in how traders engage with real-world events. Prediction markets feature event contracts centered on specific, real-world questions.

For example: “Will the upper bound of the federal funds rate be above 4.00% after the Fed's December 9, 2026 meeting?” Each market has two sides, Yes and No, and you buy the side you want to hold. Other questions could be around sports, weather, entertainment, economics, politics, and more.*

What to know about event contracts before trading

Price: Contracts typically trade between $0.01 and $0.99.

Payout: At resolution, each contract on the winning side pays $1.00. The other side expires worthless. In rare circumstances where the outcome cannot be definitively determined as Yes or No, Kalshi may assign a fractional settlement value between $0.00 and $1.00 (known as a Scalar settlement). This represents an extraordinary resolution scenario. 

One side at a time: Simultaneous holdings of both Yes and No positions within a single market are not supported. Placing an order for the opposing side of an active position will result in rejection. To purchase the alternative side, you must first close out your current position.

Hours: Markets aren't bound to US equity hours or holidays. While Kalshi lists a market as active, it is generally tradable near-continuously, subject to Kalshi maintenance windows and each market's own open and close times.

How to trade event contracts on Alpaca's Trading API

If you send stock orders through Alpaca, you already have most of the code. Event contracts use the same keys, endpoints, and order shape. The only addition is the new field: event_outcome. 

POST https://paper-api.alpaca.markets/v2/orders
{
  "symbol": "KXFED-26DEC-T4.00",
  "qty": "10",
  "side": "buy",
  "type": "limit",
  "time_in_force": "gtc",
  "limit_price": "0.97",
  "event_outcome": "yes"
}

Illustrative request. The price shown was a real Kalshi ask on Nov 14, 2026, 1:54 PM ET. Prices move constantly, and this is not a recommendation. 

How to read an event contract symbol

Each symbol reads in three parts. Take KXFED-26DEC-T4.00 for example. KXFED is the series (the Fed funds rate), 26DEC is the event (the December 2026 meeting), and T4.00 is the market (above 4.00%). One event can hold several markets, one for each rate level, which in this case could be T3.75 or T4.25. 

How to find a prediction market

With Alpaca's Market Data APIs, you don't need to guess symbols. Kalshi organizes its markets into series and events, and series are grouped by category and tag.

  • A series is a set of related events, such as "NYC daily high temperature."
  • An event is a set of related markets, such as "NYC high temperature on Jan 1."
  • Each market (contract) has its own symbol, and you use that symbol to place an order.

To find a market, work down from series to contract:

1. Find a series. List series and filter by category or tag:

GET https://data.alpaca.markets/v1/event_contracts/series?exchanges=kalshi&categories=Sports&tags=Tennis

2. Find the series' events. Pass the series symbol:

GET https://data.alpaca.markets/v1/event_contracts/events?series_symbols=KXNFL4QSPREAD

3. Find the event's contracts. Pass the event symbol:

GET https://data.alpaca.markets/v1/event_contracts/contracts?event_symbols=KXNFL4QSPREAD-26NOV30CARTB

Use the symbol of the contract you want when you submit your order.

How to open and close a prediction markets position

  • Open: Buy Yes or No on a market.
  • Sell to close: Sell your contracts before the market for that event closes, subject to liquidity.
  • Hold through resolution: When Kalshi resolves the market, winning contracts pay $1.00 each and losing contracts expire worthless.

To open a position, send a buy order. To take the No side, set event_outcome to no:

POST https://paper-api.alpaca.markets/v2/orders
{
  "symbol": "KXFED-26DEC-T4.00",
  "qty": "10",
  "side": "buy",
  "type": "limit",
  "time_in_force": "gtc",
  "limit_price": "0.04",
  "event_outcome": "no"
}

Accessing event contract positions uses the identical positions endpoint as stocks, options, and cryptocurrency: retrieve them via

GET https://paper-api.alpaca.markets/v2/positions

To sell to close, send a sell order with the same symbol and outcome you hold:

POST https://paper-api.alpaca.markets/v2/orders
{
  "symbol": "KXFED-26DEC-T4.00",
  "qty": "10",
  "side": "sell",
  "type": "limit",
  "time_in_force": "gtc",
  "limit_price": "0.03",
  "event_outcome": "no"
}

To hold through resolution, you don't need to send an order. When Kalshi resolves the market, the position closes on its own, and the payout shows up in your account activities as an NTA entry.

Illustrative requests. The prices are hypothetical, and this is not a recommendation.

How to explore market data for prediction markets

Kalshi market data streams through event_contracts, alongside your existing Alpaca market data.

Get the latest quote for a market:

GET https://data.alpaca.markets/v1/event_contracts/latest/quotes?symbols=KXFED-26DEC-T4.00&exchange=kalshi

Pull trade history:

GET https://data.alpaca.markets/v1/event_contracts/trades?symbols=KXFED-26DEC-T4.00&exchange=kalshi&start=2026-11-14T00:00:00Z

Paper trading with real outcomes

Paper trading uses simulated cash and simulated fills while position close-out and payouts follow real Kalshi market resolutions. That means you can test a strategy against a market that resolves on a real event and see exactly how your code handles settlement.

Live trading will follow, with the same markets available, subject to local regulations. 

Built for developers running multi-asset strategies

Prediction market positions sit in the same account as your stocks, options, and crypto, so your paper P&L covers all of them. You don't need a second platform, a second set of keys, or a second order router.

Important considerations at launch

  • Paper trading only: Event contracts are currently limited to simulated cash and fills. Stay tuned for live trading. 
  • API only: Orders can only be placed through the Trading API. You can view, cancel, and liquidate positions in your dashboard, but you can't place new orders. We plan to provide event contracts through the dashboard in the coming months.
  • Cash only: You can only buy event contracts with settled cash in your account. Margin is not supported.
  • Whole contracts only: Orders must be for a whole number of contracts.
  • Settlement: Here "settlement" means market resolution (Yes, No, or scalar). Settles may take up to 24 hours to reflect in your account.

Get started with prediction markets

  1. Sign in to your Alpaca Trading API account and switch to your paper account.
  2. Read the prediction markets API docs
  3. Prediction market FAQs

Have questions? Contact us at [email protected]


References:

  1. Building the next-generation financial exchange: Kalshi raises $1 billion at a $40 billion valuation, Kalshi, October 29, 2026
  2. Prediction Markets Could Hit $10T Volume by 2035, Bernstein Says, CoinMarketCap, October 2026 

*Subject to eligibility

Disclosures: Prediction markets paper trading is simulated and uses virtual funds only. No actual trades are executed, and no real profits or losses are realized. Simulated trading may not accurately reflect actual market conditions, and simulated performance is not necessarily indicative of future results.

Futures and cleared swaps trading is offered by Alpaca Derivatives LLC, a registered Futures Commission Merchant with the Commodity Futures Trading Commission (CFTC) and a Member of the National Futures Association (NFA).

Interested in learning more about Broker API?

Don't miss out on any updates about our Broker API suite of solutions! Share your details with us and be the first to know about our latest content.

You've successfully subscribed to Alpaca Blog | Developer-First API for Stocks, Options, and Crypto
Great! Next, complete checkout for full access to Alpaca Blog | Developer-First API for Stocks, Options, and Crypto
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.