Get all strategies of a user
GET https://hub2.trylevel2.com/broker/get_user_strategiesRetrieves a paginated list of all strategies associated with a specific user, identified by their email address.
Request:
QUERY PARAMETERS
QUERY PARAMETERS
Required & Optional Parameters
| Parameter | Type | Requirement | Description |
|---|---|---|---|
| user_email | email | Required | The registered email address of the user. |
| page | integer | Optional | The specific page number you wish to query. |
| size | integer | Optional | The number of records to return per page. |
Parameter Constraints
Adhere to the following system boundaries when configuring your request:
- Page (
page): * Must be greater than or equal to 1.- Default value is 1.
- Size (
size): * Must be greater than or equal to 1.- Default value is 50.
Responces:
Successful response with a list of strategies 200
SCHEMA
SCHEMA
Strategy Object Array
Each entry in the array represents a unique strategy configuration.
| Parameter | Type | Description | Example |
|---|---|---|---|
| strategy_id | integer | The unique internal ID of the strategy. | 363 |
| strategy_keygen | uuid | A unique, secure keygen used for API authentication. | 58d2a371-b84c-4928-99e4-8f0561c5696c |
| name | string | The user-defined name of the strategy. | MyStrategy |
| status | string | The current state (e.g., active, deleted, published). | active |
Pagination Metadata
Use these fields to navigate through the user’s full strategy library.
| Parameter | Type | Description | Example |
|---|---|---|---|
| total | integer | The total number of strategies owned by the user. | 50 |
| 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
{
"strategies": [
{
"strategy_id": 363,
"strategy_keygen": "58d2a371-b84c-4928-99e4-8f0561c5696c",
"name": "MyStrategy",
"status": "active"
}
],
"total": 50,
"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