Path: blob/master/bitget-node-sdk-api/src/lib/v1/SpotMarketApi.ts
518 views
import {BaseApi} from '../BaseApi';12export class SpotMarketApi extends BaseApi {3currencies() {4const url = '/api/spot/v1/public/currencies';5const headers = this.signer('GET', url, null)6return this.axiosInstance.get(url, {headers})7}89products() {10const url = '/api/spot/v1/public/products';11const headers = this.signer('GET', url, null)12return this.axiosInstance.get(url, {headers})13}1415product(qsOrBody: object) {16const url = '/api/spot/v1/public/product';17const headers = this.signer('GET', url, qsOrBody)18return this.axiosInstance.get(url, {headers, params: qsOrBody})19}2021fills(qsOrBody: object) {22const url = '/api/spot/v1/market/fills';23const headers = this.signer('GET', url, qsOrBody)24return this.axiosInstance.get(url, {headers, params: qsOrBody})25}2627depth(qsOrBody: object) {28const url = '/api/spot/v1/market/depth';29const headers = this.signer('GET', url, qsOrBody)30return this.axiosInstance.get(url, {headers, params: qsOrBody})31}3233ticker(qsOrBody: object) {34const url = '/api/spot/v1/market/ticker';35const headers = this.signer('GET', url, qsOrBody)36return this.axiosInstance.get(url, {headers, params: qsOrBody})37}3839tickers() {40const url = '/api/spot/v1/market/tickers';41const headers = this.signer('GET', url, null)42return this.axiosInstance.get(url, {headers})43}4445candles(qsOrBody: object) {46const url = '/api/spot/v1/market/candles';47const headers = this.signer('GET', url, qsOrBody)48return this.axiosInstance.get(url, {headers, params: qsOrBody})49}50}5152