Commit Graph

12 Commits

Author SHA1 Message Date
Adalyat Nazirov f4679785a5 Pass command line parameters values as string (#4819)
* avoid preliminary typing command lines arguments

* unit tests: Config.Get can parse and cast values

* unit tests: parse command line args and return string values

* unit test: parameter attribute converter

* merge&parse unit test
2020-10-06 10:19:56 -03:00
Martin Molinero 889fc0ce68 Fix config unit test 2020-04-27 19:39:18 -03:00
Adam May 713bc9df3b Fix unit config tests by setting config back to default 2020-03-05 05:16:50 +11:00
Adam May 381105b1df Have Config.Write() refer to config being used. 2020-03-04 15:47:36 +11:00
Stefano Raggi d3f5e115e0 Add missing Invariant usages in alpha models and unit tests 2019-10-01 11:00:04 +02:00
snugs 02c18b3d2d Fixes Config.Flatten, was mutating input object 2015-12-31 12:15:55 -05:00
snugs 01a3ebfa11 Fixes ConfigTests.FlattenTest 2015-12-29 13:26:59 -05:00
snugs f2b5beb660 Adds Config.Flatten 2015-12-29 13:00:34 -05:00
snugs 3fa7642128 Improve Config.GetValue<T>, includes static Parse
The previous impl had a restriction on types that implement IConvertible
This restriction has been lifted and another step added, this time we
search for a static function of the form Type.Parse(string) and if
found invoked using the value from configuration
2015-10-30 15:04:39 -04:00
snugs fbfb0515bb Update Config.Set to respect environments via dot pathing
For example, Config.Set("backtesting.live-mode", "false") will set the live-mode value on the backtesting environment
2015-06-23 12:14:22 -04:00
snugs 51aba52b6c Use JObject to store config in memory
Updated standard configuration to show usage of environments and preload some for tradier/interactive live trading
2015-06-17 22:34:06 -04:00
snugs 05d42175a4 Add environments to configuation, to make it easier to switch between live/backtesting modes 2015-06-17 22:34:00 -04:00