nsekit 0.3.20 → 0.3.21

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.
@@ -1 +1 @@
1
- {"version":3,"file":"finvasia-limits.d.ts","sourceRoot":"","sources":["../../../src/brokers/finvasia/finvasia-limits.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;AAUlE;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAY7E;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,gBAAgB,GAAG,UAAU,CAqBlE"}
1
+ {"version":3,"file":"finvasia-limits.d.ts","sourceRoot":"","sources":["../../../src/brokers/finvasia/finvasia-limits.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;AAUlE;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAY7E;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,gBAAgB,GAAG,UAAU,CAqBlE"}
package/dist/index.js CHANGED
@@ -22101,7 +22101,7 @@ function mapShoonyaLimits(raw) {
22101
22101
  const cash = num2(raw, "cash");
22102
22102
  const payin = num2(raw, "payin");
22103
22103
  const payout = num2(raw, "payout");
22104
- const holdingsCollateral = num2(raw, "brkcollamt");
22104
+ const holdingsCollateral = Math.max(num2(raw, "collateral"), num2(raw, "brkcollamt"));
22105
22105
  const marginUsed = raw["marginused"] !== undefined ? num2(raw, "marginused") : num2(raw, "peak_mar");
22106
22106
  const total = cash + payin - payout + holdingsCollateral;
22107
22107
  const used = marginUsed;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nsekit",
3
- "version": "0.3.20",
3
+ "version": "0.3.21",
4
4
  "description": "Unified broker abstraction for Indian stock markets - CCXT-like interface for NSE/BSE brokers",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",