@gbozee/ultimate 0.0.2-170 → 0.0.2-172
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 +5 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -4
- package/dist/mcp-server.cjs +5 -4
- package/dist/mcp-server.js +5 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -61244,8 +61244,8 @@ class ExchangePosition {
|
|
|
61244
61244
|
const diff = Math.abs(avg_qty - max_size);
|
|
61245
61245
|
const ratio = diff / avg_qty;
|
|
61246
61246
|
if (avg_qty > max_size && ratio > 0.01) {
|
|
61247
|
-
await this.
|
|
61248
|
-
|
|
61247
|
+
await this.cancelExchangeOrder({
|
|
61248
|
+
type: "limit"
|
|
61249
61249
|
});
|
|
61250
61250
|
}
|
|
61251
61251
|
}
|
|
@@ -62452,14 +62452,15 @@ class ExchangeAccount {
|
|
|
62452
62452
|
});
|
|
62453
62453
|
}
|
|
62454
62454
|
async followStop(payload) {
|
|
62455
|
-
const { symbol, kind, fee_percent, focus_position } = payload;
|
|
62455
|
+
const { symbol, place, kind, fee_percent, focus_position } = payload;
|
|
62456
62456
|
const main_position = await this.getFocusPosition({
|
|
62457
62457
|
symbol,
|
|
62458
62458
|
kind
|
|
62459
62459
|
});
|
|
62460
62460
|
return await main_position.followStop({
|
|
62461
62461
|
focus_position,
|
|
62462
|
-
fee_percent
|
|
62462
|
+
fee_percent,
|
|
62463
|
+
place
|
|
62463
62464
|
});
|
|
62464
62465
|
}
|
|
62465
62466
|
async increasePositionAtStop(payload) {
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -61184,8 +61184,8 @@ class ExchangePosition {
|
|
|
61184
61184
|
const diff = Math.abs(avg_qty - max_size);
|
|
61185
61185
|
const ratio = diff / avg_qty;
|
|
61186
61186
|
if (avg_qty > max_size && ratio > 0.01) {
|
|
61187
|
-
await this.
|
|
61188
|
-
|
|
61187
|
+
await this.cancelExchangeOrder({
|
|
61188
|
+
type: "limit"
|
|
61189
61189
|
});
|
|
61190
61190
|
}
|
|
61191
61191
|
}
|
|
@@ -62392,14 +62392,15 @@ class ExchangeAccount {
|
|
|
62392
62392
|
});
|
|
62393
62393
|
}
|
|
62394
62394
|
async followStop(payload) {
|
|
62395
|
-
const { symbol, kind, fee_percent, focus_position } = payload;
|
|
62395
|
+
const { symbol, place, kind, fee_percent, focus_position } = payload;
|
|
62396
62396
|
const main_position = await this.getFocusPosition({
|
|
62397
62397
|
symbol,
|
|
62398
62398
|
kind
|
|
62399
62399
|
});
|
|
62400
62400
|
return await main_position.followStop({
|
|
62401
62401
|
focus_position,
|
|
62402
|
-
fee_percent
|
|
62402
|
+
fee_percent,
|
|
62403
|
+
place
|
|
62403
62404
|
});
|
|
62404
62405
|
}
|
|
62405
62406
|
async increasePositionAtStop(payload) {
|
package/dist/mcp-server.cjs
CHANGED
|
@@ -67914,8 +67914,8 @@ class ExchangePosition {
|
|
|
67914
67914
|
const diff = Math.abs(avg_qty - max_size);
|
|
67915
67915
|
const ratio = diff / avg_qty;
|
|
67916
67916
|
if (avg_qty > max_size && ratio > 0.01) {
|
|
67917
|
-
await this.
|
|
67918
|
-
|
|
67917
|
+
await this.cancelExchangeOrder({
|
|
67918
|
+
type: "limit"
|
|
67919
67919
|
});
|
|
67920
67920
|
}
|
|
67921
67921
|
}
|
|
@@ -69122,14 +69122,15 @@ class ExchangeAccount {
|
|
|
69122
69122
|
});
|
|
69123
69123
|
}
|
|
69124
69124
|
async followStop(payload) {
|
|
69125
|
-
const { symbol, kind, fee_percent, focus_position } = payload;
|
|
69125
|
+
const { symbol, place, kind, fee_percent, focus_position } = payload;
|
|
69126
69126
|
const main_position = await this.getFocusPosition({
|
|
69127
69127
|
symbol,
|
|
69128
69128
|
kind
|
|
69129
69129
|
});
|
|
69130
69130
|
return await main_position.followStop({
|
|
69131
69131
|
focus_position,
|
|
69132
|
-
fee_percent
|
|
69132
|
+
fee_percent,
|
|
69133
|
+
place
|
|
69133
69134
|
});
|
|
69134
69135
|
}
|
|
69135
69136
|
async increasePositionAtStop(payload) {
|
package/dist/mcp-server.js
CHANGED
|
@@ -67887,8 +67887,8 @@ class ExchangePosition {
|
|
|
67887
67887
|
const diff = Math.abs(avg_qty - max_size);
|
|
67888
67888
|
const ratio = diff / avg_qty;
|
|
67889
67889
|
if (avg_qty > max_size && ratio > 0.01) {
|
|
67890
|
-
await this.
|
|
67891
|
-
|
|
67890
|
+
await this.cancelExchangeOrder({
|
|
67891
|
+
type: "limit"
|
|
67892
67892
|
});
|
|
67893
67893
|
}
|
|
67894
67894
|
}
|
|
@@ -69095,14 +69095,15 @@ class ExchangeAccount {
|
|
|
69095
69095
|
});
|
|
69096
69096
|
}
|
|
69097
69097
|
async followStop(payload) {
|
|
69098
|
-
const { symbol, kind, fee_percent, focus_position } = payload;
|
|
69098
|
+
const { symbol, place, kind, fee_percent, focus_position } = payload;
|
|
69099
69099
|
const main_position = await this.getFocusPosition({
|
|
69100
69100
|
symbol,
|
|
69101
69101
|
kind
|
|
69102
69102
|
});
|
|
69103
69103
|
return await main_position.followStop({
|
|
69104
69104
|
focus_position,
|
|
69105
|
-
fee_percent
|
|
69105
|
+
fee_percent,
|
|
69106
|
+
place
|
|
69106
69107
|
});
|
|
69107
69108
|
}
|
|
69108
69109
|
async increasePositionAtStop(payload) {
|