Skip to main content
GET
/
2
/
wallet
/
pm
/
activity
Get wallet prediction market activity
curl --request GET \
  --url https://demo-api.mobula.io/api/2/wallet/pm/activity
{
  "data": [
    {
      "activityId": "<string>",
      "type": "<string>",
      "platform": "<string>",
      "marketId": "<string>",
      "outcomeId": "<string>",
      "question": "<string>",
      "label": "<string>",
      "sizeToken": 123,
      "priceUSD": 123,
      "amountUSD": 123,
      "txHash": "<string>",
      "txDateMs": 123,
      "txDateIso": "<string>"
    }
  ],
  "pagination": {
    "page": 123,
    "offset": 123,
    "limit": 123,
    "pageEntries": 123
  },
  "hostname": "<string>",
  "took": 123
}

Query Parameters

wallet
string
required
The wallet address to get activity for.
platforms
string
Comma-separated list of platforms to filter by.
types
string
Comma-separated list of activity types (e.g., buy,sell).
from
string | number
Start time. Accepts Unix timestamp in milliseconds (e.g., 1709913600000) or ISO 8601 string (e.g., 2024-03-01T00:00:00Z).
to
string | number
End time. Accepts Unix timestamp in milliseconds (e.g., 1709913600000) or ISO 8601 string (e.g., 2024-03-01T00:00:00Z).
limit
number
default:"50"
Number of activities to return (1 to 100).
page
number
default:"1"
Page number (1-indexed).
offset
number
default:"0"
Pagination offset (alternative to page).
order
string
default:"desc"
Sort order: asc or desc.
cursorHash
string
Transaction hash to anchor cursor pagination from.
cursorDirection
string
default:"before"
Cursor direction: before or after.

Response

data
array
Array of wallet activity records.
pagination
object
Pagination metadata.
hostname
string
Server node identifier.
took
number
Request processing time in milliseconds.

Usage Example

curl -X GET "https://api.mobula.io/api/2/wallet/pm/activity?wallet=0xYourWalletAddress&types=buy,sell&limit=20"

Example Response

{
  "data": [
    {
      "activityId": "act-001",
      "type": "buy",
      "platform": "polymarket",
      "marketId": "0x1234...",
      "outcomeId": "71321...",
      "question": "Will ETH reach $10,000 by end of 2026?",
      "label": "Yes",
      "sizeToken": 100,
      "priceUSD": 0.35,
      "amountUSD": 35,
      "txHash": "0xdef456...",
      "txDateMs": 1709913600000,
      "txDateIso": "2024-03-08T16:00:00.000Z"
    }
  ],
  "pagination": {
    "page": 1,
    "offset": 0,
    "limit": 20,
    "pageEntries": 1
  },
  "hostname": "node-xyz",
  "took": 42
}

Query Parameters

wallet
string
required
platforms
string

Comma-separated list of platforms

types
string

Comma-separated list of activity types

from

Start time (Unix ms timestamp or ISO 8601 string)

to

End time (Unix ms timestamp or ISO 8601 string)

limit
number
default:50
Required range: 1 <= x <= 100
page
number
default:1
Required range: x >= 1
offset
number
default:0
Required range: x >= 0
order
enum<string>
default:desc
Available options:
asc,
desc
cursorHash
string

Transaction hash to anchor cursor pagination from

cursorDirection
enum<string>
default:before

Cursor direction: before or after

Available options:
before,
after

Response

200 - application/json

Wallet activity

data
object[]
pagination
object
hostname
string
took
number