Path: blob/master/bitget-node-sdk-api/src/lib/v2/SpotAccountApi.ts
518 views
import {BaseApi} from '../BaseApi';12export class SpotAccountApi extends BaseApi {34info() {5const url = '/api/v2/spot/account/info';6const headers = this.signer('GET', url, null)7return this.axiosInstance.get(url, {headers})8}910assets(qsOrBody: object) {11const url = '/api/v2/spot/account/assets';12const headers = this.signer('GET', url, qsOrBody)13return this.axiosInstance.get(url, {headers, params: qsOrBody})14}1516bills(qsOrBody: object) {17const url = '/api/v2/spot/account/bills';18const headers = this.signer('POST', url, qsOrBody)19return this.axiosInstance.post(url, qsOrBody, {headers})20}2122transferRecords(qsOrBody: object) {23const url = '/api/v2/spot/account/transferRecords';24const headers = this.signer('GET', url, qsOrBody)25return this.axiosInstance.get(url, {headers, params: qsOrBody})26}27}2829