asynctradier.common.order module
This module defines the Order class, which represents an order in a trading system.
- class asynctradier.common.order.Order(**kwargs)[source]
Bases:
objectRepresent an Order object.
- Parameters:
**kwargs – Additional keyword arguments representing the order attributes.
- id
The ID of the order.
- Type:
int
- symbol
The symbol of the order.
- Type:
str
- quantity
The quantity of the order.
- Type:
float
- status
The status of the order.
- Type:
str
- avg_fill_price
The average fill price of the order.
- Type:
float
- exec_quantity
The executed quantity of the order.
- Type:
float
- last_fill_price
The last fill price of the order.
- Type:
float
- last_fill_quantity
The last fill quantity of the order.
- Type:
float
- remaining_quantity
The remaining quantity of the order.
- Type:
float
- create_date
The creation date of the order.
- Type:
str
- transaction_date
The transaction date of the order.
- Type:
str
- class_
The class of the order.
- Type:
- option_symbol
The option symbol of the order.
- Type:
str
- price
The price of the order.
- Type:
float
- number_of_legs
The number of legs of the order.
- Type:
int