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/SpotAccountApi.ts
518 views
1
import {BaseApi} from '../BaseApi';
2
3
export class SpotAccountApi extends BaseApi {
4
5
info() {
6
const url = '/api/v2/spot/account/info';
7
const headers = this.signer('GET', url, null)
8
return this.axiosInstance.get(url, {headers})
9
}
10
11
assets(qsOrBody: object) {
12
const url = '/api/v2/spot/account/assets';
13
const headers = this.signer('GET', url, qsOrBody)
14
return this.axiosInstance.get(url, {headers, params: qsOrBody})
15
}
16
17
bills(qsOrBody: object) {
18
const url = '/api/v2/spot/account/bills';
19
const headers = this.signer('POST', url, qsOrBody)
20
return this.axiosInstance.post(url, qsOrBody, {headers})
21
}
22
23
transferRecords(qsOrBody: object) {
24
const url = '/api/v2/spot/account/transferRecords';
25
const headers = this.signer('GET', url, qsOrBody)
26
return this.axiosInstance.get(url, {headers, params: qsOrBody})
27
}
28
}
29