MCPcopy Index your code
hub / github.com/ccxt/ccxt / append

Method append

python/ccxt/async_support/base/ws/cache.py:89–100  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

87 return new_updates_value
88
89 def append(self, item):
90 self._deque.append(item)
91 if self._clear_all_updates:
92 self._clear_all_updates = False
93 self._clear_updates_by_symbol.clear()
94 self._all_new_updates = 0
95 self._new_updates_by_symbol.clear()
96 if self._clear_updates_by_symbol.get(item['symbol']):
97 self._clear_updates_by_symbol[item['symbol']] = False
98 self._new_updates_by_symbol[item['symbol']] = 0
99 self._new_updates_by_symbol[item['symbol']] = self._new_updates_by_symbol.get(item['symbol'], 0) + 1
100 self._all_new_updates = (self._all_new_updates or 0) + 1
101
102
103class ArrayCacheByTimestamp(BaseCache):

Callers 15

test_safe_methodsFunction · 0.95
handle_tradesMethod · 0.95
handle_tradeMethod · 0.95
handle_tradesMethod · 0.95
handle_my_liquidationMethod · 0.95
handle_tradeMethod · 0.95
handle_tradesMethod · 0.95
handle_tradesMethod · 0.95
handle_tradesMethod · 0.95
handle_tradeMethod · 0.95
handle_tradesMethod · 0.95

Calls 2

clearMethod · 0.45
getMethod · 0.45

Tested by 15

test_safe_methodsFunction · 0.76
test_ws_cacheFunction · 0.76
import_filesMethod · 0.36
run_testsMethod · 0.36
get_valid_symbolMethod · 0.36
sanitize_data_inputMethod · 0.36
run_static_testsMethod · 0.36
import_filesMethod · 0.36
run_testsMethod · 0.36
get_valid_symbolMethod · 0.36