Added

Event contract orders on order and position endpoints

Trading API

Documents prediction-market event contracts on the existing Trading order, position, and asset endpoints.

  • Adds event_outcome (yes or no) to the create-order request, the order schema, and the position schema. It is required for event-contract orders and omitted for all other asset classes.
  • Adds event_contract to the AssetClass enum, including the asset class filter on list orders. Event contracts are currently available for paper trading only.
  • Adds kalshi to the exchange values returned on assets and positions.
  • Adds gtd to TimeInForce with a new expires_at field on the create-order request. gtd is available for event contracts only and cannot be set or changed on a replacement. The order schema now documents expires_at on every order.
  • Documents event-contract order rules: simple order class, limit type only, a whole-number qty, no notional, no extended hours, and a limit price from 0.01 to 0.99. An event-contract day order stays open until 12:05 a.m. ET the next day.
  • Expands the 403 response description on create order to cover conflicts with an existing position or open order on the other outcome of the same event contract.
  • Adds a buy-Yes order example and a Yes position example.

Affected Endpoints

  • POST /v2/orders
  • GET /v2/orders
  • GET /v2/orders/{order_id}
  • PATCH /v2/orders/{order_id}
  • GET /v2/orders:by_client_order_id
  • GET /v2/positions
  • GET /v2/positions/{symbol_or_asset_id}
  • DELETE /v2/positions
  • DELETE /v2/positions/{symbol_or_asset_id}
  • GET /v2/assets
  • GET /v2/assets/{symbol_or_asset_id}