Skip to content

Commit 7841d82

Browse files
author
T. Ismael Verdugo
committed
feat: adds fee hash endpoint
1 parent 379f666 commit 7841d82

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

cryptomarket/client.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,6 +1128,19 @@ 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+
1132+
def get_fee_hash() -> str:
1133+
"""Gets the hash of withdrawal fees
1134+
1135+
Requires the "Payment information" API key Access Right
1136+
1137+
https://api.exchange.cryptomkt.com/#get-withdrawal-fees-hash
1138+
1139+
:return: the fees hash
1140+
"""
1141+
return self._get(endpoint='wallet/crypto/fee/withdraw/hash')['result']
1142+
1143+
11311144
# def get_estimate_deposit_fee(self, currency: str, amount: str, network_code: Optional[str] = None) -> str:
11321145
# """Get an estimate of the Deposit fee
11331146

0 commit comments

Comments
 (0)