Commit Graph

26 Commits

Author SHA1 Message Date
Stefano Raggi db942e0d2e Zero volume out in fill forward TradeBars 2018-09-25 22:29:53 +02:00
Michael Handschuh 57affafdc2 Implement 'live' factor files
Adds reference price to dividend/split
Adds GetSplitsAndDividends to FactorFile
Adds Apply methods to FactorFile/FactorFileRow
Updates factor files to include reference prices
2018-08-14 17:58:44 -04:00
Stefano Raggi 508e63af4d Update Bar types Volume and Bid/AskSize from long to decimal
This PR is another required step towards crypto-currency support.
2017-06-26 21:14:55 +02:00
Andrew Hart 4121856e80 Handle subscription errors from server in ApiWebSocketConnection 2016-11-30 08:27:35 -05:00
Andrew Hart 505ebb947a ApiWebSocketConnection does not use seperate thread for websocket 2016-11-07 18:37:15 -05:00
snugs d854769e9b Convert raw data time to exchange time in Reader methods 2015-12-01 12:20:06 -05:00
snugs ef4e3f5ab5 Clean up warnings from bad pragma comments 2015-11-19 19:46:36 -05:00
snugs d9dcd9b9aa Clean up Obsolete compiler warnings 2015-11-18 13:31:29 -05:00
snugs b2d96bdfa0 Fixes bug in TradeBar.Update and QuoteBar.Update
The issue here was if we initialized with a default instance (all zeros) then
the Low would be forever zero.

In it's new form we use an initialized flag to determine whether or not the bar
has been seeded, and if it hasn't been seeded yet, seed OHLC with the current
data
2015-11-05 13:30:51 -05:00
snugs f4c3e5746f BaseData.Update now includes bidSize and askSize
Removed copied functions from TradeBar.cs - replaced with NotImplementedException
    - These functions relied on QuoteBar.OHLC being writeable, now they're read only

QuoteBar.Clone - fix object reference bug
2015-10-31 18:48:07 -04:00
snugs e1938baafe Clean up using directives 2015-09-01 22:17:35 -04:00
snugs df79ce30c2 Adds the Symbol type
This includes updating all usages of symbol as a security identifier to use the new type.
The type includes a unique field, SID, as well as the current ticker's value. This allows
for consistent addressability while also allowing the ticker to evolve over time with the
mapping changes.

Effort was made to maintain compile and runtime backwards compatibility.
2015-09-01 22:17:10 -04:00
snugs 4bc2092d8c Adds OnData(SymbolChangedEvents) handler 2015-08-25 21:22:43 -04:00
snugs bbacf2b674 Remove remaining /** banners 2015-07-09 16:18:17 -04:00
QuantConnect fde0cbed3a Strip out block quote section header comments 2015-06-13 16:04:27 -04:00
snugs 44a38f3e1d Updates LiveTradeDataFeed to allow custom data with remote files 2015-06-11 17:34:54 -04:00
snugs 96396c676a OBSOLETES:: BaseData.Reader and BaseData.GetSource
The existing method signatures have been made obsolete in favor of something slightly simpler and more deterministic.
The new methods accept a bool isLiveMode flag instead of the DataFeedEndpoint.
The GetSource method returns a new type: SubscriptionDataSource, which combines the source string and the SubscriptionTransportMedium.

Existing sub-types of BaseData have been updated with the new signatures.  IBaseData has not been touch as it is mostly unused by LEAN infrastructure.
2015-06-11 17:34:53 -04:00
snugs 89b6e98af8 Fixes warnings mostly relating to xml comments
Also cleans up some block comments

Via PR#72 - thanks @ammachado!
2015-05-13 10:56:47 -04:00
bizcad bed1941b77 issue-79/Assure-Sell-quantity-is-negative 2015-05-09 19:18:30 -07:00
snugs 49b398f8ff DataStream sync by end of bar
Adds EndTime to BaseData
Adds Period to TradeBar
Now filling data forward on days missing files/data
Some performance enhancements
Removed sorted dictonary in DataStream/AlgorithmManager

We round down fill forward data in the data stream since if we were to perform this in the data feed we would continually produce data at the same time and it would all go into the algorithm at once.
2015-05-01 19:23:57 -04:00
snugs 6fd357b710 Adds support for dividends and splits
Updates SubscriptionDataReader to use IStreamReader
Adds FactorFile and MapFile helpers
Adds support for Raw, Adjusted, and TotalReturn data normalization and portfolio application
2015-04-23 20:39:59 -04:00
snugs 3af7d5ed43 Adds firing of dividend events 2015-04-23 14:31:15 -04:00
snugs 4078d805fb Allows fill forward custom data-testing
Includes new AddData<T> overload to accept fillforward and leverage parameters
Moved the clone implementation in BaseData to ObjectActivator
Added some test BaseData types that can be used as custom data but just patch through to default data locations
2015-01-30 13:11:33 -03:00
snugs 522d5591be Adds FakeLiveQueueHandler to make for easier local live debugging
Also includes some performance tweaks to sleep certain tight looped threads
Also includes changes to mark data as fill-forward via Clone(bool fillForward), BaseData.IsFillForward property
2015-01-29 22:37:16 -05:00
snugs 733cf998c6 Remove is qc data
Removing the isQcData flags allowed better support for consistency between different data types. This has a knock-on effect of allowing custom data to be fillforward and loaded from a file system.
2015-01-25 22:47:38 -03:00
Jared Broad b3de520915 Initial commit 2015-01-12 12:03:33 -03:00