@marleena/trb-proto 1.0.63 → 1.0.64

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.
@@ -1,6 +1,7 @@
1
1
  import * as jspb from 'google-protobuf'
2
2
 
3
3
  import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; // proto import: "google/protobuf/timestamp.proto"
4
+ import * as strategysearch_spec_pb from '../strategysearch/spec_pb'; // proto import: "strategysearch/spec.proto"
4
5
 
5
6
 
6
7
  export class BacktestConfig extends jspb.Message {
@@ -211,6 +212,288 @@ export namespace BacktestMetrics {
211
212
  }
212
213
  }
213
214
 
215
+ export class EquityPoint extends jspb.Message {
216
+ getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
217
+ setTime(value?: google_protobuf_timestamp_pb.Timestamp): EquityPoint;
218
+ hasTime(): boolean;
219
+ clearTime(): EquityPoint;
220
+
221
+ getEquity(): number;
222
+ setEquity(value: number): EquityPoint;
223
+
224
+ getCash(): number;
225
+ setCash(value: number): EquityPoint;
226
+
227
+ getPositionValue(): number;
228
+ setPositionValue(value: number): EquityPoint;
229
+
230
+ getDrawdown(): number;
231
+ setDrawdown(value: number): EquityPoint;
232
+
233
+ getRet(): number;
234
+ setRet(value: number): EquityPoint;
235
+
236
+ serializeBinary(): Uint8Array;
237
+ toObject(includeInstance?: boolean): EquityPoint.AsObject;
238
+ static toObject(includeInstance: boolean, msg: EquityPoint): EquityPoint.AsObject;
239
+ static serializeBinaryToWriter(message: EquityPoint, writer: jspb.BinaryWriter): void;
240
+ static deserializeBinary(bytes: Uint8Array): EquityPoint;
241
+ static deserializeBinaryFromReader(message: EquityPoint, reader: jspb.BinaryReader): EquityPoint;
242
+ }
243
+
244
+ export namespace EquityPoint {
245
+ export type AsObject = {
246
+ time?: google_protobuf_timestamp_pb.Timestamp.AsObject,
247
+ equity: number,
248
+ cash: number,
249
+ positionValue: number,
250
+ drawdown: number,
251
+ ret: number,
252
+ }
253
+ }
254
+
255
+ export class TradeRecord extends jspb.Message {
256
+ getTradeId(): number;
257
+ setTradeId(value: number): TradeRecord;
258
+
259
+ getIsLong(): boolean;
260
+ setIsLong(value: boolean): TradeRecord;
261
+
262
+ getEntryTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
263
+ setEntryTime(value?: google_protobuf_timestamp_pb.Timestamp): TradeRecord;
264
+ hasEntryTime(): boolean;
265
+ clearEntryTime(): TradeRecord;
266
+
267
+ getEntryPrice(): number;
268
+ setEntryPrice(value: number): TradeRecord;
269
+
270
+ getExitTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
271
+ setExitTime(value?: google_protobuf_timestamp_pb.Timestamp): TradeRecord;
272
+ hasExitTime(): boolean;
273
+ clearExitTime(): TradeRecord;
274
+
275
+ getExitPrice(): number;
276
+ setExitPrice(value: number): TradeRecord;
277
+
278
+ getSize(): number;
279
+ setSize(value: number): TradeRecord;
280
+
281
+ getPnl(): number;
282
+ setPnl(value: number): TradeRecord;
283
+
284
+ getPnlPct(): number;
285
+ setPnlPct(value: number): TradeRecord;
286
+
287
+ getBarsHeld(): number;
288
+ setBarsHeld(value: number): TradeRecord;
289
+
290
+ getMae(): number;
291
+ setMae(value: number): TradeRecord;
292
+
293
+ getMfe(): number;
294
+ setMfe(value: number): TradeRecord;
295
+
296
+ getEntryReason(): string;
297
+ setEntryReason(value: string): TradeRecord;
298
+
299
+ getExitReason(): string;
300
+ setExitReason(value: string): TradeRecord;
301
+
302
+ serializeBinary(): Uint8Array;
303
+ toObject(includeInstance?: boolean): TradeRecord.AsObject;
304
+ static toObject(includeInstance: boolean, msg: TradeRecord): TradeRecord.AsObject;
305
+ static serializeBinaryToWriter(message: TradeRecord, writer: jspb.BinaryWriter): void;
306
+ static deserializeBinary(bytes: Uint8Array): TradeRecord;
307
+ static deserializeBinaryFromReader(message: TradeRecord, reader: jspb.BinaryReader): TradeRecord;
308
+ }
309
+
310
+ export namespace TradeRecord {
311
+ export type AsObject = {
312
+ tradeId: number,
313
+ isLong: boolean,
314
+ entryTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
315
+ entryPrice: number,
316
+ exitTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
317
+ exitPrice: number,
318
+ size: number,
319
+ pnl: number,
320
+ pnlPct: number,
321
+ barsHeld: number,
322
+ mae: number,
323
+ mfe: number,
324
+ entryReason: string,
325
+ exitReason: string,
326
+ }
327
+ }
328
+
329
+ export class BacktestIndicatorPoint extends jspb.Message {
330
+ getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
331
+ setTime(value?: google_protobuf_timestamp_pb.Timestamp): BacktestIndicatorPoint;
332
+ hasTime(): boolean;
333
+ clearTime(): BacktestIndicatorPoint;
334
+
335
+ getValuesMap(): jspb.Map<string, number>;
336
+ clearValuesMap(): BacktestIndicatorPoint;
337
+
338
+ serializeBinary(): Uint8Array;
339
+ toObject(includeInstance?: boolean): BacktestIndicatorPoint.AsObject;
340
+ static toObject(includeInstance: boolean, msg: BacktestIndicatorPoint): BacktestIndicatorPoint.AsObject;
341
+ static serializeBinaryToWriter(message: BacktestIndicatorPoint, writer: jspb.BinaryWriter): void;
342
+ static deserializeBinary(bytes: Uint8Array): BacktestIndicatorPoint;
343
+ static deserializeBinaryFromReader(message: BacktestIndicatorPoint, reader: jspb.BinaryReader): BacktestIndicatorPoint;
344
+ }
345
+
346
+ export namespace BacktestIndicatorPoint {
347
+ export type AsObject = {
348
+ time?: google_protobuf_timestamp_pb.Timestamp.AsObject,
349
+ valuesMap: Array<[string, number]>,
350
+ }
351
+ }
352
+
353
+ export class BacktestIndicatorSeries extends jspb.Message {
354
+ getIndicatorId(): string;
355
+ setIndicatorId(value: string): BacktestIndicatorSeries;
356
+
357
+ getIndicator(): string;
358
+ setIndicator(value: string): BacktestIndicatorSeries;
359
+
360
+ getOutputKey(): string;
361
+ setOutputKey(value: string): BacktestIndicatorSeries;
362
+
363
+ getOverlay(): boolean;
364
+ setOverlay(value: boolean): BacktestIndicatorSeries;
365
+
366
+ getPointsList(): Array<BacktestIndicatorPoint>;
367
+ setPointsList(value: Array<BacktestIndicatorPoint>): BacktestIndicatorSeries;
368
+ clearPointsList(): BacktestIndicatorSeries;
369
+ addPoints(value?: BacktestIndicatorPoint, index?: number): BacktestIndicatorPoint;
370
+
371
+ serializeBinary(): Uint8Array;
372
+ toObject(includeInstance?: boolean): BacktestIndicatorSeries.AsObject;
373
+ static toObject(includeInstance: boolean, msg: BacktestIndicatorSeries): BacktestIndicatorSeries.AsObject;
374
+ static serializeBinaryToWriter(message: BacktestIndicatorSeries, writer: jspb.BinaryWriter): void;
375
+ static deserializeBinary(bytes: Uint8Array): BacktestIndicatorSeries;
376
+ static deserializeBinaryFromReader(message: BacktestIndicatorSeries, reader: jspb.BinaryReader): BacktestIndicatorSeries;
377
+ }
378
+
379
+ export namespace BacktestIndicatorSeries {
380
+ export type AsObject = {
381
+ indicatorId: string,
382
+ indicator: string,
383
+ outputKey: string,
384
+ overlay: boolean,
385
+ pointsList: Array<BacktestIndicatorPoint.AsObject>,
386
+ }
387
+ }
388
+
389
+ export class BacktestRun extends jspb.Message {
390
+ getRunId(): string;
391
+ setRunId(value: string): BacktestRun;
392
+
393
+ getStrategyId(): string;
394
+ setStrategyId(value: string): BacktestRun;
395
+
396
+ getSpec(): strategysearch_spec_pb.StrategySearchSpec | undefined;
397
+ setSpec(value?: strategysearch_spec_pb.StrategySearchSpec): BacktestRun;
398
+ hasSpec(): boolean;
399
+ clearSpec(): BacktestRun;
400
+
401
+ getConfig(): BacktestConfig | undefined;
402
+ setConfig(value?: BacktestConfig): BacktestRun;
403
+ hasConfig(): boolean;
404
+ clearConfig(): BacktestRun;
405
+
406
+ getStatus(): RunStatus;
407
+ setStatus(value: RunStatus): BacktestRun;
408
+
409
+ getError(): string;
410
+ setError(value: string): BacktestRun;
411
+
412
+ getEngineVersion(): string;
413
+ setEngineVersion(value: string): BacktestRun;
414
+
415
+ getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
416
+ setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): BacktestRun;
417
+ hasCreatedAt(): boolean;
418
+ clearCreatedAt(): BacktestRun;
419
+
420
+ getStartedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
421
+ setStartedAt(value?: google_protobuf_timestamp_pb.Timestamp): BacktestRun;
422
+ hasStartedAt(): boolean;
423
+ clearStartedAt(): BacktestRun;
424
+
425
+ getFinishedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
426
+ setFinishedAt(value?: google_protobuf_timestamp_pb.Timestamp): BacktestRun;
427
+ hasFinishedAt(): boolean;
428
+ clearFinishedAt(): BacktestRun;
429
+
430
+ serializeBinary(): Uint8Array;
431
+ toObject(includeInstance?: boolean): BacktestRun.AsObject;
432
+ static toObject(includeInstance: boolean, msg: BacktestRun): BacktestRun.AsObject;
433
+ static serializeBinaryToWriter(message: BacktestRun, writer: jspb.BinaryWriter): void;
434
+ static deserializeBinary(bytes: Uint8Array): BacktestRun;
435
+ static deserializeBinaryFromReader(message: BacktestRun, reader: jspb.BinaryReader): BacktestRun;
436
+ }
437
+
438
+ export namespace BacktestRun {
439
+ export type AsObject = {
440
+ runId: string,
441
+ strategyId: string,
442
+ spec?: strategysearch_spec_pb.StrategySearchSpec.AsObject,
443
+ config?: BacktestConfig.AsObject,
444
+ status: RunStatus,
445
+ error: string,
446
+ engineVersion: string,
447
+ createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
448
+ startedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
449
+ finishedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
450
+ }
451
+ }
452
+
453
+ export class BacktestRunListItem extends jspb.Message {
454
+ getRun(): BacktestRun | undefined;
455
+ setRun(value?: BacktestRun): BacktestRunListItem;
456
+ hasRun(): boolean;
457
+ clearRun(): BacktestRunListItem;
458
+
459
+ getMetrics(): BacktestMetrics | undefined;
460
+ setMetrics(value?: BacktestMetrics): BacktestRunListItem;
461
+ hasMetrics(): boolean;
462
+ clearMetrics(): BacktestRunListItem;
463
+
464
+ serializeBinary(): Uint8Array;
465
+ toObject(includeInstance?: boolean): BacktestRunListItem.AsObject;
466
+ static toObject(includeInstance: boolean, msg: BacktestRunListItem): BacktestRunListItem.AsObject;
467
+ static serializeBinaryToWriter(message: BacktestRunListItem, writer: jspb.BinaryWriter): void;
468
+ static deserializeBinary(bytes: Uint8Array): BacktestRunListItem;
469
+ static deserializeBinaryFromReader(message: BacktestRunListItem, reader: jspb.BinaryReader): BacktestRunListItem;
470
+ }
471
+
472
+ export namespace BacktestRunListItem {
473
+ export type AsObject = {
474
+ run?: BacktestRun.AsObject,
475
+ metrics?: BacktestMetrics.AsObject,
476
+ }
477
+ }
478
+
479
+ export class BacktestTask extends jspb.Message {
480
+ getRunId(): string;
481
+ setRunId(value: string): BacktestTask;
482
+
483
+ serializeBinary(): Uint8Array;
484
+ toObject(includeInstance?: boolean): BacktestTask.AsObject;
485
+ static toObject(includeInstance: boolean, msg: BacktestTask): BacktestTask.AsObject;
486
+ static serializeBinaryToWriter(message: BacktestTask, writer: jspb.BinaryWriter): void;
487
+ static deserializeBinary(bytes: Uint8Array): BacktestTask;
488
+ static deserializeBinaryFromReader(message: BacktestTask, reader: jspb.BinaryReader): BacktestTask;
489
+ }
490
+
491
+ export namespace BacktestTask {
492
+ export type AsObject = {
493
+ runId: string,
494
+ }
495
+ }
496
+
214
497
  export enum RunStatus {
215
498
  RUN_STATUS_UNSPECIFIED = 0,
216
499
  RUN_QUEUED = 1,