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

Method convert_from_real_amount

python/ccxt/async_support/bitmex.py:561–566  ·  view source on GitHub ↗
(self, code, amount)

Source from the content-addressed store, hash-verified

559 })
560
561 def convert_from_real_amount(self, code, amount):
562 currency = self.currency(code)
563 precision = self.safe_string(currency, 'precision')
564 amountString = self.number_to_string(amount)
565 finalAmount = Precise.string_div(amountString, precision)
566 return self.parse_number(finalAmount)
567
568 def convert_to_real_amount(self, code: Str, amount: Str):
569 if code is None:

Callers 2

amount_to_precisionMethod · 0.95
withdrawMethod · 0.95

Calls 4

safe_stringMethod · 0.80
string_divMethod · 0.80
parse_numberMethod · 0.80
currencyMethod · 0.45

Tested by

no test coverage detected