Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bitgetlimited
GitHub Repository: bitgetlimited/v3-bitget-api-sdk
Path: blob/master/bitget-node-sdk-api/src/lib/v2/SpotWalletApi.ts
518 views
1
import {BaseApi} from '../BaseApi';
2
3
export class SpotWalletApi extends BaseApi {
4
5
transfer(qsOrBody: object) {
6
const url = '/api/v2/spot/wallet/transfer';
7
const headers = this.signer('POST', url, qsOrBody)
8
return this.axiosInstance.post(url, qsOrBody, {headers})
9
}
10
11
depositAddress(qsOrBody: object) {
12
const url = '/api/v2/spot/wallet/deposit-address';
13
const headers = this.signer('GET', url, qsOrBody)
14
return this.axiosInstance.get(url, {headers, params: qsOrBody})
15
}
16
17
withdrawal(qsOrBody: object) {
18
const url = '/api/v2/spot/wallet/withdrawal';
19
const headers = this.signer('POST', url, qsOrBody)
20
return this.axiosInstance.post(url, qsOrBody, {headers})
21
}
22
23
withdrawalRecords(qsOrBody: object) {
24
const url = '/api/v2/spot/wallet/withdrawal-records';
25
const headers = this.signer('GET', url, qsOrBody)
26
return this.axiosInstance.get(url, {headers, params: qsOrBody})
27
}
28
29
depositRecords(qsOrBody: object) {
30
const url = '/api/v2/spot/wallet/deposit-records';
31
const headers = this.signer('GET', url, qsOrBody)
32
return this.axiosInstance.get(url, {headers, params: qsOrBody})
33
}
34
}
35