tensortrade.orders.criteria.stop module

class tensortrade.orders.criteria.stop.Stop(direction, percent)[source]

Bases: tensortrade.orders.criteria.criteria.Criteria

An order criteria that allows execution when the quote price for a trading pair is above or below a specific price.

check(order, exchange)[source]
Return type:bool
class tensortrade.orders.criteria.stop.StopDirection[source]

Bases: enum.Enum

An enumeration.

DOWN = 'down'
UP = 'up'