@gbozee/ultimate 0.0.2-184 → 0.0.2-186
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 -0
- package/dist/index.cjs +8 -4
- package/dist/index.d.ts +3 -0
- package/dist/index.js +8 -4
- package/dist/mcp-server.cjs +8 -4
- package/dist/mcp-server.js +8 -4
- package/package.json +1 -1
package/dist/frontend-index.d.ts
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -54711,7 +54711,8 @@ class AppDatabase {
|
|
|
54711
54711
|
"support",
|
|
54712
54712
|
"resistance",
|
|
54713
54713
|
"symbol_config",
|
|
54714
|
-
"anchor"
|
|
54714
|
+
"anchor",
|
|
54715
|
+
"watch_instance"
|
|
54715
54716
|
];
|
|
54716
54717
|
return fields.join(", ");
|
|
54717
54718
|
}
|
|
@@ -58908,6 +58909,7 @@ class BaseExchange {
|
|
|
58908
58909
|
increase = false,
|
|
58909
58910
|
price_places,
|
|
58910
58911
|
decimal_places,
|
|
58912
|
+
increase_ratio = 1,
|
|
58911
58913
|
place = true
|
|
58912
58914
|
} = payload;
|
|
58913
58915
|
const spread = 1.00005;
|
|
@@ -58924,12 +58926,12 @@ class BaseExchange {
|
|
|
58924
58926
|
is_market: false
|
|
58925
58927
|
}
|
|
58926
58928
|
];
|
|
58927
|
-
if (increase) {
|
|
58929
|
+
if (increase && increase_ratio > 0) {
|
|
58928
58930
|
order.push({
|
|
58929
58931
|
kind,
|
|
58930
58932
|
price: purchase_stop,
|
|
58931
58933
|
side: kind === "long" ? "buy" : "sell",
|
|
58932
|
-
quantity,
|
|
58934
|
+
quantity: quantity * increase_ratio,
|
|
58933
58935
|
is_market: false
|
|
58934
58936
|
});
|
|
58935
58937
|
}
|
|
@@ -61775,7 +61777,8 @@ class ExchangePosition {
|
|
|
61775
61777
|
place = false,
|
|
61776
61778
|
increase = true,
|
|
61777
61779
|
ratio_to_loose = 0,
|
|
61778
|
-
reverse_position
|
|
61780
|
+
reverse_position,
|
|
61781
|
+
increase_ratio
|
|
61779
61782
|
} = payload;
|
|
61780
61783
|
const position2 = this.instance;
|
|
61781
61784
|
console.log(position2);
|
|
@@ -61816,6 +61819,7 @@ class ExchangePosition {
|
|
|
61816
61819
|
price_places,
|
|
61817
61820
|
decimal_places,
|
|
61818
61821
|
increase,
|
|
61822
|
+
increase_ratio,
|
|
61819
61823
|
place
|
|
61820
61824
|
});
|
|
61821
61825
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -191,6 +191,7 @@ export interface CompoundInstance extends BaseSystemFields {
|
|
|
191
191
|
position?: string;
|
|
192
192
|
risk?: number;
|
|
193
193
|
hedged?: boolean;
|
|
194
|
+
loss?: number;
|
|
194
195
|
expand?: {
|
|
195
196
|
ref?: Compounder;
|
|
196
197
|
};
|
|
@@ -567,6 +568,7 @@ declare abstract class BaseExchange {
|
|
|
567
568
|
quantity: number;
|
|
568
569
|
increase?: boolean;
|
|
569
570
|
place?: boolean;
|
|
571
|
+
increase_ratio?: number;
|
|
570
572
|
}): Promise<any>;
|
|
571
573
|
abstract getOpenOrders(payload: {
|
|
572
574
|
symbol: string;
|
|
@@ -2153,6 +2155,7 @@ export declare class ExchangePosition {
|
|
|
2153
2155
|
increase?: boolean;
|
|
2154
2156
|
ratio_to_loose?: number;
|
|
2155
2157
|
reverse_position?: ExchangePosition;
|
|
2158
|
+
increase_ratio?: number;
|
|
2156
2159
|
}): Promise<any>;
|
|
2157
2160
|
lockReduction({ pnl, place, pause_tp, }: {
|
|
2158
2161
|
pnl: number;
|
package/dist/index.js
CHANGED
|
@@ -54649,7 +54649,8 @@ class AppDatabase {
|
|
|
54649
54649
|
"support",
|
|
54650
54650
|
"resistance",
|
|
54651
54651
|
"symbol_config",
|
|
54652
|
-
"anchor"
|
|
54652
|
+
"anchor",
|
|
54653
|
+
"watch_instance"
|
|
54653
54654
|
];
|
|
54654
54655
|
return fields.join(", ");
|
|
54655
54656
|
}
|
|
@@ -58846,6 +58847,7 @@ class BaseExchange {
|
|
|
58846
58847
|
increase = false,
|
|
58847
58848
|
price_places,
|
|
58848
58849
|
decimal_places,
|
|
58850
|
+
increase_ratio = 1,
|
|
58849
58851
|
place = true
|
|
58850
58852
|
} = payload;
|
|
58851
58853
|
const spread = 1.00005;
|
|
@@ -58862,12 +58864,12 @@ class BaseExchange {
|
|
|
58862
58864
|
is_market: false
|
|
58863
58865
|
}
|
|
58864
58866
|
];
|
|
58865
|
-
if (increase) {
|
|
58867
|
+
if (increase && increase_ratio > 0) {
|
|
58866
58868
|
order.push({
|
|
58867
58869
|
kind,
|
|
58868
58870
|
price: purchase_stop,
|
|
58869
58871
|
side: kind === "long" ? "buy" : "sell",
|
|
58870
|
-
quantity,
|
|
58872
|
+
quantity: quantity * increase_ratio,
|
|
58871
58873
|
is_market: false
|
|
58872
58874
|
});
|
|
58873
58875
|
}
|
|
@@ -61713,7 +61715,8 @@ class ExchangePosition {
|
|
|
61713
61715
|
place = false,
|
|
61714
61716
|
increase = true,
|
|
61715
61717
|
ratio_to_loose = 0,
|
|
61716
|
-
reverse_position
|
|
61718
|
+
reverse_position,
|
|
61719
|
+
increase_ratio
|
|
61717
61720
|
} = payload;
|
|
61718
61721
|
const position2 = this.instance;
|
|
61719
61722
|
console.log(position2);
|
|
@@ -61754,6 +61757,7 @@ class ExchangePosition {
|
|
|
61754
61757
|
price_places,
|
|
61755
61758
|
decimal_places,
|
|
61756
61759
|
increase,
|
|
61760
|
+
increase_ratio,
|
|
61757
61761
|
place
|
|
61758
61762
|
});
|
|
61759
61763
|
}
|
package/dist/mcp-server.cjs
CHANGED
|
@@ -61405,7 +61405,8 @@ class AppDatabase {
|
|
|
61405
61405
|
"support",
|
|
61406
61406
|
"resistance",
|
|
61407
61407
|
"symbol_config",
|
|
61408
|
-
"anchor"
|
|
61408
|
+
"anchor",
|
|
61409
|
+
"watch_instance"
|
|
61409
61410
|
];
|
|
61410
61411
|
return fields.join(", ");
|
|
61411
61412
|
}
|
|
@@ -65484,6 +65485,7 @@ class BaseExchange {
|
|
|
65484
65485
|
increase = false,
|
|
65485
65486
|
price_places,
|
|
65486
65487
|
decimal_places,
|
|
65488
|
+
increase_ratio = 1,
|
|
65487
65489
|
place = true
|
|
65488
65490
|
} = payload;
|
|
65489
65491
|
const spread = 1.00005;
|
|
@@ -65500,12 +65502,12 @@ class BaseExchange {
|
|
|
65500
65502
|
is_market: false
|
|
65501
65503
|
}
|
|
65502
65504
|
];
|
|
65503
|
-
if (increase) {
|
|
65505
|
+
if (increase && increase_ratio > 0) {
|
|
65504
65506
|
order.push({
|
|
65505
65507
|
kind,
|
|
65506
65508
|
price: purchase_stop,
|
|
65507
65509
|
side: kind === "long" ? "buy" : "sell",
|
|
65508
|
-
quantity,
|
|
65510
|
+
quantity: quantity * increase_ratio,
|
|
65509
65511
|
is_market: false
|
|
65510
65512
|
});
|
|
65511
65513
|
}
|
|
@@ -68351,7 +68353,8 @@ class ExchangePosition {
|
|
|
68351
68353
|
place = false,
|
|
68352
68354
|
increase = true,
|
|
68353
68355
|
ratio_to_loose = 0,
|
|
68354
|
-
reverse_position
|
|
68356
|
+
reverse_position,
|
|
68357
|
+
increase_ratio
|
|
68355
68358
|
} = payload;
|
|
68356
68359
|
const position2 = this.instance;
|
|
68357
68360
|
console.log(position2);
|
|
@@ -68392,6 +68395,7 @@ class ExchangePosition {
|
|
|
68392
68395
|
price_places,
|
|
68393
68396
|
decimal_places,
|
|
68394
68397
|
increase,
|
|
68398
|
+
increase_ratio,
|
|
68395
68399
|
place
|
|
68396
68400
|
});
|
|
68397
68401
|
}
|
package/dist/mcp-server.js
CHANGED
|
@@ -61378,7 +61378,8 @@ class AppDatabase {
|
|
|
61378
61378
|
"support",
|
|
61379
61379
|
"resistance",
|
|
61380
61380
|
"symbol_config",
|
|
61381
|
-
"anchor"
|
|
61381
|
+
"anchor",
|
|
61382
|
+
"watch_instance"
|
|
61382
61383
|
];
|
|
61383
61384
|
return fields.join(", ");
|
|
61384
61385
|
}
|
|
@@ -65457,6 +65458,7 @@ class BaseExchange {
|
|
|
65457
65458
|
increase = false,
|
|
65458
65459
|
price_places,
|
|
65459
65460
|
decimal_places,
|
|
65461
|
+
increase_ratio = 1,
|
|
65460
65462
|
place = true
|
|
65461
65463
|
} = payload;
|
|
65462
65464
|
const spread = 1.00005;
|
|
@@ -65473,12 +65475,12 @@ class BaseExchange {
|
|
|
65473
65475
|
is_market: false
|
|
65474
65476
|
}
|
|
65475
65477
|
];
|
|
65476
|
-
if (increase) {
|
|
65478
|
+
if (increase && increase_ratio > 0) {
|
|
65477
65479
|
order.push({
|
|
65478
65480
|
kind,
|
|
65479
65481
|
price: purchase_stop,
|
|
65480
65482
|
side: kind === "long" ? "buy" : "sell",
|
|
65481
|
-
quantity,
|
|
65483
|
+
quantity: quantity * increase_ratio,
|
|
65482
65484
|
is_market: false
|
|
65483
65485
|
});
|
|
65484
65486
|
}
|
|
@@ -68324,7 +68326,8 @@ class ExchangePosition {
|
|
|
68324
68326
|
place = false,
|
|
68325
68327
|
increase = true,
|
|
68326
68328
|
ratio_to_loose = 0,
|
|
68327
|
-
reverse_position
|
|
68329
|
+
reverse_position,
|
|
68330
|
+
increase_ratio
|
|
68328
68331
|
} = payload;
|
|
68329
68332
|
const position2 = this.instance;
|
|
68330
68333
|
console.log(position2);
|
|
@@ -68365,6 +68368,7 @@ class ExchangePosition {
|
|
|
68365
68368
|
price_places,
|
|
68366
68369
|
decimal_places,
|
|
68367
68370
|
increase,
|
|
68371
|
+
increase_ratio,
|
|
68368
68372
|
place
|
|
68369
68373
|
});
|
|
68370
68374
|
}
|