Prediction Markets
Prediction Markets let you trade Yes/No contracts tied to real-world events (also known as event contracts). Each contract ties a specific outcome (Yes or No) to a market (“Will NYC high temperature reach 120 degrees?”) and is valued between $0.01 and $0.99. Before the event, the price of a contract reflects the market’s implied probability of that outcome. After the event has happened, each contract pays $1.00 if your outcome is correct and $0 if it is not. In exceptional cases, a fractional amount may be paid out.
Event contracts use the same Trading API endpoints as stocks, options, and crypto, with an additional event_outcome parameter to specify yes or no when placing orders.
Supported order types
Alpaca currently only supports limit orders for event contracts. Market, stop, stop limit, and trailing stop orders are rejected with invalid order type for event contract trading.
Supported time_in_force values are day, gtc, ioc, fok, and gtd. For prediction markets, day expires at the end of the calendar day in Eastern Time, including weekends and holidays. gtd needs an expires_at parameter.
Every order must include event_outcome, set to yes or no. Use it together with side for POST /v2/orders:
| Action | side | event_outcome |
|---|---|---|
| Buy Yes | buy | yes |
| Buy No | buy | no |
| Sell Yes | sell | yes |
| Sell No | sell | no |
Sample requests
Buy yes
POST https://paper-api.alpaca.markets/v2/orders
{
"symbol": "KXFED-26DEC-T4.00",
"qty": "10",
"side": "buy",
"type": "limit",
"limit_price": "0.65",
"time_in_force": "day",
"event_outcome": "yes"
}Sell yes
POST https://paper-api.alpaca.markets/v2/orders
{
"symbol": "KXFED-26DEC-T4.00",
"qty": "10",
"side": "sell",
"type": "limit",
"limit_price": "0.65",
"time_in_force": "day",
"event_outcome": "yes"
}Orders and positions come back with asset_class set to event_contract and event_outcome populated. You can cancel a pending event contract order, or liquidate an event contract position, the same way as any other order via Trading API or dashboard.
List orders
GET https://paper-api.alpaca.markets/v2/ordersPatch order
PATCH https://paper-api.alpaca.markets/v2/orders/41617d6b-566e-401b-b00f-8623f712eb2f
{
"symbol": "KXSENMAJ-27-CSCH",
"qty": "1",
"side": "buy",
"type": "limit",
"limit_price": "0.03",
"time_in_force": "day",
"event_outcome": "no"
}
Delete order
DELETE https://paper-api.alpaca.markets/v2/orders/b1f782ff-f4b6-4973-851a-64e0ee381912Get positions
GET https://paper-api.alpaca.markets/v2/positionsMarket data
With Alpaca’s Market Data APIs, event contracts can be queried before you trade.
Only active and recently resolved markets and pricing are available. No historical data or pricing is currently available for both active and settled contracts.
Kalshi’s Markets are organized like this:
Category: A high-level discovery grouping for related series, such as sports, crypto, or weather. Each series has a category. Example: ‘Weather’
Tag: A narrow group within a category. A series has one or more tags. Example: ‘Temperature’
Series: A collection of related events. Example: “NYC daily high temperature”
Event: An event is a collection of markets. Example: “NYC high on Jan 1”
Market: A question, combined with an outcome (yes or no), forms a tradable contract. Example: “Will that high be ≥ 60°F?”
To find a market, work down from the series to market:
-
Find a series. List series and filter by category:
GET https://data.alpaca.markets/v1/event_contracts/series?exchanges=kalshi&categories=Sports&tags=Football -
Find the series' events. Pass the series symbol:
GET https://data.alpaca.markets/v1/event_contracts/events?series_symbols=KXNFL4QSPREAD -
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.
Active markets look like this:
{
"can_close_early": true,
"categories": [
"Sports"
],
"close_ts": "2026-12-03T01:15:00Z",
"contract_type": "binary",
"currency": "USD",
"event_symbol": "KXNFL4QSPREAD-26NOV30CARTB",
"exchange": "kalshi",
"exchange_status": "active",
"expected_resolution_ts": "2026-12-01T04:15:00Z",
"open_ts": "2026-11-26T01:40:00Z",
"result": "",
"rules_primary": "If Carolina wins by more than 10.5 points in the 4th Quarter (excluding overtime) of the Carolina vs Tampa Bay Pro Football game originally scheduled for Nov 30, 2026, then the market resolves to Yes.",
"rules_secondary": "Only points scored during the 4th Quarter (excluding overtime) of play count towards this market.\n\nKalshi is not affiliated, associated, authorized, endorsed by, or in any way officially connected with the Governing League. All trademarks, logos, and brand names are the property of their respective owners.",
"status": "active",
"subtitle": "Carolina wins by over 10.5 points",
"symbol": "KXNFL4QSPREAD-26NOV30CARTB-CAR11",
"tags": [],
"title": "Carolina wins by over 10.5 points",
"updated_at": "2026-11-26T01:22:41.997406Z"
}
Settlement
When a market resolves, each contract pays $1.00 if your outcome is correct and $0 if it is not. In rare cases, a fractional amount may be paid out. The position is closed and any payout is added to your cash balance. This is recorded as a non-trade activity, not as a fill. It appears in the Activities tab on the Trading API dashboard and is available through the account activities endpoint.
Example of a settlement with a payout:

Settlement with payout
Example of a settlement without a payout:

Settlement without payout
You can also trade a contract before the market closes, but only if someone is on the other side. A buy is rejected when there is no ask, and a sell is rejected when there is no bid. This applies in paper trading too.
In paper trading, fills are simulated. Settlements and payouts follow real Kalshi resolutions and can take up to 24 hours to show in your account.
Notes on prediction markets
- All event contract positions are long positions.
- You can hold either Yes or No on a market, but not both at the same time.
- Orders to buy the opposite outcome of an existing position in the same market are rejected. You must liquidate your existing position before sending a new order for the opposite outcome.
- Orders to buy the opposite outcome of an existing open order in the same market are rejected. You must cancel your existing order before sending a new order for the opposite outcome.
qtymust be a whole number of contracts. Fractional and notional orders are not supported.- Event contracts are not restricted to US equity hours or holidays.
- Event contracts must be bought with settled cash in your account. Margin is not supported.
- New orders can only be placed through the Trading API.
- In the Trading API dashboard you can view and cancel/close orders and positions.
- Closing a position submits a limit sell at $0.01 with
time_in_forceset toioc. If you already have an open buy for that contract, the close is rejected, because the sell would trade against your own order. - A paper buy fills at the lowest ask. A paper sell fills at the highest bid. The number of contracts available at that price is ignored.
Updated 17 minutes ago