Optimization Management
Read Optimization
Responses
The /optimizations/read API provides a response in the following format:
200 Success
ReadOptimizationResponse Model - Response received when reading an optimization. | |
|---|---|
| optimization | Optimization object Response received when reading an optimization job. |
| success | boolean Indicate if the API request was successful. |
| errors | string Array List of errors with the API call. |
| Example |
{
"optimization": {
"optimizationId": "string",
"snapshotId": 0,
"projectId": 0,
"name": "string",
"status": ,
"nodeType": "O2-8",
"parallelNodes": 0,
"criterion": {
"target": "TotalPerformance.PortfolioStatistics.SharpeRatio",
"extremum": "min",
"targetValue": 0
},
"runtimeStatistics": {
"Completed": "string",
"Failed": "string",
"Running": "string",
"In Queue": "string",
"Average Length": "2021-11-26T15:18:27.693Z",
"Total Runtime": "2021-11-26T15:18:27.693Z",
"Total": "string",
"Consumed": "string"
},
"constraints": [
{
"target": "TotalPerformance.PortfolioStatistics.SharpeRatio",
"operator": "LessOrEqual",
"targetValue": 0
}
],
"parameters": [
{
"name": "string",
"min": 0,
"max": 0,
"step": 0,
"minStep": 0
}
],
"backtests": {
"name": "string",
"id": "string",
"progress": 0,
"exitCode": 0,
"statistics": [
"number"
],
"parameterSet": ,
"equity": [
"array"
],
"startDate": "2021-11-26T15:18:27.693Z",
"endDate": "2021-11-26T15:18:27.693Z",
"outOfSampleDays": 0,
"outOfSampleMaxEndDate": "2021-11-26T15:18:27.693Z"
},
"strategy": "QuantConnect.Optimizer.Strategies.GridSearchOptimizationStrategy",
"requested": "2021-11-26T15:18:27.693Z",
"optimizationTarget": "TotalPerformance.PortfolioStatistics.SharpeRatio",
"targetValue": 0,
"gridLayout": [
{
"chartName": "string",
"width": 0,
"height": 0,
"row": 0,
"column": 0,
"sort": 0
}
],
"outOfSampleMaxEndDate": "2021-11-26T15:18:27.693Z",
"outOfSampleDays": 0
},
"success": true,
"errors": [
"string"
]
}
|
Optimization Model - Response received when reading an optimization job. | |
|---|---|
| optimizationId | string Id of the optimization. |
| snapshotId | integer Snapshot Id of this optimization. |
| projectId | integer Id of the project the optimization belongs to. |
| name | string Name of the optimization. |
| status | OptimizationStatus object Status of the optimization. |
| nodeType | string Enum Optimization node types available in QuantConnect Cloud. Options : ['O2-8', 'O4-12', 'O8-16'] |
| parallelNodes | integer Number of parallel nodes for the optimization. |
| criterion | OptimizationTarget object /. |
| runtimeStatistics | OptimizationRuntimeStatistics object /. |
| constraints | OptimizationConstraint Array Optimization constraints. |
| parameters | OptimizationParameter Array Optimization parameters. |
| backtests | OptimizationBacktest object Dictionary of optimization backtests. |
| strategy | string Enum /. Options : ['QuantConnect.Optimizer.Strategies.GridSearchOptimizationStrategy'] |
| requested | string($date-time) Optimization requested date and time. |
| optimizationTarget | string Enum /. Options : ['TotalPerformance.PortfolioStatistics.SharpeRatio', 'TotalPerformance.PortfolioStatistics.CompoundingAnnualReturn', 'TotalPerformance.PortfolioStatistics.ProbabilisticSharpeRatio', 'TotalPerformance.PortfolioStatistics.Drawdown'] |
| targetValue | number Desired value for the optimization target statistic. |
| gridLayout | GridChart Array List with grid charts representing the grid layout. |
| outOfSampleMaxEndDate | string($date-time) End date of out of sample data. |
| outOfSampleDays | integer Number of days of out of sample days. |
| Example |
{
"optimizationId": "string",
"snapshotId": 0,
"projectId": 0,
"name": "string",
"status": ,
"nodeType": "O2-8",
"parallelNodes": 0,
"criterion": {
"target": "TotalPerformance.PortfolioStatistics.SharpeRatio",
"extremum": "min",
"targetValue": 0
},
"runtimeStatistics": {
"Completed": "string",
"Failed": "string",
"Running": "string",
"In Queue": "string",
"Average Length": "2021-11-26T15:18:27.693Z",
"Total Runtime": "2021-11-26T15:18:27.693Z",
"Total": "string",
"Consumed": "string"
},
"constraints": [
{
"target": "TotalPerformance.PortfolioStatistics.SharpeRatio",
"operator": "LessOrEqual",
"targetValue": 0
}
],
"parameters": [
{
"name": "string",
"min": 0,
"max": 0,
"step": 0,
"minStep": 0
}
],
"backtests": {
"name": "string",
"id": "string",
"progress": 0,
"exitCode": 0,
"statistics": [
"number"
],
"parameterSet": ,
"equity": [
"array"
],
"startDate": "2021-11-26T15:18:27.693Z",
"endDate": "2021-11-26T15:18:27.693Z",
"outOfSampleDays": 0,
"outOfSampleMaxEndDate": "2021-11-26T15:18:27.693Z"
},
"strategy": "QuantConnect.Optimizer.Strategies.GridSearchOptimizationStrategy",
"requested": "2021-11-26T15:18:27.693Z",
"optimizationTarget": "TotalPerformance.PortfolioStatistics.SharpeRatio",
"targetValue": 0,
"gridLayout": [
{
"chartName": "string",
"width": 0,
"height": 0,
"row": 0,
"column": 0,
"sort": 0
}
],
"outOfSampleMaxEndDate": "2021-11-26T15:18:27.693Z",
"outOfSampleDays": 0
}
|