Discovering Polymarket Markets
Useclient.markets.search() with venue="Polymarket" to retrieve a paginated list of available Polymarket instruments. Pass a q string to narrow results by keyword.
client.markets.match() to look up a specific market by ticker or slug when you already know its identifier:
Each Polymarket binary market exposes two instruments — one for the
YES
outcome and one for the NO outcome. Both instruments share the same
generic_asset_id but have distinct instrument_id values. When submitting
a DIRECT order, specify the instrument_id that corresponds to the outcome
you want to trade.generic_asset_id:
Submitting Orders to Polymarket
DIRECT routing to Polymarket
Userouting.mode = "DIRECT" with a Polymarket instrument_id to route an order to a specific Polymarket instrument. Retrieve the instrument_id from a prior search() or match() call.
Cross-venue routing with BEST_PRICE
Userouting.mode = "BEST_PRICE" with a generic_asset_id to let Molecule route to whichever connected venue — including Polymarket — currently offers the best available price for the asset.
SPLIT:
Notes
- Polymarket instruments require a venue-specific
instrument_idforDIRECTrouting. Retrieve this fromclient.markets.search(venue="Polymarket")orclient.markets.match(). - To route across Polymarket and other connected venues without targeting a specific instrument, use
generic_asset_idwithBEST_PRICEorSPLITrouting mode. - Each binary Polymarket market produces two separate instruments (YES and NO). Confirm the
outcomefield on the instrument matches the side you intend to trade before submitting aDIRECTorder. - The
client_order_idfield acts as the idempotency key for simple orders. Resubmitting the sameclient_order_idwith an identical payload is safe; resubmitting with a different payload returns aConflictError.
Use the Demo venue to validate your integration before sending orders to
live Polymarket. Demo provides the same API surface without live execution
risk. Switch to Polymarket by changing
venue="Polymarket" in your market
queries and using a Polymarket instrument_id or a generic_asset_id that
maps to Polymarket instruments.