Get trade details of a strategy
PUT https://hub2.trylevel2.com/broker/get_all_trades_by_user_strategyRetrieves details of trades triggered by a specific strategy, identified by its keygen.
Request:
QUERY PARAMETERS
QUERY PARAMETERS
Responces:
Successful response with trade details 200
SCHEMA
SCHEMA
Trade Object Array
Each entry in the array represents a single completed transaction.
| Parameter | Type | Description | Example |
|---|---|---|---|
| trade_id | string | The unique identifier for the specific trade. | t789 |
| strategy_keygen | uuid | The unique keygen of the strategy that triggered the trade. | 58d2a371-b84c-4928-99e4-8f0561c5696c |
| timestamp | date-time | The ISO 8601 timestamp of when the trade was executed. | 2025-10-17T16:00:00Z |
| amount | number | The total monetary value or size of the trade. | 1000.5 |
| Parameter | Type | Description | Example |
|---|---|---|---|
| total | integer | The total number of trades found for the user. | 200 |
| page | integer | The current page number of the result set. | 1 |
| size | integer | The number of records returned in this specific page. | 50 |
EXAMPLE
EXAMPLE
{
"trades": [
{
"trade_id": "t789",
"strategy_keygen": "58d2a371-b84c-4928-99e4-8f0561c5696c",
"timestamp": "2025-10-17T16:00:00Z",
"amount": 1000.5
}
],
"total": 200,
"page": 1,
"size": 50
}Responces:
Internal Server Error 500
SCHEMA
SCHEMA
| Parameter | Type | Description |
|---|---|---|
| error | string | A descriptive message detailing the specific issue encountered. |
EXAMPLE
EXAMPLE
{
"error": "An unexpected error occurred"
}Last updated on