Skip to Content
Welcome to Level2 Help Center
APIEndpointsGet user strategy performance

Get user strategy performance

GET https://hub2.trylevel2.com/broker/get_user_strategy_performance

Retrieves performance metrics for a specific strategy deployment, identified by strategy and deployment IDs.

Request:

QUERY PARAMETERS

Required Parameters

ParameterTypeRequirementDescription
strategy_idintegerRequiredThe unique identifier assigned to the specific strategy logic.
deployment_idintegerRequiredThe unique identifier for the specific deployment instance of that strategy.

Responces:

Successful response with performance metrics 200

SCHEMA

Required Query Parameters

ParameterTypeDescriptionExample
strategy_idintegerThe unique identifier of the strategy logic.123
deployment_idintegerThe unique identifier of the specific deployment instance.456

Response Specification

The response returns a metrics object containing the following performance indicators:

FieldTypeDescriptionExample
returnnumberThe total return percentage of the strategy.5.25
sharpe_rationumberRisk-adjusted return metric (Sharpe Ratio).1.8
max_drawdownnumberThe maximum peak-to-trough decline percentage.10.5

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

ParameterTypeDescription
errorstringA descriptive message detailing the specific issue encountered.

EXAMPLE

{ "error": "An unexpected error occurred" }
Last updated on