basana.external.binance.user_data¶
- class basana.external.binance.user_data.Event(when, json)¶
- Parameters:
when (datetime)
json (dict)
- json: dict¶
The JSON representation.
- when: datetime¶
The datetime when the event occurred.
- class basana.external.binance.user_data.OrderEvent(when, json)¶
An event for order updates.
- Parameters:
when (datetime) – The datetime when the event occurred. It must have timezone information set.
order_update – The order update.
json (dict)
- json: dict¶
The JSON representation.
- order_update: OrderUpdate¶
The order update.
- when: datetime¶
The datetime when the event occurred.
- class basana.external.binance.user_data.OrderUpdate(json)¶
- Parameters:
json (dict)
- property amount: Decimal¶
The amount.
- property amount_filled: Decimal¶
The cumulative amount filled.
- property client_order_id: str¶
The client order id.
- property fees: Dict[str, Decimal]¶
The fees.
- property fill_price: Decimal | None¶
The fill price.
- property id: str¶
The order id.
- property is_open: bool¶
True if the order is open, False otherwise.
- json: dict¶
The JSON representation.
- property limit_price: Decimal | None¶
The limit price.
- property operation: OrderOperation¶
The operation.
- property order_list_id: str | None¶
The order list id.
- property quote_amount: Decimal | None¶
The amount set in quote units.
- property quote_amount_filled: Decimal¶
The cumulative amount filled in quote units.
- property status: str¶
The status.
Check Order status in https://developers.binance.com/docs/binance-spot-api-docs/enums#order-status-status.
- property stop_price: Decimal | None¶
The stop price.
- property symbol: str¶
Symbol.
- property time_in_force: str | None¶
The time in force.
Check Time in force in https://developers.binance.com/docs/binance-spot-api-docs/enums#time-in-force-timeinforce.
- property type: str¶
The type of order.
Check Order types in https://developers.binance.com/docs/binance-spot-api-docs/enums#order-types-ordertypes-type.