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

Method get_currency_from_chaincode

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

Source from the content-addressed store, hash-verified

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

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