@cryptorobot.ai/client 0.0.38 → 0.0.40

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.
Files changed (99) hide show
  1. package/lib/src/client.js +33 -3
  2. package/lib/src/services/agents/agents.class.d.ts +11 -0
  3. package/lib/src/services/agents/agents.d.ts +11 -0
  4. package/lib/src/services/agents/agents.schema.d.ts +2371 -0
  5. package/lib/src/services/agents/agents.shared.d.ts +13 -0
  6. package/lib/src/services/agents/agents.shared.js +13 -0
  7. package/lib/src/services/agents/prepare/prepare.class.d.ts +18 -0
  8. package/lib/src/services/agents/prepare/prepare.d.ts +11 -0
  9. package/lib/src/services/agents/prepare/prepare.schema.d.ts +285 -0
  10. package/lib/src/services/agents/prepare/prepare.shared.d.ts +13 -0
  11. package/lib/src/services/agents/prepare/prepare.shared.js +13 -0
  12. package/lib/src/services/agents/sessions/conversations/conversations.class.d.ts +11 -0
  13. package/lib/src/services/agents/sessions/conversations/conversations.d.ts +11 -0
  14. package/lib/src/services/agents/sessions/conversations/conversations.schema.d.ts +2561 -0
  15. package/lib/src/services/agents/sessions/conversations/conversations.shared.d.ts +13 -0
  16. package/lib/src/services/agents/sessions/conversations/conversations.shared.js +13 -0
  17. package/lib/src/services/agents/sessions/sessions.class.d.ts +11 -0
  18. package/lib/src/services/agents/sessions/sessions.d.ts +11 -0
  19. package/lib/src/services/agents/sessions/sessions.schema.d.ts +803 -0
  20. package/lib/src/services/agents/sessions/sessions.shared.d.ts +13 -0
  21. package/lib/src/services/agents/sessions/sessions.shared.js +13 -0
  22. package/lib/src/services/events/events.class.d.ts +11 -0
  23. package/lib/src/services/events/events.d.ts +11 -0
  24. package/lib/src/services/events/events.schema.d.ts +786 -0
  25. package/lib/src/services/events/events.shared.d.ts +13 -0
  26. package/lib/src/services/events/events.shared.js +13 -0
  27. package/lib/src/services/events/triggers/triggers.class.d.ts +11 -0
  28. package/lib/src/services/events/triggers/triggers.d.ts +11 -0
  29. package/lib/src/services/events/triggers/triggers.schema.d.ts +1582 -0
  30. package/lib/src/services/events/triggers/triggers.shared.d.ts +13 -0
  31. package/lib/src/services/events/triggers/triggers.shared.js +13 -0
  32. package/lib/src/services/events/types/types.class.d.ts +11 -0
  33. package/lib/src/services/events/types/types.d.ts +11 -0
  34. package/lib/src/services/events/types/types.schema.d.ts +688 -0
  35. package/lib/src/services/events/types/types.shared.d.ts +13 -0
  36. package/lib/src/services/events/types/types.shared.js +13 -0
  37. package/lib/src/services/exchanges/balance/balance.schema.d.ts +16 -16
  38. package/lib/src/services/exchanges/download/download.schema.d.ts +58 -17
  39. package/lib/src/services/exchanges/download/download.shared.d.ts +1 -1
  40. package/lib/src/services/exchanges/download/download.shared.js +1 -1
  41. package/lib/src/services/exchanges/download/webhooks/webhooks.schema.d.ts +4 -4
  42. package/lib/src/services/exchanges/exchanges.schema.d.ts +100 -100
  43. package/lib/src/services/exchanges/ohlcv/ohlcv.class.d.ts +19 -0
  44. package/lib/src/services/exchanges/ohlcv/ohlcv.d.ts +11 -0
  45. package/lib/src/services/exchanges/ohlcv/ohlcv.schema.d.ts +507 -0
  46. package/lib/src/services/exchanges/ohlcv/ohlcv.shared.d.ts +13 -0
  47. package/lib/src/services/exchanges/ohlcv/ohlcv.shared.js +13 -0
  48. package/lib/src/services/exchanges/ticker/ticker.schema.d.ts +68 -68
  49. package/lib/src/services/extensions/extensions.class.d.ts +11 -0
  50. package/lib/src/services/extensions/extensions.d.ts +11 -0
  51. package/lib/src/services/extensions/extensions.schema.d.ts +1275 -0
  52. package/lib/src/services/extensions/extensions.shared.d.ts +13 -0
  53. package/lib/src/services/extensions/extensions.shared.js +13 -0
  54. package/lib/src/services/keys/KeysService.d.ts +13 -0
  55. package/lib/src/services/keys/keys.class.d.ts +11 -0
  56. package/lib/src/services/keys/keys.d.ts +11 -0
  57. package/lib/src/services/keys/keys.schema.d.ts +719 -0
  58. package/lib/src/services/keys/keys.shared.d.ts +14 -0
  59. package/lib/src/services/keys/keys.shared.js +13 -0
  60. package/lib/src/services/messages/messages.schema.d.ts +64 -32
  61. package/lib/src/services/restricted/restricted.class.d.ts +26 -0
  62. package/lib/src/services/restricted/restricted.d.ts +21 -0
  63. package/lib/src/services/restricted/restricted.shared.d.ts +13 -0
  64. package/lib/src/services/restricted/restricted.shared.js +13 -0
  65. package/lib/src/services/strategies/backtest/backtest.schema.d.ts +127 -60
  66. package/lib/src/services/strategies/backtest/results/results.schema.d.ts +36 -36
  67. package/lib/src/services/strategies/generate/generate.class.d.ts +11 -0
  68. package/lib/src/services/strategies/generate/generate.d.ts +11 -0
  69. package/lib/src/services/strategies/generate/generate.schema.d.ts +429 -0
  70. package/lib/src/services/strategies/generate/generate.shared.d.ts +13 -0
  71. package/lib/src/services/strategies/generate/generate.shared.js +13 -0
  72. package/lib/src/services/strategies/hyperopt/hyperopt.schema.d.ts +16 -8
  73. package/lib/src/services/strategies/indicators/indicators.schema.d.ts +177 -97
  74. package/lib/src/services/strategies/indicators/talib/talib.class.d.ts +11 -0
  75. package/lib/src/services/strategies/indicators/talib/talib.d.ts +11 -0
  76. package/lib/src/services/strategies/indicators/talib/talib.schema.d.ts +443 -0
  77. package/lib/src/services/strategies/indicators/talib/talib.shared.d.ts +13 -0
  78. package/lib/src/services/strategies/indicators/talib/talib.shared.js +13 -0
  79. package/lib/src/services/strategies/strategies.schema.d.ts +2732 -327
  80. package/lib/src/services/strategies/templates/templates.schema.d.ts +2146 -16
  81. package/lib/src/services/tools/openapi/openapi.class.d.ts +34 -0
  82. package/lib/src/services/tools/openapi/openapi.d.ts +10 -0
  83. package/lib/src/services/tools/openapi/openapi.shared.d.ts +13 -0
  84. package/lib/src/services/tools/openapi/openapi.shared.js +13 -0
  85. package/lib/src/services/tools/tools.class.d.ts +11 -0
  86. package/lib/src/services/tools/tools.d.ts +11 -0
  87. package/lib/src/services/tools/tools.schema.d.ts +269 -0
  88. package/lib/src/services/tools/tools.shared.d.ts +13 -0
  89. package/lib/src/services/tools/tools.shared.js +13 -0
  90. package/lib/src/services/traders/pods/api/api.schema.d.ts +1650 -464
  91. package/lib/src/services/traders/pods/events/events.schema.d.ts +4 -4
  92. package/lib/src/services/traders/pods/pods.schema.d.ts +1539 -443
  93. package/lib/src/services/traders/traders.schema.d.ts +142 -142
  94. package/lib/src/services/users/users.class.d.ts +178 -3
  95. package/lib/src/services/users/users.schema.d.ts +123 -85
  96. package/lib/src/services/users/users.shared.d.ts +4 -3
  97. package/lib/src/services/users/users.shared.js +1 -1
  98. package/package.json +2 -3
  99. package/readme.md +1 -2
