curl --request POST \
--url https://api.polymarket.us/v1/order/preview \
--header 'Content-Type: application/json' \
--data '
{
"request": {
"market_slug": "<string>",
"intent": 1,
"type": 1,
"price": {
"value": "0.55",
"currency": "USD"
},
"quantity": 123,
"tif": 1,
"participateDontInitiate": true,
"goodTillTime": "<string>",
"cashOrderQty": {
"value": "0.55",
"currency": "USD"
},
"manualOrderIndicator": 1,
"synchronousExecution": true,
"maxBlockTime": "<string>"
}
}
'{
"order": {
"id": "<string>",
"market_slug": "<string>",
"side": 1,
"type": 1,
"price": {
"value": "0.55",
"currency": "USD"
},
"quantity": 123,
"cumQuantity": 123,
"leavesQuantity": 123,
"tif": 1,
"goodTillTime": "2023-11-07T05:31:56Z",
"intent": 1,
"marketMetadata": {
"slug": "<string>",
"icon": "<string>",
"title": "<string>",
"outcome": "<string>",
"eventSlug": "<string>"
},
"state": 123,
"avgPx": {
"value": "0.55",
"currency": "USD"
},
"insertTime": "2023-11-07T05:31:56Z",
"createTime": "2023-11-07T05:31:56Z"
}
}Preview an order before submission to validate parameters
curl --request POST \
--url https://api.polymarket.us/v1/order/preview \
--header 'Content-Type: application/json' \
--data '
{
"request": {
"market_slug": "<string>",
"intent": 1,
"type": 1,
"price": {
"value": "0.55",
"currency": "USD"
},
"quantity": 123,
"tif": 1,
"participateDontInitiate": true,
"goodTillTime": "<string>",
"cashOrderQty": {
"value": "0.55",
"currency": "USD"
},
"manualOrderIndicator": 1,
"synchronousExecution": true,
"maxBlockTime": "<string>"
}
}
'{
"order": {
"id": "<string>",
"market_slug": "<string>",
"side": 1,
"type": 1,
"price": {
"value": "0.55",
"currency": "USD"
},
"quantity": 123,
"cumQuantity": 123,
"leavesQuantity": 123,
"tif": 1,
"goodTillTime": "2023-11-07T05:31:56Z",
"intent": 1,
"marketMetadata": {
"slug": "<string>",
"icon": "<string>",
"title": "<string>",
"outcome": "<string>",
"eventSlug": "<string>"
},
"state": 123,
"avgPx": {
"value": "0.55",
"currency": "USD"
},
"insertTime": "2023-11-07T05:31:56Z",
"createTime": "2023-11-07T05:31:56Z"
}
}