Skip to main content
This guide shows you how to pull a wallet’s complete trade history using the Orbscan activity endpoint and how to analyze the results. You’ll learn how to filter records by market or time range and how to paginate through large histories so you never miss a trade.
1

Call the activity endpoint

Send a GET request to /v1/trader/{address}/activity with your wallet address. The endpoint returns records newest-first — pass limit=10 to start with a small, readable sample.
2

Read the response

A successful response wraps results in a data object containing an items array and a nextCursor for pagination. Here is a real example showing a Buy record followed by the Redeem that closed it:
The key fields in each activity item are:
Prices are always in cents, not dollars. A price of 78.0 means the trader paid 78¢ per share — equivalent to a 78 % implied probability. Divide by 100 to convert to a 0–1 probability.
3

Filter by market

Add a marketIds query parameter to retrieve trades in a specific market only. Use the numeric market ID from any activity item’s marketId field.
curl
To filter by multiple markets at once, repeat the parameter:
4

Filter by time range

Pass fromTimestamp to retrieve only activity on or after a specific point in time. The value must be a Unix timestamp in seconds.
curl
Combine fromTimestamp and toTimestamp to query a precise window:
Both parameters accept Unix epoch seconds. Use int(datetime.datetime(...).timestamp()) in Python or Date.now() / 1000 in JavaScript to generate values programmatically.
5

Paginate through all results

When the response contains a non-null nextCursor, more records are available. Pass that cursor back as the cursor query parameter on your next request. Repeat until nextCursor is null.
Python
Set limit=100 to minimize the number of round trips — the API caps the maximum at 100 records per page.