Skip to content

Commit

Permalink
DOC: remove the stop-order references from the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lenak25 committed Oct 7, 2018
1 parent 86587f0 commit 30bdc33
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 20 deletions.
31 changes: 14 additions & 17 deletions catalyst/algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1432,7 +1432,7 @@ def order(self,
limit_price : float, optional
The limit price for the order.
stop_price : float, optional
The stop price for the order.
Not supported.
style : ExecutionStyle, optional
The execution style for the order.
Expand All @@ -1444,13 +1444,10 @@ def order(self,
Notes
-----
The ``limit_price`` and ``stop_price`` arguments provide shorthands for
The ``limit_price`` argument provide shorthands for
passing common execution styles. Passing ``limit_price=N`` is
equivalent to ``style=LimitOrder(N)``. Similarly, passing
``stop_price=M`` is equivalent to ``style=StopOrder(M)``, and passing
``limit_price=N`` and ``stop_price=M`` is equivalent to
``style=StopLimitOrder(N, M)``. It is an error to pass both a ``style``
and ``limit_price`` or ``stop_price``.
equivalent to ``style=LimitOrder(N)``. It is an error to pass both
a ``style`` and ``limit_price``.
Currently, orders must be done only with one ``quote_currency``
throughout all the algorithm.
Expand Down Expand Up @@ -1574,7 +1571,7 @@ def order_value(self,
limit_price : float, optional
The limit price for the order.
stop_price : float, optional
The stop price for the order.
Not supported.
style : ExecutionStyle
The execution style for the order.
Expand All @@ -1586,7 +1583,7 @@ def order_value(self,
Notes
-----
See :func:`catalyst.api.order` for more information about
``limit_price``, ``stop_price``, and ``style``
``limit_price``, and ``style``
See Also
--------
Expand Down Expand Up @@ -1820,7 +1817,7 @@ def order_percent(self,
limit_price : float, optional
The limit price for the order.
stop_price : float, optional
The stop price for the order.
Not supported.
style : ExecutionStyle
The execution style for the order.
Expand All @@ -1832,7 +1829,7 @@ def order_percent(self,
Notes
-----
See :func:`catalyst.api.order` for more information about
``limit_price``, ``stop_price``, and ``style``
``limit_price``, and ``style``
See Also
--------
Expand Down Expand Up @@ -1876,7 +1873,7 @@ def order_target(self,
limit_price : float, optional
The limit price for the order.
stop_price : float, optional
The stop price for the order.
Not supported.
style : ExecutionStyle
The execution style for the order.
Expand All @@ -1891,7 +1888,7 @@ def order_target(self,
``order_target`` takes into account open orders as well.
See :func:`catalyst.api.order` for more information about
``limit_price``, ``stop_price``, and ``style``
``limit_price``, and ``style``
See Also
--------
Expand Down Expand Up @@ -1939,7 +1936,7 @@ def order_target_value(self,
limit_price : float, optional
The limit price for the order.
stop_price : float, optional
The stop price for the order.
Not supported.
style : ExecutionStyle
The execution style for the order.
Expand All @@ -1952,7 +1949,7 @@ def order_target_value(self,
-----
See :func:`catalyst.api.order` for more information about
``limit_price``, ``stop_price``, and ``style``
``limit_price`` and ``style``
See Also
--------
Expand Down Expand Up @@ -1992,7 +1989,7 @@ def order_target_percent(self, asset, target,
limit_price : float, optional
The limit price for the order.
stop_price : float, optional
The stop price for the order.
Not supported
style : ExecutionStyle
The execution style for the order.
Expand All @@ -2005,7 +2002,7 @@ def order_target_percent(self, asset, target,
-----
See :func:`catalyst.api.order` for more information about
``limit_price``, ``stop_price``, and ``style``
``limit_price`` and ``style``
See Also
--------
Expand Down
6 changes: 3 additions & 3 deletions docs/source/appendix.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ Orders
.. autofunction:: catalyst.api.order_target_percent

.. autoclass:: catalyst.finance.execution.ExecutionStyle
:members:
.. :members:
.. autoclass:: catalyst.finance.execution.MarketOrder

.. autoclass:: catalyst.finance.execution.LimitOrder

.. autoclass:: catalyst.finance.execution.StopOrder
.. .. autoclass:: catalyst.finance.execution.StopOrder
.. autoclass:: catalyst.finance.execution.StopLimitOrder
.. .. autoclass:: catalyst.finance.execution.StopLimitOrder
.. autofunction:: catalyst.api.get_order

Expand Down

0 comments on commit 30bdc33

Please sign in to comment.