MCPcopy Create free account
hub / github.com/ccxt/ccxt / update

Method update

python/ccxt/async_support/base/ws/order_book.py:49–53  ·  view source on GitHub ↗
(self, snapshot)

Source from the content-addressed store, hash-verified

47 self['symbol'] = snapshot.get('symbol')
48
49 def update(self, snapshot):
50 nonce = snapshot.get('nonce')
51 if nonce is not None and self['nonce'] is not None and nonce < self['nonce']:
52 return self
53 self.reset(snapshot)
54
55# -----------------------------------------------------------------------------
56# overwrites absolute volumes at price levels

Callers 6

__init__Method · 0.45
fetchMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45
appendMethod · 0.45
appendMethod · 0.45

Calls 2

resetMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected