Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
fredfortier committed Feb 9, 2018
2 parents 511af79 + dcdb3d9 commit bc58640
Show file tree
Hide file tree
Showing 12 changed files with 214 additions and 223 deletions.
10 changes: 5 additions & 5 deletions catalyst/algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ def get_environment(self, field='platform'):
The field to query. The options have the following meanings:
arena : str
The arena from the simulation parameters. This will normally
be ``'backtest'`` but some systems may use this distinguish
be ``backtest`` but some systems may use this distinguish
live trading from backtesting.
data_frequency : {'daily', 'minute'}
data_frequency tells the algorithm if it is running with
Expand All @@ -954,7 +954,7 @@ def get_environment(self, field='platform'):
The platform that the code is running on. By default this
will be the string 'catalyst'. This can allow algorithms to
know if they are running on the Quantopian platform instead.
* : dict[str -> any]
\* : dict[str -> any]
Returns all of the fields in a dictionary.
Returns
Expand Down Expand Up @@ -1032,7 +1032,7 @@ def fetch_csv(self,
argument is the name of the column in the preprocessed dataframe
containing the symbols. This will be used along with the date
information to map the sids in the asset finder.
**kwargs
\*\*kwargs
Forwarded to :func:`pandas.read_csv`.
Returns
Expand Down Expand Up @@ -1156,7 +1156,7 @@ def record(self, *args, **kwargs):
Parameters
----------
**kwargs
\*\*kwargs
The names and values to record.
Notes
Expand Down Expand Up @@ -1273,7 +1273,7 @@ def symbols(self, *args):
Parameters
----------
*args : iterable[str]
\*args : iterable[str]
The ticker symbols to lookup.
Returns
Expand Down
14 changes: 6 additions & 8 deletions catalyst/utils/run_algo.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class _RunAlgoError(click.ClickException, ValueError):
----------
pyfunc_msg : str
The message that will be shown when called as a python function.
cmdline_msg : str
The message that will be shown on the command line.
"""
Expand Down Expand Up @@ -416,7 +417,8 @@ def run_algorithm(initialize,
auth_aliases=None,
stats_output=None,
output=os.devnull):
"""Run a trading algorithm.
"""
Run a trading algorithm.
Parameters
----------
Expand Down Expand Up @@ -458,7 +460,7 @@ def run_algorithm(initialize,
This argument is mutually exclusive with ``data``.
default_extension : bool, optional
Should the default catalyst extension be loaded. This is found at
``$ZIPLINE_ROOT/extension.py``
``$CATALYST_ROOT/extension.py``
extensions : iterable[str], optional
The names of any other extensions to load. Each element may either be
a dotted module path like ``a.b.c`` or a path to a python file ending
Expand All @@ -469,12 +471,8 @@ def run_algorithm(initialize,
environ : mapping[str -> str], optional
The os environment to use. Many extensions use this to get parameters.
This defaults to ``os.environ``.
live: execute live trading
exchange_conn: The exchange connection parameters
Supported Exchanges
-------------------
bitfinex
live : bool, optional
Execute algorithm in live trading mode.
Returns
-------
Expand Down
Loading

0 comments on commit bc58640

Please sign in to comment.