asynctradier.common.event module

class asynctradier.common.event.Event(**kwargs)[source]

Bases: object

Represents an event.

amount

The amount of the event.

Type:

float

date

The date of the event.

Type:

str

type

The type of the event.

Type:

EventType

description

The description of the event.

Type:

str

commision

The commission of the event.

Type:

float

price

The price of the event.

Type:

float

quantity

The quantity of the event.

Type:

float

symbol

The symbol of the event.

Type:

str

trade_type

The type of trade.

Type:

TradeType

to_dict()[source]

Converts the Event object to a dictionary.

Returns:

A dictionary representation of the Event object.

Return type:

dict