@gbozee/ultimate 0.0.2-181 → 0.0.2-182
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.d.ts +15 -0
- package/dist/index.cjs +5 -8
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -8
- package/dist/mcp-server.cjs +5 -8
- package/dist/mcp-server.js +5 -8
- package/package.json +1 -1
package/dist/frontend-index.d.ts
CHANGED
|
@@ -335,6 +335,20 @@ export interface ExchangeAccount extends BaseSystemFields {
|
|
|
335
335
|
};
|
|
336
336
|
include_delisted?: boolean;
|
|
337
337
|
}
|
|
338
|
+
export interface SymbolConfig extends BaseSystemFields {
|
|
339
|
+
symbol: string;
|
|
340
|
+
support?: number;
|
|
341
|
+
resistance?: number;
|
|
342
|
+
stop_percent?: number;
|
|
343
|
+
price_places?: string;
|
|
344
|
+
decimal_places?: string;
|
|
345
|
+
min_size?: number;
|
|
346
|
+
weight?: number;
|
|
347
|
+
leverage?: number;
|
|
348
|
+
candle_count?: number;
|
|
349
|
+
interval?: any;
|
|
350
|
+
fee_percent?: number;
|
|
351
|
+
}
|
|
338
352
|
export interface ScheduledTrade extends BaseSystemFields {
|
|
339
353
|
symbol: string;
|
|
340
354
|
account: string;
|
|
@@ -420,6 +434,7 @@ export interface PositionsView {
|
|
|
420
434
|
account_strategy?: AccountStrategy;
|
|
421
435
|
compound_instance?: CompoundInstance;
|
|
422
436
|
support?: SupportTable;
|
|
437
|
+
symbol_config: SymbolConfig;
|
|
423
438
|
};
|
|
424
439
|
pnl?: number;
|
|
425
440
|
support_price?: number;
|
package/dist/index.cjs
CHANGED
|
@@ -54702,7 +54702,7 @@ class AppDatabase {
|
|
|
54702
54702
|
return result;
|
|
54703
54703
|
}
|
|
54704
54704
|
get positionExpand() {
|
|
54705
|
-
return "b_config, account_strategy, p_account, proxy, compound_instance.ref,support";
|
|
54705
|
+
return "b_config, account_strategy, p_account, proxy, compound_instance.ref,support,symbol_config";
|
|
54706
54706
|
}
|
|
54707
54707
|
async fetchCentralPositions(payload) {
|
|
54708
54708
|
const { asset: assetName, symbol, customFilter = "" } = payload;
|
|
@@ -61115,13 +61115,11 @@ var import_https_proxy_agent2 = __toESM(require_dist2());
|
|
|
61115
61115
|
var import_socks_proxy_agent2 = __toESM(require_dist3());
|
|
61116
61116
|
class ExchangePosition {
|
|
61117
61117
|
exchange;
|
|
61118
|
-
symbol_config;
|
|
61119
61118
|
exchange_account;
|
|
61120
61119
|
app_db;
|
|
61121
61120
|
instance;
|
|
61122
61121
|
orders;
|
|
61123
61122
|
constructor(payload) {
|
|
61124
|
-
this.symbol_config = payload.symbol_config;
|
|
61125
61123
|
this.exchange = payload.exchange;
|
|
61126
61124
|
this.app_db = payload.app_db;
|
|
61127
61125
|
this.instance = payload.instance;
|
|
@@ -61132,6 +61130,10 @@ class ExchangePosition {
|
|
|
61132
61130
|
tp_orders: []
|
|
61133
61131
|
};
|
|
61134
61132
|
}
|
|
61133
|
+
get symbol_config() {
|
|
61134
|
+
const { symbol_config } = this.instance.expand;
|
|
61135
|
+
return symbol_config;
|
|
61136
|
+
}
|
|
61135
61137
|
async initialize() {
|
|
61136
61138
|
const proxy = await this.getProxyForAccount();
|
|
61137
61139
|
if (proxy) {
|
|
@@ -62317,9 +62319,6 @@ class ExchangeAccount {
|
|
|
62317
62319
|
symbol: payload.symbol,
|
|
62318
62320
|
as_view: true
|
|
62319
62321
|
});
|
|
62320
|
-
const symbol_config = await this.recomputeSymbolConfig({
|
|
62321
|
-
symbol: payload.symbol
|
|
62322
|
-
});
|
|
62323
62322
|
const active_account = await this.getActiveAccount({
|
|
62324
62323
|
symbol: payload.symbol
|
|
62325
62324
|
});
|
|
@@ -62327,7 +62326,6 @@ class ExchangeAccount {
|
|
|
62327
62326
|
const long_position = positions.find((x) => x.kind === "long");
|
|
62328
62327
|
const short_position = positions.find((x) => x.kind === "short");
|
|
62329
62328
|
this.long_position = new ExchangePosition({
|
|
62330
|
-
symbol_config,
|
|
62331
62329
|
exchange: this.exchange,
|
|
62332
62330
|
exchange_account: this,
|
|
62333
62331
|
instance: long_position,
|
|
@@ -62337,7 +62335,6 @@ class ExchangeAccount {
|
|
|
62337
62335
|
});
|
|
62338
62336
|
await this.long_position.initialize();
|
|
62339
62337
|
this.short_position = new ExchangePosition({
|
|
62340
|
-
symbol_config,
|
|
62341
62338
|
exchange: this.exchange,
|
|
62342
62339
|
exchange_account: this,
|
|
62343
62340
|
instance: short_position,
|
package/dist/index.d.ts
CHANGED
|
@@ -160,6 +160,7 @@ export interface PositionsView {
|
|
|
160
160
|
account_strategy?: AccountStrategy;
|
|
161
161
|
compound_instance?: CompoundInstance;
|
|
162
162
|
support?: SupportTable;
|
|
163
|
+
symbol_config: SymbolConfig;
|
|
163
164
|
};
|
|
164
165
|
pnl?: number;
|
|
165
166
|
support_price?: number;
|
|
@@ -1892,7 +1893,6 @@ export type ExchangeOrder = {
|
|
|
1892
1893
|
};
|
|
1893
1894
|
export declare class ExchangePosition {
|
|
1894
1895
|
exchange: BaseExchange;
|
|
1895
|
-
symbol_config: SymbolConfig;
|
|
1896
1896
|
exchange_account: ExchangeAccount$1;
|
|
1897
1897
|
private app_db;
|
|
1898
1898
|
private instance;
|
|
@@ -1904,7 +1904,6 @@ export declare class ExchangePosition {
|
|
|
1904
1904
|
constructor(payload: {
|
|
1905
1905
|
exchange: BaseExchange;
|
|
1906
1906
|
app_db: AppDatabase;
|
|
1907
|
-
symbol_config: SymbolConfig;
|
|
1908
1907
|
instance: PositionsView;
|
|
1909
1908
|
exchange_account: ExchangeAccount$1;
|
|
1910
1909
|
without_view?: PositionsView;
|
|
@@ -1914,6 +1913,7 @@ export declare class ExchangePosition {
|
|
|
1914
1913
|
tp_orders: any[];
|
|
1915
1914
|
};
|
|
1916
1915
|
});
|
|
1916
|
+
get symbol_config(): SymbolConfig;
|
|
1917
1917
|
initialize(): Promise<void>;
|
|
1918
1918
|
getInstance(): PositionsView;
|
|
1919
1919
|
get symbol(): any;
|
package/dist/index.js
CHANGED
|
@@ -54640,7 +54640,7 @@ class AppDatabase {
|
|
|
54640
54640
|
return result;
|
|
54641
54641
|
}
|
|
54642
54642
|
get positionExpand() {
|
|
54643
|
-
return "b_config, account_strategy, p_account, proxy, compound_instance.ref,support";
|
|
54643
|
+
return "b_config, account_strategy, p_account, proxy, compound_instance.ref,support,symbol_config";
|
|
54644
54644
|
}
|
|
54645
54645
|
async fetchCentralPositions(payload) {
|
|
54646
54646
|
const { asset: assetName, symbol, customFilter = "" } = payload;
|
|
@@ -61053,13 +61053,11 @@ var import_https_proxy_agent2 = __toESM(require_dist2(), 1);
|
|
|
61053
61053
|
var import_socks_proxy_agent2 = __toESM(require_dist3(), 1);
|
|
61054
61054
|
class ExchangePosition {
|
|
61055
61055
|
exchange;
|
|
61056
|
-
symbol_config;
|
|
61057
61056
|
exchange_account;
|
|
61058
61057
|
app_db;
|
|
61059
61058
|
instance;
|
|
61060
61059
|
orders;
|
|
61061
61060
|
constructor(payload) {
|
|
61062
|
-
this.symbol_config = payload.symbol_config;
|
|
61063
61061
|
this.exchange = payload.exchange;
|
|
61064
61062
|
this.app_db = payload.app_db;
|
|
61065
61063
|
this.instance = payload.instance;
|
|
@@ -61070,6 +61068,10 @@ class ExchangePosition {
|
|
|
61070
61068
|
tp_orders: []
|
|
61071
61069
|
};
|
|
61072
61070
|
}
|
|
61071
|
+
get symbol_config() {
|
|
61072
|
+
const { symbol_config } = this.instance.expand;
|
|
61073
|
+
return symbol_config;
|
|
61074
|
+
}
|
|
61073
61075
|
async initialize() {
|
|
61074
61076
|
const proxy = await this.getProxyForAccount();
|
|
61075
61077
|
if (proxy) {
|
|
@@ -62255,9 +62257,6 @@ class ExchangeAccount {
|
|
|
62255
62257
|
symbol: payload.symbol,
|
|
62256
62258
|
as_view: true
|
|
62257
62259
|
});
|
|
62258
|
-
const symbol_config = await this.recomputeSymbolConfig({
|
|
62259
|
-
symbol: payload.symbol
|
|
62260
|
-
});
|
|
62261
62260
|
const active_account = await this.getActiveAccount({
|
|
62262
62261
|
symbol: payload.symbol
|
|
62263
62262
|
});
|
|
@@ -62265,7 +62264,6 @@ class ExchangeAccount {
|
|
|
62265
62264
|
const long_position = positions.find((x) => x.kind === "long");
|
|
62266
62265
|
const short_position = positions.find((x) => x.kind === "short");
|
|
62267
62266
|
this.long_position = new ExchangePosition({
|
|
62268
|
-
symbol_config,
|
|
62269
62267
|
exchange: this.exchange,
|
|
62270
62268
|
exchange_account: this,
|
|
62271
62269
|
instance: long_position,
|
|
@@ -62275,7 +62273,6 @@ class ExchangeAccount {
|
|
|
62275
62273
|
});
|
|
62276
62274
|
await this.long_position.initialize();
|
|
62277
62275
|
this.short_position = new ExchangePosition({
|
|
62278
|
-
symbol_config,
|
|
62279
62276
|
exchange: this.exchange,
|
|
62280
62277
|
exchange_account: this,
|
|
62281
62278
|
instance: short_position,
|
package/dist/mcp-server.cjs
CHANGED
|
@@ -61396,7 +61396,7 @@ class AppDatabase {
|
|
|
61396
61396
|
return result;
|
|
61397
61397
|
}
|
|
61398
61398
|
get positionExpand() {
|
|
61399
|
-
return "b_config, account_strategy, p_account, proxy, compound_instance.ref,support";
|
|
61399
|
+
return "b_config, account_strategy, p_account, proxy, compound_instance.ref,support,symbol_config";
|
|
61400
61400
|
}
|
|
61401
61401
|
async fetchCentralPositions(payload) {
|
|
61402
61402
|
const { asset: assetName, symbol, customFilter = "" } = payload;
|
|
@@ -67691,13 +67691,11 @@ var import_https_proxy_agent2 = __toESM(require_dist2());
|
|
|
67691
67691
|
var import_socks_proxy_agent2 = __toESM(require_dist3());
|
|
67692
67692
|
class ExchangePosition {
|
|
67693
67693
|
exchange;
|
|
67694
|
-
symbol_config;
|
|
67695
67694
|
exchange_account;
|
|
67696
67695
|
app_db;
|
|
67697
67696
|
instance;
|
|
67698
67697
|
orders;
|
|
67699
67698
|
constructor(payload) {
|
|
67700
|
-
this.symbol_config = payload.symbol_config;
|
|
67701
67699
|
this.exchange = payload.exchange;
|
|
67702
67700
|
this.app_db = payload.app_db;
|
|
67703
67701
|
this.instance = payload.instance;
|
|
@@ -67708,6 +67706,10 @@ class ExchangePosition {
|
|
|
67708
67706
|
tp_orders: []
|
|
67709
67707
|
};
|
|
67710
67708
|
}
|
|
67709
|
+
get symbol_config() {
|
|
67710
|
+
const { symbol_config } = this.instance.expand;
|
|
67711
|
+
return symbol_config;
|
|
67712
|
+
}
|
|
67711
67713
|
async initialize() {
|
|
67712
67714
|
const proxy = await this.getProxyForAccount();
|
|
67713
67715
|
if (proxy) {
|
|
@@ -68893,9 +68895,6 @@ class ExchangeAccount {
|
|
|
68893
68895
|
symbol: payload.symbol,
|
|
68894
68896
|
as_view: true
|
|
68895
68897
|
});
|
|
68896
|
-
const symbol_config = await this.recomputeSymbolConfig({
|
|
68897
|
-
symbol: payload.symbol
|
|
68898
|
-
});
|
|
68899
68898
|
const active_account = await this.getActiveAccount({
|
|
68900
68899
|
symbol: payload.symbol
|
|
68901
68900
|
});
|
|
@@ -68903,7 +68902,6 @@ class ExchangeAccount {
|
|
|
68903
68902
|
const long_position = positions.find((x) => x.kind === "long");
|
|
68904
68903
|
const short_position = positions.find((x) => x.kind === "short");
|
|
68905
68904
|
this.long_position = new ExchangePosition({
|
|
68906
|
-
symbol_config,
|
|
68907
68905
|
exchange: this.exchange,
|
|
68908
68906
|
exchange_account: this,
|
|
68909
68907
|
instance: long_position,
|
|
@@ -68913,7 +68911,6 @@ class ExchangeAccount {
|
|
|
68913
68911
|
});
|
|
68914
68912
|
await this.long_position.initialize();
|
|
68915
68913
|
this.short_position = new ExchangePosition({
|
|
68916
|
-
symbol_config,
|
|
68917
68914
|
exchange: this.exchange,
|
|
68918
68915
|
exchange_account: this,
|
|
68919
68916
|
instance: short_position,
|
package/dist/mcp-server.js
CHANGED
|
@@ -61369,7 +61369,7 @@ class AppDatabase {
|
|
|
61369
61369
|
return result;
|
|
61370
61370
|
}
|
|
61371
61371
|
get positionExpand() {
|
|
61372
|
-
return "b_config, account_strategy, p_account, proxy, compound_instance.ref,support";
|
|
61372
|
+
return "b_config, account_strategy, p_account, proxy, compound_instance.ref,support,symbol_config";
|
|
61373
61373
|
}
|
|
61374
61374
|
async fetchCentralPositions(payload) {
|
|
61375
61375
|
const { asset: assetName, symbol, customFilter = "" } = payload;
|
|
@@ -67664,13 +67664,11 @@ var import_https_proxy_agent2 = __toESM(require_dist2(), 1);
|
|
|
67664
67664
|
var import_socks_proxy_agent2 = __toESM(require_dist3(), 1);
|
|
67665
67665
|
class ExchangePosition {
|
|
67666
67666
|
exchange;
|
|
67667
|
-
symbol_config;
|
|
67668
67667
|
exchange_account;
|
|
67669
67668
|
app_db;
|
|
67670
67669
|
instance;
|
|
67671
67670
|
orders;
|
|
67672
67671
|
constructor(payload) {
|
|
67673
|
-
this.symbol_config = payload.symbol_config;
|
|
67674
67672
|
this.exchange = payload.exchange;
|
|
67675
67673
|
this.app_db = payload.app_db;
|
|
67676
67674
|
this.instance = payload.instance;
|
|
@@ -67681,6 +67679,10 @@ class ExchangePosition {
|
|
|
67681
67679
|
tp_orders: []
|
|
67682
67680
|
};
|
|
67683
67681
|
}
|
|
67682
|
+
get symbol_config() {
|
|
67683
|
+
const { symbol_config } = this.instance.expand;
|
|
67684
|
+
return symbol_config;
|
|
67685
|
+
}
|
|
67684
67686
|
async initialize() {
|
|
67685
67687
|
const proxy = await this.getProxyForAccount();
|
|
67686
67688
|
if (proxy) {
|
|
@@ -68866,9 +68868,6 @@ class ExchangeAccount {
|
|
|
68866
68868
|
symbol: payload.symbol,
|
|
68867
68869
|
as_view: true
|
|
68868
68870
|
});
|
|
68869
|
-
const symbol_config = await this.recomputeSymbolConfig({
|
|
68870
|
-
symbol: payload.symbol
|
|
68871
|
-
});
|
|
68872
68871
|
const active_account = await this.getActiveAccount({
|
|
68873
68872
|
symbol: payload.symbol
|
|
68874
68873
|
});
|
|
@@ -68876,7 +68875,6 @@ class ExchangeAccount {
|
|
|
68876
68875
|
const long_position = positions.find((x) => x.kind === "long");
|
|
68877
68876
|
const short_position = positions.find((x) => x.kind === "short");
|
|
68878
68877
|
this.long_position = new ExchangePosition({
|
|
68879
|
-
symbol_config,
|
|
68880
68878
|
exchange: this.exchange,
|
|
68881
68879
|
exchange_account: this,
|
|
68882
68880
|
instance: long_position,
|
|
@@ -68886,7 +68884,6 @@ class ExchangeAccount {
|
|
|
68886
68884
|
});
|
|
68887
68885
|
await this.long_position.initialize();
|
|
68888
68886
|
this.short_position = new ExchangePosition({
|
|
68889
|
-
symbol_config,
|
|
68890
68887
|
exchange: this.exchange,
|
|
68891
68888
|
exchange_account: this,
|
|
68892
68889
|
instance: short_position,
|