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

Method handle_network_code_and_params

python/ccxt/base/exchange.py:5153–5158  ·  view source on GitHub ↗
(self, params)

Source from the content-addressed store, hash-verified

5151 return preferredChain
5152
5153 def handle_network_code_and_params(self, params):
5154 networkCodeInParams = self.safe_string_2(params, 'networkCode', 'network')
5155 if networkCodeInParams is not None:
5156 params = self.omit(params, ['networkCode', 'network'])
5157 # if it was not defined by user, we should not set it from 'defaultNetworks', because handleNetworkCodeAndParams is for only request-side and thus we do not fill it with anything. We can only use 'defaultNetworks' after parsing response-side
5158 return [networkCodeInParams, params]
5159
5160 def default_network_code(self, currencyCode: str):
5161 defaultNetworkCode = None

Callers 15

fetch_deposit_addressMethod · 0.80
withdrawMethod · 0.80
withdrawMethod · 0.80
fetch_deposit_addressMethod · 0.80
fetch_deposit_addressMethod · 0.80
withdrawMethod · 0.80
fetch_transaction_feeMethod · 0.80
fetch_deposit_addressMethod · 0.80

Calls 2

safe_string_2Method · 0.95
omitMethod · 0.95

Tested by

no test coverage detected