@@ -29,13 +29,13 @@ export declare const strategiesBacktestSchema: import("@feathersjs/typebox").TOb
29
29
  export type StrategiesBacktest = Static<typeof strategiesBacktestSchema>;
30
30
  export declare const strategiesBacktestValidator: import("@feathersjs/schema").Validator<any, any>;
31
31
  export declare const strategiesBacktestResolver: import("@feathersjs/schema").Resolver<{
32
- stoppedAt?: any;
33
32
  results?: any;
34
- took?: number | undefined;
33
+ stoppedAt?: any;
35
34
  overrides?: {
36
35
  dry_run_wallet?: number | undefined;
37
36
  max_open_trades?: number | undefined;
38
37
  } | undefined;
38
+ took?: number | undefined;
39
39
  startedAt?: any;
40
40
  attempts?: any;
41
41
  _id: string | {};
@@ -54,13 +54,13 @@ export declare const strategiesBacktestResolver: import("@feathersjs/schema").Re
54
54
  end: any;
55
55
  }, HookContext<StrategiesBacktestService<import("./backtest.class").StrategiesBacktestParams>>>;
56
56
  export declare const strategiesBacktestExternalResolver: import("@feathersjs/schema").Resolver<{
57
- stoppedAt?: any;
58
57
  results?: any;
59
- took?: number | undefined;
58
+ stoppedAt?: any;
60
59
  overrides?: {
61
60
  dry_run_wallet?: number | undefined;
62
61
  max_open_trades?: number | undefined;
63
62
  } | undefined;
63
+ took?: number | undefined;
64
64
  startedAt?: any;
65
65
  attempts?: any;
66
66
  _id: string | {};
@@ -106,13 +106,13 @@ export declare const strategiesBacktestDataSchema: import("@feathersjs/typebox")
106
106
  export type StrategiesBacktestData = Static<typeof strategiesBacktestDataSchema>;
107
107
  export declare const strategiesBacktestDataValidator: import("@feathersjs/schema").Validator<any, any>;
108
108
  export declare const strategiesBacktestDataResolver: import("@feathersjs/schema").Resolver<{
109
- stoppedAt?: any;
110
109
  results?: any;
111
- took?: number | undefined;
110
+ stoppedAt?: any;
112
111
  overrides?: {
113
112
  dry_run_wallet?: number | undefined;
114
113
  max_open_trades?: number | undefined;
115
114
  } | undefined;
115
+ took?: number | undefined;
116
116
  startedAt?: any;
117
117
  attempts?: any;
118
118
  _id: string | {};
@@ -158,13 +158,13 @@ export declare const strategiesBacktestPatchSchema: import("@feathersjs/typebox"
158
158
  export type StrategiesBacktestPatch = Static<typeof strategiesBacktestPatchSchema>;
159
159
  export declare const strategiesBacktestPatchValidator: import("@feathersjs/schema").Validator<any, any>;
160
160
  export declare const strategiesBacktestPatchResolver: import("@feathersjs/schema").Resolver<{
161
- stoppedAt?: any;
162
161
  results?: any;
163
- took?: number | undefined;
162
+ stoppedAt?: any;
164
163
  overrides?: {
165
164
  dry_run_wallet?: number | undefined;
166
165
  max_open_trades?: number | undefined;
167
166
  } | undefined;
167
+ took?: number | undefined;
168
168
  startedAt?: any;
169
169
  attempts?: any;
170
170
  _id: string | {};
@@ -213,15 +213,15 @@ export declare const strategiesBacktestQuerySchema: import("@feathersjs/typebox"
213
213
  $sort: import("@feathersjs/typebox").TObject<{
214
214
  _id: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TInteger>;
215
215
  createdAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TInteger>;
216
- stoppedAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TInteger>;
217
216
  results: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TInteger>;
218
217
  exchangeId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TInteger>;
219
218
  strategyId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TInteger>;
220
219
  status: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TInteger>;
221
220
  traderId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TInteger>;
221
+ stoppedAt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TInteger>;
222
222
  jobId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TInteger>;
223
223
  }>;
224
- $select: import("@feathersjs/typebox").TUnsafe<("_id" | "createdAt" | "stoppedAt" | "results" | "exchangeId" | "strategyId" | "status" | "traderId" | "jobId")[]>;
224
+ $select: import("@feathersjs/typebox").TUnsafe<("_id" | "createdAt" | "results" | "exchangeId" | "strategyId" | "status" | "traderId" | "stoppedAt" | "jobId")[]>;
225
225
  $and: import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
226
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<{
227
227
  $gt: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>;
@@ -245,17 +245,6 @@ export declare const strategiesBacktestQuerySchema: import("@feathersjs/typebox"
245
245
  }>, import("@feathersjs/typebox").TObject<{
246
246
  [key: string]: import("@feathersjs/typebox").TSchema;
247
247
  } | undefined>]>>]>>;
248
- stoppedAt: 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<{
249
- $gt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
250
- $gte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
251
- $lt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
252
- $lte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
253
- $ne: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
254
- $in: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
255
- $nin: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
256
- }>, import("@feathersjs/typebox").TObject<{
257
- [key: string]: import("@feathersjs/typebox").TSchema;
258
- } | undefined>]>>]>>;
259
248
  results: 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<{
260
249
  $gt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
261
250
  $gte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
@@ -311,6 +300,17 @@ export declare const strategiesBacktestQuerySchema: import("@feathersjs/typebox"
311
300
  }>, import("@feathersjs/typebox").TObject<{
312
301
  [key: string]: import("@feathersjs/typebox").TSchema;
313
302
  } | undefined>]>>]>>;
303
+ stoppedAt: 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<{
304
+ $gt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
305
+ $gte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
306
+ $lt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
307
+ $lte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
308
+ $ne: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
309
+ $in: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
310
+ $nin: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
311
+ }>, import("@feathersjs/typebox").TObject<{
312
+ [key: string]: import("@feathersjs/typebox").TSchema;
313
+ } | undefined>]>>]>>;
314
314
  jobId: 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<{
315
315
  $gt: import("@feathersjs/typebox").TString<string>;
316
316
  $gte: import("@feathersjs/typebox").TString<string>;
@@ -346,17 +346,6 @@ export declare const strategiesBacktestQuerySchema: import("@feathersjs/typebox"
346
346
  }>, import("@feathersjs/typebox").TObject<{
347
347
  [key: string]: import("@feathersjs/typebox").TSchema;
348
348
  } | undefined>]>>]>>;
