mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-03 01:58:14 +08:00
ef4f642e62
This patch lays the groundwork for a compute engine designed to facilitate construction of factor-based universe screening and portfolio allocation. It contains: A new module, `zipline.modelling`, containing entities that can be used to express computations as dependency graphs. Each node in such a graph is an instance of the base `Term` class, defined in `zipline.modelling.term`. Dependency graphs are executed by instances of `FFCEngine`, defined in `zipline.modelling.engine`. A new module, `zipline.data.ffc`, containing loaders and dataset definitions for inputs to the modelling API. New `TradingAlgorithm` api methods: `add_factor`, and `add_filter`. These methods can only be called from `initialize`, and are used to inform the algorithm that each day it should compute the given terms. Computed factor results are made available through a new attribute of the `data` object in `before_trading_start` and `handle_data`. Computed filter results control which assets are available in the factor matrix on each day.
64 lines
1.2 KiB
Plaintext
64 lines
1.2 KiB
Plaintext
# Testing
|
|
nose==1.3.7
|
|
nose-parameterized==0.5.0
|
|
nose-ignore-docstring==0.2
|
|
xlrd==0.9.4
|
|
|
|
# These are required by mock or its dependencies
|
|
MarkupSafe==0.23
|
|
Jinja2==2.7.3
|
|
funcsigs==0.4
|
|
Pygments==2.0.2
|
|
alabaster==0.7.6
|
|
babel==1.3
|
|
docutils==0.12
|
|
snowballstemmer==1.2.0
|
|
sphinx-rtd-theme==0.1.8
|
|
sphinx==1.3.1
|
|
pbr==1.3.0
|
|
|
|
mock==1.3.0
|
|
|
|
# Temp Directories for testing
|
|
testfixtures==4.1.2
|
|
|
|
# Linting
|
|
|
|
flake8==2.4.1
|
|
mccabe==0.3.1
|
|
# Note: Old version of pep8 required by flake8 2.4.1
|
|
pep8==1.5.7
|
|
# Note: Old version of pyflakes required by flake8 2.4.1
|
|
pyflakes==0.8.1
|
|
|
|
# Documentation Conversion
|
|
|
|
pyandoc==0.0.1
|
|
docopt==0.6.2
|
|
numpydoc==0.5
|
|
mistune==0.7
|
|
|
|
# Example scripts that are run during unit tests use the following:
|
|
|
|
# Required by tornado
|
|
backports.ssl-match-hostname==3.4.0.2;python_version<'3.0'
|
|
certifi==2015.4.28
|
|
|
|
# tornado and pyparsing are required by matplotlib
|
|
tornado==4.2.1
|
|
pyparsing==2.0.3
|
|
|
|
matplotlib==1.4.3
|
|
|
|
Markdown==2.6.2
|
|
|
|
# This --allow syntax is for compatibility with pip >= 1.5
|
|
# However, this is backwards incompatible change, since previous
|
|
# versions of pip do not support that flag.
|
|
TA-Lib==0.4.9
|
|
|
|
# Checking for old PIP packages
|
|
futures==3.0.3
|
|
requests-futures==0.9.5
|
|
piprot==0.9.1
|