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

Method handle_origin_and_single_address

python/ccxt/pacifica.py:2961–2969  ·  view source on GitHub ↗
(self, methodName: str, params: dict)

Source from the content-addressed store, hash-verified

2959 return self.privatePostAccountBuilderCodesRevoke(self.extend(request, params))
2960
2961 def handle_origin_and_single_address(self, methodName: str, params: dict) -> list:
2962 address = None
2963 address, params = self.handle_param_string_2(params, 'account', 'address', None) # self is for get endpoints that accept account or address
2964 if address is not None:
2965 return [address, params]
2966 address1 = self.walletAddress
2967 if address1 is not None:
2968 return [address1, params]
2969 raise ArgumentsRequired(self.id + ' ' + methodName + '() requires address either as "exchange.walletAddress = ..." or or "address" in params')
2970
2971 def handle_errors(self, code: int, reason: str, url: str, method: str, headers: dict, body: str, response, requestHeaders, requestBody):
2972 if response is None:

Callers 13

fetch_balanceMethod · 0.95
fetch_leverageMethod · 0.95
fetch_margin_modeMethod · 0.95
fetch_my_tradesMethod · 0.95
fetch_open_ordersMethod · 0.95
fetch_ordersMethod · 0.95
fetch_positionsMethod · 0.95
fetch_trading_feeMethod · 0.95
fetch_ledgerMethod · 0.95
fetch_funding_historyMethod · 0.95
create_sub_accountMethod · 0.95

Calls 2

ArgumentsRequiredClass · 0.90
handle_param_string_2Method · 0.80

Tested by

no test coverage detected