@gbozee/ultimate 0.0.2-140 → 0.0.2-141
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/frontend-index.d.ts +1 -1
- package/dist/frontend-index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp-server.cjs +1 -1
- package/dist/mcp-server.js +1 -1
- package/package.json +1 -1
package/dist/frontend-index.d.ts
CHANGED
package/dist/frontend-index.js
CHANGED
|
@@ -1898,7 +1898,7 @@ function computeProfitDetail(payload) {
|
|
|
1898
1898
|
reverse_position,
|
|
1899
1899
|
full_ratio = 1
|
|
1900
1900
|
} = payload;
|
|
1901
|
-
let reward_factor = strategy
|
|
1901
|
+
let reward_factor = strategy?.reward_factor || 1;
|
|
1902
1902
|
const profit_percent = to_f(pnl * 100 / (focus_position.avg_price * focus_position.avg_qty), "%.4f");
|
|
1903
1903
|
const diff = pnl / focus_position.quantity;
|
|
1904
1904
|
const sell_price = to_f(focus_position.kind === "long" ? focus_position.entry + diff : focus_position.entry - diff, price_places);
|
package/dist/index.cjs
CHANGED
|
@@ -54296,7 +54296,7 @@ function computeProfitDetail(payload) {
|
|
|
54296
54296
|
reverse_position,
|
|
54297
54297
|
full_ratio = 1
|
|
54298
54298
|
} = payload;
|
|
54299
|
-
let reward_factor = strategy
|
|
54299
|
+
let reward_factor = strategy?.reward_factor || 1;
|
|
54300
54300
|
const profit_percent = to_f2(pnl * 100 / (focus_position.avg_price * focus_position.avg_qty), "%.4f");
|
|
54301
54301
|
const diff = pnl / focus_position.quantity;
|
|
54302
54302
|
const sell_price = to_f2(focus_position.kind === "long" ? focus_position.entry + diff : focus_position.entry - diff, price_places);
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -54244,7 +54244,7 @@ function computeProfitDetail(payload) {
|
|
|
54244
54244
|
reverse_position,
|
|
54245
54245
|
full_ratio = 1
|
|
54246
54246
|
} = payload;
|
|
54247
|
-
let reward_factor = strategy
|
|
54247
|
+
let reward_factor = strategy?.reward_factor || 1;
|
|
54248
54248
|
const profit_percent = to_f2(pnl * 100 / (focus_position.avg_price * focus_position.avg_qty), "%.4f");
|
|
54249
54249
|
const diff = pnl / focus_position.quantity;
|
|
54250
54250
|
const sell_price = to_f2(focus_position.kind === "long" ? focus_position.entry + diff : focus_position.entry - diff, price_places);
|
package/dist/mcp-server.cjs
CHANGED
|
@@ -60978,7 +60978,7 @@ function computeProfitDetail(payload) {
|
|
|
60978
60978
|
reverse_position,
|
|
60979
60979
|
full_ratio = 1
|
|
60980
60980
|
} = payload;
|
|
60981
|
-
let reward_factor = strategy
|
|
60981
|
+
let reward_factor = strategy?.reward_factor || 1;
|
|
60982
60982
|
const profit_percent = to_f2(pnl * 100 / (focus_position.avg_price * focus_position.avg_qty), "%.4f");
|
|
60983
60983
|
const diff = pnl / focus_position.quantity;
|
|
60984
60984
|
const sell_price = to_f2(focus_position.kind === "long" ? focus_position.entry + diff : focus_position.entry - diff, price_places);
|
package/dist/mcp-server.js
CHANGED
|
@@ -60955,7 +60955,7 @@ function computeProfitDetail(payload) {
|
|
|
60955
60955
|
reverse_position,
|
|
60956
60956
|
full_ratio = 1
|
|
60957
60957
|
} = payload;
|
|
60958
|
-
let reward_factor = strategy
|
|
60958
|
+
let reward_factor = strategy?.reward_factor || 1;
|
|
60959
60959
|
const profit_percent = to_f2(pnl * 100 / (focus_position.avg_price * focus_position.avg_qty), "%.4f");
|
|
60960
60960
|
const diff = pnl / focus_position.quantity;
|
|
60961
60961
|
const sell_price = to_f2(focus_position.kind === "long" ? focus_position.entry + diff : focus_position.entry - diff, price_places);
|