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

Method string_add

python/ccxt/base/precise.py:212–215  ·  view source on GitHub ↗
(string1, string2)

Source from the content-addressed store, hash-verified

210
211 @staticmethod
212 def string_add(string1, string2):
213 if string1 is None or string2 is None:
214 return None
215 return str(Precise(string1).add(Precise(string2)))
216
217 @staticmethod
218 def string_sub(string1, string2):

Callers 15

parse_margin_balanceMethod · 0.80
parse_balanceMethod · 0.80
parse_ledger_entryMethod · 0.80
parse_positionMethod · 0.80
create_order_requestMethod · 0.80
edit_orders_requestMethod · 0.80
parse_tradeMethod · 0.80
parse_balance_helperMethod · 0.80
parse_balance_customMethod · 0.80
parse_position_riskMethod · 0.80

Calls 2

PreciseClass · 0.70
addMethod · 0.45

Tested by 6

tco_assert_filled_orderFunction · 0.64
test_balanceFunction · 0.64
test_tickerFunction · 0.64
tco_assert_filled_orderFunction · 0.64
test_preciseFunction · 0.64
test_numberFunction · 0.64