349
- stoppedAt: 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<{
350
- $gt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
351
- $gte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
352
- $lt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
353
- $lte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
354
- $ne: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
355
- $in: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
356
- $nin: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
357
- }>, import("@feathersjs/typebox").TObject<{
358
- [key: string]: import("@feathersjs/typebox").TSchema;
359
- } | undefined>]>>]>>;
360
349
  results: 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<{
361
350
  $gt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
362
351
  $gte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
@@ -412,6 +401,17 @@ export declare const strategiesBacktestQuerySchema: import("@feathersjs/typebox"
412
401
  }>, import("@feathersjs/typebox").TObject<{
413
402
  [key: string]: import("@feathersjs/typebox").TSchema;
414
403
  } | undefined>]>>]>>;
404
+ stoppedAt: 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<{
405
+ $gt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
406
+ $gte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
407
+ $lt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
408
+ $lte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
409
+ $ne: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
410
+ $in: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
411
+ $nin: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
412
+ }>, import("@feathersjs/typebox").TObject<{
413
+ [key: string]: import("@feathersjs/typebox").TSchema;
414
+ } | undefined>]>>]>>;
415
415
  jobId: 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<{
416
416
  $gt: import("@feathersjs/typebox").TString<string>;
417
417
  $gte: import("@feathersjs/typebox").TString<string>;
@@ -448,17 +448,6 @@ export declare const strategiesBacktestQuerySchema: import("@feathersjs/typebox"
448
448
  }>, import("@feathersjs/typebox").TObject<{
449
449
  [key: string]: import("@feathersjs/typebox").TSchema;
450
450
  } | undefined>]>>]>>;
