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

Method parse_number

python/ccxt/base/exchange.py:1973–1980  ·  view source on GitHub ↗
(self, value, default=None)

Source from the content-addressed store, hash-verified

1971 return ''.join(string)
1972
1973 def parse_number(self, value, default=None):
1974 if value is None:
1975 return default
1976 else:
1977 try:
1978 return self.number(value)
1979 except Exception:
1980 return default
1981
1982 def omit_zero(self, string_number):
1983 try:

Callers 15

test_safe_methodsFunction · 0.95
test_binary_to_base16Function · 0.95
test_base16_to_binaryFunction · 0.95
test_binary_to_base58Function · 0.95
test_base58_to_binaryFunction · 0.95
safe_number_omit_zeroMethod · 0.95
safe_ledger_entryMethod · 0.95
set_marketsMethod · 0.95
safe_balanceMethod · 0.95
safe_orderMethod · 0.95

Calls

no outgoing calls

Tested by 15

test_safe_methodsFunction · 0.76
test_binary_to_base16Function · 0.76
test_base16_to_binaryFunction · 0.76
test_binary_to_base58Function · 0.76
test_base58_to_binaryFunction · 0.76
test_positionFunction · 0.64
test_open_interestFunction · 0.64
test_leverage_tierFunction · 0.64
test_liquidationFunction · 0.64
test_ledger_entryFunction · 0.64
test_ohlcvFunction · 0.64
test_orderFunction · 0.64