Commit Graph

22 Commits

Author SHA1 Message Date
Martin Molinero cfa08a11fb Address reviews
- Removing `using QCAlgorithmFramework = QuantConnect.Algorithm.QCAlgorithm`
- Removing `QCAlgorithmFrameworkBridge`
- Removing `IsFrameworkAlgorithm`
- Making `EmitInsightBasedOnFill` private. Adding new
`IOrderEventProvider` exposing an `event` to which `QCAlgorithm` will
subscribe.
- `AccountType.Cash` algorithms will be allowed to manually trade and
emight insights manually or with alpha model.
2019-04-03 21:55:44 -03:00
Stefano Raggi 57d50c69c4 Fix XML documentation compiler warnings
- Fixed all warnings except for missing XML comments (CS1591)
2018-11-09 11:44:03 +01:00
Michael Handschuh a6640c0886 Adds API support for /splits and /dividends endpoints 2018-08-15 13:45:12 -04:00
Martin Molinero 10fd09be19 API endpoint prices will now return Symbol 2018-08-13 12:25:15 -03:00
Martin Molinero b253668b1d Adding new API endpoint prices 2018-08-04 10:57:41 -03:00
Jared c71be64dc6 Update BacktestReport.cs 2018-06-08 14:46:00 -04:00
Jared f72165b5f4 Update BacktestReport.cs 2018-06-08 14:45:15 -04:00
AlexCatarino 23c6ef8e0f Implements ReadBacktestReport method in the API 2018-06-08 17:04:13 +01:00
Martin-Molinero 5034c28c2e Adding action New Project, that allows the user to create a new project from the tool window 2018-05-02 16:33:32 -07:00
Martin-Molinero f51d07c582 Adding new VS backtest ToolWindow that will allow the user to monitor and perform different actions over past and ongoing backtests. 2018-04-19 04:54:49 -07:00
Martin-Molinero a2d899424a will now display backtest errors correctly. Adding scrollViewer 2018-04-03 15:53:14 -07:00
Michael Handschuh 2295e524f4 Add IAlphaRuntimeStatisticsGenerator and send to result handler
Provides estimates of alpha value as well as performs online computations of
alpha scores and other KPIs.

Sends alpha stats to result handler
Update live result with framework flag
2017-12-20 08:33:30 -05:00
Jared Broad aefdfcc411 Add the cashbook to the result packet 2017-10-23 17:00:28 -04:00
Andrew c1e6a726d8 Add alternate default brokerage naming 2017-08-02 13:10:03 -04:00
Andrew dad1794828 Updated Brokerage ID for paper trading 2017-07-24 09:54:35 -04:00
Andrew Hart a1c231321f Implemented api methods for new file api endpoints 2016-11-02 13:12:01 -04:00
Andrew f494653ec2 Live Algorithm Management with QC Api v2 (#577)
* Recommitted. Fixed missing code

* Renamed tests for Api to ApiTests

* Renamed Live to LiveAlgorithm

* Add LiveAlgorithm configuration classes for supported brokerages

The QuantConnect api v2 enables users to launch live algorithms with one of the supported brokerages. The LiveAlgorithmSettings class adds brokerage specific configuration classes that will allow algorithms to be configured to run live on a specific brokerage.

* Projects can now be updated via the Api v2

* Projects can be created via the Api with LiveAlgorithmSettings class

* Renamed CreateLive to CreateLiveAlgorithm in IApi

* Added tests for luanching live algorithms via api V2 for brokerages

* Created ProjectUpdateResponse to represent api response when project is updated

The new class ProjectUpdateResponse derives from RestReponse and adds a field, Files, that represents the project files associated with a project.   This new class is now what the Api method returns.  A new test, Update_ProjectFiles_Successfully, tests updating the files for a project via the Api

* Refactored ApiTests and expanded ApiTest docs

* Renamed brokerage specific classes that derive from BaseLiveAlgorithmSettings

* Refactored Oanda and Tradier LiveAlgorithm settings

Tradier and Oanda do not required certain parameters like password and username to trade live, however, they are required for the QC Api v2.  A new constructor was added to BaseLiveAlgorithmSettings that does not take in these parameters and sets the unneeded parameters to blank strings.  Tradier and Oanda LiveAlgorithmSettings  implement this new constructor.

* Minor tweaks to OandaLiveAlgorithmSettings

* Brokerage Api tests now use appropriate algorithms

Some brokerage tests were using algorithms that traded securities that did not pertain to the brokerage.  This has been corrected.

* Refactored naming of certain Api methods to be more consistent

* Added extra parameters to Api method ListLiveAlgorithms

* Added class that represents chart data from "live/read" api endpoint

* Minor change to LiveAlgorithmResults

* Version is now an optional parameter for LiveAlgorithmApiSettingsWrapper

* Minor formatting changes to long method signatures in Api.cs

* IApi now accepts versionId for CreateLiveAlgorithm

* Removed BrokerageName from LiveAlgorithmSettings.

* Fixed spelling mistake

* Added custom JsonConverter for LiveAlgorithmResults

In order to properly deserialize the results of an algorithm from the api endpoint "live/read", a custom deserializer is added to deal with null ChartPoints.  In order to deserialize ChartPoints that are null, ChartPoint has been changed from a struct to a class.

* Fixed type-o in ApiTests

* Add Ignore NUnit attribute to ApiTests

* Removed ApiAlgorithmStatus

In order to better align with the rest of the project, ApiAlgorithmStatus has been replaced by the existing AlgorithmStatus enum.  Only certain values of AlgorithmStatus can be used with the Api.  Unsuported values throw an ArgumentException error.

* Changed Resolution field in LiveAlgorithmResults from string to enum

* BrokerageEnvironment enum added to represent live/paper trading

* Environment set based on user in InteractiveBrokersLiveAlgorithmSettings

* Minor tweaks to BaseLiveAlgorithmSettings constructor

* Environment is hard coded for TradierLiveAlgorithmSettings

* Updated ApiTests to reflect changes to LiveAlgorithmSettings

* ApiConnection uses OrderJsonConverter to deserialize orders

* AlgorithmStatus is now nullable for ListLiveAlgorithms

* Tweaked account variable for InteractiveBrokersLiveAlgorithmSettings

* Replaced null comparisons with call to HasValue for LiveAlgo status
2016-10-03 15:03:37 -04:00
Andrew Hart 6b57e6609e Added methods to get logs of a live algorithm
Expanded the IApi interface to include a method for getting the logs of a live running algorithm.  Implemented this method in the implementation of the IApi interface. A new class was added that is used to hold the logs returned from the API.
2016-09-19 16:43:45 -04:00
Andrew Hart 79239f4c90 Added method to fetch link to data from the api (v2).
The QuantConnect api v2 exposes an endpoint that can return a link to download data purchased on QuantConnect.  This commit adds the ability to fetch the link from the api as well as a data structure that can hold the response from the server.
2016-09-19 11:05:25 -04:00
jaredbroad 7080916b16 Extended the api to support listing active and past algorithms 2016-07-14 15:00:17 -04:00
jaredbroad 8946215575 Added note property for backtest 2016-07-11 15:50:10 -04:00
jaredbroad d374494418 Backtest API methods and tests 2016-07-11 15:50:10 -04:00