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

Method sub

python/ccxt/base/precise.py:111–113  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

109 return Precise(result, bigger.decimals)
110
111 def sub(self, other):
112 negative = Precise(-other.integer, other.decimals)
113 return self.add(negative)
114
115 def abs(self):
116 return Precise(abs(self.integer), self.decimals)

Callers 11

__sub__Method · 0.95
gtMethod · 0.95
geMethod · 0.95
normalizeFunction · 0.45
get_regexp_widthFunction · 0.45
camel_to_snakeFunction · 0.45
convert_to_snake_caseFunction · 0.45
string_subMethod · 0.45
decimal_to_precisionFunction · 0.45
un_camel_caseMethod · 0.45

Calls 2

addMethod · 0.95
PreciseClass · 0.70

Tested by 1

convert_to_snake_caseFunction · 0.36