Skip to main content
GET
/
v2
/
polymarket
/
activity
Get Activity
curl --request GET \
  --url https://api.predexon.com/v2/polymarket/activity \
  --header 'x-api-key: <api-key>'
import requests

url = "https://api.predexon.com/v2/polymarket/activity"

headers = {"x-api-key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};

fetch('https://api.predexon.com/v2/polymarket/activity', 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.predexon.com/v2/polymarket/activity",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);

$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.predexon.com/v2/polymarket/activity"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("x-api-key", "<api-key>")

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.predexon.com/v2/polymarket/activity")
.header("x-api-key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.predexon.com/v2/polymarket/activity")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "activities": [
    {
      "market_slug": "<string>",
      "condition_id": "<string>",
      "shares": 123,
      "shares_normalized": 123,
      "amount_usd": 123,
      "price": 123,
      "tx_hash": "<string>",
      "title": "<string>",
      "timestamp": 123,
      "user": "<string>",
      "market_id": "<string>",
      "neg_risk_market_id": "<string>",
      "index_set": "<string>"
    }
  ],
  "pagination": {
    "limit": 123,
    "count": 123,
    "has_more": true,
    "pagination_key": "<string>"
  }
}
{
"error": "<string>",
"message": "<string>"
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}
{
"error": "<string>",
"message": "<string>"
}
Query non-trade wallet activity. Includes SPLIT (deposit collateral to create YES+NO pairs), MERGE (combine pairs back to collateral), REDEEM (redeem winning tokens after resolution), and CONVERT (NegRisk position conversions - sell NO tokens on a subset of conditions, buy YES tokens on the remainder).
Free & Unlimited. This endpoint does not count toward your monthly usage limits on any plan.
CONVERT rows behave differently. Conversions are a market-level operation, not a per-outcome one. On CONVERT rows:
  • condition_id is an empty string and market_id is null - filtering by either will not match.
  • The parent identifier lives in the new neg_risk_market_id field (32-byte hex, matches Gamma’s Event.negRiskMarketID).
  • index_set carries the NegRisk indexSet bitmask (decimal string) of which outcomes were involved.
  • market_slug/title may be empty.
For SPLIT/MERGE/REDEEM, market_id and condition_id are populated as before; neg_risk_market_id and index_set are null.
ConstraintValue
limit1–500 (default 100)
offsetNo limit

Authorizations

x-api-key
string
header
required

Query Parameters

wallet
string
required

Wallet address

start_time
integer | null

Unix timestamp (seconds) for start

end_time
integer | null

Unix timestamp (seconds) for end

market_slug
string | null

Filter by market slug

condition_id
string | null

Filter by condition ID

sort_by
enum<string>
default:timestamp

Sort by: timestamp or type

Available options:
timestamp,
type
limit
integer
default:100

Number of activities to return (1-500)

Required range: 1 <= x <= 500
order
enum<string>
default:desc

Sort order: asc or desc

Available options:
asc,
desc
pagination_key
string | null

Pagination key for cursor-based pagination

Response

Successful Response

Activity endpoint response.

activities
Activity · object[]
required
pagination
CursorPagination · object
required

Cursor-based pagination for endpoints that don't support offset.