Commit Graph

153 Commits

Author SHA1 Message Date
AlexCatarino f6aa31643c Updates pythonnet package
This new pythonnet package makes available the latest version from pythonnet master branch and includes modifications to enable charting in Lean for python.

The dockerfile to create images for the cloud is updated to reflect the package update and adds keras and tensorflow
2017-06-02 10:45:45 +01:00
AlexCatarino 4eb80e78e9 Upgrades pythonnet to version 1.0.2.1
Previous version was not matching methods with nullables accordingly
2017-05-26 01:16:54 +01:00
Jared 1d0644b7a4 Merge pull request #936 from AlexCatarino/py-time
Updates python framework to support python datetime
2017-05-23 19:05:01 -04:00
AlexCatarino 18d83fb8ec Updates python framework to support python datetime
Updates nuget package to support conversion from C# DateTime to python datetime.
Updates algorithms to reflect this change.
2017-05-23 13:40:26 +01:00
Stefano Raggi 6d47ab94b8 Add AlgorithmSettings class and IAlgorithm.Settings property 2017-05-22 20:50:23 +02:00
Stefano Raggi b657c0d663 Fix speed issue in AlgorithmPythonWrapper 2017-05-21 22:40:55 +02:00
Anshul e7a3a2f3bd Fixes 5 warnings with code CS1574 2017-05-18 17:05:09 +05:30
jaredbroad 469abd42cf Shuffle PyUtil to build-none, common project 2017-04-30 17:44:43 -04:00
jaredbroad 2ac57081a6 Fix static activator reuse and made PyUtils copy to bin directory 2017-04-30 17:17:09 -04:00
jaredbroad b2e8e61187 Copied python module into bin to import 2017-04-30 16:08:15 -04:00
jaredbroad fd64b05db8 Apply sed to use UC4 by default (linux), windows should use UC4
sed -i -e 's/UCS2/UCS4/' Common/QuantConnect.csproj

sed -i -e 's/UCS2/UCS4/' Algorithm/QuantConnect.Algorithm.csproj

sed -i -e 's/UCS2/UCS4/' Algorithm.CSharp/QuantConnect.Algorithm.CSharp.csproj

sed -i -e 's/UCS2/UCS4/' AlgorithmFactory/QuantConnect.AlgorithmFactory.csproj
2017-04-30 14:19:09 -04:00
jaredbroad cd56b5323d Tidy up the local loading of pyc files 2017-04-30 13:10:27 -04:00
AlexCatarino 40e570b2cb Updates QuantConnect.Pythonnet package
New version include instructions to copy nPython.exe to bin directories
2017-04-11 17:05:29 +01:00
AlexCatarino 8545f50bc1 TryCreatePythonAlgorithm preference for compiled python
TrtCreatePythonAlgorithm looks for compiled python (*.pyc) before it fetches python scripts (*.py). If we have used the build script, we have the compiled objects and make a faster load.
2017-04-11 12:12:57 +01:00
AlexCatarino 479fadea55 Updates QuantConnect.Pythonnet nuget package
In the new version, it was included nPython.exe that compiles python scripts.
2017-04-11 12:08:38 +01:00
jaredbroad 0f40b0df05 Merge remote-tracking branch 'origin/master' into pythonnet 2017-03-26 10:14:03 -04:00
jaredbroad fe9a9cc44e Refactor TryCreateAlgorithmInstanceWithIsolator to take job and set ram limit 2017-02-17 09:34:34 -05:00
jaredbroad 19d47a5ddb Explicitly set ram allocation for creating algorithm to 1024mb 2017-02-16 18:20:05 -05:00
AlexCatarino 9774af9adc Custom Data for Python Support 2017-02-09 17:48:50 -02:00
AlexCatarino 914475e26d PythonWrappers namespacing to match the project/directory structure
- PythonWrappers namespacing to match the project/directory structure
- Adds null checks to SetHistoryProvider and SetRunTimeError
2017-01-12 18:12:59 -02:00
AlexCatarino 74194d6aca Few tweaks:
- Uses QuantConnect.pythonnet nuget pachage
- Python file location loaded from config
- Remove unnecessary if-null in QCAlgorithm's SetHistoryProvider and SetRunTimeError
2017-01-12 14:21:39 -02:00
AlexCatarino 437b435282 Updates pythonnet nuget package to latest version
The latest version included "targets" that enables the inclusion of Python.Runtime.dll.config into the output directory automatically from the nuget package.
2017-01-11 16:01:49 -02:00
AlexCatarino 68fd8a4120 New Python Support Framework
Initial commit
2017-01-10 16:12:19 -02:00
AlexCatarino 51c33f876f User-frieldly warning about algorithm name
Fixes warning message.
Ref.: issue #456 and #476
2016-07-12 19:21:30 -03:00
AlexCatarino 648e4b1c7d User-frieldly warning misspecification of algorithm name
Defines a new resolver function to return null instead of throwing so that Loader can return a user-friedly error message.
2016-07-11 10:56:32 -03:00
jaredbroad aed21365f5 Fixed issue when no python algorithm name given 2016-06-28 14:07:10 -04:00
jaredbroad dd8a6442b6 Tidy unneccessary TravisCI build configuration 2016-04-19 19:51:51 -04:00
jaredbroad e93006b6a5 Added Travis CI release configuration and disabled views from building in linux 2016-04-15 12:44:37 -04:00
AlexCatarino a3ddbb8a55 Python algos in a file with the algo name like C#
build.bat (batch.sh in Linux) includes the code inside the file with the desired algorithm (set in config.json by "algorithm-type-name") in the python DLL (QuantConnect.Algorithm.Python.dll) via IronPython.
In the AlgorithmFactory,  Loader.TryCreatePythonAlgorithm imports the module with the algorithm name instead of "main".

