tensortrade.instruments.quantity module

class tensortrade.instruments.quantity.Quantity(instrument, size=0, path_id=None)[source]

Bases: object

An size of a financial instrument for use in trading.

free()[source]
instrument
Return type:Instrument
is_locked
Return type:bool
lock_for(path_id)[source]
memo
Return type:str
path_id
Return type:str
reason(memo)[source]
size
Return type:float
static validate(left, right)[source]
Return type:Tuple[Quantity, Quantity]