Skip to content

Commit 2e15084

Browse files
author
T. Ismael Verdugo
committed
feat: adds withdrawal fees hash
1 parent a89b0bd commit 2e15084

File tree

1 file changed

+29
-14
lines changed

1 file changed

+29
-14
lines changed

lib/client.ts

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,6 +1197,21 @@ Accepted values: never, optionally, required
11971197
return this.post("wallet/crypto/fee/estimate/bulk", feeRequests);
11981198
}
11991199

1200+
1201+
/**
1202+
* Gets the hash of withdrawal fees
1203+
*
1204+
* Requires the "Payment information" API key Access Right
1205+
*
1206+
* https://api.exchange.cryptomkt.com/#get-withdrawal-fees-hash
1207+
*
1208+
* @return the fees hash
1209+
*/
1210+
async getWithdrawalFeesHash(): Promise<String[]> {
1211+
const response = await this.get("wallet/crypto/fee/withdraw/hash");
1212+
return response['hash'];
1213+
}
1214+
12001215
/**
12011216
* Get an estimate of a withdrawal fee
12021217
*
@@ -1220,20 +1235,20 @@ Accepted values: never, optionally, required
12201235
return response["fee"];
12211236
}
12221237

1223-
// /**
1224-
// * Get estimates of deposit fees
1225-
// *
1226-
// * Requires the "Payment information" API key Access Right.
1227-
// *
1228-
// * https://api.exchange.cryptomkt.com/#bulk-estimate-deposit-fee
1229-
// *
1230-
// * @param {FeeRequest[]} feeRequests A list of fee requests
1231-
// *
1232-
// * @return The list of requested fees
1233-
// */
1234-
// async getBulkEstimateDepositFees(feeRequests: FeeRequest[]): Promise<Fee[]> {
1235-
// return this.post("wallet/crypto/fee/deposit/estimate/bulk", feeRequests);
1236-
// }
1238+
// /**
1239+
// * Get estimates of deposit fees
1240+
// *
1241+
// * Requires the "Payment information" API key Access Right.
1242+
// *
1243+
// * https://api.exchange.cryptomkt.com/#bulk-estimate-deposit-fee
1244+
// *
1245+
// * @param {FeeRequest[]} feeRequests A list of fee requests
1246+
// *
1247+
// * @return The list of requested fees
1248+
// */
1249+
// async getBulkEstimateDepositFees(feeRequests: FeeRequest[]): Promise<Fee[]> {
1250+
// return this.post("wallet/crypto/fee/deposit/estimate/bulk", feeRequests);
1251+
// }
12371252

12381253
// /**
12391254
// * Get an estimate of a deposit fee

0 commit comments

Comments
 (0)