@gbozee/ultimate 0.0.2-192 → 0.0.2-194
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 +5 -0
- package/dist/frontend-index.js +3 -0
- package/dist/index.cjs +373 -185
- package/dist/index.d.ts +3 -98
- package/dist/index.js +373 -185
- package/dist/mcp-server.cjs +332 -147
- package/dist/mcp-server.js +332 -147
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -113,11 +113,6 @@ interface Proxy$1 extends BaseSystemFields {
|
|
|
113
113
|
ip_address?: string;
|
|
114
114
|
type?: "http" | "socks5";
|
|
115
115
|
}
|
|
116
|
-
export interface TradeBlockTracking extends BaseSystemFields {
|
|
117
|
-
account?: string;
|
|
118
|
-
symbol?: string;
|
|
119
|
-
running?: boolean;
|
|
120
|
-
}
|
|
121
116
|
export interface PositionsView {
|
|
122
117
|
id: string;
|
|
123
118
|
symbol?: any;
|
|
@@ -203,73 +198,6 @@ export interface SupportTable extends BaseSystemFields {
|
|
|
203
198
|
last_updated?: string;
|
|
204
199
|
kind?: "long" | "short";
|
|
205
200
|
}
|
|
206
|
-
export interface BotInstance extends BaseSystemFields {
|
|
207
|
-
asset: string;
|
|
208
|
-
main_account?: string;
|
|
209
|
-
secondary_account?: string;
|
|
210
|
-
main_symbol: string;
|
|
211
|
-
secondary_symbol?: string;
|
|
212
|
-
direction?: "long" | "short";
|
|
213
|
-
budget?: number;
|
|
214
|
-
settings?: Record<string, any>;
|
|
215
|
-
user?: string;
|
|
216
|
-
}
|
|
217
|
-
export interface BotState extends BaseSystemFields {
|
|
218
|
-
bot: string;
|
|
219
|
-
running?: boolean;
|
|
220
|
-
status?: "main-trading" | "hedge-mode";
|
|
221
|
-
spot_quantity?: number;
|
|
222
|
-
exchange_details?: Record<string, any>;
|
|
223
|
-
completed?: boolean;
|
|
224
|
-
}
|
|
225
|
-
export interface BotOrderHistory extends BaseSystemFields {
|
|
226
|
-
field: string;
|
|
227
|
-
symbol: string;
|
|
228
|
-
pnl?: number;
|
|
229
|
-
kind?: "long" | "short";
|
|
230
|
-
type?: "future" | "spot";
|
|
231
|
-
}
|
|
232
|
-
export interface BotPositionData {
|
|
233
|
-
entry: number;
|
|
234
|
-
quantity: number;
|
|
235
|
-
tp: {
|
|
236
|
-
price: number;
|
|
237
|
-
quantity: number;
|
|
238
|
-
pnl: number;
|
|
239
|
-
};
|
|
240
|
-
current_price: number;
|
|
241
|
-
balance: number;
|
|
242
|
-
kind: "long" | "short";
|
|
243
|
-
next_order: number;
|
|
244
|
-
last_order: number;
|
|
245
|
-
avg: {
|
|
246
|
-
price: number;
|
|
247
|
-
quantity: number;
|
|
248
|
-
};
|
|
249
|
-
sl: {
|
|
250
|
-
price: number;
|
|
251
|
-
quantity: number;
|
|
252
|
-
pnl: number;
|
|
253
|
-
};
|
|
254
|
-
}
|
|
255
|
-
export interface BotView extends RecordModel {
|
|
256
|
-
id: string;
|
|
257
|
-
direction?: "long" | "short";
|
|
258
|
-
budget?: number;
|
|
259
|
-
main_symbol?: string;
|
|
260
|
-
main_long_position?: BotPositionData;
|
|
261
|
-
main_short_position?: BotPositionData;
|
|
262
|
-
secondary_symbol?: string;
|
|
263
|
-
secondary_long_position?: BotPositionData;
|
|
264
|
-
secondary_short_position?: BotPositionData;
|
|
265
|
-
main_account?: string;
|
|
266
|
-
secondary_account?: string;
|
|
267
|
-
settings?: Record<string, any>;
|
|
268
|
-
main_long_strategy?: string;
|
|
269
|
-
main_short_strategy?: string;
|
|
270
|
-
secondary_long_strategy?: string;
|
|
271
|
-
secondary_short_strategy?: string;
|
|
272
|
-
}
|
|
273
201
|
export type GlobalConfig = {
|
|
274
202
|
profit_percent: number;
|
|
275
203
|
symbol: string;
|
|
@@ -707,10 +635,6 @@ export declare class AppDatabase {
|
|
|
707
635
|
})[]>;
|
|
708
636
|
update_db_position(position: any, payload: any): Promise<import("pocketbase").RecordModel>;
|
|
709
637
|
getSymbolConfigFromDB(symbol: string): Promise<SymbolConfig>;
|
|
710
|
-
getRunningInstanceFromDB(account: ExchangeType, symbol: string, options?: {
|
|
711
|
-
delay?: number;
|
|
712
|
-
}): Promise<TradeBlockTracking>;
|
|
713
|
-
updateRunningInstance(id: string, running: boolean): Promise<import("pocketbase").RecordModel>;
|
|
714
638
|
getOrders(account: ExchangeType, options: {
|
|
715
639
|
symbol: string;
|
|
716
640
|
kind: "long" | "short";
|
|
@@ -813,26 +737,6 @@ export declare class AppDatabase {
|
|
|
813
737
|
symbol: string;
|
|
814
738
|
account: ExchangeType;
|
|
815
739
|
}): Promise<AccountStrategy>;
|
|
816
|
-
getBotViewInstance(payload: {
|
|
817
|
-
asset: string;
|
|
818
|
-
main_account: ExchangeType;
|
|
819
|
-
}): Promise<BotView | null>;
|
|
820
|
-
getBotInstance(payload: {
|
|
821
|
-
asset: string;
|
|
822
|
-
main_account: ExchangeType;
|
|
823
|
-
}): Promise<BotInstance | null>;
|
|
824
|
-
getBotState(payload: {
|
|
825
|
-
asset: string;
|
|
826
|
-
main_account: ExchangeType;
|
|
827
|
-
running?: boolean;
|
|
828
|
-
}): Promise<BotState[]>;
|
|
829
|
-
getBotOrderHistories(payload: {
|
|
830
|
-
asset: string;
|
|
831
|
-
main_account: ExchangeType;
|
|
832
|
-
symbol?: string;
|
|
833
|
-
kind?: "long" | "short";
|
|
834
|
-
type?: "future" | "spot";
|
|
835
|
-
}): Promise<BotOrderHistory[]>;
|
|
836
740
|
createOrUpdateWindingDownMarket(payload: {
|
|
837
741
|
symbol: string;
|
|
838
742
|
risk_reward?: number;
|
|
@@ -1898,6 +1802,7 @@ export declare function generateDangerousConfig(payload: {
|
|
|
1898
1802
|
entry: any;
|
|
1899
1803
|
};
|
|
1900
1804
|
};
|
|
1805
|
+
declare const name$1 = "";
|
|
1901
1806
|
export type ExchangeOrder = {
|
|
1902
1807
|
symbol: string;
|
|
1903
1808
|
price: number;
|
|
@@ -2432,7 +2337,6 @@ declare class ExchangeAccount$1 {
|
|
|
2432
2337
|
proxy: Proxy$1;
|
|
2433
2338
|
};
|
|
2434
2339
|
})[]>;
|
|
2435
|
-
getRunningInstanceFromDB(symbol: string): Promise<TradeBlockTracking>;
|
|
2436
2340
|
syncOrders(options: {
|
|
2437
2341
|
symbol: string;
|
|
2438
2342
|
kind?: "long" | "short";
|
|
@@ -3127,7 +3031,7 @@ declare class App {
|
|
|
3127
3031
|
account: ExchangeType;
|
|
3128
3032
|
symbol: string;
|
|
3129
3033
|
kind: "long" | "short";
|
|
3130
|
-
}): Promise<
|
|
3034
|
+
}): Promise<boolean>;
|
|
3131
3035
|
cancelOrders(payload: {
|
|
3132
3036
|
account: ExchangeType;
|
|
3133
3037
|
symbol: string;
|
|
@@ -3340,6 +3244,7 @@ export {
|
|
|
3340
3244
|
app,
|
|
3341
3245
|
database,
|
|
3342
3246
|
exchange_account,
|
|
3247
|
+
name$1 as name,
|
|
3343
3248
|
};
|
|
3344
3249
|
|
|
3345
3250
|
export {};
|