USDollarAmount#

tradeexecutor.state.types.USDollarAmount class.

class USDollarAmount[source]#

Bases: float

__init__()#

Methods

__init__()

as_integer_ratio()

Return integer ratio.

conjugate()

Return self, the complex conjugate of any float.

fromhex()

Create a floating-point number from a hexadecimal string.

hex()

Return a hexadecimal representation of a floating-point number.

is_integer()

Return True if the float is an integer.

Attributes

imag

the imaginary part of a complex number

real

the real part of a complex number