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

Method sum

python/ccxt/base/exchange.py:1257–1262  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

1255
1256 @staticmethod
1257 def sum(*args):
1258 total = 0
1259 for arg in args:
1260 if isinstance(arg, (int, float)):
1261 total += arg
1262 return total
1263
1264
1265 @staticmethod

Callers 15

test_sumFunction · 0.95
build_ohlcvcMethod · 0.95
testSumFunction · 0.95
buildOHLCVCMethod · 0.95
fetch_ohlcvMethod · 0.45
fetch_ohlcvMethod · 0.45
fetch_hip3_marketsMethod · 0.45

Calls

no outgoing calls

Tested by 5

test_sumFunction · 0.76
run_static_testsMethod · 0.36
run_static_testsMethod · 0.36