@gbozee/ultimate 0.0.2-next.53 → 0.0.2-next.54
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/frontend-index.js +0 -3
- package/dist/index.cjs +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/mcp-server.cjs +4 -4
- package/dist/mcp-server.js +4 -4
- package/package.json +1 -1
package/dist/frontend-index.js
CHANGED
|
@@ -2999,9 +2999,6 @@ function computeMarginProtection({
|
|
|
2999
2999
|
let quantity_to_place = protect_position;
|
|
3000
3000
|
if (base_asset > 0) {
|
|
3001
3001
|
let diff = quantity_to_place - base_asset;
|
|
3002
|
-
if (diff < 0) {
|
|
3003
|
-
return;
|
|
3004
|
-
}
|
|
3005
3002
|
quantity_to_place = diff;
|
|
3006
3003
|
}
|
|
3007
3004
|
const payload = {
|
package/dist/index.cjs
CHANGED
|
@@ -63442,9 +63442,6 @@ function computeMarginProtection({
|
|
|
63442
63442
|
let quantity_to_place = protect_position;
|
|
63443
63443
|
if (base_asset > 0) {
|
|
63444
63444
|
let diff = quantity_to_place - base_asset;
|
|
63445
|
-
if (diff < 0) {
|
|
63446
|
-
return;
|
|
63447
|
-
}
|
|
63448
63445
|
quantity_to_place = diff;
|
|
63449
63446
|
}
|
|
63450
63447
|
const payload = {
|
|
@@ -66691,8 +66688,11 @@ class BinanceExchange extends BaseExchange {
|
|
|
66691
66688
|
}
|
|
66692
66689
|
return [];
|
|
66693
66690
|
}
|
|
66694
|
-
async getOpenPositions() {
|
|
66691
|
+
async getOpenPositions(full = false) {
|
|
66695
66692
|
const response = await this.client.getPositionsV3();
|
|
66693
|
+
if (full) {
|
|
66694
|
+
return response;
|
|
66695
|
+
}
|
|
66696
66696
|
return Array.from(new Set(response.map((x) => x.symbol)));
|
|
66697
66697
|
}
|
|
66698
66698
|
async crossAccountTransfer(payload) {
|
package/dist/index.d.ts
CHANGED
|
@@ -495,7 +495,7 @@ declare abstract class BaseExchange {
|
|
|
495
495
|
symbol: string;
|
|
496
496
|
}): Promise<any>;
|
|
497
497
|
abstract getDelistedSpotSymbols(): Promise<any>;
|
|
498
|
-
abstract getOpenPositions(): Promise<any>;
|
|
498
|
+
abstract getOpenPositions(full?: boolean): Promise<any>;
|
|
499
499
|
abstract crossAccountTransfer(payload: {
|
|
500
500
|
from: {
|
|
501
501
|
owner: string;
|
package/dist/index.js
CHANGED
|
@@ -63354,9 +63354,6 @@ function computeMarginProtection({
|
|
|
63354
63354
|
let quantity_to_place = protect_position;
|
|
63355
63355
|
if (base_asset > 0) {
|
|
63356
63356
|
let diff = quantity_to_place - base_asset;
|
|
63357
|
-
if (diff < 0) {
|
|
63358
|
-
return;
|
|
63359
|
-
}
|
|
63360
63357
|
quantity_to_place = diff;
|
|
63361
63358
|
}
|
|
63362
63359
|
const payload = {
|
|
@@ -66603,8 +66600,11 @@ class BinanceExchange extends BaseExchange {
|
|
|
66603
66600
|
}
|
|
66604
66601
|
return [];
|
|
66605
66602
|
}
|
|
66606
|
-
async getOpenPositions() {
|
|
66603
|
+
async getOpenPositions(full = false) {
|
|
66607
66604
|
const response = await this.client.getPositionsV3();
|
|
66605
|
+
if (full) {
|
|
66606
|
+
return response;
|
|
66607
|
+
}
|
|
66608
66608
|
return Array.from(new Set(response.map((x) => x.symbol)));
|
|
66609
66609
|
}
|
|
66610
66610
|
async crossAccountTransfer(payload) {
|
package/dist/mcp-server.cjs
CHANGED
|
@@ -67164,9 +67164,6 @@ function computeMarginProtection({
|
|
|
67164
67164
|
let quantity_to_place = protect_position;
|
|
67165
67165
|
if (base_asset > 0) {
|
|
67166
67166
|
let diff = quantity_to_place - base_asset;
|
|
67167
|
-
if (diff < 0) {
|
|
67168
|
-
return;
|
|
67169
|
-
}
|
|
67170
67167
|
quantity_to_place = diff;
|
|
67171
67168
|
}
|
|
67172
67169
|
const payload = {
|
|
@@ -70413,8 +70410,11 @@ class BinanceExchange extends BaseExchange {
|
|
|
70413
70410
|
}
|
|
70414
70411
|
return [];
|
|
70415
70412
|
}
|
|
70416
|
-
async getOpenPositions() {
|
|
70413
|
+
async getOpenPositions(full = false) {
|
|
70417
70414
|
const response = await this.client.getPositionsV3();
|
|
70415
|
+
if (full) {
|
|
70416
|
+
return response;
|
|
70417
|
+
}
|
|
70418
70418
|
return Array.from(new Set(response.map((x) => x.symbol)));
|
|
70419
70419
|
}
|
|
70420
70420
|
async crossAccountTransfer(payload) {
|
package/dist/mcp-server.js
CHANGED
|
@@ -67137,9 +67137,6 @@ function computeMarginProtection({
|
|
|
67137
67137
|
let quantity_to_place = protect_position;
|
|
67138
67138
|
if (base_asset > 0) {
|
|
67139
67139
|
let diff = quantity_to_place - base_asset;
|
|
67140
|
-
if (diff < 0) {
|
|
67141
|
-
return;
|
|
67142
|
-
}
|
|
67143
67140
|
quantity_to_place = diff;
|
|
67144
67141
|
}
|
|
67145
67142
|
const payload = {
|
|
@@ -70386,8 +70383,11 @@ class BinanceExchange extends BaseExchange {
|
|
|
70386
70383
|
}
|
|
70387
70384
|
return [];
|
|
70388
70385
|
}
|
|
70389
|
-
async getOpenPositions() {
|
|
70386
|
+
async getOpenPositions(full = false) {
|
|
70390
70387
|
const response = await this.client.getPositionsV3();
|
|
70388
|
+
if (full) {
|
|
70389
|
+
return response;
|
|
70390
|
+
}
|
|
70391
70391
|
return Array.from(new Set(response.map((x) => x.symbol)));
|
|
70392
70392
|
}
|
|
70393
70393
|
async crossAccountTransfer(payload) {
|