diff --git a/src/api/public/getCryptoWithdrawalFees.js b/src/api/public/getCryptoWithdrawalFees.js new file mode 100644 index 0000000..3e8d610 --- /dev/null +++ b/src/api/public/getCryptoWithdrawalFees.js @@ -0,0 +1,9 @@ +const { getTransport } = require('../../utils/transport') + +// https://www.independentreserve.com/products/api#GetCryptoWithdrawalFees +const getCryptoWithdrawalFees = async () => { + const { get } = getTransport() + return get('Public/GetCryptoWithdrawalFees') +} + +module.exports = getCryptoWithdrawalFees diff --git a/test/unit/api/public/getCryptoWithdrawalFees.test.js b/test/unit/api/public/getCryptoWithdrawalFees.test.js new file mode 100644 index 0000000..3f65982 --- /dev/null +++ b/test/unit/api/public/getCryptoWithdrawalFees.test.js @@ -0,0 +1,5 @@ +const doTest = require('../../../helpers/publicHandlerTest') + +const config = { handler: 'getCryptoWithdrawalFees' } + +doTest(config)