@gbozee/ultimate 0.0.2-128 → 0.0.2-129
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 +1 -1
- package/dist/index.d.ts +4 -0
- 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/index.cjs
CHANGED
|
@@ -59970,7 +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
|
-
const target_pnl = Math.abs(focus_position.
|
|
59973
|
+
const target_pnl = Math.abs(focus_position.tp.price - focus_position.entry) * focus_position.quantity;
|
|
59974
59974
|
return computeProfitDetail({
|
|
59975
59975
|
focus_position: {
|
|
59976
59976
|
kind: focus_position.kind,
|
package/dist/index.d.ts
CHANGED
|
@@ -124,6 +124,10 @@ export interface PositionsView {
|
|
|
124
124
|
follow?: boolean | 1 | 0;
|
|
125
125
|
current_price?: number;
|
|
126
126
|
usd_balance?: number;
|
|
127
|
+
tp?: {
|
|
128
|
+
price: number;
|
|
129
|
+
quantity: number;
|
|
130
|
+
};
|
|
127
131
|
}
|
|
128
132
|
export interface BullishMarket extends RecordModel {
|
|
129
133
|
id: string;
|
package/dist/index.js
CHANGED
|
@@ -59920,7 +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
|
-
const target_pnl = Math.abs(focus_position.
|
|
59923
|
+
const target_pnl = Math.abs(focus_position.tp.price - focus_position.entry) * focus_position.quantity;
|
|
59924
59924
|
return computeProfitDetail({
|
|
59925
59925
|
focus_position: {
|
|
59926
59926
|
kind: focus_position.kind,
|
package/dist/mcp-server.cjs
CHANGED
|
@@ -66648,7 +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
|
-
const target_pnl = Math.abs(focus_position.
|
|
66651
|
+
const target_pnl = Math.abs(focus_position.tp.price - focus_position.entry) * focus_position.quantity;
|
|
66652
66652
|
return computeProfitDetail({
|
|
66653
66653
|
focus_position: {
|
|
66654
66654
|
kind: focus_position.kind,
|
package/dist/mcp-server.js
CHANGED
|
@@ -66625,7 +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
|
-
const target_pnl = Math.abs(focus_position.
|
|
66628
|
+
const target_pnl = Math.abs(focus_position.tp.price - focus_position.entry) * focus_position.quantity;
|
|
66629
66629
|
return computeProfitDetail({
|
|
66630
66630
|
focus_position: {
|
|
66631
66631
|
kind: focus_position.kind,
|