@gbozee/ultimate 0.0.2-143 → 0.0.2-144
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 +15 -10
- package/dist/index.d.ts +2 -0
- package/dist/index.js +15 -10
- package/dist/mcp-server.cjs +15 -10
- package/dist/mcp-server.js +15 -10
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -55256,16 +55256,18 @@ class BaseExchange {
|
|
|
55256
55256
|
price_places = "%.1f",
|
|
55257
55257
|
symbol
|
|
55258
55258
|
} = payload;
|
|
55259
|
+
const order_payload = orders.map((order) => ({
|
|
55260
|
+
...order,
|
|
55261
|
+
price: order.entry,
|
|
55262
|
+
kind,
|
|
55263
|
+
side: kind.toLowerCase() === "long" ? "buy" : "sell",
|
|
55264
|
+
stop: undefined
|
|
55265
|
+
}));
|
|
55259
55266
|
return await this._createLimitPurchaseOrders({
|
|
55260
55267
|
symbol,
|
|
55261
55268
|
price_places,
|
|
55262
55269
|
decimal_places,
|
|
55263
|
-
orders:
|
|
55264
|
-
...order,
|
|
55265
|
-
price: order.entry,
|
|
55266
|
-
kind,
|
|
55267
|
-
side: kind.toLowerCase() === "long" ? "buy" : "sell"
|
|
55268
|
-
}))
|
|
55270
|
+
orders: order_payload
|
|
55269
55271
|
});
|
|
55270
55272
|
}
|
|
55271
55273
|
async placeMarketOrder(payload) {
|
|
@@ -58973,7 +58975,8 @@ class ExchangeAccount {
|
|
|
58973
58975
|
place = true,
|
|
58974
58976
|
stop,
|
|
58975
58977
|
use_current,
|
|
58976
|
-
ignore_config
|
|
58978
|
+
ignore_config,
|
|
58979
|
+
risky
|
|
58977
58980
|
} = payload;
|
|
58978
58981
|
const position2 = await this.syncAccount({
|
|
58979
58982
|
symbol,
|
|
@@ -58987,7 +58990,7 @@ class ExchangeAccount {
|
|
|
58987
58990
|
let condition = ignore_config ? true : position2?.config;
|
|
58988
58991
|
if (condition) {
|
|
58989
58992
|
let entry = payload.tp ? position2.entry || config2.entry : config2.entry;
|
|
58990
|
-
const v = stop ? "place_stop_orders" : "place_limit_orders";
|
|
58993
|
+
const v = stop ? "place_stop_orders" : risky ? "dangerous_entry_orders" : "place_limit_orders";
|
|
58991
58994
|
return await this.placeSharedOrder(v, {
|
|
58992
58995
|
symbol,
|
|
58993
58996
|
entry,
|
|
@@ -60010,7 +60013,8 @@ class ExchangeAccount {
|
|
|
60010
60013
|
cancel,
|
|
60011
60014
|
stop,
|
|
60012
60015
|
ignore_config,
|
|
60013
|
-
target_pnl
|
|
60016
|
+
target_pnl,
|
|
60017
|
+
risky
|
|
60014
60018
|
} = payload;
|
|
60015
60019
|
if (cancel) {
|
|
60016
60020
|
await this.cancelOrders({
|
|
@@ -60025,7 +60029,8 @@ class ExchangeAccount {
|
|
|
60025
60029
|
raw: payload.raw,
|
|
60026
60030
|
stop,
|
|
60027
60031
|
ignore_config,
|
|
60028
|
-
place
|
|
60032
|
+
place,
|
|
60033
|
+
risky
|
|
60029
60034
|
});
|
|
60030
60035
|
}
|
|
60031
60036
|
await this.syncAccount({
|
package/dist/index.d.ts
CHANGED
|
@@ -2082,6 +2082,7 @@ declare class ExchangeAccount$1 {
|
|
|
2082
2082
|
stop?: boolean;
|
|
2083
2083
|
use_current?: boolean;
|
|
2084
2084
|
ignore_config?: boolean;
|
|
2085
|
+
risky?: boolean;
|
|
2085
2086
|
}): Promise<any>;
|
|
2086
2087
|
verifyStopLoss(payload: {
|
|
2087
2088
|
symbol: string;
|
|
@@ -2316,6 +2317,7 @@ declare class ExchangeAccount$1 {
|
|
|
2316
2317
|
cancel?: boolean;
|
|
2317
2318
|
ignore_config?: boolean;
|
|
2318
2319
|
target_pnl?: number;
|
|
2320
|
+
risky?: boolean;
|
|
2319
2321
|
}): Promise<any>;
|
|
2320
2322
|
updateConfigPnl(payload: {
|
|
2321
2323
|
symbol: string;
|
package/dist/index.js
CHANGED
|
@@ -55204,16 +55204,18 @@ class BaseExchange {
|
|
|
55204
55204
|
price_places = "%.1f",
|
|
55205
55205
|
symbol
|
|
55206
55206
|
} = payload;
|
|
55207
|
+
const order_payload = orders.map((order) => ({
|
|
55208
|
+
...order,
|
|
55209
|
+
price: order.entry,
|
|
55210
|
+
kind,
|
|
55211
|
+
side: kind.toLowerCase() === "long" ? "buy" : "sell",
|
|
55212
|
+
stop: undefined
|
|
55213
|
+
}));
|
|
55207
55214
|
return await this._createLimitPurchaseOrders({
|
|
55208
55215
|
symbol,
|
|
55209
55216
|
price_places,
|
|
55210
55217
|
decimal_places,
|
|
55211
|
-
orders:
|
|
55212
|
-
...order,
|
|
55213
|
-
price: order.entry,
|
|
55214
|
-
kind,
|
|
55215
|
-
side: kind.toLowerCase() === "long" ? "buy" : "sell"
|
|
55216
|
-
}))
|
|
55218
|
+
orders: order_payload
|
|
55217
55219
|
});
|
|
55218
55220
|
}
|
|
55219
55221
|
async placeMarketOrder(payload) {
|
|
@@ -58921,7 +58923,8 @@ class ExchangeAccount {
|
|
|
58921
58923
|
place = true,
|
|
58922
58924
|
stop,
|
|
58923
58925
|
use_current,
|
|
58924
|
-
ignore_config
|
|
58926
|
+
ignore_config,
|
|
58927
|
+
risky
|
|
58925
58928
|
} = payload;
|
|
58926
58929
|
const position2 = await this.syncAccount({
|
|
58927
58930
|
symbol,
|
|
@@ -58935,7 +58938,7 @@ class ExchangeAccount {
|
|
|
58935
58938
|
let condition = ignore_config ? true : position2?.config;
|
|
58936
58939
|
if (condition) {
|
|
58937
58940
|
let entry = payload.tp ? position2.entry || config2.entry : config2.entry;
|
|
58938
|
-
const v = stop ? "place_stop_orders" : "place_limit_orders";
|
|
58941
|
+
const v = stop ? "place_stop_orders" : risky ? "dangerous_entry_orders" : "place_limit_orders";
|
|
58939
58942
|
return await this.placeSharedOrder(v, {
|
|
58940
58943
|
symbol,
|
|
58941
58944
|
entry,
|
|
@@ -59958,7 +59961,8 @@ class ExchangeAccount {
|
|
|
59958
59961
|
cancel,
|
|
59959
59962
|
stop,
|
|
59960
59963
|
ignore_config,
|
|
59961
|
-
target_pnl
|
|
59964
|
+
target_pnl,
|
|
59965
|
+
risky
|
|
59962
59966
|
} = payload;
|
|
59963
59967
|
if (cancel) {
|
|
59964
59968
|
await this.cancelOrders({
|
|
@@ -59973,7 +59977,8 @@ class ExchangeAccount {
|
|
|
59973
59977
|
raw: payload.raw,
|
|
59974
59978
|
stop,
|
|
59975
59979
|
ignore_config,
|
|
59976
|
-
place
|
|
59980
|
+
place,
|
|
59981
|
+
risky
|
|
59977
59982
|
});
|
|
59978
59983
|
}
|
|
59979
59984
|
await this.syncAccount({
|
package/dist/mcp-server.cjs
CHANGED
|
@@ -61932,16 +61932,18 @@ class BaseExchange {
|
|
|
61932
61932
|
price_places = "%.1f",
|
|
61933
61933
|
symbol
|
|
61934
61934
|
} = payload;
|
|
61935
|
+
const order_payload = orders.map((order) => ({
|
|
61936
|
+
...order,
|
|
61937
|
+
price: order.entry,
|
|
61938
|
+
kind,
|
|
61939
|
+
side: kind.toLowerCase() === "long" ? "buy" : "sell",
|
|
61940
|
+
stop: undefined
|
|
61941
|
+
}));
|
|
61935
61942
|
return await this._createLimitPurchaseOrders({
|
|
61936
61943
|
symbol,
|
|
61937
61944
|
price_places,
|
|
61938
61945
|
decimal_places,
|
|
61939
|
-
orders:
|
|
61940
|
-
...order,
|
|
61941
|
-
price: order.entry,
|
|
61942
|
-
kind,
|
|
61943
|
-
side: kind.toLowerCase() === "long" ? "buy" : "sell"
|
|
61944
|
-
}))
|
|
61946
|
+
orders: order_payload
|
|
61945
61947
|
});
|
|
61946
61948
|
}
|
|
61947
61949
|
async placeMarketOrder(payload) {
|
|
@@ -65649,7 +65651,8 @@ class ExchangeAccount {
|
|
|
65649
65651
|
place = true,
|
|
65650
65652
|
stop,
|
|
65651
65653
|
use_current,
|
|
65652
|
-
ignore_config
|
|
65654
|
+
ignore_config,
|
|
65655
|
+
risky
|
|
65653
65656
|
} = payload;
|
|
65654
65657
|
const position2 = await this.syncAccount({
|
|
65655
65658
|
symbol,
|
|
@@ -65663,7 +65666,7 @@ class ExchangeAccount {
|
|
|
65663
65666
|
let condition = ignore_config ? true : position2?.config;
|
|
65664
65667
|
if (condition) {
|
|
65665
65668
|
let entry = payload.tp ? position2.entry || config2.entry : config2.entry;
|
|
65666
|
-
const v = stop ? "place_stop_orders" : "place_limit_orders";
|
|
65669
|
+
const v = stop ? "place_stop_orders" : risky ? "dangerous_entry_orders" : "place_limit_orders";
|
|
65667
65670
|
return await this.placeSharedOrder(v, {
|
|
65668
65671
|
symbol,
|
|
65669
65672
|
entry,
|
|
@@ -66686,7 +66689,8 @@ class ExchangeAccount {
|
|
|
66686
66689
|
cancel,
|
|
66687
66690
|
stop,
|
|
66688
66691
|
ignore_config,
|
|
66689
|
-
target_pnl
|
|
66692
|
+
target_pnl,
|
|
66693
|
+
risky
|
|
66690
66694
|
} = payload;
|
|
66691
66695
|
if (cancel) {
|
|
66692
66696
|
await this.cancelOrders({
|
|
@@ -66701,7 +66705,8 @@ class ExchangeAccount {
|
|
|
66701
66705
|
raw: payload.raw,
|
|
66702
66706
|
stop,
|
|
66703
66707
|
ignore_config,
|
|
66704
|
-
place
|
|
66708
|
+
place,
|
|
66709
|
+
risky
|
|
66705
66710
|
});
|
|
66706
66711
|
}
|
|
66707
66712
|
await this.syncAccount({
|
package/dist/mcp-server.js
CHANGED
|
@@ -61909,16 +61909,18 @@ class BaseExchange {
|
|
|
61909
61909
|
price_places = "%.1f",
|
|
61910
61910
|
symbol
|
|
61911
61911
|
} = payload;
|
|
61912
|
+
const order_payload = orders.map((order) => ({
|
|
61913
|
+
...order,
|
|
61914
|
+
price: order.entry,
|
|
61915
|
+
kind,
|
|
61916
|
+
side: kind.toLowerCase() === "long" ? "buy" : "sell",
|
|
61917
|
+
stop: undefined
|
|
61918
|
+
}));
|
|
61912
61919
|
return await this._createLimitPurchaseOrders({
|
|
61913
61920
|
symbol,
|
|
61914
61921
|
price_places,
|
|
61915
61922
|
decimal_places,
|
|
61916
|
-
orders:
|
|
61917
|
-
...order,
|
|
61918
|
-
price: order.entry,
|
|
61919
|
-
kind,
|
|
61920
|
-
side: kind.toLowerCase() === "long" ? "buy" : "sell"
|
|
61921
|
-
}))
|
|
61923
|
+
orders: order_payload
|
|
61922
61924
|
});
|
|
61923
61925
|
}
|
|
61924
61926
|
async placeMarketOrder(payload) {
|
|
@@ -65626,7 +65628,8 @@ class ExchangeAccount {
|
|
|
65626
65628
|
place = true,
|
|
65627
65629
|
stop,
|
|
65628
65630
|
use_current,
|
|
65629
|
-
ignore_config
|
|
65631
|
+
ignore_config,
|
|
65632
|
+
risky
|
|
65630
65633
|
} = payload;
|
|
65631
65634
|
const position2 = await this.syncAccount({
|
|
65632
65635
|
symbol,
|
|
@@ -65640,7 +65643,7 @@ class ExchangeAccount {
|
|
|
65640
65643
|
let condition = ignore_config ? true : position2?.config;
|
|
65641
65644
|
if (condition) {
|
|
65642
65645
|
let entry = payload.tp ? position2.entry || config2.entry : config2.entry;
|
|
65643
|
-
const v = stop ? "place_stop_orders" : "place_limit_orders";
|
|
65646
|
+
const v = stop ? "place_stop_orders" : risky ? "dangerous_entry_orders" : "place_limit_orders";
|
|
65644
65647
|
return await this.placeSharedOrder(v, {
|
|
65645
65648
|
symbol,
|
|
65646
65649
|
entry,
|
|
@@ -66663,7 +66666,8 @@ class ExchangeAccount {
|
|
|
66663
66666
|
cancel,
|
|
66664
66667
|
stop,
|
|
66665
66668
|
ignore_config,
|
|
66666
|
-
target_pnl
|
|
66669
|
+
target_pnl,
|
|
66670
|
+
risky
|
|
66667
66671
|
} = payload;
|
|
66668
66672
|
if (cancel) {
|
|
66669
66673
|
await this.cancelOrders({
|
|
@@ -66678,7 +66682,8 @@ class ExchangeAccount {
|
|
|
66678
66682
|
raw: payload.raw,
|
|
66679
66683
|
stop,
|
|
66680
66684
|
ignore_config,
|
|
66681
|
-
place
|
|
66685
|
+
place,
|
|
66686
|
+
risky
|
|
66682
66687
|
});
|
|
66683
66688
|
}
|
|
66684
66689
|
await this.syncAccount({
|