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

Method from_en

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

Source from the content-addressed store, hash-verified

1296 return self.to_en(price, market['priceScale'])
1297
1298 def from_en(self, en, scale):
1299 if en is None or scale is None:
1300 return None
1301 precise = Precise(en)
1302 precise.decimals = self.sum(precise.decimals, scale)
1303 precise.reduce()
1304 return str(precise)
1305
1306 def from_ep(self, ep, market: Market = None):
1307 if (ep is None) or (market is None):

Callers 8

parse_swap_marketMethod · 0.95
from_epMethod · 0.95
from_evMethod · 0.95
from_erMethod · 0.95
parse_spot_balanceMethod · 0.95
parse_swap_balanceMethod · 0.95
parse_transactionMethod · 0.95
parse_conversionMethod · 0.95

Calls 3

reduceMethod · 0.95
PreciseClass · 0.90
sumMethod · 0.45

Tested by

no test coverage detected