@ex-master/huobi
Advanced tools
Comparing version 0.3.8 to 0.3.9
@@ -30,3 +30,3 @@ import { Balance, Decimal, DepthData, KLineEntry, Market, MarketData, MarketQuotation, OrderType, SpotClient, SpotClientOptions, SpotDealOrder, SpotOrder, SpotOrderOptions, SpotOrderQuery } from '@ex-master/core'; | ||
private preInitializePromise; | ||
constructor(options: HuobiSpotClientOptions); | ||
constructor({ tokens, restAPIBaseURL, webSocketAPIBaseURL, dashboard, }: HuobiSpotClientOptions); | ||
onInitialize(): Promise<void>; | ||
@@ -33,0 +33,0 @@ getMarkets(): Promise<HuobiMarketData[]>; |
@@ -36,4 +36,4 @@ "use strict"; | ||
class HuobiSpotClient extends core_1.SpotClient { | ||
constructor(options) { | ||
super(options); | ||
constructor({ tokens, restAPIBaseURL, webSocketAPIBaseURL, dashboard, }) { | ||
super({ dashboard, isPrivateness: tokens && tokens.length > 0 }); | ||
this.openedOrderMap = new Map(); | ||
@@ -154,3 +154,2 @@ this.onAccountsUpdate = ({ data }) => { | ||
}; | ||
let { tokens, restAPIBaseURL, webSocketAPIBaseURL, dashboard } = options; | ||
this.tokens = tokens; | ||
@@ -157,0 +156,0 @@ this.restAPI = new huobi_spot_rest_api_1.HuobiSpotRestAPI({ |
{ | ||
"name": "@ex-master/huobi", | ||
"version": "0.3.8", | ||
"version": "0.3.9", | ||
"main": "bld/library/index.js", | ||
@@ -30,3 +30,3 @@ "types": "bld/library/index.d.ts", | ||
}, | ||
"gitHead": "ba7970b4124a958f0f03571f8e34589076fe5218" | ||
"gitHead": "ad2ebcc962f990af73526e6f8a2766b4d1ab2501" | ||
} |
@@ -85,7 +85,10 @@ import { | ||
constructor(options: HuobiSpotClientOptions) { | ||
super(options); | ||
constructor({ | ||
tokens, | ||
restAPIBaseURL, | ||
webSocketAPIBaseURL, | ||
dashboard, | ||
}: HuobiSpotClientOptions) { | ||
super({dashboard, isPrivateness: tokens && tokens.length > 0}); | ||
let {tokens, restAPIBaseURL, webSocketAPIBaseURL, dashboard} = options; | ||
this.tokens = tokens; | ||
@@ -92,0 +95,0 @@ |
Sorry, the diff of this file is not supported yet
183975
3617