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

Method withdraw

python/ccxt/async_support/pacifica.py:2446–2469  ·  view source on GitHub ↗

make a withdrawal(only support native USDC) https://docs.pacifica.fi/api-documentation/api/rest-api/account/request-withdrawal :param str code: unified currency code :param float amount: the amount to withdraw :param str address: the address to withdraw to

(self, code: str, amount: float, address: str, tag: Str = None, params={})

Source from the content-addressed store, hash-verified

2444 return response
2445
2446 async def withdraw(self, code: str, amount: float, address: str, tag: Str = None, params={}) -> Transaction:
2447 """
2448 make a withdrawal(only support native USDC)
2449
2450 https://docs.pacifica.fi/api-documentation/api/rest-api/account/request-withdrawal
2451
2452 :param str code: unified currency code
2453 :param float amount: the amount to withdraw
2454 :param str address: the address to withdraw to
2455 :param str tag:
2456 :param dict [params]: extra parameters specific to the exchange API endpoint
2457 :param int [params.expiryWindow]: time to live in milliseconds
2458 :returns dict: a `transaction structure <https://docs.ccxt.com/?id=transaction-structure>`
2459 """
2460 operationType = 'withdraw'
2461 await self.load_markets()
2462 self.check_address(address)
2463 sigPayload = {
2464 'amount': str(amount),
2465 }
2466 request = self.post_action_request(operationType, sigPayload, params)
2467 params = self.omit(params, ['expiryWindow'])
2468 response = await self.privatePostAccountWithdraw(self.extend(request, params))
2469 return {'info': response}
2470
2471 async def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface:
2472 """

Callers

nothing calls this directly

Calls 6

post_action_requestMethod · 0.95
check_addressMethod · 0.80
load_marketsMethod · 0.45
omitMethod · 0.45
extendMethod · 0.45

Tested by

no test coverage detected