General fixups

This commit is contained in:
Jacob Plaster
2018-12-14 16:02:33 +00:00
parent c1aea594a8
commit 1cb33692a0
4 changed files with 39 additions and 10 deletions

View File

@@ -12,6 +12,12 @@ class OrderBook:
self.asks = []
self.bids = []
def get_bids(self):
return self.bids
def get_asks(self):
return self.asks
def updateFromSnapshot(self, data):
# [[4642.3, 1, 4.192], [4641.5, 1, 1]]
for order in data: