Portfolio

Get user activity feed

GET
/users/activity

Authorization

appIdbearerAuth
headerx-app-id<token>

Your application ID. Required on app-tier and user-tier routes. Omitted on routes that authenticate with x-app-api-key only.

headerAuthorizationBearer <JWT>

JWT access token from POST /auth/verify. Required with x-app-id on user routes. On the smart-route quote it is optional and turns a preview into an executable quote.

Query Parameters

type?string

Kind of activity: trade an order, withdrawal, bridge a cross-chain transfer, deposit, user_op a wallet operation, redeem a winnings claim.

Value in"trade""withdrawal""bridge""deposit""user_op""redeem"
cursor?string
limit?integer
Range1 <= value <= 100

Response Body

200

application/json
  1. response
data*array<|||||>
nextCursor*string
hasMore*boolean
Example Request
curl -X GET 'https://api.t.sufwankhalid.com/users/activity'
Example Response
{  "data": [    {      "id": "string",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z",      "status": "string",      "type": "trade",      "venue": "string",      "side": "string",      "amountRaw": "string",      "filledAmountRaw": "string",      "executionPrice": "string",      "venueMarket": {        "id": "string",        "venueEventId": "string",        "question": "string",        "image": "string"      },      "venueMarketOutcome": {        "id": "string",        "label": "string",        "title": "string",        "price": 0      },      "txHash": "string",      "errorMessage": "string"    }  ],  "nextCursor": "string",  "hasMore": true}