Commit Graph

74 Commits

Author SHA1 Message Date
Stefano Raggi f9de571521 Fix history request data type with Tick data and non-Tick resolution 2017-04-19 02:23:17 +02:00
Stefano Raggi dad6d3282d Replace Obsolete attributes with Error message for FX and CFD 2017-02-22 16:14:16 +01:00
Stefano Raggi ce38515446 Obsoleted History methods returning IEnumerable<TradeBar>
Non-generic history methods returning IEnumerable<TradeBar> have been marked as obsolete because they return an empty result when called with Forex and CFD security types.

The recommended replacements are their generic equivalents, using TradeBar or QuoteBar data type arguments, depending on the security type.
2017-02-20 23:53:49 +01:00
Jared 685c0c4c25 Merge pull request #758 from andrewhart098/history-request-by-sec-type
History request by security type
2017-02-20 12:26:44 -05:00
Andrew f1e38f8fe4 Added test to ensure QuoteBars are properly seeded 2017-02-20 12:17:26 -05:00
Stefano Raggi 8f3181e621 Fixed data type bug in CreateHistoryRequest
This method is returning typeof(TradeBar) instead of typeof(QuoteBar) for Forex history requests
2017-02-20 16:01:40 +01:00
Andrew b413f95b3c Set proper security type when seeding a new security price 2017-02-17 17:03:01 -05:00
Andrew Hart 544452853b QCAlgorithm.History.GetLastKnownPrice does not issue history request for Cacnonical securities
QCAlgorithm.History.GetLastKnownPrice sets the securityType on the history request.
2017-01-06 15:56:40 -05:00
Stefano Raggi 8af8a74a55 Use Minute as the minimum resolution in GetLastKnownPrice 2016-12-09 17:52:10 +01:00
Andrew Hart d81b436b30 Added BrokerageModelSecurityInitializerTests
Renamed ISeedSecurity GetLastData to GetSeedData

Renamed QCAlgorithm.History.GetSingleBarHistory to GetLastKnowPrice

Minor Style refactor
2016-12-01 11:55:48 -05:00
Andrew Hart 54df455813 Added ISecuritySeeder to seed security prices when securities are created
FuncSecuritySeeder implements this new interface and is used in BrokerageModelSecurityInitializer to seed new securities with a price when they are created. FuncSecuritySeeder uses a new method,  GetSingleBarHistory, in QCAlgorithm.History to get the last price from the history provider.
2016-12-01 08:37:04 -05:00
Michael Handschuh 591f6b2127 Use IBaseData in type constraints
Refactors existing consolidators, indicators, and helper methods to depend on
IBaseData instead of BaseData. These updates also defines an IBaseDataBar to
act as an abstraction point between TradeBar and QuoteBar.
2016-11-09 09:20:16 -05:00
Michael Handschuh a44ce9f2ab Remove single subscription assumption from history impl
When this was originally written, we were assuming one subscription per security.
This removes that assumption and tries to find subscriptions matching the request
2016-04-12 19:06:43 -04:00
Michael Handschuh 2ad63429b7 Memoize enumerables returned via the history API 2016-04-12 19:06:39 -04:00
snugs 2b3c3973c9 Fixes custom data history bug introduced via e4f9902 2015-12-02 15:37:33 -05:00
snugs 6c17128eed Adds QCAlgorithm.SetWarmUp alias 2015-11-23 20:13:42 -05:00
snugs 9e660ffcbe Remove usages of Symbol implicits from non-algorithm projects 2015-11-18 18:15:31 -05:00
Stefano Raggi 7687411f0b Fixed History bug with Security.Resolution=Tick 2015-11-17 12:18:41 -05:00
snugs 224366f734 Fixes tz bug in SetWarmup(barCount)
We were passing UTC to a function expecting algo tz -- long term should stop using DateTime :/
2015-11-03 14:36:57 -05:00
snugs d7520d2a6a Remove explicitly implemented IAlgorithm members
It seems the IronPython engine had a hard time resolving explicit interface
implementations, so we'll just remove the explcitness. It was originally provided
to coax algorithm writers to not directly use the provider due to its API.
2015-09-28 15:07:16 -04:00
snugs f3f27d8403 Prevent future history requests 2015-09-23 21:21:08 -04:00
snugs 6bf9cc0f2a Fix duplicate tz application in History API impls 2015-09-23 20:26:22 -04:00
snugs 57f223d2b0 Adds missing History API method 2015-09-23 20:12:01 -04:00
snugs fbc6c4e4f2 Moved History and warmup API methods into QCAlgorithm.History.cs 2015-09-23 19:11:49 -04:00