@gbozee/ultimate 0.0.2-125 → 0.0.2-127
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 +5 -7
- package/dist/index.js +5 -7
- package/dist/mcp-server.cjs +5 -7
- package/dist/mcp-server.js +5 -7
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -59970,9 +59970,7 @@ class ExchangeAccount {
|
|
|
59970
59970
|
const reverse_kind = focus_position.kind === "long" ? "short" : "long";
|
|
59971
59971
|
const reverse_position = positions.find((k) => k.kind === reverse_kind);
|
|
59972
59972
|
const strategy2 = focus_position?.expand?.account_strategy;
|
|
59973
|
-
|
|
59974
|
-
return;
|
|
59975
|
-
}
|
|
59973
|
+
const target_pnl = Math.abs(focus_position.take_profit - focus_position.entry) * focus_position.quantity;
|
|
59976
59974
|
return computeProfitDetail({
|
|
59977
59975
|
focus_position: {
|
|
59978
59976
|
kind: focus_position.kind,
|
|
@@ -59981,11 +59979,11 @@ class ExchangeAccount {
|
|
|
59981
59979
|
avg_price: focus_position.avg_price,
|
|
59982
59980
|
avg_qty: focus_position.avg_qty
|
|
59983
59981
|
},
|
|
59984
|
-
pnl:
|
|
59982
|
+
pnl: target_pnl,
|
|
59985
59983
|
strategy: {
|
|
59986
|
-
reward_factor: strategy2
|
|
59987
|
-
risk: strategy2
|
|
59988
|
-
max_reward_factor: strategy2
|
|
59984
|
+
reward_factor: strategy2?.reward_factor || 1,
|
|
59985
|
+
risk: strategy2?.risk || 1,
|
|
59986
|
+
max_reward_factor: strategy2?.max_reward_factor || 0
|
|
59989
59987
|
},
|
|
59990
59988
|
reduce_position: {
|
|
59991
59989
|
kind: reduce_position.kind,
|
package/dist/index.js
CHANGED
|
@@ -59920,9 +59920,7 @@ class ExchangeAccount {
|
|
|
59920
59920
|
const reverse_kind = focus_position.kind === "long" ? "short" : "long";
|
|
59921
59921
|
const reverse_position = positions.find((k) => k.kind === reverse_kind);
|
|
59922
59922
|
const strategy2 = focus_position?.expand?.account_strategy;
|
|
59923
|
-
|
|
59924
|
-
return;
|
|
59925
|
-
}
|
|
59923
|
+
const target_pnl = Math.abs(focus_position.take_profit - focus_position.entry) * focus_position.quantity;
|
|
59926
59924
|
return computeProfitDetail({
|
|
59927
59925
|
focus_position: {
|
|
59928
59926
|
kind: focus_position.kind,
|
|
@@ -59931,11 +59929,11 @@ class ExchangeAccount {
|
|
|
59931
59929
|
avg_price: focus_position.avg_price,
|
|
59932
59930
|
avg_qty: focus_position.avg_qty
|
|
59933
59931
|
},
|
|
59934
|
-
pnl:
|
|
59932
|
+
pnl: target_pnl,
|
|
59935
59933
|
strategy: {
|
|
59936
|
-
reward_factor: strategy2
|
|
59937
|
-
risk: strategy2
|
|
59938
|
-
max_reward_factor: strategy2
|
|
59934
|
+
reward_factor: strategy2?.reward_factor || 1,
|
|
59935
|
+
risk: strategy2?.risk || 1,
|
|
59936
|
+
max_reward_factor: strategy2?.max_reward_factor || 0
|
|
59939
59937
|
},
|
|
59940
59938
|
reduce_position: {
|
|
59941
59939
|
kind: reduce_position.kind,
|
package/dist/mcp-server.cjs
CHANGED
|
@@ -66648,9 +66648,7 @@ class ExchangeAccount {
|
|
|
66648
66648
|
const reverse_kind = focus_position.kind === "long" ? "short" : "long";
|
|
66649
66649
|
const reverse_position = positions.find((k) => k.kind === reverse_kind);
|
|
66650
66650
|
const strategy2 = focus_position?.expand?.account_strategy;
|
|
66651
|
-
|
|
66652
|
-
return;
|
|
66653
|
-
}
|
|
66651
|
+
const target_pnl = Math.abs(focus_position.take_profit - focus_position.entry) * focus_position.quantity;
|
|
66654
66652
|
return computeProfitDetail({
|
|
66655
66653
|
focus_position: {
|
|
66656
66654
|
kind: focus_position.kind,
|
|
@@ -66659,11 +66657,11 @@ class ExchangeAccount {
|
|
|
66659
66657
|
avg_price: focus_position.avg_price,
|
|
66660
66658
|
avg_qty: focus_position.avg_qty
|
|
66661
66659
|
},
|
|
66662
|
-
pnl:
|
|
66660
|
+
pnl: target_pnl,
|
|
66663
66661
|
strategy: {
|
|
66664
|
-
reward_factor: strategy2
|
|
66665
|
-
risk: strategy2
|
|
66666
|
-
max_reward_factor: strategy2
|
|
66662
|
+
reward_factor: strategy2?.reward_factor || 1,
|
|
66663
|
+
risk: strategy2?.risk || 1,
|
|
66664
|
+
max_reward_factor: strategy2?.max_reward_factor || 0
|
|
66667
66665
|
},
|
|
66668
66666
|
reduce_position: {
|
|
66669
66667
|
kind: reduce_position.kind,
|
package/dist/mcp-server.js
CHANGED
|
@@ -66625,9 +66625,7 @@ class ExchangeAccount {
|
|
|
66625
66625
|
const reverse_kind = focus_position.kind === "long" ? "short" : "long";
|
|
66626
66626
|
const reverse_position = positions.find((k) => k.kind === reverse_kind);
|
|
66627
66627
|
const strategy2 = focus_position?.expand?.account_strategy;
|
|
66628
|
-
|
|
66629
|
-
return;
|
|
66630
|
-
}
|
|
66628
|
+
const target_pnl = Math.abs(focus_position.take_profit - focus_position.entry) * focus_position.quantity;
|
|
66631
66629
|
return computeProfitDetail({
|
|
66632
66630
|
focus_position: {
|
|
66633
66631
|
kind: focus_position.kind,
|
|
@@ -66636,11 +66634,11 @@ class ExchangeAccount {
|
|
|
66636
66634
|
avg_price: focus_position.avg_price,
|
|
66637
66635
|
avg_qty: focus_position.avg_qty
|
|
66638
66636
|
},
|
|
66639
|
-
pnl:
|
|
66637
|
+
pnl: target_pnl,
|
|
66640
66638
|
strategy: {
|
|
66641
|
-
reward_factor: strategy2
|
|
66642
|
-
risk: strategy2
|
|
66643
|
-
max_reward_factor: strategy2
|
|
66639
|
+
reward_factor: strategy2?.reward_factor || 1,
|
|
66640
|
+
risk: strategy2?.risk || 1,
|
|
66641
|
+
max_reward_factor: strategy2?.max_reward_factor || 0
|
|
66644
66642
|
},
|
|
66645
66643
|
reduce_position: {
|
|
66646
66644
|
kind: reduce_position.kind,
|