@t2000/sdk 0.16.21 → 0.16.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +0 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3028,7 +3028,6 @@ var PortfolioManager = class {
|
|
|
3028
3028
|
pos.avgPrice = 0;
|
|
3029
3029
|
}
|
|
3030
3030
|
pos.trades.push(trade);
|
|
3031
|
-
this.data.realizedPnL += realizedPnL;
|
|
3032
3031
|
bucket[trade.asset] = pos;
|
|
3033
3032
|
const hasPositions = Object.values(bucket).some((p) => p.totalAmount > 0);
|
|
3034
3033
|
if (!hasPositions) {
|