Skip to content

Commit fa00415

Browse files
committed
fix: comments deposit fee methods
1 parent 82df55f commit fa00415

File tree

2 files changed

+38
-38
lines changed

2 files changed

+38
-38
lines changed

cryptomarket/client.py

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,36 +1128,36 @@ def get_bulk_estimate_withdrawal_fees(self, fee_requests: List[args.FeeRequest])
11281128
endpoint='wallet/crypto/fee/estimate/bulk', params=params)
11291129
return [Fee.from_dict(fee_data) for fee_data in result]
11301130

1131-
def get_estimate_deposit_fee(self, currency: str, amount: str, network_code: Optional[str] = None) -> str:
1132-
"""Get an estimate of the Deposit fee
1131+
# def get_estimate_deposit_fee(self, currency: str, amount: str, network_code: Optional[str] = None) -> str:
1132+
# """Get an estimate of the Deposit fee
11331133

1134-
Requires the "Payment information" API key Access Right
1134+
# Requires the "Payment information" API key Access Right
11351135

1136-
https://api.exchange.cryptomkt.com/#estimate-deposit-fee
1136+
# https://api.exchange.cryptomkt.com/#estimate-deposit-fee
11371137

1138-
:param currency: the currency code for deposit
1139-
:param amount: the expected deposit amount
1140-
:param network_code: Optional. network code
1138+
# :param currency: the currency code for deposit
1139+
# :param amount: the expected deposit amount
1140+
# :param network_code: Optional. network code
11411141

1142-
:return: The expected fee
1143-
"""
1144-
params = args.DictBuilder().amount(amount).currency(
1145-
currency).network_code(network_code).build()
1146-
return self._get(endpoint='wallet/crypto/fee/deposit/estimate', params=params)['fee']
1142+
# :return: The expected fee
1143+
# """
1144+
# params = args.DictBuilder().amount(amount).currency(
1145+
# currency).network_code(network_code).build()
1146+
# return self._get(endpoint='wallet/crypto/fee/deposit/estimate', params=params)['fee']
11471147

1148-
def get_bulk_estimate_deposit_fees(self, fee_requests: List[args.FeeRequest]) -> List[Fee]:
1149-
"""Get a list of estimates of deposit fees
1148+
# def get_bulk_estimate_deposit_fees(self, fee_requests: List[args.FeeRequest]) -> List[Fee]:
1149+
# """Get a list of estimates of deposit fees
11501150

1151-
Requires the "Payment information" API key Access Right
1151+
# Requires the "Payment information" API key Access Right
11521152

1153-
https://api.exchange.cryptomkt.com/#bulk-estimate-deposit-fee
1153+
# https://api.exchange.cryptomkt.com/#bulk-estimate-deposit-fee
11541154

1155-
:return: A list of expected deposit fees
1156-
"""
1157-
params = [asdict(fee_request) for fee_request in fee_requests]
1158-
result = self._post(
1159-
endpoint='wallet/crypto/fee/deposit/estimate/bulk', params=params)
1160-
return [Fee.from_dict(fee_data) for fee_data in result]
1155+
# :return: A list of expected deposit fees
1156+
# """
1157+
# params = [asdict(fee_request) for fee_request in fee_requests]
1158+
# result = self._post(
1159+
# endpoint='wallet/crypto/fee/deposit/estimate/bulk', params=params)
1160+
# return [Fee.from_dict(fee_data) for fee_data in result]
11611161

11621162
def check_if_crypto_address_belong_to_current_account(self, address: str) -> bool:
11631163
"""Check if an address is from this account

tests/rest/test_wallet_management.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -163,22 +163,22 @@ def test_successfull_call(self):
163163
self.fail("no fee")
164164

165165

166-
class TestGetBulkEstimateDepositFees(AuthCallsTestCase):
167-
def test_successfull_call(self):
168-
fees = self.client.get_bulk_estimate_deposit_fees([
169-
args.FeeRequest("EOS", "12345"),
170-
args.FeeRequest("ETH", "22222"),
171-
])
172-
if not good_list(good_fee, fees):
173-
self.fail("not a good fee")
174-
175-
176-
class TestGetEstimateDepositFee(AuthCallsTestCase):
177-
def test_successfull_call(self):
178-
fee = self.client.get_estimate_deposit_fee(
179-
currency="XLM", amount="19999")
180-
if fee == "":
181-
self.fail("no fee")
166+
# class TestGetBulkEstimateDepositFees(AuthCallsTestCase):
167+
# def test_successfull_call(self):
168+
# fees = self.client.get_bulk_estimate_deposit_fees([
169+
# args.FeeRequest("EOS", "12345"),
170+
# args.FeeRequest("ETH", "22222"),
171+
# ])
172+
# if not good_list(good_fee, fees):
173+
# self.fail("not a good fee")
174+
175+
176+
# class TestGetEstimateDepositFee(AuthCallsTestCase):
177+
# def test_successfull_call(self):
178+
# fee = self.client.get_estimate_deposit_fee(
179+
# currency="XLM", amount="19999")
180+
# if fee == "":
181+
# self.fail("no fee")
182182

183183

184184
class CryptoAddressBelongsToCurrentAccount(AuthCallsTestCase):

0 commit comments

Comments
 (0)