basana.external.bitstamp.orders

class basana.external.bitstamp.orders.OrderEvent(when, type, order)

Bases: Event

An event for order updates.

Parameters:
  • when (datetime) – The datetime when the event occurred. It must have timezone information set.

  • type (str) – The type of event. One of order_created, order_changed or order_deleted.

  • order (Order) – The order.

order: Order

The order.

type: str

The event type. One of order_created, order_changed or order_deleted.

class basana.external.bitstamp.orders.Order(pair, json)
Parameters:
  • pair (Pair)

  • json (dict)

property amount: Decimal

The order amount.

property amount_filled: Decimal

The amount filled.

property id: str

The order id.

json: dict

The JSON representation.

property operation: OrderOperation

The operation.

pair: Pair

The trading pair.

property price: Decimal

The order price.