b322dec666
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.
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
-
Add an entry to the system path variable (C:\Python27)
-
Rename
Lean\packages\QuantConnect.pythonnet._version_\build\Python.Runtime.wintoLean\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.