Polymarket Get Trade History logo

Catalog action Utility wallet

Get trade history for the authenticated user on Polymarket. Supports filtering by market, asset ID, and time range. Returns paginated trade records with cursor. Ideal for: trade analysis, P&L tracking, tax reporting, portfolio performance review.

At a Glance

FieldValue
Action IDpolymarket-get-trade-history
CategoryUtility
Connectorwallet
Requires gasNo
Funds movementNone declared
Tagspolymarket, trades, history, read

Payload Schema

FieldTypeRequiredDescription
marketstringNoFilter trades by market condition ID
assetIdstringNoFilter trades by asset/token ID
beforestringNoFilter trades before this timestamp (ISO 8601)
afterstringNoFilter trades after this timestamp (ISO 8601)
cursorstringNoPagination cursor from a previous response

Result Schema

FieldTypeRequiredDescription
tradesarrayYesArray of trade records
countnumberYesTotal count of trades
nextCursorstringNoCursor for next page of results

Examples

json
{ "type": "polymarket-get-trade-history", "payload": { "market": "example-market", "assetId": "ETH", "before": "example-before", "after": "example-after", "cursor": "example-cursor" }, "children": [], "connector": { "type": "wallet", "id": "conn_wallet" }}

Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.

Ask a question... ⌘I