You are viewing documentation for Polymarket US πΊπΈ
curl --request POST \
--url https://api.prod.polymarketexchange.com/v1/trading/orders \
--header 'Content-Type: application/json' \
--data '
{
"type": "ORDER_TYPE_MARKET_TO_LIMIT",
"side": "SIDE_BUY",
"orderQty": "<string>",
"symbol": "<string>",
"price": "<string>",
"timeInForce": "TIME_IN_FORCE_DAY",
"clordId": "<string>",
"account": "<string>",
"stopPrice": "<string>",
"minQty": "<string>",
"selfMatchPreventionId": "<string>",
"quote": "<string>",
"allOrNone": true,
"sessionId": "<string>",
"user": "<string>",
"clientAccountId": "<string>",
"clientParticipantId": "<string>",
"participateDontInitiate": true,
"cashOrderQty": "<string>",
"strictLimit": true,
"goodTillTime": "2023-11-07T05:31:56Z",
"bestLimit": true,
"immediatelyExecutableLimit": true,
"selfMatchPreventionInstruction": "SELF_MATCH_PREVENTION_INSTRUCTION_REJECT_AGGRESSOR",
"orderCapacity": "ORDER_CAPACITY_AGENCY",
"ignorePriceValidityChecks": true,
"manualOrderIndicator": "MANUAL_ORDER_INDICATOR_MANUAL"
}
'{
"orderId": "<string>"
}Inserts an order into the exchange
curl --request POST \
--url https://api.prod.polymarketexchange.com/v1/trading/orders \
--header 'Content-Type: application/json' \
--data '
{
"type": "ORDER_TYPE_MARKET_TO_LIMIT",
"side": "SIDE_BUY",
"orderQty": "<string>",
"symbol": "<string>",
"price": "<string>",
"timeInForce": "TIME_IN_FORCE_DAY",
"clordId": "<string>",
"account": "<string>",
"stopPrice": "<string>",
"minQty": "<string>",
"selfMatchPreventionId": "<string>",
"quote": "<string>",
"allOrNone": true,
"sessionId": "<string>",
"user": "<string>",
"clientAccountId": "<string>",
"clientParticipantId": "<string>",
"participateDontInitiate": true,
"cashOrderQty": "<string>",
"strictLimit": true,
"goodTillTime": "2023-11-07T05:31:56Z",
"bestLimit": true,
"immediatelyExecutableLimit": true,
"selfMatchPreventionInstruction": "SELF_MATCH_PREVENTION_INSTRUCTION_REJECT_AGGRESSOR",
"orderCapacity": "ORDER_CAPACITY_AGENCY",
"ignorePriceValidityChecks": true,
"manualOrderIndicator": "MANUAL_ORDER_INDICATOR_MANUAL"
}
'{
"orderId": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.polymarket.us/llms.txt
Use this file to discover all available pages before exploring further.
OrderType indicates the type of an order.
ORDER_TYPE_MARKET_TO_LIMIT, ORDER_TYPE_LIMIT, ORDER_TYPE_STOP, ORDER_TYPE_STOP_LIMIT Side indicates the side of an Order.
SIDE_BUY, SIDE_SELL TimeInForce specifies how long the order remains in effect.
TIME_IN_FORCE_DAY, TIME_IN_FORCE_GOOD_TILL_CANCEL, TIME_IN_FORCE_IMMEDIATE_OR_CANCEL, TIME_IN_FORCE_GOOD_TILL_TIME, TIME_IN_FORCE_FILL_OR_KILL SelfMatchPreventionInstruction is the methodology used to handle self match prevention.
SELF_MATCH_PREVENTION_INSTRUCTION_REJECT_AGGRESSOR, SELF_MATCH_PREVENTION_INSTRUCTION_CANCEL_RESTING, SELF_MATCH_PREVENTION_INSTRUCTION_REMOVE_BOTH OrderCapacity designates the capacity of the party placing an order.
ORDER_CAPACITY_AGENCY, ORDER_CAPACITY_PRINCIPAL, ORDER_CAPACITY_PROPRIETARY, ORDER_CAPACITY_INDIVIDUAL, ORDER_CAPACITY_RISKLESS_PRINCIPAL, ORDER_CAPACITY_AGENT_FOR_OTHER_MEMBER ManualOrderIndicator designates the manual or automated nature of an order.
MANUAL_ORDER_INDICATOR_MANUAL, MANUAL_ORDER_INDICATOR_AUTOMATED A successful response.