basana.external.ccxt.orders¶
- class basana.external.ccxt.orders.OrderEvent(when, order)¶
Bases:
EventAn event for order updates.
- Parameters:
when (datetime) – The datetime when the event occurred. It must have timezone information set.
order (Order) – The order.
- class basana.external.ccxt.orders.Order(pair, raw)¶
- Parameters:
pair (Pair)
raw (dict)
- property amount: Decimal¶
The amount.
- property amount_filled: Decimal¶
The amount filled.
- property amount_remaining: Decimal¶
The amount remaining to be filled.
- property client_order_id: str | None¶
The client order id.
- property fill_price: Decimal | None¶
The average fill price.
Uses the exchange-reported
averageprice when available; otherwise it is computed asquote_amount_filled / amount_filled(a volume-weighted average), which may not be exact due to rounding.
- property id: str¶
The order id.
- property is_open: bool¶
True if the order is open, False otherwise.
- property limit_price: Decimal | None¶
The limit price.
- property operation: OrderOperation¶
The operation.
- property quote_amount_filled: Decimal¶
The amount filled in quote units.
- raw: dict¶
The raw value returned by CCXT.
- property stop_price: Decimal | None¶
The stop price.
- property type: str¶
The type of order.