Historical trades
curl --request GET \
--url https://api.oddpool.com/historical/polymarket/tradesimport requests
url = "https://api.oddpool.com/historical/polymarket/trades"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.oddpool.com/historical/polymarket/trades', 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.oddpool.com/historical/polymarket/trades",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.oddpool.com/historical/polymarket/trades"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.oddpool.com/historical/polymarket/trades")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.oddpool.com/historical/polymarket/trades")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyPolymarket
Historical trades
Trade executions on a Polymarket market.
GET
/
historical
/
polymarket
/
trades
Historical trades
curl --request GET \
--url https://api.oddpool.com/historical/polymarket/tradesimport requests
url = "https://api.oddpool.com/historical/polymarket/trades"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.oddpool.com/historical/polymarket/trades', 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.oddpool.com/historical/polymarket/trades",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.oddpool.com/historical/polymarket/trades"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.oddpool.com/historical/polymarket/trades")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.oddpool.com/historical/polymarket/trades")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyTrade executions on a Polymarket market. Polymarket trades can be BUY or SELL. Use
asset_id to filter to a specific token.
Parameters
string
required
Polymarket condition ID (
0x...).string
Filter by specific token ID.
integer
Start time in Unix ms.
integer
End time in Unix ms.
integer
default:"100"
Max rows per page (1-200).
string
Cursor from previous response for next page.
Example
curl -H "X-API-Key: oddpool_..." \
"https://api.oddpool.com/historical/polymarket/trades?market_id=0x36e8ca24...&start_time=1774015200000&end_time=1774018800000"
Response
{
"trades": [
{
"asset_id": "56914066788195652124...",
"market_id": "0x00000977017fa72fb6b1...",
"timestamp": 1774020951044,
"side": "BUY",
"price": "0.987",
"size": 1.317,
"transaction_hash": "0x554c0b25544baa5f...",
"fee_rate_bps": "0"
}
],
"pagination": { ... }
}
⌘I