Authentication
All endpoints require the following headers unless otherwise noted:Bearer token (JWT) for end-user authentication. Format:
Bearer YOUR_JWT_TOKENYour Magic secret key for application-level authentication.
Place Buy Order
Place a BUY order on Polymarket for the authenticated user.cURL
Request Parameters
The Polymarket condition token ID for the outcome to trade.
The limit price (between 0 and 1, representing probability).
The order size in USDC.
Order type. Values:
GTC (Good Till Cancelled), FOK (Fill or Kill), FAK (Fill and Kill).Response Fields
Whether the order was placed successfully.
The order side (
BUY).The Polymarket order ID.
null if the order failed.The order status.
null if the order failed.Human-readable status message.
Error message if the order failed.
null on success.Place Sell Order
Place a SELL order on Polymarket. Uses the same request and response format as the buy endpoint.cURL
side set to SELL.