mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 14:54:21 +01:00
Edit demos in examples/ folder to use lowercase property identifiers.
This commit is contained in:
@@ -19,7 +19,7 @@ class OrderBook(object):
|
||||
}
|
||||
|
||||
def update(self, symbol: str, data: TradingPairBook) -> None:
|
||||
price, count, amount = data.PRICE, data.COUNT, data.AMOUNT
|
||||
price, count, amount = data.price, data.count, data.amount
|
||||
|
||||
kind = (amount > 0) and "bids" or "asks"
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ class RawOrderBook(object):
|
||||
}
|
||||
|
||||
def update(self, symbol: str, data: TradingPairRawBook) -> None:
|
||||
order_id, price, amount = data.ORDER_ID, data.PRICE, data.AMOUNT
|
||||
order_id, price, amount = data.order_id, data.price, data.amount
|
||||
|
||||
kind = (amount > 0) and "bids" or "asks"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user