@cryptorobot.ai/client 0.0.25 → 0.0.27
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/lib/helpers/handlebars.helper.d.ts +16 -1
- package/lib/helpers/hyperopt.helper.d.ts +7 -2
- package/lib/helpers/rules.helper.d.ts +13 -0
- package/lib/hooks/hyperopt-generate-and-queue.d.ts +2 -0
- package/lib/hooks/hyperopt-generate-exchange-config.d.ts +8 -0
- package/lib/hooks/{aws-prepare-batch-job.d.ts → hyperopt-get-results.d.ts} +1 -1
- package/lib/hooks/hyperopt-in-disk-clone-strategy.d.ts +2 -0
- package/lib/services/strategies/backtest/backtest.schema.d.ts +143 -3
- package/lib/services/strategies/backtest/results/results.schema.d.ts +52 -52
- package/lib/services/strategies/hyperopt/hyperopt.schema.d.ts +153 -9
- package/lib/services/strategies/indicators/indicators.schema.d.ts +64 -0
- package/package.json +16 -15
|
@@ -5,6 +5,21 @@ export declare class Handlebars {
|
|
|
5
5
|
constructor(context: HookContext);
|
|
6
6
|
register: () => void;
|
|
7
7
|
templateExists: () => Promise<boolean | undefined>;
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Reads the template file and returns its content as a Promise.
|
|
10
|
+
*
|
|
11
|
+
* @returns {Promise<string>} A Promise that resolves with the content of the template file.
|
|
12
|
+
*/
|
|
13
|
+
readTemplates: () => Promise<{
|
|
14
|
+
strategy: string;
|
|
15
|
+
hyperopt: string;
|
|
16
|
+
}>;
|
|
17
|
+
/**
|
|
18
|
+
* Compiles the template with the provided values.
|
|
19
|
+
*
|
|
20
|
+
* @param file - The template file to compile.
|
|
21
|
+
* @param values - The values to be used during compilation.
|
|
22
|
+
* @returns A promise that resolves with the compiled result.
|
|
23
|
+
*/
|
|
9
24
|
compileWithValues: (file: any, values: any) => Promise<unknown>;
|
|
10
25
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HookContext } from '@feathersjs/feathers';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class HyperoptHelper {
|
|
3
3
|
context: HookContext;
|
|
4
4
|
client: any;
|
|
5
5
|
iam: any;
|
|
@@ -7,8 +7,13 @@ export declare class Hyperopt {
|
|
|
7
7
|
constructor(context: HookContext);
|
|
8
8
|
prepareLocalEnvironment(): Promise<void>;
|
|
9
9
|
jobDefinitionExists(name: string): Promise<boolean>;
|
|
10
|
-
generate(context: HookContext):
|
|
10
|
+
static generate(context: HookContext, provider: string): object;
|
|
11
|
+
static deploy(context: HookContext, deployment: any, provider: string): Promise<any>;
|
|
11
12
|
updateJobStatus(message: any): Promise<void>;
|
|
12
13
|
registerJobDefinition(definition: any): Promise<any>;
|
|
13
14
|
submitJob(): Promise<void>;
|
|
15
|
+
static getName(createdAt: any): string;
|
|
16
|
+
static getTraderData(context: HookContext): string;
|
|
17
|
+
static promisifyStream(container: any): Promise<any>;
|
|
18
|
+
static getResultsFromDisk(context: HookContext): any;
|
|
14
19
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class RulesHelper {
|
|
2
|
+
values: any;
|
|
3
|
+
conditionsEntry: any;
|
|
4
|
+
conditionsExit: any;
|
|
5
|
+
constructor(values: any);
|
|
6
|
+
getIndicatorById(indicators: any, id: string): any;
|
|
7
|
+
getValueByTypeFromRule(rule: any, position: string): any;
|
|
8
|
+
isLastItem(array: any, item: any): boolean;
|
|
9
|
+
processEntryWhen(): void;
|
|
10
|
+
processExitWhen(): void;
|
|
11
|
+
getConditionsEntry(): any;
|
|
12
|
+
getConditionsExit(): any;
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { HookContext } from '../declarations';
|
|
2
|
+
/**
|
|
3
|
+
* Generates the exchange configuration for hyperopting.
|
|
4
|
+
*
|
|
5
|
+
* @param {HookContext} context - The hook context.
|
|
6
|
+
* @returns {Promise<void>} - A promise that resolves when the exchange configuration is generated.
|
|
7
|
+
*/
|
|
8
|
+
export declare const hyperoptGenerateExchangeConfig: (context: HookContext) => Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { HookContext } from '../declarations';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const hyperoptGetResults: (context: HookContext) => Promise<void>;
|
|
@@ -6,6 +6,7 @@ export declare const strategiesBacktestSchema: import("@feathersjs/typebox").TOb
|
|
|
6
6
|
traderId: import("@feathersjs/typebox").TString<string>;
|
|
7
7
|
exchangeId: import("@feathersjs/typebox").TString<string>;
|
|
8
8
|
jobId: import("@feathersjs/typebox").TString<string>;
|
|
9
|
+
strategyId: import("@feathersjs/typebox").TAny;
|
|
9
10
|
status: import("@feathersjs/typebox").TString<string>;
|
|
10
11
|
overrides: import("@feathersjs/typebox").TObject<{
|
|
11
12
|
max_open_trades: import("@feathersjs/typebox").TNumber;
|
|
@@ -41,6 +42,7 @@ export declare const strategiesBacktestResolver: import("@feathersjs/schema").Re
|
|
|
41
42
|
eps: boolean;
|
|
42
43
|
};
|
|
43
44
|
exchangeId: string;
|
|
45
|
+
strategyId: any;
|
|
44
46
|
status: string;
|
|
45
47
|
traderId: string;
|
|
46
48
|
jobId: string;
|
|
@@ -65,6 +67,7 @@ export declare const strategiesBacktestExternalResolver: import("@feathersjs/sch
|
|
|
65
67
|
eps: boolean;
|
|
66
68
|
};
|
|
67
69
|
exchangeId: string;
|
|
70
|
+
strategyId: any;
|
|
68
71
|
status: string;
|
|
69
72
|
traderId: string;
|
|
70
73
|
jobId: string;
|
|
@@ -80,6 +83,7 @@ export declare const strategiesBacktestDataSchema: import("@feathersjs/typebox")
|
|
|
80
83
|
traderId: import("@feathersjs/typebox").TString<string>;
|
|
81
84
|
exchangeId: import("@feathersjs/typebox").TString<string>;
|
|
82
85
|
jobId: import("@feathersjs/typebox").TString<string>;
|
|
86
|
+
strategyId: import("@feathersjs/typebox").TAny;
|
|
83
87
|
status: import("@feathersjs/typebox").TString<string>;
|
|
84
88
|
overrides: import("@feathersjs/typebox").TObject<{
|
|
85
89
|
max_open_trades: import("@feathersjs/typebox").TNumber;
|
|
@@ -115,6 +119,7 @@ export declare const strategiesBacktestDataResolver: import("@feathersjs/schema"
|
|
|
115
119
|
eps: boolean;
|
|
116
120
|
};
|
|
117
121
|
exchangeId: string;
|
|
122
|
+
strategyId: any;
|
|
118
123
|
status: string;
|
|
119
124
|
traderId: string;
|
|
120
125
|
jobId: string;
|
|
@@ -130,6 +135,7 @@ export declare const strategiesBacktestPatchSchema: import("@feathersjs/typebox"
|
|
|
130
135
|
traderId: import("@feathersjs/typebox").TString<string>;
|
|
131
136
|
exchangeId: import("@feathersjs/typebox").TString<string>;
|
|
132
137
|
jobId: import("@feathersjs/typebox").TString<string>;
|
|
138
|
+
strategyId: import("@feathersjs/typebox").TAny;
|
|
133
139
|
status: import("@feathersjs/typebox").TString<string>;
|
|
134
140
|
overrides: import("@feathersjs/typebox").TObject<{
|
|
135
141
|
max_open_trades: import("@feathersjs/typebox").TNumber;
|
|
@@ -165,6 +171,7 @@ export declare const strategiesBacktestPatchResolver: import("@feathersjs/schema
|
|
|
165
171
|
eps: boolean;
|
|
166
172
|
};
|
|
167
173
|
exchangeId: string;
|
|
174
|
+
strategyId: any;
|
|
168
175
|
status: string;
|
|
169
176
|
traderId: string;
|
|
170
177
|
jobId: string;
|
|
@@ -180,6 +187,7 @@ export declare const strategiesBacktestQueryProperties: import("@feathersjs/type
|
|
|
180
187
|
traderId: import("@feathersjs/typebox").TString<string>;
|
|
181
188
|
exchangeId: import("@feathersjs/typebox").TString<string>;
|
|
182
189
|
jobId: import("@feathersjs/typebox").TString<string>;
|
|
190
|
+
strategyId: import("@feathersjs/typebox").TAny;
|
|
183
191
|
status: import("@feathersjs/typebox").TString<string>;
|
|
184
192
|
overrides: import("@feathersjs/typebox").TObject<{
|
|
185
193
|
max_open_trades: import("@feathersjs/typebox").TNumber;
|
|
@@ -198,7 +206,7 @@ export declare const strategiesBacktestQueryProperties: import("@feathersjs/type
|
|
|
198
206
|
took: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TNumber>;
|
|
199
207
|
attempts: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
200
208
|
results: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
201
|
-
}>, ["_id", "traderId", "exchangeId", "results", "createdAt", "stoppedAt", "jobId"]>;
|
|
209
|
+
}>, ["_id", "traderId", "exchangeId", "strategyId", "results", "createdAt", "stoppedAt", "status", "jobId"]>;
|
|
202
210
|
export declare const strategiesBacktestQuerySchema: import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TObject<{
|
|
203
211
|
$limit: import("@feathersjs/typebox").TNumber;
|
|
204
212
|
$skip: import("@feathersjs/typebox").TNumber;
|
|
@@ -207,11 +215,13 @@ export declare const strategiesBacktestQuerySchema: import("@feathersjs/typebox"
|
|
|
207
215
|
createdAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TInteger>;
|
|
208
216
|
results: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TInteger>;
|
|
209
217
|
exchangeId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TInteger>;
|
|
218
|
+
strategyId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TInteger>;
|
|
219
|
+
status: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TInteger>;
|
|
210
220
|
traderId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TInteger>;
|
|
211
221
|
jobId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TInteger>;
|
|
212
222
|
stoppedAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TInteger>;
|
|
213
223
|
}>;
|
|
214
|
-
$select: import("@feathersjs/typebox").TUnsafe<("_id" | "createdAt" | "results" | "exchangeId" | "traderId" | "jobId" | "stoppedAt")[]>;
|
|
224
|
+
$select: import("@feathersjs/typebox").TUnsafe<("_id" | "createdAt" | "results" | "exchangeId" | "strategyId" | "status" | "traderId" | "jobId" | "stoppedAt")[]>;
|
|
215
225
|
$and: import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
|
|
216
226
|
_id: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
|
|
217
227
|
$gt: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>;
|
|
@@ -257,6 +267,28 @@ export declare const strategiesBacktestQuerySchema: import("@feathersjs/typebox"
|
|
|
257
267
|
}>, import("@feathersjs/typebox").TObject<{
|
|
258
268
|
[key: string]: import("@feathersjs/typebox").TSchema;
|
|
259
269
|
} | undefined>]>>]>>;
|
|
270
|
+
strategyId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TAny, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
|
|
271
|
+
$gt: import("@feathersjs/typebox").TAny;
|
|
272
|
+
$gte: import("@feathersjs/typebox").TAny;
|
|
273
|
+
$lt: import("@feathersjs/typebox").TAny;
|
|
274
|
+
$lte: import("@feathersjs/typebox").TAny;
|
|
275
|
+
$ne: import("@feathersjs/typebox").TAny;
|
|
276
|
+
$in: import("@feathersjs/typebox").TAny | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TAny>;
|
|
277
|
+
$nin: import("@feathersjs/typebox").TAny | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TAny>;
|
|
278
|
+
}>, import("@feathersjs/typebox").TObject<{
|
|
279
|
+
[key: string]: import("@feathersjs/typebox").TSchema;
|
|
280
|
+
} | undefined>]>>]>>;
|
|
281
|
+
status: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
|
|
282
|
+
$gt: import("@feathersjs/typebox").TString<string>;
|
|
283
|
+
$gte: import("@feathersjs/typebox").TString<string>;
|
|
284
|
+
$lt: import("@feathersjs/typebox").TString<string>;
|
|
285
|
+
$lte: import("@feathersjs/typebox").TString<string>;
|
|
286
|
+
$ne: import("@feathersjs/typebox").TString<string>;
|
|
287
|
+
$in: import("@feathersjs/typebox").TString<string> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TString<string>>;
|
|
288
|
+
$nin: import("@feathersjs/typebox").TString<string> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TString<string>>;
|
|
289
|
+
}>, import("@feathersjs/typebox").TObject<{
|
|
290
|
+
[key: string]: import("@feathersjs/typebox").TSchema;
|
|
291
|
+
} | undefined>]>>]>>;
|
|
260
292
|
traderId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
|
|
261
293
|
$gt: import("@feathersjs/typebox").TString<string>;
|
|
262
294
|
$gte: import("@feathersjs/typebox").TString<string>;
|
|
@@ -336,6 +368,28 @@ export declare const strategiesBacktestQuerySchema: import("@feathersjs/typebox"
|
|
|
336
368
|
}>, import("@feathersjs/typebox").TObject<{
|
|
337
369
|
[key: string]: import("@feathersjs/typebox").TSchema;
|
|
338
370
|
} | undefined>]>>]>>;
|
|
371
|
+
strategyId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TAny, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
|
|
372
|
+
$gt: import("@feathersjs/typebox").TAny;
|
|
373
|
+
$gte: import("@feathersjs/typebox").TAny;
|
|
374
|
+
$lt: import("@feathersjs/typebox").TAny;
|
|
375
|
+
$lte: import("@feathersjs/typebox").TAny;
|
|
376
|
+
$ne: import("@feathersjs/typebox").TAny;
|
|
377
|
+
$in: import("@feathersjs/typebox").TAny | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TAny>;
|
|
378
|
+
$nin: import("@feathersjs/typebox").TAny | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TAny>;
|
|
379
|
+
}>, import("@feathersjs/typebox").TObject<{
|
|
380
|
+
[key: string]: import("@feathersjs/typebox").TSchema;
|
|
381
|
+
} | undefined>]>>]>>;
|
|
382
|
+
status: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
|
|
383
|
+
$gt: import("@feathersjs/typebox").TString<string>;
|
|
384
|
+
$gte: import("@feathersjs/typebox").TString<string>;
|
|
385
|
+
$lt: import("@feathersjs/typebox").TString<string>;
|
|
386
|
+
$lte: import("@feathersjs/typebox").TString<string>;
|
|
387
|
+
$ne: import("@feathersjs/typebox").TString<string>;
|
|
388
|
+
$in: import("@feathersjs/typebox").TString<string> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TString<string>>;
|
|
389
|
+
$nin: import("@feathersjs/typebox").TString<string> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TString<string>>;
|
|
390
|
+
}>, import("@feathersjs/typebox").TObject<{
|
|
391
|
+
[key: string]: import("@feathersjs/typebox").TSchema;
|
|
392
|
+
} | undefined>]>>]>>;
|
|
339
393
|
traderId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
|
|
340
394
|
$gt: import("@feathersjs/typebox").TString<string>;
|
|
341
395
|
$gte: import("@feathersjs/typebox").TString<string>;
|
|
@@ -416,6 +470,28 @@ export declare const strategiesBacktestQuerySchema: import("@feathersjs/typebox"
|
|
|
416
470
|
}>, import("@feathersjs/typebox").TObject<{
|
|
417
471
|
[key: string]: import("@feathersjs/typebox").TSchema;
|
|
418
472
|
} | undefined>]>>]>>;
|
|
473
|
+
strategyId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TAny, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
|
|
474
|
+
$gt: import("@feathersjs/typebox").TAny;
|
|
475
|
+
$gte: import("@feathersjs/typebox").TAny;
|
|
476
|
+
$lt: import("@feathersjs/typebox").TAny;
|
|
477
|
+
$lte: import("@feathersjs/typebox").TAny;
|
|
478
|
+
$ne: import("@feathersjs/typebox").TAny;
|
|
479
|
+
$in: import("@feathersjs/typebox").TAny | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TAny>;
|
|
480
|
+
$nin: import("@feathersjs/typebox").TAny | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TAny>;
|
|
481
|
+
}>, import("@feathersjs/typebox").TObject<{
|
|
482
|
+
[key: string]: import("@feathersjs/typebox").TSchema;
|
|
483
|
+
} | undefined>]>>]>>;
|
|
484
|
+
status: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
|
|
485
|
+
$gt: import("@feathersjs/typebox").TString<string>;
|
|
486
|
+
$gte: import("@feathersjs/typebox").TString<string>;
|
|
487
|
+
$lt: import("@feathersjs/typebox").TString<string>;
|
|
488
|
+
$lte: import("@feathersjs/typebox").TString<string>;
|
|
489
|
+
$ne: import("@feathersjs/typebox").TString<string>;
|
|
490
|
+
$in: import("@feathersjs/typebox").TString<string> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TString<string>>;
|
|
491
|
+
$nin: import("@feathersjs/typebox").TString<string> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TString<string>>;
|
|
492
|
+
}>, import("@feathersjs/typebox").TObject<{
|
|
493
|
+
[key: string]: import("@feathersjs/typebox").TSchema;
|
|
494
|
+
} | undefined>]>>]>>;
|
|
419
495
|
traderId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
|
|
420
496
|
$gt: import("@feathersjs/typebox").TString<string>;
|
|
421
497
|
$gte: import("@feathersjs/typebox").TString<string>;
|
|
@@ -495,6 +571,28 @@ export declare const strategiesBacktestQuerySchema: import("@feathersjs/typebox"
|
|
|
495
571
|
}>, import("@feathersjs/typebox").TObject<{
|
|
496
572
|
[key: string]: import("@feathersjs/typebox").TSchema;
|
|
497
573
|
} | undefined>]>>]>>;
|
|
574
|
+
strategyId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TAny, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
|
|
575
|
+
$gt: import("@feathersjs/typebox").TAny;
|
|
576
|
+
$gte: import("@feathersjs/typebox").TAny;
|
|
577
|
+
$lt: import("@feathersjs/typebox").TAny;
|
|
578
|
+
$lte: import("@feathersjs/typebox").TAny;
|
|
579
|
+
$ne: import("@feathersjs/typebox").TAny;
|
|
580
|
+
$in: import("@feathersjs/typebox").TAny | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TAny>;
|
|
581
|
+
$nin: import("@feathersjs/typebox").TAny | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TAny>;
|
|
582
|
+
}>, import("@feathersjs/typebox").TObject<{
|
|
583
|
+
[key: string]: import("@feathersjs/typebox").TSchema;
|
|
584
|
+
} | undefined>]>>]>>;
|
|
585
|
+
status: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
|
|
586
|
+
$gt: import("@feathersjs/typebox").TString<string>;
|
|
587
|
+
$gte: import("@feathersjs/typebox").TString<string>;
|
|
588
|
+
$lt: import("@feathersjs/typebox").TString<string>;
|
|
589
|
+
$lte: import("@feathersjs/typebox").TString<string>;
|
|
590
|
+
$ne: import("@feathersjs/typebox").TString<string>;
|
|
591
|
+
$in: import("@feathersjs/typebox").TString<string> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TString<string>>;
|
|
592
|
+
$nin: import("@feathersjs/typebox").TString<string> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TString<string>>;
|
|
593
|
+
}>, import("@feathersjs/typebox").TObject<{
|
|
594
|
+
[key: string]: import("@feathersjs/typebox").TSchema;
|
|
595
|
+
} | undefined>]>>]>>;
|
|
498
596
|
traderId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
|
|
499
597
|
$gt: import("@feathersjs/typebox").TString<string>;
|
|
500
598
|
$gte: import("@feathersjs/typebox").TString<string>;
|
|
@@ -539,11 +637,13 @@ export declare const strategiesBacktestQueryResolver: import("@feathersjs/schema
|
|
|
539
637
|
createdAt?: number | undefined;
|
|
540
638
|
results?: number | undefined;
|
|
541
639
|
exchangeId?: number | undefined;
|
|
640
|
+
strategyId?: number | undefined;
|
|
641
|
+
status?: number | undefined;
|
|
542
642
|
traderId?: number | undefined;
|
|
543
643
|
jobId?: number | undefined;
|
|
544
644
|
stoppedAt?: number | undefined;
|
|
545
645
|
};
|
|
546
|
-
$select: ("_id" | "createdAt" | "results" | "exchangeId" | "traderId" | "jobId" | "stoppedAt")[];
|
|
646
|
+
$select: ("_id" | "createdAt" | "results" | "exchangeId" | "strategyId" | "status" | "traderId" | "jobId" | "stoppedAt")[];
|
|
547
647
|
$and: ({
|
|
548
648
|
_id?: string | {} | Partial<{
|
|
549
649
|
$gt: string | {};
|
|
@@ -565,6 +665,16 @@ export declare const strategiesBacktestQueryResolver: import("@feathersjs/schema
|
|
|
565
665
|
$in: string | string[];
|
|
566
666
|
$nin: string | string[];
|
|
567
667
|
} & {}> | undefined;
|
|
668
|
+
strategyId?: any;
|
|
669
|
+
status?: string | Partial<{
|
|
670
|
+
$gt: string;
|
|
671
|
+
$gte: string;
|
|
672
|
+
$lt: string;
|
|
673
|
+
$lte: string;
|
|
674
|
+
$ne: string;
|
|
675
|
+
$in: string | string[];
|
|
676
|
+
$nin: string | string[];
|
|
677
|
+
} & {}> | undefined;
|
|
568
678
|
traderId?: string | Partial<{
|
|
569
679
|
$gt: string;
|
|
570
680
|
$gte: string;
|
|
@@ -606,6 +716,16 @@ export declare const strategiesBacktestQueryResolver: import("@feathersjs/schema
|
|
|
606
716
|
$in: string | string[];
|
|
607
717
|
$nin: string | string[];
|
|
608
718
|
} & {}> | undefined;
|
|
719
|
+
strategyId?: any;
|
|
720
|
+
status?: string | Partial<{
|
|
721
|
+
$gt: string;
|
|
722
|
+
$gte: string;
|
|
723
|
+
$lt: string;
|
|
724
|
+
$lte: string;
|
|
725
|
+
$ne: string;
|
|
726
|
+
$in: string | string[];
|
|
727
|
+
$nin: string | string[];
|
|
728
|
+
} & {}> | undefined;
|
|
609
729
|
traderId?: string | Partial<{
|
|
610
730
|
$gt: string;
|
|
611
731
|
$gte: string;
|
|
@@ -648,6 +768,16 @@ export declare const strategiesBacktestQueryResolver: import("@feathersjs/schema
|
|
|
648
768
|
$in: string | string[];
|
|
649
769
|
$nin: string | string[];
|
|
650
770
|
} & {}> | undefined;
|
|
771
|
+
strategyId?: any;
|
|
772
|
+
status?: string | Partial<{
|
|
773
|
+
$gt: string;
|
|
774
|
+
$gte: string;
|
|
775
|
+
$lt: string;
|
|
776
|
+
$lte: string;
|
|
777
|
+
$ne: string;
|
|
778
|
+
$in: string | string[];
|
|
779
|
+
$nin: string | string[];
|
|
780
|
+
} & {}> | undefined;
|
|
651
781
|
traderId?: string | Partial<{
|
|
652
782
|
$gt: string;
|
|
653
783
|
$gte: string;
|
|
@@ -689,6 +819,16 @@ export declare const strategiesBacktestQueryResolver: import("@feathersjs/schema
|
|
|
689
819
|
$in: string | string[];
|
|
690
820
|
$nin: string | string[];
|
|
691
821
|
} & {}> | undefined;
|
|
822
|
+
strategyId?: any;
|
|
823
|
+
status?: string | Partial<{
|
|
824
|
+
$gt: string;
|
|
825
|
+
$gte: string;
|
|
826
|
+
$lt: string;
|
|
827
|
+
$lte: string;
|
|
828
|
+
$ne: string;
|
|
829
|
+
$in: string | string[];
|
|
830
|
+
$nin: string | string[];
|
|
831
|
+
} & {}> | undefined;
|
|
692
832
|
traderId?: string | Partial<{
|
|
693
833
|
$gt: string;
|
|
694
834
|
$gte: string;
|
|
@@ -959,10 +959,10 @@ export declare const strategiesBacktestResultsQuerySchema: import("@feathersjs/t
|
|
|
959
959
|
createdAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TInteger>;
|
|
960
960
|
strategyId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TInteger>;
|
|
961
961
|
traderId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TInteger>;
|
|
962
|
-
finishedAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TInteger>;
|
|
963
962
|
profit_total: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TInteger>;
|
|
963
|
+
finishedAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TInteger>;
|
|
964
964
|
}>;
|
|
965
|
-
$select: import("@feathersjs/typebox").TUnsafe<("_id" | "createdAt" | "strategyId" | "traderId" | "
|
|
965
|
+
$select: import("@feathersjs/typebox").TUnsafe<("_id" | "createdAt" | "strategyId" | "traderId" | "profit_total" | "finishedAt")[]>;
|
|
966
966
|
$and: import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
|
|
967
967
|
_id: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
|
|
968
968
|
$gt: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>;
|
|
@@ -1008,17 +1008,6 @@ export declare const strategiesBacktestResultsQuerySchema: import("@feathersjs/t
|
|
|
1008
1008
|
}>, import("@feathersjs/typebox").TObject<{
|
|
1009
1009
|
[key: string]: import("@feathersjs/typebox").TSchema;
|
|
1010
1010
|
} | undefined>]>>]>>;
|
|
1011
|
-
finishedAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
|
|
1012
|
-
$gt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1013
|
-
$gte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1014
|
-
$lt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1015
|
-
$lte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1016
|
-
$ne: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1017
|
-
$in: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
|
|
1018
|
-
$nin: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
|
|
1019
|
-
}>, import("@feathersjs/typebox").TObject<{
|
|
1020
|
-
[key: string]: import("@feathersjs/typebox").TSchema;
|
|
1021
|
-
} | undefined>]>>]>>;
|
|
1022
1011
|
profit_total: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TNumber, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
|
|
1023
1012
|
$gt: import("@feathersjs/typebox").TNumber;
|
|
1024
1013
|
$gte: import("@feathersjs/typebox").TNumber;
|
|
@@ -1030,6 +1019,17 @@ export declare const strategiesBacktestResultsQuerySchema: import("@feathersjs/t
|
|
|
1030
1019
|
}>, import("@feathersjs/typebox").TObject<{
|
|
1031
1020
|
[key: string]: import("@feathersjs/typebox").TSchema;
|
|
1032
1021
|
} | undefined>]>>]>>;
|
|
1022
|
+
finishedAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
|
|
1023
|
+
$gt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1024
|
+
$gte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1025
|
+
$lt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1026
|
+
$lte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1027
|
+
$ne: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1028
|
+
$in: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
|
|
1029
|
+
$nin: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
|
|
1030
|
+
}>, import("@feathersjs/typebox").TObject<{
|
|
1031
|
+
[key: string]: import("@feathersjs/typebox").TSchema;
|
|
1032
|
+
} | undefined>]>>]>>;
|
|
1033
1033
|
}>>, import("@feathersjs/typebox").TObject<{
|
|
1034
1034
|
$or: import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
|
|
1035
1035
|
_id: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
|
|
@@ -1076,17 +1076,6 @@ export declare const strategiesBacktestResultsQuerySchema: import("@feathersjs/t
|
|
|
1076
1076
|
}>, import("@feathersjs/typebox").TObject<{
|
|
1077
1077
|
[key: string]: import("@feathersjs/typebox").TSchema;
|
|
1078
1078
|
} | undefined>]>>]>>;
|
|
1079
|
-
finishedAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
|
|
1080
|
-
$gt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1081
|
-
$gte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1082
|
-
$lt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1083
|
-
$lte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1084
|
-
$ne: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1085
|
-
$in: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
|
|
1086
|
-
$nin: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
|
|
1087
|
-
}>, import("@feathersjs/typebox").TObject<{
|
|
1088
|
-
[key: string]: import("@feathersjs/typebox").TSchema;
|
|
1089
|
-
} | undefined>]>>]>>;
|
|
1090
1079
|
profit_total: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TNumber, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
|
|
1091
1080
|
$gt: import("@feathersjs/typebox").TNumber;
|
|
1092
1081
|
$gte: import("@feathersjs/typebox").TNumber;
|
|
@@ -1098,6 +1087,17 @@ export declare const strategiesBacktestResultsQuerySchema: import("@feathersjs/t
|
|
|
1098
1087
|
}>, import("@feathersjs/typebox").TObject<{
|
|
1099
1088
|
[key: string]: import("@feathersjs/typebox").TSchema;
|
|
1100
1089
|
} | undefined>]>>]>>;
|
|
1090
|
+
finishedAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
|
|
1091
|
+
$gt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1092
|
+
$gte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1093
|
+
$lt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1094
|
+
$lte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1095
|
+
$ne: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1096
|
+
$in: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
|
|
1097
|
+
$nin: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
|
|
1098
|
+
}>, import("@feathersjs/typebox").TObject<{
|
|
1099
|
+
[key: string]: import("@feathersjs/typebox").TSchema;
|
|
1100
|
+
} | undefined>]>>]>>;
|
|
1101
1101
|
}>>>;
|
|
1102
1102
|
}>]>>;
|
|
1103
1103
|
$or: import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
|
|
@@ -1145,17 +1145,6 @@ export declare const strategiesBacktestResultsQuerySchema: import("@feathersjs/t
|
|
|
1145
1145
|
}>, import("@feathersjs/typebox").TObject<{
|
|
1146
1146
|
[key: string]: import("@feathersjs/typebox").TSchema;
|
|
1147
1147
|
} | undefined>]>>]>>;
|
|
1148
|
-
finishedAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
|
|
1149
|
-
$gt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1150
|
-
$gte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1151
|
-
$lt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1152
|
-
$lte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1153
|
-
$ne: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1154
|
-
$in: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
|
|
1155
|
-
$nin: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
|
|
1156
|
-
}>, import("@feathersjs/typebox").TObject<{
|
|
1157
|
-
[key: string]: import("@feathersjs/typebox").TSchema;
|
|
1158
|
-
} | undefined>]>>]>>;
|
|
1159
1148
|
profit_total: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TNumber, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
|
|
1160
1149
|
$gt: import("@feathersjs/typebox").TNumber;
|
|
1161
1150
|
$gte: import("@feathersjs/typebox").TNumber;
|
|
@@ -1167,6 +1156,17 @@ export declare const strategiesBacktestResultsQuerySchema: import("@feathersjs/t
|
|
|
1167
1156
|
}>, import("@feathersjs/typebox").TObject<{
|
|
1168
1157
|
[key: string]: import("@feathersjs/typebox").TSchema;
|
|
1169
1158
|
} | undefined>]>>]>>;
|
|
1159
|
+
finishedAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
|
|
1160
|
+
$gt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1161
|
+
$gte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1162
|
+
$lt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1163
|
+
$lte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1164
|
+
$ne: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1165
|
+
$in: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
|
|
1166
|
+
$nin: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
|
|
1167
|
+
}>, import("@feathersjs/typebox").TObject<{
|
|
1168
|
+
[key: string]: import("@feathersjs/typebox").TSchema;
|
|
1169
|
+
} | undefined>]>>]>>;
|
|
1170
1170
|
}>>>;
|
|
1171
1171
|
}>>, import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
|
|
1172
1172
|
_id: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
|
|
@@ -1213,17 +1213,6 @@ export declare const strategiesBacktestResultsQuerySchema: import("@feathersjs/t
|
|
|
1213
1213
|
}>, import("@feathersjs/typebox").TObject<{
|
|
1214
1214
|
[key: string]: import("@feathersjs/typebox").TSchema;
|
|
1215
1215
|
} | undefined>]>>]>>;
|
|
1216
|
-
finishedAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
|
|
1217
|
-
$gt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1218
|
-
$gte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1219
|
-
$lt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1220
|
-
$lte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1221
|
-
$ne: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1222
|
-
$in: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
|
|
1223
|
-
$nin: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
|
|
1224
|
-
}>, import("@feathersjs/typebox").TObject<{
|
|
1225
|
-
[key: string]: import("@feathersjs/typebox").TSchema;
|
|
1226
|
-
} | undefined>]>>]>>;
|
|
1227
1216
|
profit_total: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TNumber, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
|
|
1228
1217
|
$gt: import("@feathersjs/typebox").TNumber;
|
|
1229
1218
|
$gte: import("@feathersjs/typebox").TNumber;
|
|
@@ -1235,6 +1224,17 @@ export declare const strategiesBacktestResultsQuerySchema: import("@feathersjs/t
|
|
|
1235
1224
|
}>, import("@feathersjs/typebox").TObject<{
|
|
1236
1225
|
[key: string]: import("@feathersjs/typebox").TSchema;
|
|
1237
1226
|
} | undefined>]>>]>>;
|
|
1227
|
+
finishedAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
|
|
1228
|
+
$gt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1229
|
+
$gte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1230
|
+
$lt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1231
|
+
$lte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1232
|
+
$ne: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
1233
|
+
$in: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
|
|
1234
|
+
$nin: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
|
|
1235
|
+
}>, import("@feathersjs/typebox").TObject<{
|
|
1236
|
+
[key: string]: import("@feathersjs/typebox").TSchema;
|
|
1237
|
+
} | undefined>]>>]>>;
|
|
1238
1238
|
}>>]>, import("@feathersjs/typebox").TObject<{}>]>;
|
|
1239
1239
|
export type StrategiesBacktestResultsQuery = Static<typeof strategiesBacktestResultsQuerySchema>;
|
|
1240
1240
|
export declare const strategiesBacktestResultsQueryValidator: import("@feathersjs/schema").Validator<any, any>;
|
|
@@ -1246,10 +1246,10 @@ export declare const strategiesBacktestResultsQueryResolver: import("@feathersjs
|
|
|
1246
1246
|
createdAt?: number | undefined;
|
|
1247
1247
|
strategyId?: number | undefined;
|
|
1248
1248
|
traderId?: number | undefined;
|
|
1249
|
-
finishedAt?: number | undefined;
|
|
1250
1249
|
profit_total?: number | undefined;
|
|
1250
|
+
finishedAt?: number | undefined;
|
|
1251
1251
|
};
|
|
1252
|
-
$select: ("_id" | "createdAt" | "strategyId" | "traderId" | "
|
|
1252
|
+
$select: ("_id" | "createdAt" | "strategyId" | "traderId" | "profit_total" | "finishedAt")[];
|
|
1253
1253
|
$and: ({
|
|
1254
1254
|
_id?: string | {} | Partial<{
|
|
1255
1255
|
$gt: string | {};
|
|
@@ -1279,7 +1279,6 @@ export declare const strategiesBacktestResultsQueryResolver: import("@feathersjs
|
|
|
1279
1279
|
$in: string | string[];
|
|
1280
1280
|
$nin: string | string[];
|
|
1281
1281
|
} & {}> | undefined;
|
|
1282
|
-
finishedAt?: any;
|
|
1283
1282
|
profit_total?: number | Partial<{
|
|
1284
1283
|
$gt: number;
|
|
1285
1284
|
$gte: number;
|
|
@@ -1289,6 +1288,7 @@ export declare const strategiesBacktestResultsQueryResolver: import("@feathersjs
|
|
|
1289
1288
|
$in: number | number[];
|
|
1290
1289
|
$nin: number | number[];
|
|
1291
1290
|
} & {}> | undefined;
|
|
1291
|
+
finishedAt?: any;
|
|
1292
1292
|
} | {
|
|
1293
1293
|
$or: {
|
|
1294
1294
|
_id?: string | {} | Partial<{
|
|
@@ -1319,7 +1319,6 @@ export declare const strategiesBacktestResultsQueryResolver: import("@feathersjs
|
|
|
1319
1319
|
$in: string | string[];
|
|
1320
1320
|
$nin: string | string[];
|
|
1321
1321
|
} & {}> | undefined;
|
|
1322
|
-
finishedAt?: any;
|
|
1323
1322
|
profit_total?: number | Partial<{
|
|
1324
1323
|
$gt: number;
|
|
1325
1324
|
$gte: number;
|
|
@@ -1329,6 +1328,7 @@ export declare const strategiesBacktestResultsQueryResolver: import("@feathersjs
|
|
|
1329
1328
|
$in: number | number[];
|
|
1330
1329
|
$nin: number | number[];
|
|
1331
1330
|
} & {}> | undefined;
|
|
1331
|
+
finishedAt?: any;
|
|
1332
1332
|
}[];
|
|
1333
1333
|
})[];
|
|
1334
1334
|
$or: {
|
|
@@ -1360,7 +1360,6 @@ export declare const strategiesBacktestResultsQueryResolver: import("@feathersjs
|
|
|
1360
1360
|
$in: string | string[];
|
|
1361
1361
|
$nin: string | string[];
|
|
1362
1362
|
} & {}> | undefined;
|
|
1363
|
-
finishedAt?: any;
|
|
1364
1363
|
profit_total?: number | Partial<{
|
|
1365
1364
|
$gt: number;
|
|
1366
1365
|
$gte: number;
|
|
@@ -1370,6 +1369,7 @@ export declare const strategiesBacktestResultsQueryResolver: import("@feathersjs
|
|
|
1370
1369
|
$in: number | number[];
|
|
1371
1370
|
$nin: number | number[];
|
|
1372
1371
|
} & {}> | undefined;
|
|
1372
|
+
finishedAt?: any;
|
|
1373
1373
|
}[];
|
|
1374
1374
|
}> & {
|
|
1375
1375
|
_id?: string | {} | Partial<{
|
|
@@ -1400,7 +1400,6 @@ export declare const strategiesBacktestResultsQueryResolver: import("@feathersjs
|
|
|
1400
1400
|
$in: string | string[];
|
|
1401
1401
|
$nin: string | string[];
|
|
1402
1402
|
} & {}> | undefined;
|
|
1403
|
-
finishedAt?: any;
|
|
1404
1403
|
profit_total?: number | Partial<{
|
|
1405
1404
|
$gt: number;
|
|
1406
1405
|
$gte: number;
|
|
@@ -1410,4 +1409,5 @@ export declare const strategiesBacktestResultsQueryResolver: import("@feathersjs
|
|
|
1410
1409
|
$in: number | number[];
|
|
1411
1410
|
$nin: number | number[];
|
|
1412
1411
|
} & {}> | undefined;
|
|
1412
|
+
finishedAt?: any;
|
|
1413
1413
|
} & {}, HookContext<StrategiesBacktestResultsService<import("./results.class").StrategiesBacktestResultsParams>>>;
|
|
@@ -5,9 +5,27 @@ export declare const strategiesHyperoptSchema: import("@feathersjs/typebox").TOb
|
|
|
5
5
|
_id: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>;
|
|
6
6
|
strategyId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>, import("@feathersjs/typebox").TString<string>]>>;
|
|
7
7
|
traderId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>, import("@feathersjs/typebox").TString<string>]>>;
|
|
8
|
+
exchangeId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>, import("@feathersjs/typebox").TString<string>]>>;
|
|
8
9
|
jobId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
10
|
+
overrides: import("@feathersjs/typebox").TObject<{
|
|
11
|
+
max_open_trades: import("@feathersjs/typebox").TNumber;
|
|
12
|
+
dry_run_wallet: import("@feathersjs/typebox").TNumber;
|
|
13
|
+
}>;
|
|
14
|
+
options: import("@feathersjs/typebox").TObject<{
|
|
15
|
+
protections: import("@feathersjs/typebox").TBoolean;
|
|
16
|
+
eps: import("@feathersjs/typebox").TBoolean;
|
|
17
|
+
}>;
|
|
18
|
+
epochs: import("@feathersjs/typebox").TNumber;
|
|
19
|
+
function: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TLiteral<"ShortTradeDurHyperOptLoss">, import("@feathersjs/typebox").TLiteral<"OnlyProfitHyperOptLoss">, import("@feathersjs/typebox").TLiteral<"SharpeHyperOptLoss">, import("@feathersjs/typebox").TLiteral<"SharpeHyperOptLossDaily">, import("@feathersjs/typebox").TLiteral<"SortinoHyperOptLoss">, import("@feathersjs/typebox").TLiteral<"SortinoHyperOptLossDaily">, import("@feathersjs/typebox").TLiteral<"CalmarHyperOptLoss">, import("@feathersjs/typebox").TLiteral<"MaxDrawDownHyperOptLoss">, import("@feathersjs/typebox").TLiteral<"MaxDrawDownRelativeHyperOptLoss">, import("@feathersjs/typebox").TLiteral<"ProfitDrawDownHyperOptLoss">]>;
|
|
20
|
+
start: import("@feathersjs/typebox").TAny;
|
|
21
|
+
end: import("@feathersjs/typebox").TAny;
|
|
22
|
+
createdAt: import("@feathersjs/typebox").TAny;
|
|
23
|
+
updatedAt: import("@feathersjs/typebox").TAny;
|
|
24
|
+
startedAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
25
|
+
stoppedAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
26
|
+
took: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TNumber>;
|
|
27
|
+
attempts: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
9
28
|
status: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
10
|
-
startedAt: import("@feathersjs/typebox").TAny;
|
|
11
29
|
job: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
|
|
12
30
|
jobName: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
13
31
|
}>>;
|
|
@@ -15,58 +33,148 @@ export declare const strategiesHyperoptSchema: import("@feathersjs/typebox").TOb
|
|
|
15
33
|
export type StrategiesHyperopt = Static<typeof strategiesHyperoptSchema>;
|
|
16
34
|
export declare const strategiesHyperoptValidator: import("@feathersjs/schema").Validator<any, any>;
|
|
17
35
|
export declare const strategiesHyperoptResolver: import("@feathersjs/schema").Resolver<{
|
|
36
|
+
exchangeId?: string | {} | undefined;
|
|
18
37
|
strategyId?: string | {} | undefined;
|
|
19
38
|
status?: string | undefined;
|
|
20
39
|
traderId?: string | {} | undefined;
|
|
21
40
|
jobId?: string | undefined;
|
|
41
|
+
startedAt?: any;
|
|
42
|
+
stoppedAt?: any;
|
|
43
|
+
took?: number | undefined;
|
|
44
|
+
attempts?: any;
|
|
22
45
|
job?: {
|
|
23
46
|
jobName?: string | undefined;
|
|
24
47
|
} | undefined;
|
|
48
|
+
function: "ShortTradeDurHyperOptLoss" | "OnlyProfitHyperOptLoss" | "SharpeHyperOptLoss" | "SharpeHyperOptLossDaily" | "SortinoHyperOptLoss" | "SortinoHyperOptLossDaily" | "CalmarHyperOptLoss" | "MaxDrawDownHyperOptLoss" | "MaxDrawDownRelativeHyperOptLoss" | "ProfitDrawDownHyperOptLoss";
|
|
25
49
|
_id: string | {};
|
|
26
|
-
|
|
50
|
+
createdAt: any;
|
|
51
|
+
updatedAt: any;
|
|
52
|
+
options: {
|
|
53
|
+
protections: boolean;
|
|
54
|
+
eps: boolean;
|
|
55
|
+
};
|
|
56
|
+
overrides: {
|
|
57
|
+
dry_run_wallet: number;
|
|
58
|
+
max_open_trades: number;
|
|
59
|
+
};
|
|
60
|
+
start: any;
|
|
61
|
+
end: any;
|
|
62
|
+
epochs: number;
|
|
27
63
|
}, HookContext<StrategiesHyperoptService<import("./hyperopt.class").StrategiesHyperoptParams>>>;
|
|
28
64
|
export declare const strategiesHyperoptExternalResolver: import("@feathersjs/schema").Resolver<{
|
|
65
|
+
exchangeId?: string | {} | undefined;
|
|
29
66
|
strategyId?: string | {} | undefined;
|
|
30
67
|
status?: string | undefined;
|
|
31
68
|
traderId?: string | {} | undefined;
|
|
32
69
|
jobId?: string | undefined;
|
|
70
|
+
startedAt?: any;
|
|
71
|
+
stoppedAt?: any;
|
|
72
|
+
took?: number | undefined;
|
|
73
|
+
attempts?: any;
|
|
33
74
|
job?: {
|
|
34
75
|
jobName?: string | undefined;
|
|
35
76
|
} | undefined;
|
|
77
|
+
function: "ShortTradeDurHyperOptLoss" | "OnlyProfitHyperOptLoss" | "SharpeHyperOptLoss" | "SharpeHyperOptLossDaily" | "SortinoHyperOptLoss" | "SortinoHyperOptLossDaily" | "CalmarHyperOptLoss" | "MaxDrawDownHyperOptLoss" | "MaxDrawDownRelativeHyperOptLoss" | "ProfitDrawDownHyperOptLoss";
|
|
36
78
|
_id: string | {};
|
|
37
|
-
|
|
79
|
+
createdAt: any;
|
|
80
|
+
updatedAt: any;
|
|
81
|
+
options: {
|
|
82
|
+
protections: boolean;
|
|
83
|
+
eps: boolean;
|
|
84
|
+
};
|
|
85
|
+
overrides: {
|
|
86
|
+
dry_run_wallet: number;
|
|
87
|
+
max_open_trades: number;
|
|
88
|
+
};
|
|
89
|
+
start: any;
|
|
90
|
+
end: any;
|
|
91
|
+
epochs: number;
|
|
38
92
|
}, HookContext<StrategiesHyperoptService<import("./hyperopt.class").StrategiesHyperoptParams>>>;
|
|
39
93
|
export declare const strategiesHyperoptDataSchema: import("@feathersjs/typebox").TPick<import("@feathersjs/typebox").TObject<{
|
|
40
94
|
_id: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>;
|
|
41
95
|
strategyId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>, import("@feathersjs/typebox").TString<string>]>>;
|
|
42
96
|
traderId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>, import("@feathersjs/typebox").TString<string>]>>;
|
|
97
|
+
exchangeId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>, import("@feathersjs/typebox").TString<string>]>>;
|
|
43
98
|
jobId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
99
|
+
overrides: import("@feathersjs/typebox").TObject<{
|
|
100
|
+
max_open_trades: import("@feathersjs/typebox").TNumber;
|
|
101
|
+
dry_run_wallet: import("@feathersjs/typebox").TNumber;
|
|
102
|
+
}>;
|
|
103
|
+
options: import("@feathersjs/typebox").TObject<{
|
|
104
|
+
protections: import("@feathersjs/typebox").TBoolean;
|
|
105
|
+
eps: import("@feathersjs/typebox").TBoolean;
|
|
106
|
+
}>;
|
|
107
|
+
epochs: import("@feathersjs/typebox").TNumber;
|
|
108
|
+
function: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TLiteral<"ShortTradeDurHyperOptLoss">, import("@feathersjs/typebox").TLiteral<"OnlyProfitHyperOptLoss">, import("@feathersjs/typebox").TLiteral<"SharpeHyperOptLoss">, import("@feathersjs/typebox").TLiteral<"SharpeHyperOptLossDaily">, import("@feathersjs/typebox").TLiteral<"SortinoHyperOptLoss">, import("@feathersjs/typebox").TLiteral<"SortinoHyperOptLossDaily">, import("@feathersjs/typebox").TLiteral<"CalmarHyperOptLoss">, import("@feathersjs/typebox").TLiteral<"MaxDrawDownHyperOptLoss">, import("@feathersjs/typebox").TLiteral<"MaxDrawDownRelativeHyperOptLoss">, import("@feathersjs/typebox").TLiteral<"ProfitDrawDownHyperOptLoss">]>;
|
|
109
|
+
start: import("@feathersjs/typebox").TAny;
|
|
110
|
+
end: import("@feathersjs/typebox").TAny;
|
|
111
|
+
createdAt: import("@feathersjs/typebox").TAny;
|
|
112
|
+
updatedAt: import("@feathersjs/typebox").TAny;
|
|
113
|
+
startedAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
114
|
+
stoppedAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
115
|
+
took: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TNumber>;
|
|
116
|
+
attempts: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
44
117
|
status: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
45
|
-
startedAt: import("@feathersjs/typebox").TAny;
|
|
46
118
|
job: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
|
|
47
119
|
jobName: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
48
120
|
}>>;
|
|
49
|
-
}>, ["strategyId", "traderId"]>;
|
|
121
|
+
}>, ["strategyId", "traderId", "exchangeId", "overrides", "options", "start", "function", "epochs", "end"]>;
|
|
50
122
|
export type StrategiesHyperoptData = Static<typeof strategiesHyperoptDataSchema>;
|
|
51
123
|
export declare const strategiesHyperoptDataValidator: import("@feathersjs/schema").Validator<any, any>;
|
|
52
124
|
export declare const strategiesHyperoptDataResolver: import("@feathersjs/schema").Resolver<{
|
|
125
|
+
exchangeId?: string | {} | undefined;
|
|
53
126
|
strategyId?: string | {} | undefined;
|
|
54
127
|
status?: string | undefined;
|
|
55
128
|
traderId?: string | {} | undefined;
|
|
56
129
|
jobId?: string | undefined;
|
|
130
|
+
startedAt?: any;
|
|
131
|
+
stoppedAt?: any;
|
|
132
|
+
took?: number | undefined;
|
|
133
|
+
attempts?: any;
|
|
57
134
|
job?: {
|
|
58
135
|
jobName?: string | undefined;
|
|
59
136
|
} | undefined;
|
|
137
|
+
function: "ShortTradeDurHyperOptLoss" | "OnlyProfitHyperOptLoss" | "SharpeHyperOptLoss" | "SharpeHyperOptLossDaily" | "SortinoHyperOptLoss" | "SortinoHyperOptLossDaily" | "CalmarHyperOptLoss" | "MaxDrawDownHyperOptLoss" | "MaxDrawDownRelativeHyperOptLoss" | "ProfitDrawDownHyperOptLoss";
|
|
60
138
|
_id: string | {};
|
|
61
|
-
|
|
139
|
+
createdAt: any;
|
|
140
|
+
updatedAt: any;
|
|
141
|
+
options: {
|
|
142
|
+
protections: boolean;
|
|
143
|
+
eps: boolean;
|
|
144
|
+
};
|
|
145
|
+
overrides: {
|
|
146
|
+
dry_run_wallet: number;
|
|
147
|
+
max_open_trades: number;
|
|
148
|
+
};
|
|
149
|
+
start: any;
|
|
150
|
+
end: any;
|
|
151
|
+
epochs: number;
|
|
62
152
|
}, HookContext<StrategiesHyperoptService<import("./hyperopt.class").StrategiesHyperoptParams>>>;
|
|
63
153
|
export declare const strategiesHyperoptPatchSchema: import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TObject<{
|
|
64
154
|
_id: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>;
|
|
65
155
|
strategyId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>, import("@feathersjs/typebox").TString<string>]>>;
|
|
66
156
|
traderId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>, import("@feathersjs/typebox").TString<string>]>>;
|
|
157
|
+
exchangeId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>, import("@feathersjs/typebox").TString<string>]>>;
|
|
67
158
|
jobId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
159
|
+
overrides: import("@feathersjs/typebox").TObject<{
|
|
160
|
+
max_open_trades: import("@feathersjs/typebox").TNumber;
|
|
161
|
+
dry_run_wallet: import("@feathersjs/typebox").TNumber;
|
|
162
|
+
}>;
|
|
163
|
+
options: import("@feathersjs/typebox").TObject<{
|
|
164
|
+
protections: import("@feathersjs/typebox").TBoolean;
|
|
165
|
+
eps: import("@feathersjs/typebox").TBoolean;
|
|
166
|
+
}>;
|
|
167
|
+
epochs: import("@feathersjs/typebox").TNumber;
|
|
168
|
+
function: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TLiteral<"ShortTradeDurHyperOptLoss">, import("@feathersjs/typebox").TLiteral<"OnlyProfitHyperOptLoss">, import("@feathersjs/typebox").TLiteral<"SharpeHyperOptLoss">, import("@feathersjs/typebox").TLiteral<"SharpeHyperOptLossDaily">, import("@feathersjs/typebox").TLiteral<"SortinoHyperOptLoss">, import("@feathersjs/typebox").TLiteral<"SortinoHyperOptLossDaily">, import("@feathersjs/typebox").TLiteral<"CalmarHyperOptLoss">, import("@feathersjs/typebox").TLiteral<"MaxDrawDownHyperOptLoss">, import("@feathersjs/typebox").TLiteral<"MaxDrawDownRelativeHyperOptLoss">, import("@feathersjs/typebox").TLiteral<"ProfitDrawDownHyperOptLoss">]>;
|
|
169
|
+
start: import("@feathersjs/typebox").TAny;
|
|
170
|
+
end: import("@feathersjs/typebox").TAny;
|
|
171
|
+
createdAt: import("@feathersjs/typebox").TAny;
|
|
172
|
+
updatedAt: import("@feathersjs/typebox").TAny;
|
|
173
|
+
startedAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
174
|
+
stoppedAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
175
|
+
took: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TNumber>;
|
|
176
|
+
attempts: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
68
177
|
status: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
69
|
-
startedAt: import("@feathersjs/typebox").TAny;
|
|
70
178
|
job: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
|
|
71
179
|
jobName: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
72
180
|
}>>;
|
|
@@ -74,23 +182,59 @@ export declare const strategiesHyperoptPatchSchema: import("@feathersjs/typebox"
|
|
|
74
182
|
export type StrategiesHyperoptPatch = Static<typeof strategiesHyperoptPatchSchema>;
|
|
75
183
|
export declare const strategiesHyperoptPatchValidator: import("@feathersjs/schema").Validator<any, any>;
|
|
76
184
|
export declare const strategiesHyperoptPatchResolver: import("@feathersjs/schema").Resolver<{
|
|
185
|
+
exchangeId?: string | {} | undefined;
|
|
77
186
|
strategyId?: string | {} | undefined;
|
|
78
187
|
status?: string | undefined;
|
|
79
188
|
traderId?: string | {} | undefined;
|
|
80
189
|
jobId?: string | undefined;
|
|
190
|
+
startedAt?: any;
|
|
191
|
+
stoppedAt?: any;
|
|
192
|
+
took?: number | undefined;
|
|
193
|
+
attempts?: any;
|
|
81
194
|
job?: {
|
|
82
195
|
jobName?: string | undefined;
|
|
83
196
|
} | undefined;
|
|
197
|
+
function: "ShortTradeDurHyperOptLoss" | "OnlyProfitHyperOptLoss" | "SharpeHyperOptLoss" | "SharpeHyperOptLossDaily" | "SortinoHyperOptLoss" | "SortinoHyperOptLossDaily" | "CalmarHyperOptLoss" | "MaxDrawDownHyperOptLoss" | "MaxDrawDownRelativeHyperOptLoss" | "ProfitDrawDownHyperOptLoss";
|
|
84
198
|
_id: string | {};
|
|
85
|
-
|
|
199
|
+
createdAt: any;
|
|
200
|
+
updatedAt: any;
|
|
201
|
+
options: {
|
|
202
|
+
protections: boolean;
|
|
203
|
+
eps: boolean;
|
|
204
|
+
};
|
|
205
|
+
overrides: {
|
|
206
|
+
dry_run_wallet: number;
|
|
207
|
+
max_open_trades: number;
|
|
208
|
+
};
|
|
209
|
+
start: any;
|
|
210
|
+
end: any;
|
|
211
|
+
epochs: number;
|
|
86
212
|
}, HookContext<StrategiesHyperoptService<import("./hyperopt.class").StrategiesHyperoptParams>>>;
|
|
87
213
|
export declare const strategiesHyperoptQueryProperties: import("@feathersjs/typebox").TPick<import("@feathersjs/typebox").TObject<{
|
|
88
214
|
_id: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>;
|
|
89
215
|
strategyId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>, import("@feathersjs/typebox").TString<string>]>>;
|
|
90
216
|
traderId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>, import("@feathersjs/typebox").TString<string>]>>;
|
|
217
|
+
exchangeId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>, import("@feathersjs/typebox").TString<string>]>>;
|
|
91
218
|
jobId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
219
|
+
overrides: import("@feathersjs/typebox").TObject<{
|
|
220
|
+
max_open_trades: import("@feathersjs/typebox").TNumber;
|
|
221
|
+
dry_run_wallet: import("@feathersjs/typebox").TNumber;
|
|
222
|
+
}>;
|
|
223
|
+
options: import("@feathersjs/typebox").TObject<{
|
|
224
|
+
protections: import("@feathersjs/typebox").TBoolean;
|
|
225
|
+
eps: import("@feathersjs/typebox").TBoolean;
|
|
226
|
+
}>;
|
|
227
|
+
epochs: import("@feathersjs/typebox").TNumber;
|
|
228
|
+
function: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TLiteral<"ShortTradeDurHyperOptLoss">, import("@feathersjs/typebox").TLiteral<"OnlyProfitHyperOptLoss">, import("@feathersjs/typebox").TLiteral<"SharpeHyperOptLoss">, import("@feathersjs/typebox").TLiteral<"SharpeHyperOptLossDaily">, import("@feathersjs/typebox").TLiteral<"SortinoHyperOptLoss">, import("@feathersjs/typebox").TLiteral<"SortinoHyperOptLossDaily">, import("@feathersjs/typebox").TLiteral<"CalmarHyperOptLoss">, import("@feathersjs/typebox").TLiteral<"MaxDrawDownHyperOptLoss">, import("@feathersjs/typebox").TLiteral<"MaxDrawDownRelativeHyperOptLoss">, import("@feathersjs/typebox").TLiteral<"ProfitDrawDownHyperOptLoss">]>;
|
|
229
|
+
start: import("@feathersjs/typebox").TAny;
|
|
230
|
+
end: import("@feathersjs/typebox").TAny;
|
|
231
|
+
createdAt: import("@feathersjs/typebox").TAny;
|
|
232
|
+
updatedAt: import("@feathersjs/typebox").TAny;
|
|
233
|
+
startedAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
234
|
+
stoppedAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
235
|
+
took: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TNumber>;
|
|
236
|
+
attempts: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
92
237
|
status: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
93
|
-
startedAt: import("@feathersjs/typebox").TAny;
|
|
94
238
|
job: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
|
|
95
239
|
jobName: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
96
240
|
}>>;
|
|
@@ -9,6 +9,14 @@ export declare const strategiesIndicatorsSchema: import("@feathersjs/typebox").T
|
|
|
9
9
|
description: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
10
10
|
object: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
11
11
|
createdAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
12
|
+
hyperopt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TObject<{
|
|
13
|
+
field: import("@feathersjs/typebox").TString<string>;
|
|
14
|
+
space: import("@feathersjs/typebox").TString<string>;
|
|
15
|
+
type: import("@feathersjs/typebox").TLiteral<"IntParameter">;
|
|
16
|
+
min: import("@feathersjs/typebox").TInteger;
|
|
17
|
+
max: import("@feathersjs/typebox").TInteger;
|
|
18
|
+
default: import("@feathersjs/typebox").TInteger;
|
|
19
|
+
}>>>;
|
|
12
20
|
}>;
|
|
13
21
|
export type StrategiesIndicators = Static<typeof strategiesIndicatorsSchema>;
|
|
14
22
|
export declare const strategiesIndicatorsValidator: import("@feathersjs/schema").Validator<any, any>;
|
|
@@ -19,6 +27,14 @@ export declare const strategiesIndicatorsResolver: import("@feathersjs/schema").
|
|
|
19
27
|
description?: string | undefined;
|
|
20
28
|
options?: any;
|
|
21
29
|
alias?: string | undefined;
|
|
30
|
+
hyperopt?: {
|
|
31
|
+
default: number;
|
|
32
|
+
max: number;
|
|
33
|
+
min: number;
|
|
34
|
+
type: "IntParameter";
|
|
35
|
+
field: string;
|
|
36
|
+
space: string;
|
|
37
|
+
}[] | undefined;
|
|
22
38
|
_id: string | {};
|
|
23
39
|
}, HookContext<StrategiesIndicatorsService<import("./indicators.class").StrategiesIndicatorsParams>>>;
|
|
24
40
|
export declare const strategiesIndicatorsExternalResolver: import("@feathersjs/schema").Resolver<{
|
|
@@ -28,6 +44,14 @@ export declare const strategiesIndicatorsExternalResolver: import("@feathersjs/s
|
|
|
28
44
|
description?: string | undefined;
|
|
29
45
|
options?: any;
|
|
30
46
|
alias?: string | undefined;
|
|
47
|
+
hyperopt?: {
|
|
48
|
+
default: number;
|
|
49
|
+
max: number;
|
|
50
|
+
min: number;
|
|
51
|
+
type: "IntParameter";
|
|
52
|
+
field: string;
|
|
53
|
+
space: string;
|
|
54
|
+
}[] | undefined;
|
|
31
55
|
_id: string | {};
|
|
32
56
|
}, HookContext<StrategiesIndicatorsService<import("./indicators.class").StrategiesIndicatorsParams>>>;
|
|
33
57
|
export declare const strategiesIndicatorsDataSchema: import("@feathersjs/typebox").TPick<import("@feathersjs/typebox").TObject<{
|
|
@@ -38,6 +62,14 @@ export declare const strategiesIndicatorsDataSchema: import("@feathersjs/typebox
|
|
|
38
62
|
description: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
39
63
|
object: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
40
64
|
createdAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
65
|
+
hyperopt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TObject<{
|
|
66
|
+
field: import("@feathersjs/typebox").TString<string>;
|
|
67
|
+
space: import("@feathersjs/typebox").TString<string>;
|
|
68
|
+
type: import("@feathersjs/typebox").TLiteral<"IntParameter">;
|
|
69
|
+
min: import("@feathersjs/typebox").TInteger;
|
|
70
|
+
max: import("@feathersjs/typebox").TInteger;
|
|
71
|
+
default: import("@feathersjs/typebox").TInteger;
|
|
72
|
+
}>>>;
|
|
41
73
|
}>, ["_id", "name", "alias", "object", "description", "options"]>;
|
|
42
74
|
export type StrategiesIndicatorsData = Static<typeof strategiesIndicatorsDataSchema>;
|
|
43
75
|
export declare const strategiesIndicatorsDataValidator: import("@feathersjs/schema").Validator<any, any>;
|
|
@@ -48,6 +80,14 @@ export declare const strategiesIndicatorsDataResolver: import("@feathersjs/schem
|
|
|
48
80
|
description?: string | undefined;
|
|
49
81
|
options?: any;
|
|
50
82
|
alias?: string | undefined;
|
|
83
|
+
hyperopt?: {
|
|
84
|
+
default: number;
|
|
85
|
+
max: number;
|
|
86
|
+
min: number;
|
|
87
|
+
type: "IntParameter";
|
|
88
|
+
field: string;
|
|
89
|
+
space: string;
|
|
90
|
+
}[] | undefined;
|
|
51
91
|
_id: string | {};
|
|
52
92
|
}, HookContext<StrategiesIndicatorsService<import("./indicators.class").StrategiesIndicatorsParams>>>;
|
|
53
93
|
export declare const strategiesIndicatorsPatchSchema: import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TObject<{
|
|
@@ -58,6 +98,14 @@ export declare const strategiesIndicatorsPatchSchema: import("@feathersjs/typebo
|
|
|
58
98
|
description: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
59
99
|
object: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
60
100
|
createdAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
101
|
+
hyperopt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TObject<{
|
|
102
|
+
field: import("@feathersjs/typebox").TString<string>;
|
|
103
|
+
space: import("@feathersjs/typebox").TString<string>;
|
|
104
|
+
type: import("@feathersjs/typebox").TLiteral<"IntParameter">;
|
|
105
|
+
min: import("@feathersjs/typebox").TInteger;
|
|
106
|
+
max: import("@feathersjs/typebox").TInteger;
|
|
107
|
+
default: import("@feathersjs/typebox").TInteger;
|
|
108
|
+
}>>>;
|
|
61
109
|
}>>;
|
|
62
110
|
export type StrategiesIndicatorsPatch = Static<typeof strategiesIndicatorsPatchSchema>;
|
|
63
111
|
export declare const strategiesIndicatorsPatchValidator: import("@feathersjs/schema").Validator<any, any>;
|
|
@@ -68,6 +116,14 @@ export declare const strategiesIndicatorsPatchResolver: import("@feathersjs/sche
|
|
|
68
116
|
description?: string | undefined;
|
|
69
117
|
options?: any;
|
|
70
118
|
alias?: string | undefined;
|
|
119
|
+
hyperopt?: {
|
|
120
|
+
default: number;
|
|
121
|
+
max: number;
|
|
122
|
+
min: number;
|
|
123
|
+
type: "IntParameter";
|
|
124
|
+
field: string;
|
|
125
|
+
space: string;
|
|
126
|
+
}[] | undefined;
|
|
71
127
|
_id: string | {};
|
|
72
128
|
}, HookContext<StrategiesIndicatorsService<import("./indicators.class").StrategiesIndicatorsParams>>>;
|
|
73
129
|
export declare const strategiesIndicatorsQueryProperties: import("@feathersjs/typebox").TPick<import("@feathersjs/typebox").TObject<{
|
|
@@ -78,6 +134,14 @@ export declare const strategiesIndicatorsQueryProperties: import("@feathersjs/ty
|
|
|
78
134
|
description: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
79
135
|
object: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
80
136
|
createdAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
137
|
+
hyperopt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TObject<{
|
|
138
|
+
field: import("@feathersjs/typebox").TString<string>;
|
|
139
|
+
space: import("@feathersjs/typebox").TString<string>;
|
|
140
|
+
type: import("@feathersjs/typebox").TLiteral<"IntParameter">;
|
|
141
|
+
min: import("@feathersjs/typebox").TInteger;
|
|
142
|
+
max: import("@feathersjs/typebox").TInteger;
|
|
143
|
+
default: import("@feathersjs/typebox").TInteger;
|
|
144
|
+
}>>>;
|
|
81
145
|
}>, ["_id", "name"]>;
|
|
82
146
|
export declare const strategiesIndicatorsQuerySchema: import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TObject<{
|
|
83
147
|
$limit: import("@feathersjs/typebox").TNumber;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cryptorobot.ai/client",
|
|
3
3
|
"description": "A typed client for the cryptorobot.ai platform",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.27",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"cryptocurrency",
|
|
@@ -49,19 +49,20 @@
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@feathersjs/authentication": "^5.0.
|
|
53
|
-
"@feathersjs/authentication-client": "^5.0.
|
|
54
|
-
"@feathersjs/authentication-local": "^5.0.
|
|
55
|
-
"@feathersjs/authentication-oauth": "^5.0.
|
|
56
|
-
"@feathersjs/configuration": "^5.0.
|
|
57
|
-
"@feathersjs/errors": "^5.0.
|
|
58
|
-
"@feathersjs/feathers": "^5.0.
|
|
59
|
-
"@feathersjs/schema": "^5.0.
|
|
60
|
-
"@feathersjs/koa": "^5.0.
|
|
61
|
-
"@feathersjs/mongodb": "^5.0.
|
|
62
|
-
"@feathersjs/socketio": "^5.0.
|
|
63
|
-
"@feathersjs/transport-commons": "^5.0.
|
|
64
|
-
"@feathersjs/typebox": "^5.0.
|
|
65
|
-
"@feathersjs/socketio-client": "^5.0.
|
|
52
|
+
"@feathersjs/authentication": "^5.0.21",
|
|
53
|
+
"@feathersjs/authentication-client": "^5.0.21",
|
|
54
|
+
"@feathersjs/authentication-local": "^5.0.21",
|
|
55
|
+
"@feathersjs/authentication-oauth": "^5.0.21",
|
|
56
|
+
"@feathersjs/configuration": "^5.0.21",
|
|
57
|
+
"@feathersjs/errors": "^5.0.21",
|
|
58
|
+
"@feathersjs/feathers": "^5.0.21",
|
|
59
|
+
"@feathersjs/schema": "^5.0.21",
|
|
60
|
+
"@feathersjs/koa": "^5.0.21",
|
|
61
|
+
"@feathersjs/mongodb": "^5.0.21",
|
|
62
|
+
"@feathersjs/socketio": "^5.0.21",
|
|
63
|
+
"@feathersjs/transport-commons": "^5.0.21",
|
|
64
|
+
"@feathersjs/typebox": "^5.0.21",
|
|
65
|
+
"@feathersjs/socketio-client": "^5.0.21",
|
|
66
|
+
"@feathersjs/memory": "^5.0.21"
|
|
66
67
|
}
|
|
67
68
|
}
|