asynctradier.common.security module

class asynctradier.common.security.Security(**kargs)[source]

Bases: object

Represents an ETB (Exchange Traded Bond) object.

symbol

The symbol of the ETB.

Type:

str

description

The description of the ETB.

Type:

str

type

The type of the ETB.

Type:

ETBType

exchange

The exchange where the ETB is traded.

Type:

str

to_dict()[source]

Converts the ETB object to a dictionary.

Returns:

A dictionary representation of the ETB object.

Return type:

dict

to_str()[source]

Converts the ETB object to a string representation.

Returns:

A string representation of the ETB object.

Return type:

str