451
- stoppedAt: 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<{
452
- $gt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
453
- $gte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
454
- $lt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
455
- $lte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
456
- $ne: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
457
- $in: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
458
- $nin: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
459
- }>, import("@feathersjs/typebox").TObject<{
460
- [key: string]: import("@feathersjs/typebox").TSchema;
461
- } | undefined>]>>]>>;
462
451
  results: 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<{
463
452
  $gt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
464
453
  $gte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
@@ -514,6 +503,17 @@ export declare const strategiesBacktestQuerySchema: import("@feathersjs/typebox"
514
503
  }>, import("@feathersjs/typebox").TObject<{
515
504
  [key: string]: import("@feathersjs/typebox").TSchema;
516
505
  } | undefined>]>>]>>;
506
+ stoppedAt: 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<{
507
+ $gt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
508
+ $gte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
509
+ $lt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
510
+ $lte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
511
+ $ne: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
512
+ $in: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
513
+ $nin: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
514
+ }>, import("@feathersjs/typebox").TObject<{
515
+ [key: string]: import("@feathersjs/typebox").TSchema;
516
+ } | undefined>]>>]>>;
517
517
  jobId: 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<{
518
518
  $gt: import("@feathersjs/typebox").TString<string>;
519
519
  $gte: import("@feathersjs/typebox").TString<string>;
@@ -549,17 +549,6 @@ export declare const strategiesBacktestQuerySchema: import("@feathersjs/typebox"
549
549
  }>, import("@feathersjs/typebox").TObject<{
550
550
  [key: string]: import("@feathersjs/typebox").TSchema;
551
551
  } | undefined>]>>]>>;
