Skip to content

Optimization

QuantConnect.Api.Optimization

Optimization()

Bases: BaseOptimization

Optimization response packet from the QuantConnect.com API.

JSON Constructor

snapshot_id

snapshot_id: Optional[int]

Snapshot ID of this optimization

optimization_target

optimization_target: str

Statistic to be optimized

grid_layout

grid_layout: List[GridChart]

List with grid charts representing the grid layout

runtime_statistics

runtime_statistics: IDictionary[str, str]

Runtime banner/updating statistics for the optimization

constraints

constraints: Sequence[Constraint]

Optimization constraints

parallel_nodes

parallel_nodes: int

Number of parallel nodes for optimization

backtests

backtests: IDictionary[str, OptimizationBacktest]

Optimization constraints

strategy

strategy: str

Optimization strategy

requested

requested: datetime

Optimization requested date and time

success

success: bool

Indicate if the API request was successful.

errors

errors: List[str]

List of errors with the API call.

optimization_id

optimization_id: str

Optimization ID

project_id

project_id: int

Project ID of the project the optimization belongs to

name

name: str

Name of the optimization

status

Status of the optimization

node_type

node_type: str

Optimization node type

out_of_sample_days

out_of_sample_days: int

Number of days of out of sample days

out_of_sample_max_end_date

out_of_sample_max_end_date: Optional[datetime]

End date of out of sample data

parameters

parameters: List[OptimizationParameter]

Parameters used in this optimization

criterion

criterion: Target

Optimization statistical target

to_string

to_string() -> str

Returns the string representation of this object