Skip to content

Commit 7bb1851

Browse files
authored
Add analysis result to backtest result schema (#2253)
* Add analysis result to backtest result schema
1 parent 17f6d26 commit 7bb1851

1 file changed

Lines changed: 37 additions & 5 deletions

File tree

QuantConnect-Platform-2.0.0.yaml

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ openapi: 3.1.0
22
info:
33
title: QuantConnect Platform API v2.0
44
description: >
5-
QuantConnect Platform API controls creating, updating and deleting projects,
6-
files, backtests and live algorithms. Automate the updating and backtesting
5+
QuantConnect Platform API controls creating, updating and deleting projects,
6+
files, backtests and live algorithms. Automate the updating and backtesting
77
of your strategies, or build tools to fast track your development.
88
termsOfService: https://www.quantconnect.com/terms
99
contact:
@@ -1897,6 +1897,32 @@ components:
18971897
items:
18981898
$ref: '#/components/schemas/Trade'
18991899
description: The AlgorithmPerformance class is a wrapper for TradeStatistics and PortfolioStatistics.
1900+
AnalysisResult:
1901+
type: object
1902+
description: The result of an analysis performed on a result.
1903+
properties:
1904+
name:
1905+
type: string
1906+
description: The name of the analysis that produced this result.
1907+
issue:
1908+
type: string
1909+
description: A short description of why the analysis was triggered.
1910+
sample:
1911+
type: object
1912+
description: A representative sample value of the issue detected by the analysis.
1913+
count:
1914+
type: integer
1915+
description: The total number of matching occurrences found by the analysis. If not present, it should be assumed that there is only one occurrence.
1916+
solutions:
1917+
type: array
1918+
items:
1919+
type: string
1920+
description: Human-readable suggestions for resolving the detected issue.
1921+
required:
1922+
- name
1923+
- issue
1924+
- sample
1925+
- solutions
19001926
BacktestOrdersResponse:
19011927
type: object
19021928
properties:
@@ -2145,6 +2171,12 @@ components:
21452171
type: integer
21462172
nullable: true
21472173
description: Number of days of out of sample days.
2174+
analysis:
2175+
type: array
2176+
nullable: true
2177+
items:
2178+
$ref: '#/components/schemas/AnalysisResult'
2179+
description: List of diagnostic analysis results for the backtest.
21482180
description: Results object class. Results are exhaust from backtest or live algorithms running in LEAN.
21492181
BacktestSummaryResult:
21502182
type: object
@@ -3848,7 +3880,7 @@ components:
38483880
{
38493881
CustomClass()
38503882
{
3851-
3883+
38523884
}
38533885
}
38543886
# Python research file
@@ -3907,7 +3939,7 @@ components:
39073939
@@ -2,4 +2,4 @@
39083940
from AlgorithmImports import *
39093941
# endregion
3910-
3942+
39113943
-a = 1
39123944
+a = 2
39133945
@@ -6938,7 +6970,7 @@ components:
69386970
{
69396971
CustomClass()
69406972
{
6941-
6973+
69426974
}
69436975
}
69446976
description: The new contents of the file.

0 commit comments

Comments
 (0)