552
- stoppedAt: 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<{
553
- $gt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
554
- $gte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
555
- $lt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
556
- $lte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
557
- $ne: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
558
- $in: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
559
- $nin: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
560
- }>, import("@feathersjs/typebox").TObject<{
561
- [key: string]: import("@feathersjs/typebox").TSchema;
562
- } | undefined>]>>]>>;
563
552
  results: 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<{
564
553
  $gt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
565
554
  $gte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
@@ -615,6 +604,17 @@ export declare const strategiesBacktestQuerySchema: import("@feathersjs/typebox"
615
604
  }>, import("@feathersjs/typebox").TObject<{
616
605
  [key: string]: import("@feathersjs/typebox").TSchema;
617
606
  } | undefined>]>>]>>;
607
+ stoppedAt: 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<{
608
+ $gt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
609
+ $gte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
610
+ $lt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
611
+ $lte: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
612
+ $ne: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
613
+ $in: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
614
+ $nin: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny> | import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>>;
615
+ }>, import("@feathersjs/typebox").TObject<{
616
+ [key: string]: import("@feathersjs/typebox").TSchema;
617
+ } | undefined>]>>]>>;
618
618
  jobId: 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<{
619
619
  $gt: import("@feathersjs/typebox").TString<string>;
620
620
  $gte: import("@feathersjs/typebox").TString<string>;
@@ -635,15 +635,15 @@ export declare const strategiesBacktestQueryResolver: import("@feathersjs/schema
635
635
  $sort: {
636
636
  _id?: number | undefined;
637
637
  createdAt?: number | undefined;
638
- stoppedAt?: number | undefined;
639
638
  results?: number | undefined;
640
639
  exchangeId?: number | undefined;
641
640
  strategyId?: number | undefined;
642
641
  status?: number | undefined;
643
642
  traderId?: number | undefined;
643
+ stoppedAt?: number | undefined;
644
644
  jobId?: number | undefined;
645
645
  };
646
- $select: ("_id" | "createdAt" | "stoppedAt" | "results" | "exchangeId" | "strategyId" | "status" | "traderId" | "jobId")[];
646
+ $select: ("_id" | "createdAt" | "results" | "exchangeId" | "strategyId" | "status" | "traderId" | "stoppedAt" | "jobId")[];
647
647
  $and: ({
648
648
  _id?: string | {} | Partial<{
649
649
  $gt: string | {};
@@ -655,7 +655,6 @@ export declare const strategiesBacktestQueryResolver: import("@feathersjs/schema
655
655
  $nin: string | {} | (string | {})[];
656
656
  } & {}> | undefined;
657
657
  createdAt?: any;
658
- stoppedAt?: any;
659
658
  results?: any;
660
659
  exchangeId?: unknown;
661
660
  strategyId?: unknown;
@@ -669,6 +668,7 @@ export declare const strategiesBacktestQueryResolver: import("@feathersjs/schema
669
668
  $nin: string | string[];
670
669
  } & {}> | undefined;
671
670
  traderId?: unknown;
671
+ stoppedAt?: any;
672
672
  jobId?: string | Partial<{
673
673
  $gt: string;
674
674
  $gte: string;
@@ -690,7 +690,6 @@ export declare const strategiesBacktestQueryResolver: import("@feathersjs/schema
690
690
  $nin: string | {} | (string | {})[];
691
691
  } & {}> | undefined;
692
692
  createdAt?: any;
693
- stoppedAt?: any;
694
693
  results?: any;
695
694
  exchangeId?: unknown;
696
695
  strategyId?: unknown;
@@ -704,6 +703,7 @@ export declare const strategiesBacktestQueryResolver: import("@feathersjs/schema
704
703
  $nin: string | string[];
705
704
  } & {}> | undefined;
706
705
  traderId?: unknown;
706
+ stoppedAt?: any;
707
707
  jobId?: string | Partial<{
708
708
  $gt: string;
709
709
  $gte: string;
@@ -726,7 +726,6 @@ export declare const strategiesBacktestQueryResolver: import("@feathersjs/schema
726
726
  $nin: string | {} | (string | {})[];
727
727
  } & {}> | undefined;
728
728
  createdAt?: any;
729
- stoppedAt?: any;
730
729
  results?: any;
731
730
  exchangeId?: unknown;
732
731
  strategyId?: unknown;
@@ -740,6 +739,7 @@ export declare const strategiesBacktestQueryResolver: import("@feathersjs/schema
740
739
  $nin: string | string[];
741
740
  } & {}> | undefined;
742
741
  traderId?: unknown;
742
+ stoppedAt?: any;
743
743
  jobId?: string | Partial<{
744
744
  $gt: string;
745
745
  $gte: string;
@@ -761,7 +761,6 @@ export declare const strategiesBacktestQueryResolver: import("@feathersjs/schema
761
761
  $nin: string | {} | (string | {})[];
762
762
  } & {}> | undefined;
763
763
  createdAt?: any;
764
- stoppedAt?: any;
765
764
  results?: any;
766
765
  exchangeId?: unknown;
767
766
  strategyId?: unknown;
@@ -775,6 +774,7 @@ export declare const strategiesBacktestQueryResolver: import("@feathersjs/schema
775
774
  $nin: string | string[];
776
775
  } & {}> | undefined;
777
776
  traderId?: unknown;
777
+ stoppedAt?: any;
778
778
  jobId?: string | Partial<{
779
779
  $gt: string;
780
780
  $gte: string;
@@ -785,3 +785,70 @@ export declare const strategiesBacktestQueryResolver: import("@feathersjs/schema
785
785
  $nin: string | string[];
786
786
  } & {}> | undefined;
787
787
  } & {}, HookContext<StrategiesBacktestService<import("./backtest.class").StrategiesBacktestParams>>>;
788
+ export interface AwsLogsConfig {
789
+ Type: 'awslogs';
790
+ Config: {
791
+ 'awslogs-region': string;
792
+ 'awslogs-group': string;
793
+ 'awslogs-create-group': 'true' | 'false';
794
+ };
795
+ }
796
+ export interface DockerMount {
797
+ Name: string;
798
+ Source: string;
799
+ Target: string;
800
+ Type: 'bind' | 'volume' | string;
801
+ }
802
+ export interface DockerHostConfig {
803
+ Binds: string[];
804
+ Memory: number;
805
+ NanoCpus: number;
806
+ ExtraHosts: string[];
807
+ LogConfig?: AwsLogsConfig;
808
+ }
809
+ export interface DockerDeployment {
810
+ provider: 'docker';
811
+ Image: string;
812
+ name: string;
813
+ Cmd: string[];
814
+ RestartPolicy: {
815
+ Name: 'on-failure' | 'no' | 'always';
816
+ };
817
+ HostConfig: DockerHostConfig;
818
+ Env: string[];
819
+ Mounts: DockerMount[];
820
+ }
821
+ export interface EfsVolumeConfiguration {
822
+ fileSystemId: string;
823
+ rootDirectory: string;
824
+ transitEncryption?: 'ENABLED' | 'DISABLED';
825
+ }
826
+ export interface BatchVolume {
827
+ name: string;
828
+ efsVolumeConfiguration: EfsVolumeConfiguration;
829
+ }
830
+ export interface BatchMountPoint {
831
+ sourceVolume: string;
832
+ containerPath: string;
833
+ }
834
+ export interface BatchContainerProps {
835
+ user?: string;
836
+ image: string;
837
+ vcpus: number;
838
+ memory: number;
839
+ privileged?: boolean;
840
+ command: string[];
841
+ volumes: BatchVolume[];
842
+ mountPoints: BatchMountPoint[];
843
+ }
844
+ export interface BatchRetryStrategy {
845
+ attempts: number;
846
+ }
847
+ export interface BatchJobDefinition {
848
+ provider: 'batch';
849
+ type: 'container';
850
+ jobDefinitionName: string;
851
+ containerProperties: BatchContainerProps;
852
+ retryStrategy?: BatchRetryStrategy;
853
+ }
854
+ export type BacktestDeployment = DockerDeployment | BatchJobDefinition;
@@ -129,18 +129,25 @@ export declare const strategiesBacktestResultsResolver: import("@feathersjs/sche
129
129
  updatedAt: any;
130
130
  userId: any;
131
131
  stoploss: number;
132
- minimal_roi: {};
133
132
  exit_profit_only: boolean;
134
133
  exit_profit_offset: number;
134
+ minimal_roi: {};
135
+ sharpe: number;
136
+ trailing_stop: boolean;
137
+ trailing_stop_positive: number;
138
+ trailing_stop_positive_offset: number;
139
+ trailing_only_offset_is_reached: boolean;
135
140
  stake_currency: string;
136
141
  stake_amount: number;
137
142
  strategyId: string;
138
143
  dry_run_wallet: number;
139
144
  max_open_trades: number;
140
145
  traderId: string;
146
+ timeframe: string;
147
+ timerange: string;
141
148
  trades: unknown[];
142
- locks: unknown[];
143
149
  profit_total: number;
150
+ locks: unknown[];
144
151
  best_pair: {};
145
152
  worst_pair: {};
146
153
  results_per_pair: unknown[];
@@ -170,15 +177,9 @@ export declare const strategiesBacktestResultsResolver: import("@feathersjs/sche
170
177
  timedout_entry_orders: number;
171
178
  timedout_exit_orders: number;
172
179
  max_open_trades_setting: number;
173
- timeframe: string;
174
180
  timeframe_detail: string;
175
- timerange: string;
176
181
  enable_protections: boolean;
177
182
  strategy_name: string;
178
- trailing_stop: boolean;
179
- trailing_stop_positive: number;
180
- trailing_stop_positive_offset: number;
181
- trailing_only_offset_is_reached: boolean;
182
183
  use_custom_stoploss: boolean;
183
184
  use_sell_signal: boolean;
184
185
  sell_profit_only: boolean;
@@ -224,7 +225,6 @@ export declare const strategiesBacktestResultsResolver: import("@feathersjs/sche
224
225
  expectancy: number;
225
226
  expectancy_ratio: number;
226
227
  sortino: number;
227
- sharpe: number;
228
228
  calmar: number;
229
229
  profit_factor: number;
230
230
  canceled_trade_entries: number;
@@ -247,18 +247,25 @@ export declare const strategiesBacktestResultsExternalResolver: import("@feather
247
247
  updatedAt: any;
248
248
  userId: any;
249
249
  stoploss: number;
250
- minimal_roi: {};
251
250
  exit_profit_only: boolean;
252
251
  exit_profit_offset: number;
252
+ minimal_roi: {};
253
+ sharpe: number;
254
+ trailing_stop: boolean;
255
+ trailing_stop_positive: number;
256
+ trailing_stop_positive_offset: number;
257
+ trailing_only_offset_is_reached: boolean;
253
258
  stake_currency: string;
254
259
  stake_amount: number;
255
260
  strategyId: string;
256
261
  dry_run_wallet: number;
257
262
  max_open_trades: number;
258
263
  traderId: string;
264
+ timeframe: string;
265
+ timerange: string;
259
266
  trades: unknown[];
260
- locks: unknown[];
261
267
  profit_total: number;
268
+ locks: unknown[];
262
269
  best_pair: {};
263
270
  worst_pair: {};
264
271
  results_per_pair: unknown[];
@@ -288,15 +295,9 @@ export declare const strategiesBacktestResultsExternalResolver: import("@feather
288
295
  timedout_entry_orders: number;
289
296
  timedout_exit_orders: number;
290
297
  max_open_trades_setting: number;
291
- timeframe: string;
292
298
  timeframe_detail: string;
293
- timerange: string;
294
299
  enable_protections: boolean;
295
300
  strategy_name: string;
296
- trailing_stop: boolean;
297
- trailing_stop_positive: number;
298
- trailing_stop_positive_offset: number;
299
- trailing_only_offset_is_reached: boolean;
300
301
  use_custom_stoploss: boolean;
301
302
  use_sell_signal: boolean;
302
303
  sell_profit_only: boolean;
@@ -342,7 +343,6 @@ export declare const strategiesBacktestResultsExternalResolver: import("@feather
342
343
  expectancy: number;
343
344
  expectancy_ratio: number;
344
345
  sortino: number;
345
- sharpe: number;
346
346
  calmar: number;
347
347
  profit_factor: number;
348
348
  canceled_trade_entries: number;
@@ -485,18 +485,25 @@ export declare const strategiesBacktestResultsDataResolver: import("@feathersjs/
485
485
  updatedAt: any;
486
486
  userId: any;
487
487
  stoploss: number;
488
- minimal_roi: {};
489
488
  exit_profit_only: boolean;
490
489
  exit_profit_offset: number;
490
+ minimal_roi: {};
491
+ sharpe: number;
492
+ trailing_stop: boolean;
493
+ trailing_stop_positive: number;
494
+ trailing_stop_positive_offset: number;
495
+ trailing_only_offset_is_reached: boolean;
491
496
  stake_currency: string;
492
497
  stake_amount: number;
493
498
  strategyId: string;
494
499
  dry_run_wallet: number;
495
500
  max_open_trades: number;
496
501
  traderId: string;
502
+ timeframe: string;
503
+ timerange: string;
497
504
  trades: unknown[];
498
- locks: unknown[];
499
505
  profit_total: number;
506
+ locks: unknown[];
500
507
  best_pair: {};
501
508
  worst_pair: {};
502
509
  results_per_pair: unknown[];
@@ -526,15 +533,9 @@ export declare const strategiesBacktestResultsDataResolver: import("@feathersjs/
526
533
  timedout_entry_orders: number;
527
534
  timedout_exit_orders: number;
528
535
  max_open_trades_setting: number;
529
- timeframe: string;
530
536
  timeframe_detail: string;
531
- timerange: string;
532
537
  enable_protections: boolean;
533
538
  strategy_name: string;
534
- trailing_stop: boolean;
535
- trailing_stop_positive: number;
536
- trailing_stop_positive_offset: number;
537
- trailing_only_offset_is_reached: boolean;
538
539
  use_custom_stoploss: boolean;
539
540
  use_sell_signal: boolean;
540
541
  sell_profit_only: boolean;
@@ -580,7 +581,6 @@ export declare const strategiesBacktestResultsDataResolver: import("@feathersjs/
580
581
  expectancy: number;
581
582
  expectancy_ratio: number;
582
583
  sortino: number;
583
- sharpe: number;
584
584
  calmar: number;
585
585
  profit_factor: number;
586
586
  canceled_trade_entries: number;
@@ -723,18 +723,25 @@ export declare const strategiesBacktestResultsPatchResolver: import("@feathersjs
723
723
  updatedAt: any;
724
724
  userId: any;
725
725
  stoploss: number;
726
- minimal_roi: {};
727
726
  exit_profit_only: boolean;
728
727
  exit_profit_offset: number;
728
+ minimal_roi: {};
729
+ sharpe: number;
730
+ trailing_stop: boolean;
731
+ trailing_stop_positive: number;
732
+ trailing_stop_positive_offset: number;
733
+ trailing_only_offset_is_reached: boolean;
729
734
  stake_currency: string;
730
735
  stake_amount: number;
731
736
  strategyId: string;
732
737
  dry_run_wallet: number;
733
738
  max_open_trades: number;
734
739
  traderId: string;
740
+ timeframe: string;
741
+ timerange: string;
735
742
  trades: unknown[];
736
- locks: unknown[];
737
743
  profit_total: number;
744
+ locks: unknown[];
738
745
  best_pair: {};
739
746
  worst_pair: {};
740
747
  results_per_pair: unknown[];
@@ -764,15 +771,9 @@ export declare const strategiesBacktestResultsPatchResolver: import("@feathersjs
764
771
  timedout_entry_orders: number;
765
772
  timedout_exit_orders: number;
766
773
  max_open_trades_setting: number;
767
- timeframe: string;
768
774
  timeframe_detail: string;
769
- timerange: string;
770
775
  enable_protections: boolean;
771
776
  strategy_name: string;
772
- trailing_stop: boolean;
773
- trailing_stop_positive: number;
774
- trailing_stop_positive_offset: number;
775
- trailing_only_offset_is_reached: boolean;
776
777
  use_custom_stoploss: boolean;
777
778
  use_sell_signal: boolean;
778
779
  sell_profit_only: boolean;
@@ -818,7 +819,6 @@ export declare const strategiesBacktestResultsPatchResolver: import("@feathersjs
818
819
  expectancy: number;
819
820
  expectancy_ratio: number;
820
821
  sortino: number;
821
- sharpe: number;
822
822
  calmar: number;
823
823
  profit_factor: number;
824
824
  canceled_trade_entries: number;
@@ -0,0 +1,11 @@
1
+ import type { Params } from '@feathersjs/feathers';
2
+ import type { MongoDBAdapterOptions, MongoDBAdapterParams } from '@feathersjs/mongodb';
3
+ import { MongoDBService } from '@feathersjs/mongodb';
4
+ import type { Application } from '../../../declarations';
5
+ import type { StrategiesGenerate, StrategiesGenerateData, StrategiesGeneratePatch, StrategiesGenerateQuery } from './generate.schema';
6
+ export type { StrategiesGenerate, StrategiesGenerateData, StrategiesGeneratePatch, StrategiesGenerateQuery };
7
+ export interface StrategiesGenerateParams extends MongoDBAdapterParams<StrategiesGenerateQuery> {
8
+ }
9
+ export declare class StrategiesGenerateService<ServiceParams extends Params = StrategiesGenerateParams> extends MongoDBService<StrategiesGenerate, StrategiesGenerateData, StrategiesGenerateParams, StrategiesGeneratePatch> {
10
+ }
11
+ export declare const getOptions: (app: Application) => MongoDBAdapterOptions;
@@ -0,0 +1,11 @@
1
+ import type { Application } from '../../../declarations';
2
+ import { StrategiesGenerateService } from './generate.class';
3
+ import { strategiesGeneratePath } from './generate.shared';
4
+ export * from './generate.class';
5
+ export * from './generate.schema';
6
+ export declare const strategiesGenerate: (app: Application) => void;
7
+ declare module '../../../declarations' {
8
+ interface ServiceTypes {
9
+ [strategiesGeneratePath]: StrategiesGenerateService;
10
+ }
11
+ }