Files
quantconnect--lean/Algorithm.Python
AlexCatarino b322dec666 Modifies the pandas dataframe created from a history request
History requests should not return a dictionary with a dataframe, but a multi-index dataframe.
It is more common to work with multi-index dataframes rather than multi-column.
2017-08-18 18:23:11 +01:00
..
2015-09-01 22:17:35 -04:00
2017-05-14 15:11:57 +01:00
2017-04-11 17:09:44 +01:00
2016-02-12 11:07:53 -05:00
2015-09-01 22:17:35 -04:00

QuantConnect Python Algorithm Project:

Set config:

"algorithm-type-name": "BasicTemplateAlgorithm",
"algorithm-language": "Python",
"algorithm-location": "../../../Algorithm.Python/BasicTemplateAlgorithm.py",

Linux

To use Lean-Python on linux you'll need to install Python:

sudo apt-get install -y python-pip

Please checkout the command to install the whitelisted packages here.

Windows

  1. Install Python 2.7

  2. Add an entry to the system path variable (C:\Python27)

  3. Rename Lean\packages\QuantConnect.pythonnet._version_\build\Python.Runtime.win to Lean\packages\QuantConnect.pythonnet._version_\lib\Python.Runtime.dll

macOS

By default, macOS has python installed.

Rename Lean\packages\QuantConnect.pythonnet._version_\build\Python.Runtime.mac to Lean\packages\QuantConnect.pythonnet._version_\lib\Python.Runtime.dll

pandas

Install pandas and its dependencies.