@orderly.network/hooks 0.0.48 → 0.0.50
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.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -1123,7 +1123,7 @@ var usePositionStream = (symbol, options) => {
|
|
|
1123
1123
|
const MMR = futures.positions.MMR({
|
|
1124
1124
|
baseMMR: info("base_mmr"),
|
|
1125
1125
|
baseIMR: info("base_imr"),
|
|
1126
|
-
IMRFactor: accountInfo.imr_factor[
|
|
1126
|
+
IMRFactor: accountInfo.imr_factor[info("base")],
|
|
1127
1127
|
positionNotional: item.notional,
|
|
1128
1128
|
IMR_factor_power: 4 / 5
|
|
1129
1129
|
});
|
|
@@ -1343,7 +1343,7 @@ var useMaxQty = (symbol, side, reduceOnly = false) => {
|
|
|
1343
1343
|
positionQty,
|
|
1344
1344
|
buyOrdersQty,
|
|
1345
1345
|
sellOrdersQty,
|
|
1346
|
-
IMR_Factor: accountInfo.imr_factor[
|
|
1346
|
+
IMR_Factor: accountInfo.imr_factor[symbol]
|
|
1347
1347
|
});
|
|
1348
1348
|
}, [
|
|
1349
1349
|
orders,
|