@orderly.network/hooks 0.0.51 → 0.0.52
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 +1 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -1111,12 +1111,6 @@ var usePositionStream = (symbol, options) => {
|
|
|
1111
1111
|
const total = totalCollateral.toNumber();
|
|
1112
1112
|
return formatedPositions[0].filter((item) => item.position_qty !== 0).map((item) => {
|
|
1113
1113
|
const info = symbolInfo == null ? void 0 : symbolInfo[item.symbol];
|
|
1114
|
-
console.log(
|
|
1115
|
-
"info -------",
|
|
1116
|
-
info("base"),
|
|
1117
|
-
accountInfo.imr_factor,
|
|
1118
|
-
accountInfo.imr_factor[info("base")]
|
|
1119
|
-
);
|
|
1120
1114
|
const MMR = positions.MMR({
|
|
1121
1115
|
baseMMR: info("base_mmr"),
|
|
1122
1116
|
baseIMR: info("base_imr"),
|
|
@@ -1340,7 +1334,7 @@ var useMaxQty = (symbol, side, reduceOnly = false) => {
|
|
|
1340
1334
|
positionQty,
|
|
1341
1335
|
buyOrdersQty,
|
|
1342
1336
|
sellOrdersQty,
|
|
1343
|
-
IMR_Factor: accountInfo.imr_factor[
|
|
1337
|
+
IMR_Factor: accountInfo.imr_factor[getSymbolInfo("base")]
|
|
1344
1338
|
});
|
|
1345
1339
|
}, [
|
|
1346
1340
|
orders,
|