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

Method parse_fee_numeric

python/ccxt/base/exchange.py:4610–4614  ·  view source on GitHub ↗
(self, fee: Any)

Source from the content-addressed store, hash-verified

4608 return [fee, fees]
4609
4610 def parse_fee_numeric(self, fee: Any):
4611 fee['cost'] = self.safe_number(fee, 'cost') # ensure numeric
4612 if 'rate' in fee:
4613 fee['rate'] = self.safe_number(fee, 'rate')
4614 return fee
4615
4616 def find_nearest_ceiling(self, arr: List[float], providedValue: float):
4617 # i.e. findNearestCeiling([10, 30, 50], 23) returns 30

Callers 1

parsed_fee_and_feesMethod · 0.95

Calls 1

safe_numberMethod · 0.95

Tested by

no test coverage detected