11042 Commits

Author SHA1 Message Date
Gerardo Salazar 92efd6f7cd Trigger build
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
12401
2021-07-23 15:06:37 -07:00
Gerardo Salazar a97e6f8ae8 Address review: Add protobuf definitions for Iconic data types
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
12398
2021-07-23 13:40:50 -07:00
Gerardo Salazar 0727e3a1ec Adds Initialize() to IDataChannelProvider
* Adds new extension method to convert
    HistoryRequest -> SubscriptionDataConfig
2021-07-23 11:48:36 -07:00
Gerardo Salazar 4dbe85f6cf Add "LiveDataTypes" field to LiveNodePacket 2021-07-22 13:22:36 -07:00
Gerardo Salazar cce8a07445 Fixes failing unit tests 2021-07-20 17:09:05 -07:00
Gerardo Salazar d1f5a4b7ae Regression algos updated and python algorithms moved to DataSource repos 2021-07-20 17:09:04 -07:00
Gerardo Salazar 7da321118f WIP removal of custom data references & tests updates 2021-07-20 17:09:04 -07:00
Gerardo Salazar 95f199eae5 Bug fix: don't throw on unsupported exchanges in CoinApi converter (#5784)
Build & Test Lean / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
12370
2021-07-20 19:09:29 -03:00
Martin-Molinero 2cb239a330 Fix price left over split cash adjustment (#5780)
Build & Test Lean / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
- After a split if there are left over shares we model them getting sold
  using the new price. Adding unit and regression test
12358
2021-07-19 13:18:10 -03:00
Martin-Molinero cb326788b3 Filter out small orders based on Setting (#5776)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
* Filter out small orders based on Setting

- BuyingPowerModel will filter out small orders based on algorithm
  setting, a % of PTV, instead of hard coded 1 share value. Addin unit
  and regression tests
- Updating regression algorithms to use new setting, reduce order trades

* Update regression algorithms
12357
2021-07-19 13:17:51 -03:00
Ronit Jain e2e2b5f102 zerodhaDownloader support for new market convention - Market.India (#5775)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
* zerodhaDownloader support for India Market

(cherry picked from commit c36272ef9c4c7eddfff77413d900faab3a2a8654)

* indenation styling fix

* zerodha donwloader

* Market.India support from zerodhaSymbolMapper

* code styling changes
12355
2021-07-19 11:43:17 -03:00
Martin-Molinero f75e81bd7d Add null check for API data folder (#5774)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
- Api.Initialize will not throw for null data folder. Adding unit test
12351
2021-07-16 18:27:42 -03:00
Ronit Jain 522fe14951 Zerodha ProductType customization for Fetching Positions&holdings and also while placing orders (#5766)
Build & Test Lean / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
* re adding KiteProductType

* check kiteProductType per order and get all Product Type Account Holdings

* use WithLockedStream and remove lock unlock stream

* filter holding if config productType set otherwise fetch all

* improvements in styling and properties

* unionbank has less margin requirements, second always works
12346
2021-07-16 11:43:14 -03:00
Martin-Molinero 9cf4075957 Send invalid orderEvent for non shortable order (#5772)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
- TransactionHandler will see invalid OrderEvent for an order which
  tries to short an non shortable asset. Adding unit test, updating
  regression algorithm.
- Fix Api data price path normalization, found while testing with
shortable provider. Adding unit tests
12344
2021-07-15 21:10:46 -03:00
Martin-Molinero 1ed390c5f7 Minor tweaks (#5771)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
- Improve readme file, add nuget link, update Lean home page
- Increase 10min look back to 60 for setting currency conversion
- Replace error message for trace when minute resolution history request
  is empty
12343
2021-07-15 13:03:46 -03:00
Jasper van Merle f5224f8be9 Logging improvements (#5767)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
12339
2021-07-14 20:53:09 -03:00
Colton Sellers 8d11bbf0ba Update to PythonNet 2.0.5 (#5764)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
12326 12335 12338 12337
2021-07-14 11:01:57 -03:00
Martin-Molinero 1dcdfe79b0 Add data paths to PriceEntry (#5761)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
12307 12308 12309 12312 12316 12317 12323 12313 12310 12325
2021-07-13 14:56:20 -03:00
Stefano Raggi e453635458 Update Binance symbols in symbol properties database (#5759)
Build & Test Lean / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
* Update Binance symbols in symbol properties database

* Fix failing unit tests
12293
2021-07-12 13:28:28 -03:00
Martin-Molinero d84ad9ebfc Reduce research image size (#5758)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
- Reduce research image size
- Increate BrokerageConcurrentMessageHandler unit test timeout
12289 12292 12288
2021-07-12 09:58:11 -03:00
Martin-Molinero f9adc6b136 Rename data permissions (#5753)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
12276 12278 12283
2021-07-09 22:59:14 -03:00
Jovad Uribe e5f62fa4dd Feature Augen Price Spike Indicator (#5713)
Build & Test Lean / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
* Added Augen Price Spike Files

* AugenPriceSpike Update

Adjusted indicator calculations and added test data from Trading View

* Requested Changes

* Minor changes
12266
2021-07-09 20:07:15 -03:00
Colton Sellers 3430b46e6a BuyingPowerModel GetMaximumOrder Adjustments (#5756)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
* Add reproducing unit test

* Apply fix to force adjustment if needed

* Adjust fee to correctly replicate original issue

* Adjust solution

* Update unit test to reflect the way this function is used

* nit - rename test

* Cleanup error message to improve reproducibility

* nit - Drop unneeded var

* Add in adjustment test cases as well, fixed
12265
2021-07-09 19:37:48 -03:00
Colton Sellers 00ac4f33af Implement Python overload of Notify.Web for PyObject Headers (#5749)
Build & Test Lean / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
* Implement Python overload of Notify.Web for PyObject Headers

* Address review + add unit tests
12259
2021-07-08 21:07:19 -03:00
Colton Sellers 0d752abae6 Feature Telegram Notification (#5535)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
* Lay telegram notification groundwork

* nit comments

* Implement in JSON converter, and add roundtrip test

* Update comment docs

* Implement configurable token in NotificationTelegram

* Rename to ID, due to @ handles not usable

* Address review + nits

* Nit comment fix
12252 12257 12255 12258
2021-07-07 21:06:45 -03:00
Martin-Molinero 2a77a8d3c0 Update readme.md
Build & Test Lean / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
12250
2021-07-07 19:50:23 -03:00
Martin-Molinero 49d6cb0021 QuantBook fundamental history request (#5743)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
- Allow requiesting the entire FineFundamental object for a QuantBook
  history request. Adding unit test
12235 12240 12243 12244 12245 12246 12248
2021-07-07 12:02:01 -03:00
Stefano Raggi 9a81414a94 IB Brokerage updates (#5744)
Build & Test Lean / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
* IB Brokerage updates

- Update IBAutomater to v2.0.40
- Add config setting to enable export of IBGateway logs (default=false)
- Downgrade IB log level from Information to Warning

* Update IBAutomater to v2.0.41

* Trigger build
12232 12233 12234
2021-07-07 11:26:09 -03:00
Martin-Molinero 3f85c9ab82 Update readme.md
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
12228 12230 12229
2021-07-06 23:06:03 -03:00
Martin-Molinero f062b54450 Update readme.md
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
12221
2021-07-06 19:59:58 -03:00
Colton Sellers 64b95b2e8e MaximumOrderQuantity Error Log Expansion (#5741)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
* Add more details to the log to improve insight into bugs

* Keep string formatting invariant
12217 12219 12220 12218
2021-07-06 19:26:49 -03:00
Martin-Molinero 7bcaaf8f23 Reduce dockerfoundation size (#5740)
Build & Test Lean / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
- Clean files and conda after each docker build step
- Merge steps to reduce size
- Clear apt lists
12215
2021-07-06 17:42:19 -03:00
bmello4688 8383163aae fixed problems with testcasesource (#5722)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
12210 12212
2021-07-06 12:04:04 -03:00
bmello4688 04f3c850ba test fails sometimes from a race to check value (#5720)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
* test fails sometimes from a race to check value

* add while limit
12209
2021-07-05 19:03:12 -03:00
Martin-Molinero 5bd0675423 Fix minor race condition in brokerage message handler (#5736)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
* Fix minor race condition in brokerage message handler

- Fix race condition where a message could be enqueued and
wait for a new call, not being processed ASAP

* Reduce BrokerageTransactionHandler logs
12208
2021-07-03 19:46:31 -03:00
Jasper van Merle 6eb3822193 Fix coarse universe generator crashing on single processor (#5735)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
* Fix coarse universe generator on single processor

* Make sure MaxDegreeOfParallelism value is not less than 1

Co-authored-by: Martin-Molinero <martin@quantconnect.com>
12207
2021-07-03 19:08:55 -03:00
Martin-Molinero 12b62f6ec9 Add organization id to packet (#5733)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
12204
2021-07-02 20:59:59 -03:00
Martin-Molinero 8d2455b629 Add BrokerageConcurrentMessageHandler (#5731)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
* Add BrokerageConcurrentMessageHandler

- Add Brokerage helper `BrokerageConcurrentMessageHandler` class to lock message stream
while executing an action, for example placing an order, adding unit tests.
- Binance will use new message handler

* Fix unit test
12199
2021-07-02 19:11:25 -03:00
Colton Sellers 171f0f19d5 MaximumOrderQuantity Bug Fix (#5727)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
* Implement solution with lightest changes possible

* Update regressions v1

* Adjust AlgorithmTradingTests

* Adjust PatternDayTradingMarginBuyingPowerModel tests

* Drop need to loop twice

* Adjust last unit test, with calculations included

* nit - comment fix

* Break out adjustment calculation to static function; add unit test

* Update Py regression

* Upgrade adjustment calculation to be smart enough to get us to target always

* nit - cleanup GetAmountToOrder

* Add license to test

* nit - comment fix

* cleanup GetAmountToOrder further

* Add additional test cases
12197
2021-07-02 18:52:15 -03:00
Martin-Molinero e5a50109b4 DownloaderDataProvider improvements (#5730)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
- Ignore margin files requests. Only provided by ApiDataProvider
- Reduce noise by LeanData.TryParse() call on failure
12196
2021-07-02 14:03:16 -03:00
Ronit Jain c8d13080a8 Indian Market support for backtesting and live deploys through Zerodha (#5710)
* added symbolData class to store exchange and token values of tickers

* support for India Market

(cherry picked from commit 5f629dcb9e72426dc7b560e782cb1fae72861574)

* removed local vscode workspace file

* support for india market instead of nse and other exchanges

* changed hardcoded india values to Market.India

* changed zerodha getcash fromm available to net

* addded edge case handoing with expections

* support for market info (nse, bse) for india market

* exchange info for EmitQuoteTick

* basic testing with c#

* c# algo

* c# testing

* live orders during market open success

* support orderproperties for exchange value for order placement

* added exceptional handling cases

* fix xml descriptions for the files

* fix zerodha-product-type in DefaultOrderProperties

* add basic template for india market

* fix orderProperites for default values

* fix for local data, python implementation not available

* fix access modifiers of SymbolData

* fix variable name case

* fix single check for exchange, call to base

* fix styling, redundent code and access modifers

* fix non static not callable from static

* fix static
2021-07-02 11:06:47 -03:00
Rohan Sharma 8d352b6318 feat: Improve error message from ObjectStore (#5729) 2021-07-02 10:37:37 -03:00
Martin-Molinero 00cd8947a8 Update bitfinex channel Id (#5728)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
12191
2021-07-01 21:42:17 -03:00
Gerardo Salazar c211d04798 Adjust AlgoSeek Futures price multipliers to quote/process prices in USD (#5725)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
* Adjust AlgoSeek Futures price multipliers to quote prices in USD

* Revert changes to AUP scaling

  * After a second review, seems that this contract isn't scaled.
    The contract multiplier differs from the NYMEX Aluminum Index's
    contract multiplier, and so does the minimum price variation.
    The minimum price fluctuation seems consistent with CME's
    quoted prices, which also claims the contract is quoted in USD.

* Fix futures contract multipliers for some scaled contracts
12189
2021-07-01 18:46:36 -03:00
Martin-Molinero 55195867a9 Reduce LTRH error log to debug (#5723)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
12183
2021-06-30 16:44:52 -03:00
Gerardo Salazar c9a3ad35e1 Fix Futures SymbolRepresentation disambiguation of ticker with limited year information (#5715)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
* Fixes bug where future converter processing includes invalid values

* Fix issue in SymbolRepresentation

* Fixup

* Empty commit

* Empty commit
12179
2021-06-29 17:37:06 -03:00
Martin-Molinero 0d45bf5101 Add composite DataProvider (#5714)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
- Add new CompositeDataProvider that will wrap multiple instance. Allows
  using for example the ApiDataProvider and a DownloaderDataProvider.
- Adjusting ProductJsonConverter after recent Modules addition
12176
2021-06-29 12:40:31 -03:00
Martin-Molinero 66552b49bd Add new DownloaderDataProvider (#5709)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
* Add new DownloaderDataProvider

- Moving LeanDataWrite and IDataDownloader to common project
- Add new BaseDataDownloaderDataProvider with concurrency helper method
- Add new DownloaderDataProvider which will use a IDataDownloader or
  IBrokerage implementation as data source

* Add support for downloading symbol chains data
12167 12168 12170 12171 12174 12175 12172
2021-06-28 15:56:10 -03:00
Martin-Molinero 0642f58bda Fix SEC downloader (#5711)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
12162
2021-06-28 11:24:23 -03:00
Colton Sellers c7e6c96933 Encode/Decode Extension Addition (#5708)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
* Implement Encode/Decode Base 64

* Add unit test
12157
2021-06-25 17:50:55 -03:00