@gbozee/ultimate 0.0.2-76 → 0.0.2-77
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 +28 -21
- package/dist/index.js +28 -21
- package/dist/mcp-server.cjs +28 -21
- package/dist/mcp-server.js +28 -21
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -58013,30 +58013,37 @@ class ExchangeAccount {
|
|
|
58013
58013
|
avg_entry: strategy.position[kind].avg_price
|
|
58014
58014
|
});
|
|
58015
58015
|
if (place && result?.kind) {
|
|
58016
|
-
const
|
|
58017
|
-
symbol,
|
|
58018
|
-
kind: result.kind
|
|
58019
|
-
});
|
|
58020
|
-
await this.app_db.updateScheduledTrade(config2.id, {
|
|
58021
|
-
entry: result.entry,
|
|
58022
|
-
stop: result.stop,
|
|
58023
|
-
risk: result.risk_per_trade,
|
|
58024
|
-
profit_percent: result.profit_percent,
|
|
58025
|
-
risk_reward: result.risk_reward
|
|
58026
|
-
});
|
|
58027
|
-
await this.placeTrade({
|
|
58016
|
+
const position2 = await this.syncAccount({
|
|
58028
58017
|
symbol,
|
|
58029
58018
|
kind: result.kind,
|
|
58030
|
-
|
|
58031
|
-
ignore_config: true
|
|
58032
|
-
});
|
|
58033
|
-
await this.placeTrade({
|
|
58034
|
-
symbol,
|
|
58035
|
-
kind: result.kind,
|
|
58036
|
-
place: true,
|
|
58037
|
-
stop: true,
|
|
58038
|
-
ignore_config: true
|
|
58019
|
+
as_view: true
|
|
58039
58020
|
});
|
|
58021
|
+
if (position2.avg_qty !== result.avg.quantity) {
|
|
58022
|
+
const config2 = await this.getPositionConfig({
|
|
58023
|
+
symbol,
|
|
58024
|
+
kind: result.kind
|
|
58025
|
+
});
|
|
58026
|
+
await this.app_db.updateScheduledTrade(config2.id, {
|
|
58027
|
+
entry: result.entry,
|
|
58028
|
+
stop: result.stop,
|
|
58029
|
+
risk: result.risk_per_trade,
|
|
58030
|
+
profit_percent: result.profit_percent,
|
|
58031
|
+
risk_reward: result.risk_reward
|
|
58032
|
+
});
|
|
58033
|
+
await this.placeTrade({
|
|
58034
|
+
symbol,
|
|
58035
|
+
kind: result.kind,
|
|
58036
|
+
place: true,
|
|
58037
|
+
ignore_config: true
|
|
58038
|
+
});
|
|
58039
|
+
await this.placeTrade({
|
|
58040
|
+
symbol,
|
|
58041
|
+
kind: result.kind,
|
|
58042
|
+
place: true,
|
|
58043
|
+
stop: true,
|
|
58044
|
+
ignore_config: true
|
|
58045
|
+
});
|
|
58046
|
+
}
|
|
58040
58047
|
}
|
|
58041
58048
|
return result;
|
|
58042
58049
|
}
|
package/dist/index.js
CHANGED
|
@@ -57968,30 +57968,37 @@ class ExchangeAccount {
|
|
|
57968
57968
|
avg_entry: strategy.position[kind].avg_price
|
|
57969
57969
|
});
|
|
57970
57970
|
if (place && result?.kind) {
|
|
57971
|
-
const
|
|
57972
|
-
symbol,
|
|
57973
|
-
kind: result.kind
|
|
57974
|
-
});
|
|
57975
|
-
await this.app_db.updateScheduledTrade(config2.id, {
|
|
57976
|
-
entry: result.entry,
|
|
57977
|
-
stop: result.stop,
|
|
57978
|
-
risk: result.risk_per_trade,
|
|
57979
|
-
profit_percent: result.profit_percent,
|
|
57980
|
-
risk_reward: result.risk_reward
|
|
57981
|
-
});
|
|
57982
|
-
await this.placeTrade({
|
|
57971
|
+
const position2 = await this.syncAccount({
|
|
57983
57972
|
symbol,
|
|
57984
57973
|
kind: result.kind,
|
|
57985
|
-
|
|
57986
|
-
ignore_config: true
|
|
57987
|
-
});
|
|
57988
|
-
await this.placeTrade({
|
|
57989
|
-
symbol,
|
|
57990
|
-
kind: result.kind,
|
|
57991
|
-
place: true,
|
|
57992
|
-
stop: true,
|
|
57993
|
-
ignore_config: true
|
|
57974
|
+
as_view: true
|
|
57994
57975
|
});
|
|
57976
|
+
if (position2.avg_qty !== result.avg.quantity) {
|
|
57977
|
+
const config2 = await this.getPositionConfig({
|
|
57978
|
+
symbol,
|
|
57979
|
+
kind: result.kind
|
|
57980
|
+
});
|
|
57981
|
+
await this.app_db.updateScheduledTrade(config2.id, {
|
|
57982
|
+
entry: result.entry,
|
|
57983
|
+
stop: result.stop,
|
|
57984
|
+
risk: result.risk_per_trade,
|
|
57985
|
+
profit_percent: result.profit_percent,
|
|
57986
|
+
risk_reward: result.risk_reward
|
|
57987
|
+
});
|
|
57988
|
+
await this.placeTrade({
|
|
57989
|
+
symbol,
|
|
57990
|
+
kind: result.kind,
|
|
57991
|
+
place: true,
|
|
57992
|
+
ignore_config: true
|
|
57993
|
+
});
|
|
57994
|
+
await this.placeTrade({
|
|
57995
|
+
symbol,
|
|
57996
|
+
kind: result.kind,
|
|
57997
|
+
place: true,
|
|
57998
|
+
stop: true,
|
|
57999
|
+
ignore_config: true
|
|
58000
|
+
});
|
|
58001
|
+
}
|
|
57995
58002
|
}
|
|
57996
58003
|
return result;
|
|
57997
58004
|
}
|
package/dist/mcp-server.cjs
CHANGED
|
@@ -64704,30 +64704,37 @@ class ExchangeAccount {
|
|
|
64704
64704
|
avg_entry: strategy.position[kind].avg_price
|
|
64705
64705
|
});
|
|
64706
64706
|
if (place && result?.kind) {
|
|
64707
|
-
const
|
|
64708
|
-
symbol,
|
|
64709
|
-
kind: result.kind
|
|
64710
|
-
});
|
|
64711
|
-
await this.app_db.updateScheduledTrade(config2.id, {
|
|
64712
|
-
entry: result.entry,
|
|
64713
|
-
stop: result.stop,
|
|
64714
|
-
risk: result.risk_per_trade,
|
|
64715
|
-
profit_percent: result.profit_percent,
|
|
64716
|
-
risk_reward: result.risk_reward
|
|
64717
|
-
});
|
|
64718
|
-
await this.placeTrade({
|
|
64707
|
+
const position2 = await this.syncAccount({
|
|
64719
64708
|
symbol,
|
|
64720
64709
|
kind: result.kind,
|
|
64721
|
-
|
|
64722
|
-
ignore_config: true
|
|
64723
|
-
});
|
|
64724
|
-
await this.placeTrade({
|
|
64725
|
-
symbol,
|
|
64726
|
-
kind: result.kind,
|
|
64727
|
-
place: true,
|
|
64728
|
-
stop: true,
|
|
64729
|
-
ignore_config: true
|
|
64710
|
+
as_view: true
|
|
64730
64711
|
});
|
|
64712
|
+
if (position2.avg_qty !== result.avg.quantity) {
|
|
64713
|
+
const config2 = await this.getPositionConfig({
|
|
64714
|
+
symbol,
|
|
64715
|
+
kind: result.kind
|
|
64716
|
+
});
|
|
64717
|
+
await this.app_db.updateScheduledTrade(config2.id, {
|
|
64718
|
+
entry: result.entry,
|
|
64719
|
+
stop: result.stop,
|
|
64720
|
+
risk: result.risk_per_trade,
|
|
64721
|
+
profit_percent: result.profit_percent,
|
|
64722
|
+
risk_reward: result.risk_reward
|
|
64723
|
+
});
|
|
64724
|
+
await this.placeTrade({
|
|
64725
|
+
symbol,
|
|
64726
|
+
kind: result.kind,
|
|
64727
|
+
place: true,
|
|
64728
|
+
ignore_config: true
|
|
64729
|
+
});
|
|
64730
|
+
await this.placeTrade({
|
|
64731
|
+
symbol,
|
|
64732
|
+
kind: result.kind,
|
|
64733
|
+
place: true,
|
|
64734
|
+
stop: true,
|
|
64735
|
+
ignore_config: true
|
|
64736
|
+
});
|
|
64737
|
+
}
|
|
64731
64738
|
}
|
|
64732
64739
|
return result;
|
|
64733
64740
|
}
|
package/dist/mcp-server.js
CHANGED
|
@@ -64681,30 +64681,37 @@ class ExchangeAccount {
|
|
|
64681
64681
|
avg_entry: strategy.position[kind].avg_price
|
|
64682
64682
|
});
|
|
64683
64683
|
if (place && result?.kind) {
|
|
64684
|
-
const
|
|
64685
|
-
symbol,
|
|
64686
|
-
kind: result.kind
|
|
64687
|
-
});
|
|
64688
|
-
await this.app_db.updateScheduledTrade(config2.id, {
|
|
64689
|
-
entry: result.entry,
|
|
64690
|
-
stop: result.stop,
|
|
64691
|
-
risk: result.risk_per_trade,
|
|
64692
|
-
profit_percent: result.profit_percent,
|
|
64693
|
-
risk_reward: result.risk_reward
|
|
64694
|
-
});
|
|
64695
|
-
await this.placeTrade({
|
|
64684
|
+
const position2 = await this.syncAccount({
|
|
64696
64685
|
symbol,
|
|
64697
64686
|
kind: result.kind,
|
|
64698
|
-
|
|
64699
|
-
ignore_config: true
|
|
64700
|
-
});
|
|
64701
|
-
await this.placeTrade({
|
|
64702
|
-
symbol,
|
|
64703
|
-
kind: result.kind,
|
|
64704
|
-
place: true,
|
|
64705
|
-
stop: true,
|
|
64706
|
-
ignore_config: true
|
|
64687
|
+
as_view: true
|
|
64707
64688
|
});
|
|
64689
|
+
if (position2.avg_qty !== result.avg.quantity) {
|
|
64690
|
+
const config2 = await this.getPositionConfig({
|
|
64691
|
+
symbol,
|
|
64692
|
+
kind: result.kind
|
|
64693
|
+
});
|
|
64694
|
+
await this.app_db.updateScheduledTrade(config2.id, {
|
|
64695
|
+
entry: result.entry,
|
|
64696
|
+
stop: result.stop,
|
|
64697
|
+
risk: result.risk_per_trade,
|
|
64698
|
+
profit_percent: result.profit_percent,
|
|
64699
|
+
risk_reward: result.risk_reward
|
|
64700
|
+
});
|
|
64701
|
+
await this.placeTrade({
|
|
64702
|
+
symbol,
|
|
64703
|
+
kind: result.kind,
|
|
64704
|
+
place: true,
|
|
64705
|
+
ignore_config: true
|
|
64706
|
+
});
|
|
64707
|
+
await this.placeTrade({
|
|
64708
|
+
symbol,
|
|
64709
|
+
kind: result.kind,
|
|
64710
|
+
place: true,
|
|
64711
|
+
stop: true,
|
|
64712
|
+
ignore_config: true
|
|
64713
|
+
});
|
|
64714
|
+
}
|
|
64708
64715
|
}
|
|
64709
64716
|
return result;
|
|
64710
64717
|
}
|