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

Method get_currency_from_chaincode

python/ccxt/woo.py:2569–2580  ·  view source on GitHub ↗
(self, networkizedCode, currency)

Source from the content-addressed store, hash-verified

2567 return self.safe_string(types, type, type)
2568
2569 def get_currency_from_chaincode(self, networkizedCode, currency):
2570 if currency is not None:
2571 return currency
2572 else:
2573 parts = networkizedCode.split('_')
2574 partsLength = len(parts)
2575 firstPart = self.safe_string(parts, 0)
2576 currencyId = self.safe_string(parts, 1, firstPart)
2577 if partsLength > 2:
2578 currencyId += '_' + self.safe_string(parts, 2)
2579 currency = self.safe_currency(currencyId)
2580 return currency
2581
2582 def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
2583 """

Callers 1

parse_transactionMethod · 0.95

Calls 3

splitMethod · 0.80
safe_stringMethod · 0.80
safe_currencyMethod · 0.80

Tested by

no test coverage detected