UNPKG

kucoin-universal-sdk

Version:
39 lines 2.34 kB
"use strict"; // Code generated by Kucoin Universal SDK Generator; DO NOT EDIT. Object.defineProperty(exports, "__esModule", { value: true }); exports.WithdrawalAPIImpl = void 0; const model_get_withdrawal_history_by_id_resp_1 = require("./model_get_withdrawal_history_by_id_resp"); const model_cancel_withdrawal_resp_1 = require("./model_cancel_withdrawal_resp"); const model_withdrawal_v3_resp_1 = require("./model_withdrawal_v3_resp"); const model_withdrawal_v1_resp_1 = require("./model_withdrawal_v1_resp"); const model_get_withdrawal_history_old_resp_1 = require("./model_get_withdrawal_history_old_resp"); const model_get_withdrawal_quotas_resp_1 = require("./model_get_withdrawal_quotas_resp"); const model_get_withdrawal_history_resp_1 = require("./model_get_withdrawal_history_resp"); class WithdrawalAPIImpl { constructor(transport) { this.transport = transport; } getWithdrawalQuotas(req) { return this.transport.call('spot', false, 'GET', '/api/v1/withdrawals/quotas', req, model_get_withdrawal_quotas_resp_1.GetWithdrawalQuotasResp, false); } withdrawalV3(req) { return this.transport.call('spot', false, 'POST', '/api/v3/withdrawals', req, model_withdrawal_v3_resp_1.WithdrawalV3Resp, false); } cancelWithdrawal(req) { return this.transport.call('spot', false, 'DELETE', '/api/v1/withdrawals/{withdrawalId}', req, model_cancel_withdrawal_resp_1.CancelWithdrawalResp, false); } getWithdrawalHistory(req) { return this.transport.call('spot', false, 'GET', '/api/v1/withdrawals', req, model_get_withdrawal_history_resp_1.GetWithdrawalHistoryResp, false); } getWithdrawalHistoryById(req) { return this.transport.call('spot', false, 'GET', '/api/v1/withdrawals/{withdrawalId}', req, model_get_withdrawal_history_by_id_resp_1.GetWithdrawalHistoryByIdResp, false); } getWithdrawalHistoryOld(req) { return this.transport.call('spot', false, 'GET', '/api/v1/hist-withdrawals', req, model_get_withdrawal_history_old_resp_1.GetWithdrawalHistoryOldResp, false); } withdrawalV1(req) { return this.transport.call('spot', false, 'POST', '/api/v1/withdrawals', req, model_withdrawal_v1_resp_1.WithdrawalV1Resp, false); } } exports.WithdrawalAPIImpl = WithdrawalAPIImpl; //# sourceMappingURL=api_withdrawal.js.map