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

Method from_en

python/ccxt/pro/phemex.py:53–59  ·  view source on GitHub ↗
(self, en, scale)

Source from the content-addressed store, hash-verified

51 })
52
53 def from_en(self, en, scale):
54 if en is None:
55 return None
56 precise = Precise(en)
57 precise.decimals = self.sum(precise.decimals, scale)
58 precise.reduce()
59 return str(precise)
60
61 def from_ep(self, ep, market=None):
62 if (ep is None) or (market is None):

Callers 4

from_epMethod · 0.95
from_evMethod · 0.95
from_erMethod · 0.95
handle_balanceMethod · 0.95

Calls 3

reduceMethod · 0.95
PreciseClass · 0.90
sumMethod · 0.45

Tested by

no test coverage detected