basana.external.bitstamp.trades¶
- class basana.external.bitstamp.trades.TradeEvent(when, trade)¶
Bases:
Event- Parameters:
when (datetime)
trade (Trade)
- class basana.external.bitstamp.trades.Trade(pair, json)¶
- Parameters:
pair (Pair)
json (dict)
- property amount: Decimal¶
The amount.
- property buy_order_id: str¶
The buy order id.
- property datetime: datetime¶
The datetime when the trade occurred.
- property id: str¶
The trade id.
- json: dict¶
The JSON representation.
- property operation: OrderOperation¶
The operation.
- property price: Decimal¶
The price.
- property sell_order_id: str¶
The sell order id.