@gbozee/ultimate 0.0.2-163 → 0.0.2-164
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.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
|
@@ -62310,7 +62310,7 @@ class ExchangeAccount {
|
|
|
62310
62310
|
const focus_position = kind === "long" ? long_position : short_position;
|
|
62311
62311
|
const target_position = kind === "long" ? short_position : long_position;
|
|
62312
62312
|
let _quantity = payload.quantity;
|
|
62313
|
-
if (!payload.close && !payload.quantity) {
|
|
62313
|
+
if (!payload.close && !payload.quantity && target_position.getInstance().quantity > 0 && focus_position.getInstance().quantity === 0) {
|
|
62314
62314
|
_quantity = target_position.getInstance().quantity;
|
|
62315
62315
|
}
|
|
62316
62316
|
await focus_position.placeMarketOrder({
|
package/dist/index.js
CHANGED
|
@@ -62256,7 +62256,7 @@ class ExchangeAccount {
|
|
|
62256
62256
|
const focus_position = kind === "long" ? long_position : short_position;
|
|
62257
62257
|
const target_position = kind === "long" ? short_position : long_position;
|
|
62258
62258
|
let _quantity = payload.quantity;
|
|
62259
|
-
if (!payload.close && !payload.quantity) {
|
|
62259
|
+
if (!payload.close && !payload.quantity && target_position.getInstance().quantity > 0 && focus_position.getInstance().quantity === 0) {
|
|
62260
62260
|
_quantity = target_position.getInstance().quantity;
|
|
62261
62261
|
}
|
|
62262
62262
|
await focus_position.placeMarketOrder({
|
package/dist/mcp-server.cjs
CHANGED
|
@@ -68984,7 +68984,7 @@ class ExchangeAccount {
|
|
|
68984
68984
|
const focus_position = kind === "long" ? long_position : short_position;
|
|
68985
68985
|
const target_position = kind === "long" ? short_position : long_position;
|
|
68986
68986
|
let _quantity = payload.quantity;
|
|
68987
|
-
if (!payload.close && !payload.quantity) {
|
|
68987
|
+
if (!payload.close && !payload.quantity && target_position.getInstance().quantity > 0 && focus_position.getInstance().quantity === 0) {
|
|
68988
68988
|
_quantity = target_position.getInstance().quantity;
|
|
68989
68989
|
}
|
|
68990
68990
|
await focus_position.placeMarketOrder({
|
package/dist/mcp-server.js
CHANGED
|
@@ -68961,7 +68961,7 @@ class ExchangeAccount {
|
|
|
68961
68961
|
const focus_position = kind === "long" ? long_position : short_position;
|
|
68962
68962
|
const target_position = kind === "long" ? short_position : long_position;
|
|
68963
68963
|
let _quantity = payload.quantity;
|
|
68964
|
-
if (!payload.close && !payload.quantity) {
|
|
68964
|
+
if (!payload.close && !payload.quantity && target_position.getInstance().quantity > 0 && focus_position.getInstance().quantity === 0) {
|
|
68965
68965
|
_quantity = target_position.getInstance().quantity;
|
|
68966
68966
|
}
|
|
68967
68967
|
await focus_position.placeMarketOrder({
|