Create Order (Hosted)
Place a limit or market order on Polymarket or Opinion in one call. The SDK builds the EIP-712 order payload, signs it locally with your private_key, and submits it against your PreFundedEscrow balance. Returns the resulting Order — id, fill status, average fill price, fees, and the on-chain settlement tx hash once it lands.
Identify the target outcome by EITHER (a) catalog outcome_id UUID (canonical, cross-venue) OR (b) venue + venue_outcome_id (the venue-native id returned by client.fetch_markets() on a venue client such as pmxt.Polymarket). The natural workflow — market = client.fetch_markets(...)[0]; client.create_order(outcome=market.yes, ...) — works without any catalog UUID lookup.
Use buildOrderHosted + submitOrderHosted separately only when you need to inspect or display the order payload before signing (e.g. a custodial flow where a human approves each trade).
Request body
Response
Order accepted by the hosted backend.