Closes #289
2016-02-15 17:21:18 -05:00
Michael Handschuh 40d47d5523 Set c# language version to 5.0 2016-01-29 17:41:20 -05:00
Michael Handschuh 2e62007876 Removes unused methods from Loader 2016-01-19 17:57:07 -05:00
snugs be950e756a Log full errors/stack traces
Many places in the code used Log.Error(err.Message) or equivalent which
strips out all the really useful information, such as the stack trace
and inner exceptions. Using Log.Error(exception) is the correct way to
log an error as it will correctly write all the message details, also,
by passing the full Exception object we can improve the logging in this
one place and all call sites will automatically benefit from the improvements
2015-12-02 12:35:33 -05:00
snugs 7c2261f172 Removed warnings as errors for obsoletes
This is causing issues for mono users, seems to be something different
in the compilers (mono vs msft) with method resolution in ambiguos situations.
2015-11-24 18:56:21 -05:00
snugs 0ae568d980 Remove warnings as errors from Release
This is a temporary fix until we figure out why travis complains about implicits but visual studio doesn't
2015-11-23 15:45:24 -05:00
snugs 7689ae505d Update warnings as error 612 (obsolete w/ no msg) 2015-11-19 20:36:59 -05:00
snugs b6603ffd01 Set Obsolete warnings as errors 2015-11-18 13:42:40 -05:00
snugs 5d4aadbb9c Removes QuantConnect.Interfaces
This project was collapsed into QuantConnect.csproj.
This will allow code in the common project to use the interfaces abstractions
2015-11-04 13:18:59 -05:00
snugs e1938baafe Clean up using directives 2015-09-01 22:17:35 -04:00
QuantConnect 81f67ea281 Python bug fixes. Added ref to std lib 2015-07-13 20:43:15 -04:00
QuantConnect a2ef5d14e5 Version bump and additional logging 2015-07-12 17:38:21 -04:00
QuantConnect 98dc0e37b7 Build script and language config for Iron python based algorithms 2015-07-05 21:00:01 -04:00
snugs 5d8d7bcf71 Fixes debugging issue on windows
This was caused by trying to load a pdb that was in the executable's base directory
2015-06-24 10:25:05 -04:00
snugs c8b4e6bdba Remove config 'local' value
This change includes addition of the 'tradier-save-tokens' config value used to write tradier access/refresh tokens to disk
2015-06-22 19:05:04 -04:00
QuantConnect 26e8cf4a21 Rework liquidity provider & country code to generic Market class, commented out python buggy code 2015-06-18 20:18:51 -04:00
QuantConnect 6b035d323c Converted Isolator to be an instance based class 2015-06-14 12:31:26 -04:00
QuantConnect fde0cbed3a Strip out block quote section header comments 2015-06-13 16:04:27 -04:00
snugs d7318aab1b Better log when loading debug info 2015-05-22 14:06:20 -04:00
snugs a62b50caa9 Don't load debug symbols when local, they'll be in bin already 2015-05-20 14:49:00 -04:00
snugs 4eeb61911f Load debug information from setup handlers 2015-05-20 12:13:16 -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