Search executions
curl --request POST \
--url https://api.prod.polymarketexchange.com/v1/report/executions/search \
--header 'Content-Type: application/json' \
--data '
{
"pageSize": 123,
"pageToken": "<string>",
"orderId": "<string>",
"clordId": "<string>",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"symbol": "<string>",
"types": [],
"newestFirst": true,
"accounts": [
"<string>"
],
"clientAccountId": "<string>",
"clientParticipantId": "<string>",
"parentOrderId": "<string>",
"execIds": [
"<string>"
],
"startTransactTradeDate": {
"year": 123,
"month": 123,
"day": 123
},
"endTransactTradeDate": {
"year": 123,
"month": 123,
"day": 123
}
}
'import requests
url = "https://api.prod.polymarketexchange.com/v1/report/executions/search"
payload = {
"pageSize": 123,
"pageToken": "<string>",
"orderId": "<string>",
"clordId": "<string>",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"symbol": "<string>",
"types": [],
"newestFirst": True,
"accounts": ["<string>"],
"clientAccountId": "<string>",
"clientParticipantId": "<string>",
"parentOrderId": "<string>",
"execIds": ["<string>"],
"startTransactTradeDate": {
"year": 123,
"month": 123,
"day": 123
},
"endTransactTradeDate": {
"year": 123,
"month": 123,
"day": 123
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
pageSize: 123,
pageToken: '<string>',
orderId: '<string>',
clordId: '<string>',
startTime: '2023-11-07T05:31:56Z',
endTime: '2023-11-07T05:31:56Z',
symbol: '<string>',
types: [],
newestFirst: true,
accounts: ['<string>'],
clientAccountId: '<string>',
clientParticipantId: '<string>',
parentOrderId: '<string>',
execIds: ['<string>'],
startTransactTradeDate: {year: 123, month: 123, day: 123},
endTransactTradeDate: {year: 123, month: 123, day: 123}
})
};
fetch('https://api.prod.polymarketexchange.com/v1/report/executions/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.prod.polymarketexchange.com/v1/report/executions/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'pageSize' => 123,
'pageToken' => '<string>',
'orderId' => '<string>',
'clordId' => '<string>',
'startTime' => '2023-11-07T05:31:56Z',
'endTime' => '2023-11-07T05:31:56Z',
'symbol' => '<string>',
'types' => [
],
'newestFirst' => true,
'accounts' => [
'<string>'
],
'clientAccountId' => '<string>',
'clientParticipantId' => '<string>',
'parentOrderId' => '<string>',
'execIds' => [
'<string>'
],
'startTransactTradeDate' => [
'year' => 123,
'month' => 123,
'day' => 123
],
'endTransactTradeDate' => [
'year' => 123,
'month' => 123,
'day' => 123
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.prod.polymarketexchange.com/v1/report/executions/search"
payload := strings.NewReader("{\n \"pageSize\": 123,\n \"pageToken\": \"<string>\",\n \"orderId\": \"<string>\",\n \"clordId\": \"<string>\",\n \"startTime\": \"2023-11-07T05:31:56Z\",\n \"endTime\": \"2023-11-07T05:31:56Z\",\n \"symbol\": \"<string>\",\n \"types\": [],\n \"newestFirst\": true,\n \"accounts\": [\n \"<string>\"\n ],\n \"clientAccountId\": \"<string>\",\n \"clientParticipantId\": \"<string>\",\n \"parentOrderId\": \"<string>\",\n \"execIds\": [\n \"<string>\"\n ],\n \"startTransactTradeDate\": {\n \"year\": 123,\n \"month\": 123,\n \"day\": 123\n },\n \"endTransactTradeDate\": {\n \"year\": 123,\n \"month\": 123,\n \"day\": 123\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.prod.polymarketexchange.com/v1/report/executions/search")
.header("Content-Type", "application/json")
.body("{\n \"pageSize\": 123,\n \"pageToken\": \"<string>\",\n \"orderId\": \"<string>\",\n \"clordId\": \"<string>\",\n \"startTime\": \"2023-11-07T05:31:56Z\",\n \"endTime\": \"2023-11-07T05:31:56Z\",\n \"symbol\": \"<string>\",\n \"types\": [],\n \"newestFirst\": true,\n \"accounts\": [\n \"<string>\"\n ],\n \"clientAccountId\": \"<string>\",\n \"clientParticipantId\": \"<string>\",\n \"parentOrderId\": \"<string>\",\n \"execIds\": [\n \"<string>\"\n ],\n \"startTransactTradeDate\": {\n \"year\": 123,\n \"month\": 123,\n \"day\": 123\n },\n \"endTransactTradeDate\": {\n \"year\": 123,\n \"month\": 123,\n \"day\": 123\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.prod.polymarketexchange.com/v1/report/executions/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"pageSize\": 123,\n \"pageToken\": \"<string>\",\n \"orderId\": \"<string>\",\n \"clordId\": \"<string>\",\n \"startTime\": \"2023-11-07T05:31:56Z\",\n \"endTime\": \"2023-11-07T05:31:56Z\",\n \"symbol\": \"<string>\",\n \"types\": [],\n \"newestFirst\": true,\n \"accounts\": [\n \"<string>\"\n ],\n \"clientAccountId\": \"<string>\",\n \"clientParticipantId\": \"<string>\",\n \"parentOrderId\": \"<string>\",\n \"execIds\": [\n \"<string>\"\n ],\n \"startTransactTradeDate\": {\n \"year\": 123,\n \"month\": 123,\n \"day\": 123\n },\n \"endTransactTradeDate\": {\n \"year\": 123,\n \"month\": 123,\n \"day\": 123\n }\n}"
response = http.request(request)
puts response.read_body{
"executions": [
{
"id": "<string>",
"order": {
"id": "<string>",
"orderQty": "<string>",
"symbol": "<string>",
"clordId": "<string>",
"account": "<string>",
"cumQty": "<string>",
"avgPx": "<string>",
"leavesQty": "<string>",
"participant": "<string>",
"price": "<string>",
"insertTime": "2023-11-07T05:31:56Z",
"stopPrice": "<string>",
"minQty": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"allOrNone": true,
"crossId": "<string>",
"hostCrossId": "<string>",
"submittingParticipant": "<string>",
"clientAccountId": "<string>",
"clientParticipantId": "<string>",
"parentOrderId": "<string>",
"commissionsBasisPoints": "<string>",
"participateDontInitiate": true,
"cashOrderQty": "<string>",
"strictLimit": true,
"goodTillTime": "2023-11-07T05:31:56Z",
"bestLimit": true,
"immediatelyExecutableLimit": true,
"lastTradeId": "<string>",
"commissionNotionalTotalCollected": "<string>",
"ignorePriceValidityChecks": true,
"lastTransactTime": "2023-11-07T05:31:56Z",
"makerCommissionsBasisPoints": "<string>",
"fractionalQuantityScale": "<string>",
"priceToQuantityFilled": {}
},
"lastShares": "<string>",
"lastPx": "<string>",
"text": "<string>",
"transactTime": "2023-11-07T05:31:56Z",
"legPrices": [
{
"symbol": "<string>",
"anchor": true,
"px": "<string>",
"qty": "<string>",
"side": "<string>",
"referencePx": "<string>"
}
],
"tradeId": "<string>",
"aggressor": true,
"commissionNotionalCollected": "<string>",
"traceId": "<string>",
"commissionSpreadPx": "<string>",
"transactTradeDate": {
"year": 123,
"month": 123,
"day": 123
}
}
],
"nextPageToken": "<string>",
"eof": true
}Searches for exchange executions using the given details to filter
POST
/
v1
/
report
/
executions
/
search
Search executions
curl --request POST \
--url https://api.prod.polymarketexchange.com/v1/report/executions/search \
--header 'Content-Type: application/json' \
--data '
{
"pageSize": 123,
"pageToken": "<string>",
"orderId": "<string>",
"clordId": "<string>",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"symbol": "<string>",
"types": [],
"newestFirst": true,
"accounts": [
"<string>"
],
"clientAccountId": "<string>",
"clientParticipantId": "<string>",
"parentOrderId": "<string>",
"execIds": [
"<string>"
],
"startTransactTradeDate": {
"year": 123,
"month": 123,
"day": 123
},
"endTransactTradeDate": {
"year": 123,
"month": 123,
"day": 123
}
}
'import requests
url = "https://api.prod.polymarketexchange.com/v1/report/executions/search"
payload = {
"pageSize": 123,
"pageToken": "<string>",
"orderId": "<string>",
"clordId": "<string>",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"symbol": "<string>",
"types": [],
"newestFirst": True,
"accounts": ["<string>"],
"clientAccountId": "<string>",
"clientParticipantId": "<string>",
"parentOrderId": "<string>",
"execIds": ["<string>"],
"startTransactTradeDate": {
"year": 123,
"month": 123,
"day": 123
},
"endTransactTradeDate": {
"year": 123,
"month": 123,
"day": 123
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
pageSize: 123,
pageToken: '<string>',
orderId: '<string>',
clordId: '<string>',
startTime: '2023-11-07T05:31:56Z',
endTime: '2023-11-07T05:31:56Z',
symbol: '<string>',
types: [],
newestFirst: true,
accounts: ['<string>'],
clientAccountId: '<string>',
clientParticipantId: '<string>',
parentOrderId: '<string>',
execIds: ['<string>'],
startTransactTradeDate: {year: 123, month: 123, day: 123},
endTransactTradeDate: {year: 123, month: 123, day: 123}
})
};
fetch('https://api.prod.polymarketexchange.com/v1/report/executions/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.prod.polymarketexchange.com/v1/report/executions/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'pageSize' => 123,
'pageToken' => '<string>',
'orderId' => '<string>',
'clordId' => '<string>',
'startTime' => '2023-11-07T05:31:56Z',
'endTime' => '2023-11-07T05:31:56Z',
'symbol' => '<string>',
'types' => [
],
'newestFirst' => true,
'accounts' => [
'<string>'
],
'clientAccountId' => '<string>',
'clientParticipantId' => '<string>',
'parentOrderId' => '<string>',
'execIds' => [
'<string>'
],
'startTransactTradeDate' => [
'year' => 123,
'month' => 123,
'day' => 123
],
'endTransactTradeDate' => [
'year' => 123,
'month' => 123,
'day' => 123
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.prod.polymarketexchange.com/v1/report/executions/search"
payload := strings.NewReader("{\n \"pageSize\": 123,\n \"pageToken\": \"<string>\",\n \"orderId\": \"<string>\",\n \"clordId\": \"<string>\",\n \"startTime\": \"2023-11-07T05:31:56Z\",\n \"endTime\": \"2023-11-07T05:31:56Z\",\n \"symbol\": \"<string>\",\n \"types\": [],\n \"newestFirst\": true,\n \"accounts\": [\n \"<string>\"\n ],\n \"clientAccountId\": \"<string>\",\n \"clientParticipantId\": \"<string>\",\n \"parentOrderId\": \"<string>\",\n \"execIds\": [\n \"<string>\"\n ],\n \"startTransactTradeDate\": {\n \"year\": 123,\n \"month\": 123,\n \"day\": 123\n },\n \"endTransactTradeDate\": {\n \"year\": 123,\n \"month\": 123,\n \"day\": 123\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.prod.polymarketexchange.com/v1/report/executions/search")
.header("Content-Type", "application/json")
.body("{\n \"pageSize\": 123,\n \"pageToken\": \"<string>\",\n \"orderId\": \"<string>\",\n \"clordId\": \"<string>\",\n \"startTime\": \"2023-11-07T05:31:56Z\",\n \"endTime\": \"2023-11-07T05:31:56Z\",\n \"symbol\": \"<string>\",\n \"types\": [],\n \"newestFirst\": true,\n \"accounts\": [\n \"<string>\"\n ],\n \"clientAccountId\": \"<string>\",\n \"clientParticipantId\": \"<string>\",\n \"parentOrderId\": \"<string>\",\n \"execIds\": [\n \"<string>\"\n ],\n \"startTransactTradeDate\": {\n \"year\": 123,\n \"month\": 123,\n \"day\": 123\n },\n \"endTransactTradeDate\": {\n \"year\": 123,\n \"month\": 123,\n \"day\": 123\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.prod.polymarketexchange.com/v1/report/executions/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"pageSize\": 123,\n \"pageToken\": \"<string>\",\n \"orderId\": \"<string>\",\n \"clordId\": \"<string>\",\n \"startTime\": \"2023-11-07T05:31:56Z\",\n \"endTime\": \"2023-11-07T05:31:56Z\",\n \"symbol\": \"<string>\",\n \"types\": [],\n \"newestFirst\": true,\n \"accounts\": [\n \"<string>\"\n ],\n \"clientAccountId\": \"<string>\",\n \"clientParticipantId\": \"<string>\",\n \"parentOrderId\": \"<string>\",\n \"execIds\": [\n \"<string>\"\n ],\n \"startTransactTradeDate\": {\n \"year\": 123,\n \"month\": 123,\n \"day\": 123\n },\n \"endTransactTradeDate\": {\n \"year\": 123,\n \"month\": 123,\n \"day\": 123\n }\n}"
response = http.request(request)
puts response.read_body{
"executions": [
{
"id": "<string>",
"order": {
"id": "<string>",
"orderQty": "<string>",
"symbol": "<string>",
"clordId": "<string>",
"account": "<string>",
"cumQty": "<string>",
"avgPx": "<string>",
"leavesQty": "<string>",
"participant": "<string>",
"price": "<string>",
"insertTime": "2023-11-07T05:31:56Z",
"stopPrice": "<string>",
"minQty": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"allOrNone": true,
"crossId": "<string>",
"hostCrossId": "<string>",
"submittingParticipant": "<string>",
"clientAccountId": "<string>",
"clientParticipantId": "<string>",
"parentOrderId": "<string>",
"commissionsBasisPoints": "<string>",
"participateDontInitiate": true,
"cashOrderQty": "<string>",
"strictLimit": true,
"goodTillTime": "2023-11-07T05:31:56Z",
"bestLimit": true,
"immediatelyExecutableLimit": true,
"lastTradeId": "<string>",
"commissionNotionalTotalCollected": "<string>",
"ignorePriceValidityChecks": true,
"lastTransactTime": "2023-11-07T05:31:56Z",
"makerCommissionsBasisPoints": "<string>",
"fractionalQuantityScale": "<string>",
"priceToQuantityFilled": {}
},
"lastShares": "<string>",
"lastPx": "<string>",
"text": "<string>",
"transactTime": "2023-11-07T05:31:56Z",
"legPrices": [
{
"symbol": "<string>",
"anchor": true,
"px": "<string>",
"qty": "<string>",
"side": "<string>",
"referencePx": "<string>"
}
],
"tradeId": "<string>",
"aggressor": true,
"commissionNotionalCollected": "<string>",
"traceId": "<string>",
"commissionSpreadPx": "<string>",
"transactTradeDate": {
"year": 123,
"month": 123,
"day": 123
}
}
],
"nextPageToken": "<string>",
"eof": true
}Body
application/json
ExecutionType denotes the execution type.
Available options:
EXECUTION_TYPE_PARTIAL_FILL, EXECUTION_TYPE_FILL, EXECUTION_TYPE_CANCELED, EXECUTION_TYPE_REPLACE, EXECUTION_TYPE_REJECTED, EXECUTION_TYPE_EXPIRED, EXECUTION_TYPE_DONE_FOR_DAY Date represents a calendar date.
Show child attributes
Show child attributes
Date represents a calendar date.
Show child attributes
Show child attributes
⌘I