Edit demos in examples/ folder to use lowercase property identifiers.

This commit is contained in:
Davide Casale
2023-01-27 15:57:36 +01:00
parent d767e5dcfe
commit 6e96cda584
10 changed files with 20 additions and 21 deletions

View File

@@ -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"

View File

@@ -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"