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: object

Represent an Order object.

Parameters:

**kwargs – Additional keyword arguments representing the order attributes.

id

The ID of the order.

Type:

int

type

The type of the order.

Type:

OrderType

symbol

The symbol of the order.

Type:

str

side

The side of the order.

Type:

OrderSide

quantity

The quantity of the order.

Type:

float

status

The status of the order.

Type:

str

duration

The duration of the order.

Type:

Duration

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:

OrderClass

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

legs

The legs of the order.

Type:

list[Order]