Commit Graph

12 Commits

Author SHA1 Message Date
Martin Molinero d9195317e3 C# decimal to Python conversion
- This commit is related to PR 19 in QC/pythonnet
   - C# decimal will be cast to C# double and converted into python
   float
- Adding new `decimal.py` into the python algorithm project. This is
required for backwards compatibility with users performing operations
over expected decimal types (like `Price`)
- Updating two python regression test algorithms using custom python
execution models to be aware and ignore floating point precision errors
when handling order sizing.
2019-01-15 12:13:42 -03:00
Stefano Raggi 5c9b81cef1 Fix Python initialization and imports for multiple tests 2018-10-02 20:28:13 +02:00
AlexCatarino 58603b1035 Fix method call name in python script 2018-08-07 19:31:22 +01:00
AlexCatarino cc1c643a78 Fixes NoMethodMatchPythonExceptionInterpreterTests
Changes the method call that should fail to `AddCash(String)`.
2018-08-07 19:22:41 +01:00
Stefano Raggi be47d60fa7 Fix CustomDataRegressionAlgorithm failing test 2018-06-14 11:44:28 +02:00
AlexCatarino 30263b2a51 Implements catch-all Python Exception Interpreter
Implements `PythonExceptionInterpreter` that works as a "catch-all" exception intrepreter for `PythonException`. Since it can interpret more specific python exceptions that are already covered by other interpreters, its `Order` is set to `int.MaxValue` to be the last to be tested.
2018-03-12 22:32:26 +00:00
AlexCatarino 7fc8886803 Implements NoMethodMatchPythonExceptionInterpreter
Users often use the wrong type of method paramenters, for instance, a float instead of an integer.
2018-03-06 12:10:16 +00:00
AlexCatarino 1b658f8959 Adds tests for OnEndOfDay particularities in python algorithms 2018-03-03 00:04:46 +00:00
AlexCatarino 078cfd685b Adds tests for python custom data 2018-03-01 20:08:03 +00:00
AlexCatarino e3cda2afe8 Improves Plot(string,PyObject) logic and test
In this new approach, we test whether the argument is a Indicator before we try to plot it. If fail, throws a ArgumentException error.
2018-02-28 18:46:00 +00:00
AlexCatarino bd18dfc2f8 Adds test for new Plot overload
This text is ignore since Travis does have pythonnet installed.
2018-02-27 22:11:07 +00:00
QuantConnect 6064662514 Improves SetHolding implementation and provides tests 2015-07-21 11:14:19 -04:00