bitget-node-api
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -13,4 +13,5 @@ import { BaseApi } from '../BaseApi'; | ||
current(symbol: string): Promise<import("axios").AxiosResponse<any>>; | ||
allOpen(productType: string): Promise<import("axios").AxiosResponse<any>>; | ||
detail(symbol: string, orderId: string): Promise<import("axios").AxiosResponse<any>>; | ||
fills(symbol: string, orderId: string): Promise<import("axios").AxiosResponse<any>>; | ||
} |
@@ -39,2 +39,8 @@ "use strict"; | ||
} | ||
allOpen(productType) { | ||
const url = config_1.MIX_URL.MIX_ORDER + '/marginCoinCurrent'; | ||
const qsOrBody = { productType }; | ||
const headers = this.signer('GET', url, qsOrBody); | ||
return this.axiosInstance.get(url, { headers, params: qsOrBody }); | ||
} | ||
detail(symbol, orderId) { | ||
@@ -41,0 +47,0 @@ const url = config_1.MIX_URL.MIX_ORDER + '/detail'; |
{ | ||
"name": "bitget-node-api", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Node.js/typescript connector for Bidget REST APIs and WebSockets", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -71,3 +71,15 @@ import {BaseApi} from '../BaseApi'; | ||
} | ||
/** | ||
* Get the current delegate | ||
* @param productType | ||
*/ | ||
allOpen(productType: string):Promise<import("axios").AxiosResponse<any>> { | ||
const url = MIX_URL.MIX_ORDER + '/marginCoinCurrent'; | ||
const qsOrBody = {productType}; | ||
const headers = this.signer('GET', url, qsOrBody) | ||
return this.axiosInstance.get(url, {headers, params: qsOrBody}) | ||
} | ||
/** | ||
* Get order details | ||
@@ -74,0 +86,0 @@ * @param symbol |
255184
5545