Path: blob/master/bitget-node-sdk-api/src/lib/v2/SpotWalletApi.ts
518 views
import {BaseApi} from '../BaseApi';12export class SpotWalletApi extends BaseApi {34transfer(qsOrBody: object) {5const url = '/api/v2/spot/wallet/transfer';6const headers = this.signer('POST', url, qsOrBody)7return this.axiosInstance.post(url, qsOrBody, {headers})8}910depositAddress(qsOrBody: object) {11const url = '/api/v2/spot/wallet/deposit-address';12const headers = this.signer('GET', url, qsOrBody)13return this.axiosInstance.get(url, {headers, params: qsOrBody})14}1516withdrawal(qsOrBody: object) {17const url = '/api/v2/spot/wallet/withdrawal';18const headers = this.signer('POST', url, qsOrBody)19return this.axiosInstance.post(url, qsOrBody, {headers})20}2122withdrawalRecords(qsOrBody: object) {23const url = '/api/v2/spot/wallet/withdrawal-records';24const headers = this.signer('GET', url, qsOrBody)25return this.axiosInstance.get(url, {headers, params: qsOrBody})26}2728depositRecords(qsOrBody: object) {29const url = '/api/v2/spot/wallet/deposit-records';30const headers = this.signer('GET', url, qsOrBody)31return this.axiosInstance.get(url, {headers, params: qsOrBody})32}33}3435