Hercle
REST
GET/api/v1/user/trades/{startDate}/{endDate}/{page}/{pageSize}

Get Trades Paginated

Retrieve a paginated list of trades filtered by date range. Maximum date range is 7 days.

Auth:Bearer <api_key>
Tags:Trades

Request

cURL
curl -G https://publicapi.sandbox.hercle.financial/api/v1/user/trades/{startDate}/{endDate}/{page}/{pageSize} \
  -H "Authorization: Bearer eyJhb..." \
  

Path Parameters

NameTypeRequiredDescription
startDatestringYesStart date for filtering trades (ISO 8601 format). Maximum range: 7 days from end date.
Example: 2025-12-01T00:00:00Z
endDatestringYesEnd date for filtering trades (ISO 8601 format). Maximum range: 7 days from start date.
Example: 2025-12-05T23:59:59Z
pagenumberYesPage number for pagination (starting from 0)
Example: 0
pageSizenumberYesNumber of items per page (min: 5, max: 50)
Example: 5

Headers

NameTypeRequiredDescription
AuthorizationstringYesBearer token for authentication

Response

Success Response Schema

FieldTypeDescription
idstringUnique identifier for the trade
clientIdstringClient identifier associated with the trade
userIdstringUser identifier who executed the trade
instrumentstringTrading instrument (e.g., BTC/USDT)
sidestring
Trade side
Allowed values:
buy
sell
pricenumberExecution price
quantityFillednumberQuantity filled in the trade
timestampstringISO 8601 timestamp of trade execution
emailstringEmail address of the user

Responses

List of trades retrieved successfully

200 application/json
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "clientId": "client_001",
    "userId": "987e6543-e21b-12d3-a456-426614174001",
    "instrument": "BTC/USDT",
    "side": "buy",
    "price": 50000,
    "quantityFilled": 0.1,
    "timestamp": "2024-06-01T12:00:00Z",
    "email": "john.doe@example.com"
  }
]

API Tester

Test this endpoint directly against the sandbox environment

Get your API key from Hercle Sandbox

Start date for filtering trades (ISO 8601 format). Maximum range: 7 days from end date.

End date for filtering trades (ISO 8601 format). Maximum range: 7 days from start date.

Page number for pagination (starting from 0)

Number of items per page (min: 5, max: 50)

https://publicapi.sandbox.hercle.financial/api/v1/user/trades/{startDate}/{endDate}/{page}/{pageSize}