@ex-master/core
Advanced tools
Comparing version 0.1.21 to 0.1.22
import { Decimal } from 'decimal.js'; | ||
import { Observable } from 'rxjs'; | ||
import { Observable, Subject } from 'rxjs'; | ||
import { AccountBalance } from './factors'; | ||
@@ -9,2 +9,3 @@ import { Order } from './order'; | ||
readonly operationalBalance$: Observable<Dict<Decimal>>; | ||
readonly orderBecomeInactive$: Subject<Order>; | ||
private balanceDict; | ||
@@ -11,0 +12,0 @@ private settledBalanceMap; |
@@ -22,2 +22,3 @@ "use strict"; | ||
.shareReplay(1); | ||
this.orderBecomeInactive$ = new rxjs_1.Subject(); | ||
this.settledBalanceMap = new Map(); | ||
@@ -75,2 +76,3 @@ // TODO: multikey with stock money and id | ||
} | ||
this.orderBecomeInactive$.next(order); | ||
} | ||
@@ -77,0 +79,0 @@ this.updateBalance(); |
{ | ||
"name": "@ex-master/core", | ||
"version": "0.1.21", | ||
"version": "0.1.22", | ||
"main": "bld/index.js", | ||
@@ -5,0 +5,0 @@ "types": "bld/index.d.ts", |
33948
801