Get user strategy performance
GET https://hub2.trylevel2.com/broker/get_user_strategy_performanceRetrieves performance metrics for a specific strategy deployment, identified by strategy and deployment IDs.
Request:
QUERY PARAMETERS
QUERY PARAMETERS
Responces:
Successful response with performance metrics 200
SCHEMA
SCHEMA
Required Query Parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
| strategy_id | integer | The unique identifier of the strategy logic. | 123 |
| deployment_id | integer | The unique identifier of the specific deployment instance. | 456 |
Response Specification
The response returns a metrics object containing the following performance indicators:
| Field | Type | Description | Example |
|---|---|---|---|
| return | number | The total return percentage of the strategy. | 5.25 |
| sharpe_ratio | number | Risk-adjusted return metric (Sharpe Ratio). | 1.8 |
| max_drawdown | number | The maximum peak-to-trough decline percentage. | 10.5 |
EXAMPLE
EXAMPLE
{
"strategy_id": 123,
"deployment_id": 456,
"metrics": {
"return": 5.25,
"sharpe_ratio": 1.8,
"max_drawdown": 10.5
}
}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