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

Method parse_currency

python/ccxt/bullish.py:534–555  ·  view source on GitHub ↗
(self, rawCurrency: dict)

Source from the content-addressed store, hash-verified

532 return self.parse_currencies(response)
533
534 def parse_currency(self, rawCurrency: dict) -> Currency:
535 id = self.safe_string(rawCurrency, 'symbol')
536 code = self.safe_currency_code(id)
537 name = self.safe_string(rawCurrency, 'name')
538 precision = self.safe_string(rawCurrency, 'precision')
539 return self.safe_currency_structure({
540 'id': id,
541 'code': code,
542 'name': name,
543 'active': None,
544 'deposit': None,
545 'withdraw': None,
546 'fee': self.safe_number(rawCurrency, 'minFee'),
547 'precision': self.parse_number(self.parse_precision(precision)),
548 'limits': {
549 'amount': {'min': None, 'max': None},
550 'withdraw': {'min': None, 'max': None},
551 },
552 'networks': {},
553 'type': 'crypto',
554 'info': rawCurrency,
555 })
556
557 def fetch_markets(self, params={}) -> List[Market]:
558 """

Callers

nothing calls this directly

Calls 6

safe_stringMethod · 0.80
safe_numberMethod · 0.80
parse_numberMethod · 0.80
parse_precisionMethod · 0.80
safe_currency_codeMethod · 0.45

Tested by

no test coverage detected