> For the complete documentation index, see [llms.txt](https://docs.42.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.42.space/for-developers/rest-api-alpha/users/get-user-activity-feed.md).

# Get user activity feed

GET /api/v1/market-data/activity

## Get user activity feed

> Returns a paginated feed of trading activity events (MINT, REDEEM, FINALISE, CLAIM) for a given wallet, market, or transaction. Optionally filter by market, question, outcome token, activity type, transaction hash, ledger cursor, or time range.

```json
{"openapi":"3.1.1","info":{"title":"FortyTwo Read API","version":"1.0"},"tags":[{"description":"GET /api/v1/market-data/activity","name":"get-user-activity"}],"servers":[{"url":"https://rest.ft.42.space/"}],"paths":{"/api/v1/market-data/activity":{"get":{"description":"Returns a paginated feed of trading activity events (MINT, REDEEM, FINALISE, CLAIM) for a given wallet, market, or transaction. Optionally filter by market, question, outcome token, activity type, transaction hash, ledger cursor, or time range.","tags":["get-user-activity"],"summary":"Get user activity feed","parameters":[{"schema":{"type":"string"},"description":"Wallet address","name":"user","in":"query"},{"schema":{"type":"string"},"description":"Comma-separated market addresses to filter by","name":"market","in":"query"},{"schema":{"type":"string"},"description":"Comma-separated question IDs to filter by","name":"question_id","in":"query"},{"schema":{"type":"string"},"description":"Comma-separated outcome token IDs to filter by (max 50)","name":"token_id","in":"query"},{"schema":{"type":"string"},"description":"Comma-separated activity type filter: MINT, REDEEM, FINALISE, CLAIM","name":"type","in":"query"},{"schema":{"type":"string"},"description":"Transaction hash (0x + 64 hex chars) to filter by","name":"transaction_hash","in":"query"},{"schema":{"type":"integer"},"description":"Only events with ledgerId greater than this cursor","name":"after_id","in":"query"},{"schema":{"type":"string"},"description":"Sort field: date (default), amount, pnl","name":"order","in":"query"},{"schema":{"type":"boolean"},"description":"Sort ascending (default false = descending)","name":"ascending","in":"query"},{"schema":{"type":"integer"},"description":"Start unix timestamp","name":"start","in":"query"},{"schema":{"type":"integer"},"description":"End unix timestamp","name":"end","in":"query"},{"schema":{"type":"integer"},"description":"Limit (default 100, max 500)","name":"limit","in":"query"},{"schema":{"type":"integer"},"description":"Offset (default 0, max 10000)","name":"offset","in":"query"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ft_market-service-v2_pkg_api.PaginatedResponse-internal_handler_ActivityResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ft_market-service-v2_pkg_api.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ft_market-service-v2_pkg_api.ErrorResponse"}}}}}}}},"components":{"schemas":{"ft_market-service-v2_pkg_api.PaginatedResponse-internal_handler_ActivityResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/internal_handler.ActivityResponse"}},"pagination":{"$ref":"#/components/schemas/ft_market-service-v2_pkg_api.Pagination"}}},"internal_handler.ActivityResponse":{"type":"object","properties":{"avgPrice":{"type":"number"},"collateral":{"type":"number"},"costBasis":{"type":"number"},"currentQuantity":{"type":"number"},"deltaCollateral":{"type":"number"},"deltaQuantity":{"type":"number"},"eventId":{"type":"string"},"ledgerId":{"description":"LedgerID is the ledger row id, usable as an ?after_id= cursor.","type":"string"},"marginalPriceAtTime":{"type":"number"},"marketAddress":{"type":"string"},"marketCapAtTime":{"type":"number"},"mintedQuantityAtTime":{"type":"number"},"outcome":{"type":"string"},"outcomeImage":{"type":"string"},"outcomeIndex":{"type":"integer"},"outcomeSymbol":{"type":"string"},"payoutAtTime":{"type":"number"},"price":{"type":"number"},"questionId":{"type":"string"},"questionImage":{"type":"string"},"realizedPnlDelta":{"type":"number"},"size":{"description":"Size and Collateral are absolute values (legacy contract); the signed\noriginals are DeltaQuantity / DeltaCollateral.","type":"number"},"timestamp":{"type":"integer"},"title":{"type":"string"},"tokenId":{"type":"string"},"tradePrice":{"type":"number"},"transactionHash":{"type":"string"},"type":{"type":"string"},"userAddress":{"type":"string"}}},"ft_market-service-v2_pkg_api.Pagination":{"type":"object","properties":{"hasMore":{"type":"boolean"},"totalResults":{"type":"integer"}}},"ft_market-service-v2_pkg_api.ErrorResponse":{"type":"object","properties":{"code":{"type":"integer"},"error":{"type":"string"},"message":{"type":"string"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.42.space/for-developers/rest-api-alpha/users/get-user-activity-feed.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
