@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.js
CHANGED
|
@@ -3026,7 +3026,6 @@ var PortfolioManager = class {
|
|
|
3026
3026
|
pos.avgPrice = 0;
|
|
3027
3027
|
}
|
|
3028
3028
|
pos.trades.push(trade);
|
|
3029
|
-
this.data.realizedPnL += realizedPnL;
|
|
3030
3029
|
bucket[trade.asset] = pos;
|
|
3031
3030
|
const hasPositions = Object.values(bucket).some((p) => p.totalAmount > 0);
|
|
3032
3031
|
if (!hasPositions) {
|