@gbozee/ultimate 0.0.2-82 → 0.0.2-83
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 +29 -20
- package/dist/index.js +29 -20
- package/dist/mcp-server.cjs +29 -20
- package/dist/mcp-server.js +29 -20
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -59135,33 +59135,42 @@ class App {
|
|
|
59135
59135
|
}
|
|
59136
59136
|
});
|
|
59137
59137
|
console.log("Checking reverse orders to buy for ", symbol, reverse_action.kind);
|
|
59138
|
-
|
|
59139
|
-
symbol,
|
|
59140
|
-
raw: true,
|
|
59141
|
-
kind: reverse_action.kind,
|
|
59142
|
-
place: false
|
|
59143
|
-
});
|
|
59144
|
-
let _reverse_config = {
|
|
59145
|
-
avg: reverse_action.avg,
|
|
59138
|
+
const reverse_app_config = await exchange_account.buildAppConfig({
|
|
59146
59139
|
entry: reverse_action.entry,
|
|
59147
59140
|
stop: reverse_action.stop,
|
|
59148
|
-
|
|
59149
|
-
|
|
59150
|
-
|
|
59151
|
-
};
|
|
59152
|
-
if (
|
|
59153
|
-
|
|
59154
|
-
let existing = await exchange_account.placeOppositeTradeAction({
|
|
59141
|
+
risk_reward: reverse_action.risk_reward,
|
|
59142
|
+
risk: reverse_action.risk_per_trade,
|
|
59143
|
+
symbol
|
|
59144
|
+
});
|
|
59145
|
+
if (reverse_app_config.max_size != reverse_position.avg_qty) {
|
|
59146
|
+
reverse_orders_to_buy = await exchange_account.placeTrade({
|
|
59155
59147
|
symbol,
|
|
59148
|
+
raw: true,
|
|
59156
59149
|
kind: reverse_action.kind,
|
|
59157
|
-
|
|
59150
|
+
place: false
|
|
59158
59151
|
});
|
|
59159
|
-
_reverse_config = {
|
|
59160
|
-
|
|
59161
|
-
|
|
59152
|
+
let _reverse_config = {
|
|
59153
|
+
avg: reverse_action.avg,
|
|
59154
|
+
entry: reverse_action.entry,
|
|
59155
|
+
stop: reverse_action.stop,
|
|
59156
|
+
risk_per_trade: reverse_action.risk_per_trade,
|
|
59157
|
+
profit_percent: reverse_action.profit_percent,
|
|
59158
|
+
risk_reward: reverse_action.risk_reward
|
|
59162
59159
|
};
|
|
59160
|
+
if (reverse_orders_to_buy.length > 0) {
|
|
59161
|
+
console.log("Placing opposite trade action for ", symbol, reverse_action.kind);
|
|
59162
|
+
let existing = await exchange_account.placeOppositeTradeAction({
|
|
59163
|
+
symbol,
|
|
59164
|
+
kind: reverse_action.kind,
|
|
59165
|
+
data: _reverse_config
|
|
59166
|
+
});
|
|
59167
|
+
_reverse_config = {
|
|
59168
|
+
...existing,
|
|
59169
|
+
..._reverse_config
|
|
59170
|
+
};
|
|
59171
|
+
}
|
|
59172
|
+
reverse_config = _reverse_config;
|
|
59163
59173
|
}
|
|
59164
|
-
reverse_config = _reverse_config;
|
|
59165
59174
|
if (!reverse_config?.id) {
|
|
59166
59175
|
console.log("fetching reverse config for ", symbol, reverse_action.kind);
|
|
59167
59176
|
reverse_config = await exchange_account.getPositionConfig({
|
package/dist/index.js
CHANGED
|
@@ -59090,33 +59090,42 @@ class App {
|
|
|
59090
59090
|
}
|
|
59091
59091
|
});
|
|
59092
59092
|
console.log("Checking reverse orders to buy for ", symbol, reverse_action.kind);
|
|
59093
|
-
|
|
59094
|
-
symbol,
|
|
59095
|
-
raw: true,
|
|
59096
|
-
kind: reverse_action.kind,
|
|
59097
|
-
place: false
|
|
59098
|
-
});
|
|
59099
|
-
let _reverse_config = {
|
|
59100
|
-
avg: reverse_action.avg,
|
|
59093
|
+
const reverse_app_config = await exchange_account.buildAppConfig({
|
|
59101
59094
|
entry: reverse_action.entry,
|
|
59102
59095
|
stop: reverse_action.stop,
|
|
59103
|
-
|
|
59104
|
-
|
|
59105
|
-
|
|
59106
|
-
};
|
|
59107
|
-
if (
|
|
59108
|
-
|
|
59109
|
-
let existing = await exchange_account.placeOppositeTradeAction({
|
|
59096
|
+
risk_reward: reverse_action.risk_reward,
|
|
59097
|
+
risk: reverse_action.risk_per_trade,
|
|
59098
|
+
symbol
|
|
59099
|
+
});
|
|
59100
|
+
if (reverse_app_config.max_size != reverse_position.avg_qty) {
|
|
59101
|
+
reverse_orders_to_buy = await exchange_account.placeTrade({
|
|
59110
59102
|
symbol,
|
|
59103
|
+
raw: true,
|
|
59111
59104
|
kind: reverse_action.kind,
|
|
59112
|
-
|
|
59105
|
+
place: false
|
|
59113
59106
|
});
|
|
59114
|
-
_reverse_config = {
|
|
59115
|
-
|
|
59116
|
-
|
|
59107
|
+
let _reverse_config = {
|
|
59108
|
+
avg: reverse_action.avg,
|
|
59109
|
+
entry: reverse_action.entry,
|
|
59110
|
+
stop: reverse_action.stop,
|
|
59111
|
+
risk_per_trade: reverse_action.risk_per_trade,
|
|
59112
|
+
profit_percent: reverse_action.profit_percent,
|
|
59113
|
+
risk_reward: reverse_action.risk_reward
|
|
59117
59114
|
};
|
|
59115
|
+
if (reverse_orders_to_buy.length > 0) {
|
|
59116
|
+
console.log("Placing opposite trade action for ", symbol, reverse_action.kind);
|
|
59117
|
+
let existing = await exchange_account.placeOppositeTradeAction({
|
|
59118
|
+
symbol,
|
|
59119
|
+
kind: reverse_action.kind,
|
|
59120
|
+
data: _reverse_config
|
|
59121
|
+
});
|
|
59122
|
+
_reverse_config = {
|
|
59123
|
+
...existing,
|
|
59124
|
+
..._reverse_config
|
|
59125
|
+
};
|
|
59126
|
+
}
|
|
59127
|
+
reverse_config = _reverse_config;
|
|
59118
59128
|
}
|
|
59119
|
-
reverse_config = _reverse_config;
|
|
59120
59129
|
if (!reverse_config?.id) {
|
|
59121
59130
|
console.log("fetching reverse config for ", symbol, reverse_action.kind);
|
|
59122
59131
|
reverse_config = await exchange_account.getPositionConfig({
|
package/dist/mcp-server.cjs
CHANGED
|
@@ -65826,33 +65826,42 @@ class App {
|
|
|
65826
65826
|
}
|
|
65827
65827
|
});
|
|
65828
65828
|
console.log("Checking reverse orders to buy for ", symbol, reverse_action.kind);
|
|
65829
|
-
|
|
65830
|
-
symbol,
|
|
65831
|
-
raw: true,
|
|
65832
|
-
kind: reverse_action.kind,
|
|
65833
|
-
place: false
|
|
65834
|
-
});
|
|
65835
|
-
let _reverse_config = {
|
|
65836
|
-
avg: reverse_action.avg,
|
|
65829
|
+
const reverse_app_config = await exchange_account.buildAppConfig({
|
|
65837
65830
|
entry: reverse_action.entry,
|
|
65838
65831
|
stop: reverse_action.stop,
|
|
65839
|
-
|
|
65840
|
-
|
|
65841
|
-
|
|
65842
|
-
};
|
|
65843
|
-
if (
|
|
65844
|
-
|
|
65845
|
-
let existing = await exchange_account.placeOppositeTradeAction({
|
|
65832
|
+
risk_reward: reverse_action.risk_reward,
|
|
65833
|
+
risk: reverse_action.risk_per_trade,
|
|
65834
|
+
symbol
|
|
65835
|
+
});
|
|
65836
|
+
if (reverse_app_config.max_size != reverse_position.avg_qty) {
|
|
65837
|
+
reverse_orders_to_buy = await exchange_account.placeTrade({
|
|
65846
65838
|
symbol,
|
|
65839
|
+
raw: true,
|
|
65847
65840
|
kind: reverse_action.kind,
|
|
65848
|
-
|
|
65841
|
+
place: false
|
|
65849
65842
|
});
|
|
65850
|
-
_reverse_config = {
|
|
65851
|
-
|
|
65852
|
-
|
|
65843
|
+
let _reverse_config = {
|
|
65844
|
+
avg: reverse_action.avg,
|
|
65845
|
+
entry: reverse_action.entry,
|
|
65846
|
+
stop: reverse_action.stop,
|
|
65847
|
+
risk_per_trade: reverse_action.risk_per_trade,
|
|
65848
|
+
profit_percent: reverse_action.profit_percent,
|
|
65849
|
+
risk_reward: reverse_action.risk_reward
|
|
65853
65850
|
};
|
|
65851
|
+
if (reverse_orders_to_buy.length > 0) {
|
|
65852
|
+
console.log("Placing opposite trade action for ", symbol, reverse_action.kind);
|
|
65853
|
+
let existing = await exchange_account.placeOppositeTradeAction({
|
|
65854
|
+
symbol,
|
|
65855
|
+
kind: reverse_action.kind,
|
|
65856
|
+
data: _reverse_config
|
|
65857
|
+
});
|
|
65858
|
+
_reverse_config = {
|
|
65859
|
+
...existing,
|
|
65860
|
+
..._reverse_config
|
|
65861
|
+
};
|
|
65862
|
+
}
|
|
65863
|
+
reverse_config = _reverse_config;
|
|
65854
65864
|
}
|
|
65855
|
-
reverse_config = _reverse_config;
|
|
65856
65865
|
if (!reverse_config?.id) {
|
|
65857
65866
|
console.log("fetching reverse config for ", symbol, reverse_action.kind);
|
|
65858
65867
|
reverse_config = await exchange_account.getPositionConfig({
|
package/dist/mcp-server.js
CHANGED
|
@@ -65803,33 +65803,42 @@ class App {
|
|
|
65803
65803
|
}
|
|
65804
65804
|
});
|
|
65805
65805
|
console.log("Checking reverse orders to buy for ", symbol, reverse_action.kind);
|
|
65806
|
-
|
|
65807
|
-
symbol,
|
|
65808
|
-
raw: true,
|
|
65809
|
-
kind: reverse_action.kind,
|
|
65810
|
-
place: false
|
|
65811
|
-
});
|
|
65812
|
-
let _reverse_config = {
|
|
65813
|
-
avg: reverse_action.avg,
|
|
65806
|
+
const reverse_app_config = await exchange_account.buildAppConfig({
|
|
65814
65807
|
entry: reverse_action.entry,
|
|
65815
65808
|
stop: reverse_action.stop,
|
|
65816
|
-
|
|
65817
|
-
|
|
65818
|
-
|
|
65819
|
-
};
|
|
65820
|
-
if (
|
|
65821
|
-
|
|
65822
|
-
let existing = await exchange_account.placeOppositeTradeAction({
|
|
65809
|
+
risk_reward: reverse_action.risk_reward,
|
|
65810
|
+
risk: reverse_action.risk_per_trade,
|
|
65811
|
+
symbol
|
|
65812
|
+
});
|
|
65813
|
+
if (reverse_app_config.max_size != reverse_position.avg_qty) {
|
|
65814
|
+
reverse_orders_to_buy = await exchange_account.placeTrade({
|
|
65823
65815
|
symbol,
|
|
65816
|
+
raw: true,
|
|
65824
65817
|
kind: reverse_action.kind,
|
|
65825
|
-
|
|
65818
|
+
place: false
|
|
65826
65819
|
});
|
|
65827
|
-
_reverse_config = {
|
|
65828
|
-
|
|
65829
|
-
|
|
65820
|
+
let _reverse_config = {
|
|
65821
|
+
avg: reverse_action.avg,
|
|
65822
|
+
entry: reverse_action.entry,
|
|
65823
|
+
stop: reverse_action.stop,
|
|
65824
|
+
risk_per_trade: reverse_action.risk_per_trade,
|
|
65825
|
+
profit_percent: reverse_action.profit_percent,
|
|
65826
|
+
risk_reward: reverse_action.risk_reward
|
|
65830
65827
|
};
|
|
65828
|
+
if (reverse_orders_to_buy.length > 0) {
|
|
65829
|
+
console.log("Placing opposite trade action for ", symbol, reverse_action.kind);
|
|
65830
|
+
let existing = await exchange_account.placeOppositeTradeAction({
|
|
65831
|
+
symbol,
|
|
65832
|
+
kind: reverse_action.kind,
|
|
65833
|
+
data: _reverse_config
|
|
65834
|
+
});
|
|
65835
|
+
_reverse_config = {
|
|
65836
|
+
...existing,
|
|
65837
|
+
..._reverse_config
|
|
65838
|
+
};
|
|
65839
|
+
}
|
|
65840
|
+
reverse_config = _reverse_config;
|
|
65831
65841
|
}
|
|
65832
|
-
reverse_config = _reverse_config;
|
|
65833
65842
|
if (!reverse_config?.id) {
|
|
65834
65843
|
console.log("fetching reverse config for ", symbol, reverse_action.kind);
|
|
65835
65844
|
reverse_config = await exchange_account.getPositionConfig({
|