Skip to main content
Molecule aggregates multiple prediction market venues behind a single authenticated API. Rather than integrating each venue’s native API separately, you discover markets, submit orders, and manage positions through one consistent interface. Molecule normalises instrument identifiers, order semantics, and market data across venues so that the same order-submission code works regardless of the underlying execution venue.

Live Venues

The following venues are live and available for order submission:

Routing Across Venues

Molecule exposes two identifier types that control how orders are routed:
  • instrument_id — A venue-specific instrument identifier. Use this with routing.mode = "DIRECT" to send an order to a specific instrument on a specific venue. You must know the exact instrument before submitting.
  • generic_asset_id — A cross-venue asset identifier. Use this with routing.mode = "BEST_PRICE" or routing.mode = "SPLIT" to let Molecule find the best available price across venues, or to split a larger order across multiple venues simultaneously.
Use client.markets.venues() to retrieve the list of connected venues, and client.markets.venue_health() to inspect their current connectivity status.

DIRECT routing

Route an order to a specific venue instrument by passing instrument_id and setting routing.mode to "DIRECT":

BEST_PRICE and SPLIT routing

Route an order across venues by passing generic_asset_id and setting routing.mode to "BEST_PRICE" or "SPLIT":

Venue Health

Before submitting orders, check that the target venue is reachable. If a venue is unavailable and you attempt to route to it, the API returns a RoutingUnavailableError.
If venue_health() reports a venue as degraded or unreachable, orders routed directly to that venue will fail with RoutingUnavailableError. Use BEST_PRICE or SPLIT routing with a generic_asset_id to automatically avoid unavailable venues.

Venue Reference

Polymarket

Discover markets and submit orders on the Polymarket decentralized prediction market platform.

Kalshi

Discover markets and submit orders on the Kalshi prediction market exchange.