@ex-master/core
Advanced tools
Comparing version 0.3.11 to 0.3.12
@@ -11,2 +11,3 @@ /// <reference types="node" /> | ||
precision: MarketPrecision; | ||
online: boolean; | ||
maxOrderSize?: number; | ||
@@ -103,2 +104,3 @@ minOrderSize?: number; | ||
ensureSizePrecision(market: Market, value: Decimal | number, align?: PrecisionAlignment): Decimal; | ||
isAvailableMarket(market: Market): boolean; | ||
existsMarket(market: Market): boolean; | ||
@@ -105,0 +107,0 @@ updateMarkets(): Promise<void>; |
@@ -76,2 +76,6 @@ "use strict"; | ||
} | ||
isAvailableMarket(market) { | ||
let marketData = this.symbolToMarketDataMap.get(getMarketSymbol(market)); | ||
return !!marketData && marketData.online; | ||
} | ||
existsMarket(market) { | ||
@@ -78,0 +82,0 @@ return this.symbolToMarketDataMap.has(getMarketSymbol(market)); |
@@ -18,2 +18,3 @@ import { Decimal } from 'decimal.js'; | ||
precision: MarketPrecision; | ||
online: boolean; | ||
maxOrderSize?: number; | ||
@@ -20,0 +21,0 @@ minOrderSize?: number; |
{ | ||
"name": "@ex-master/core", | ||
"version": "0.3.11", | ||
"version": "0.3.12", | ||
"main": "bld/library/index.js", | ||
@@ -25,3 +25,3 @@ "types": "bld/library/index.d.ts", | ||
}, | ||
"gitHead": "c89a64fb78b64641955a086dc5cd6ed43e7c56ff" | ||
"gitHead": "81e0e54f6a94b4d99c85d049d657a8abeb33f2c4" | ||
} |
@@ -23,2 +23,3 @@ import {EventEmitter} from 'events'; | ||
precision: MarketPrecision; | ||
online: boolean; | ||
maxOrderSize?: number; | ||
@@ -244,2 +245,8 @@ minOrderSize?: number; | ||
isAvailableMarket(market: Market): boolean { | ||
let marketData = this.symbolToMarketDataMap.get(getMarketSymbol(market)); | ||
return !!marketData && marketData.online; | ||
} | ||
existsMarket(market: Market): boolean { | ||
@@ -246,0 +253,0 @@ return this.symbolToMarketDataMap.has(getMarketSymbol(market)); |
@@ -30,2 +30,3 @@ import {Decimal} from 'decimal.js'; | ||
precision: MarketPrecision; | ||
online: boolean; | ||
maxOrderSize?: number; | ||
@@ -32,0 +33,0 @@ minOrderSize?: number; |
Sorry, the diff of this file is not supported yet
38071
928