@gbozee/ultimate 0.0.2-161 → 0.0.2-162
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 -1
- package/dist/index.js +5 -1
- package/dist/mcp-server.cjs +5 -1
- package/dist/mcp-server.js +5 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -61515,11 +61515,15 @@ class ExchangePosition {
|
|
|
61515
61515
|
async placeMarketOrder(payload) {
|
|
61516
61516
|
const { quantity, close } = payload;
|
|
61517
61517
|
const symbol_config = this.symbol_config;
|
|
61518
|
+
let quantity_to_sell = quantity;
|
|
61519
|
+
if (close && !quantity) {
|
|
61520
|
+
quantity_to_sell = this.instance.quantity;
|
|
61521
|
+
}
|
|
61518
61522
|
await this.exchange.placeMarketOrder({
|
|
61519
61523
|
symbol: this.symbol,
|
|
61520
61524
|
kind: this.kind,
|
|
61521
61525
|
close,
|
|
61522
|
-
quantity,
|
|
61526
|
+
quantity: quantity_to_sell,
|
|
61523
61527
|
price_places: symbol_config.price_places,
|
|
61524
61528
|
decimal_places: symbol_config.decimal_places
|
|
61525
61529
|
});
|
package/dist/index.js
CHANGED
|
@@ -61461,11 +61461,15 @@ class ExchangePosition {
|
|
|
61461
61461
|
async placeMarketOrder(payload) {
|
|
61462
61462
|
const { quantity, close } = payload;
|
|
61463
61463
|
const symbol_config = this.symbol_config;
|
|
61464
|
+
let quantity_to_sell = quantity;
|
|
61465
|
+
if (close && !quantity) {
|
|
61466
|
+
quantity_to_sell = this.instance.quantity;
|
|
61467
|
+
}
|
|
61464
61468
|
await this.exchange.placeMarketOrder({
|
|
61465
61469
|
symbol: this.symbol,
|
|
61466
61470
|
kind: this.kind,
|
|
61467
61471
|
close,
|
|
61468
|
-
quantity,
|
|
61472
|
+
quantity: quantity_to_sell,
|
|
61469
61473
|
price_places: symbol_config.price_places,
|
|
61470
61474
|
decimal_places: symbol_config.decimal_places
|
|
61471
61475
|
});
|
package/dist/mcp-server.cjs
CHANGED
|
@@ -68189,11 +68189,15 @@ class ExchangePosition {
|
|
|
68189
68189
|
async placeMarketOrder(payload) {
|
|
68190
68190
|
const { quantity, close } = payload;
|
|
68191
68191
|
const symbol_config = this.symbol_config;
|
|
68192
|
+
let quantity_to_sell = quantity;
|
|
68193
|
+
if (close && !quantity) {
|
|
68194
|
+
quantity_to_sell = this.instance.quantity;
|
|
68195
|
+
}
|
|
68192
68196
|
await this.exchange.placeMarketOrder({
|
|
68193
68197
|
symbol: this.symbol,
|
|
68194
68198
|
kind: this.kind,
|
|
68195
68199
|
close,
|
|
68196
|
-
quantity,
|
|
68200
|
+
quantity: quantity_to_sell,
|
|
68197
68201
|
price_places: symbol_config.price_places,
|
|
68198
68202
|
decimal_places: symbol_config.decimal_places
|
|
68199
68203
|
});
|
package/dist/mcp-server.js
CHANGED
|
@@ -68166,11 +68166,15 @@ class ExchangePosition {
|
|
|
68166
68166
|
async placeMarketOrder(payload) {
|
|
68167
68167
|
const { quantity, close } = payload;
|
|
68168
68168
|
const symbol_config = this.symbol_config;
|
|
68169
|
+
let quantity_to_sell = quantity;
|
|
68170
|
+
if (close && !quantity) {
|
|
68171
|
+
quantity_to_sell = this.instance.quantity;
|
|
68172
|
+
}
|
|
68169
68173
|
await this.exchange.placeMarketOrder({
|
|
68170
68174
|
symbol: this.symbol,
|
|
68171
68175
|
kind: this.kind,
|
|
68172
68176
|
close,
|
|
68173
|
-
quantity,
|
|
68177
|
+
quantity: quantity_to_sell,
|
|
68174
68178
|
price_places: symbol_config.price_places,
|
|
68175
68179
|
decimal_places: symbol_config.decimal_places
|
|
68176
68180
|
});
|