POST
/
activity-logs
/
page
curl --request POST \
  --url https://api.copin.io/activity-logs/page \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "pagination": {
    "limit": 123,
    "offset": 123
  },
  "sortBy": "<string>",
  "sortType": "<string>"
}'
{
  "data": [
    {
      "id": "<string>",
      "protocol": "<string>",
      "sourceAccount": "<string>",
      "userId": "<string>",
      "copyOrderId": "<string>",
      "copyTradeTitle": "<string>",
      "exchange": "<string>",
      "indexToken": "<string>",
      "pair": "<string>",
      "price": 123,
      "sourcePrice": 123,
      "copyTradeId": "<string>",
      "volume": 123,
      "leverage": 123,
      "isLong": true,
      "type": "<string>",
      "isSuccess": true,
      "sourceTxHash": "<string>",
      "copyWalletId": "<string>",
      "copyWalletName": "<string>",
      "cexOrderId": "<string>",
      "isReverse": true,
      "copyPositionId": "<string>",
      "createdAt": "<string>"
    }
  ],
  "meta": {
    "limit": 123,
    "offset": 123,
    "total": 123,
    "totalPages": 123
  }
}

Authentication

This endpoint requires authentication using a JWT token in the Authorization header.

Authorization
string
required

JWT token in the format: Authorization {token}

Request Body

pagination
object

Pagination parameters

sortBy
string
default:"createdAt"

Field to sort the results by

sortType
string
default:"desc"

Sort direction, either “asc” or “desc”

Request Example

curl --request POST \
--url "https://api.copin.io/activity-logs/page?limit=20&offset=0" \
--header 'Content-Type: application/json' \
--header 'Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IjB4MTUzNTQ4NGMxRWVjMUQyMDNmRTFBNTNFQTExYTYyMWE4ODRBRTA2NyIsInRpbWUiOjE3NDQ2MjYxNjIzODksImFjY2VzcyI6IlVmTkNiTWhMVVMxNzQ0NjI2MTYyMzkwIiwiaWF0IjoxNzQ0NjI2MTYyLCJleHAiOjE3NDUyMzA5NjJ9.LpvhBdxyfehzom-v5tKumAqCptSMkVk7HVKKVtjSpk8' \
--data '{"pagination":{"limit":20,"offset":0},"sortBy":"createdAt","sortType":"desc"}'

Response

The response includes a data array containing activity log objects and a meta object with pagination information.

data
array

Array of activity log objects

meta
object

Metadata about the response

Response Example

{
  "data": [
    {
      "id": "67fa2b4990b940181641703e",
      "protocol": "AVANTIS_BASE",
      "sourceAccount": "0x196ae16A9387a3Dc5De811467A2E37D7FeBeD304",
      "userId": "654849d04857e1f744646cdd",
      "copyOrderId": "67fa2b4990b940181641703c",
      "copyTradeTitle": "Wink tongue",
      "exchange": "HYPERLIQUID",
      "indexToken": "AVANTIS_BASE-0",
      "pair": "ETH-USDT",
      "price": 1591.31,
      "sourcePrice": 1591.47167907,
      "copyTradeId": "67cd2e99b302b7331a29173a",
      "volume": 0.01,
      "leverage": 10,
      "isLong": true,
      "type": "CLOSE",
      "isSuccess": true,
      "sourceTxHash": "0x82f26df0738da549e0491c298a4619da0b0b71797ce01a44ead626b2ea0ae240",
      "copyWalletId": "67b1a1df64f2f57162f1cab5",
      "copyWalletName": "Copin Lite",
      "cexOrderId": "c65fdd5a-ae66-4a12-a27f-0b3e4055f261",
      "isReverse": false,
      "copyPositionId": "67fa2a77839d60c22debe83e",
      "createdAt": "2025-04-12T08:58:49.703Z"
    },
    {
      "id": "67fa2a77839d60c22debe845",
      "protocol": "AVANTIS_BASE",
      "sourceAccount": "0x196ae16A9387a3Dc5De811467A2E37D7FeBeD304",
      "userId": "654849d04857e1f744646cdd",
      "copyOrderId": "67fa2a77839d60c22debe841",
      "copyTradeTitle": "Wink tongue",
      "exchange": "HYPERLIQUID",
      "indexToken": "AVANTIS_BASE-0",
      "pair": "ETH-USDT",
      "price": 1592.36,
      "sourcePrice": 1593.072615343,
      "copyTradeId": "67cd2e99b302b7331a29173a",
      "volume": 0.01,
      "leverage": 10,
      "isLong": true,
      "type": "OPEN",
      "isSuccess": true,
      "sourceTxHash": "0x317efa7839f5ab4fe6c6b81e5feb21d1c0909a0e6d0c833c2a9ebbe75e0327ae",
      "copyWalletId": "67b1a1df64f2f57162f1cab5",
      "copyWalletName": "Copin Lite",
      "cexOrderId": "6a5b43dc-5de3-4e47-b051-1ca9f28f00f1",
      "isReverse": false,
      "copyPositionId": "67fa2a77839d60c22debe83e",
      "createdAt": "2025-04-12T08:55:19.827Z"
    }
  ],
  "meta": {
    "limit": 20,
    "offset": 0,
    "total": 2,
    "totalPages": 2
  }
}