@marleena/trb-proto 1.0.57 → 1.0.59
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/gen/js-ts/strategysearch/StrategysearchServiceClientPb.ts +86 -0
- package/gen/js-ts/strategysearch/search_pb.d.ts +184 -0
- package/gen/js-ts/strategysearch/search_pb.js +1548 -15
- package/gen/js-ts/strategysearch/strategysearch_pb.d.ts +104 -0
- package/gen/js-ts/strategysearch/strategysearch_pb.js +891 -1
- package/package.json +1 -1
|
@@ -169,6 +169,92 @@ export class StrategySearchServiceClient {
|
|
|
169
169
|
this.methodDescriptorGetBestTrials);
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
+
methodDescriptorListSearchTrials = new grpcWeb.MethodDescriptor(
|
|
173
|
+
'/trb.strategysearch.v1.StrategySearchService/ListSearchTrials',
|
|
174
|
+
grpcWeb.MethodType.UNARY,
|
|
175
|
+
strategysearch_strategysearch_pb.ListSearchTrialsRequest,
|
|
176
|
+
strategysearch_strategysearch_pb.ListSearchTrialsResponse,
|
|
177
|
+
(request: strategysearch_strategysearch_pb.ListSearchTrialsRequest) => {
|
|
178
|
+
return request.serializeBinary();
|
|
179
|
+
},
|
|
180
|
+
strategysearch_strategysearch_pb.ListSearchTrialsResponse.deserializeBinary
|
|
181
|
+
);
|
|
182
|
+
|
|
183
|
+
listSearchTrials(
|
|
184
|
+
request: strategysearch_strategysearch_pb.ListSearchTrialsRequest,
|
|
185
|
+
metadata?: grpcWeb.Metadata | null): Promise<strategysearch_strategysearch_pb.ListSearchTrialsResponse>;
|
|
186
|
+
|
|
187
|
+
listSearchTrials(
|
|
188
|
+
request: strategysearch_strategysearch_pb.ListSearchTrialsRequest,
|
|
189
|
+
metadata: grpcWeb.Metadata | null,
|
|
190
|
+
callback: (err: grpcWeb.RpcError,
|
|
191
|
+
response: strategysearch_strategysearch_pb.ListSearchTrialsResponse) => void): grpcWeb.ClientReadableStream<strategysearch_strategysearch_pb.ListSearchTrialsResponse>;
|
|
192
|
+
|
|
193
|
+
listSearchTrials(
|
|
194
|
+
request: strategysearch_strategysearch_pb.ListSearchTrialsRequest,
|
|
195
|
+
metadata?: grpcWeb.Metadata | null,
|
|
196
|
+
callback?: (err: grpcWeb.RpcError,
|
|
197
|
+
response: strategysearch_strategysearch_pb.ListSearchTrialsResponse) => void) {
|
|
198
|
+
if (callback !== undefined) {
|
|
199
|
+
return this.client_.rpcCall(
|
|
200
|
+
this.hostname_ +
|
|
201
|
+
'/trb.strategysearch.v1.StrategySearchService/ListSearchTrials',
|
|
202
|
+
request,
|
|
203
|
+
metadata || {},
|
|
204
|
+
this.methodDescriptorListSearchTrials,
|
|
205
|
+
callback);
|
|
206
|
+
}
|
|
207
|
+
return this.client_.unaryCall(
|
|
208
|
+
this.hostname_ +
|
|
209
|
+
'/trb.strategysearch.v1.StrategySearchService/ListSearchTrials',
|
|
210
|
+
request,
|
|
211
|
+
metadata || {},
|
|
212
|
+
this.methodDescriptorListSearchTrials);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
methodDescriptorGetParamImportances = new grpcWeb.MethodDescriptor(
|
|
216
|
+
'/trb.strategysearch.v1.StrategySearchService/GetParamImportances',
|
|
217
|
+
grpcWeb.MethodType.UNARY,
|
|
218
|
+
strategysearch_strategysearch_pb.GetParamImportancesRequest,
|
|
219
|
+
strategysearch_strategysearch_pb.GetParamImportancesResponse,
|
|
220
|
+
(request: strategysearch_strategysearch_pb.GetParamImportancesRequest) => {
|
|
221
|
+
return request.serializeBinary();
|
|
222
|
+
},
|
|
223
|
+
strategysearch_strategysearch_pb.GetParamImportancesResponse.deserializeBinary
|
|
224
|
+
);
|
|
225
|
+
|
|
226
|
+
getParamImportances(
|
|
227
|
+
request: strategysearch_strategysearch_pb.GetParamImportancesRequest,
|
|
228
|
+
metadata?: grpcWeb.Metadata | null): Promise<strategysearch_strategysearch_pb.GetParamImportancesResponse>;
|
|
229
|
+
|
|
230
|
+
getParamImportances(
|
|
231
|
+
request: strategysearch_strategysearch_pb.GetParamImportancesRequest,
|
|
232
|
+
metadata: grpcWeb.Metadata | null,
|
|
233
|
+
callback: (err: grpcWeb.RpcError,
|
|
234
|
+
response: strategysearch_strategysearch_pb.GetParamImportancesResponse) => void): grpcWeb.ClientReadableStream<strategysearch_strategysearch_pb.GetParamImportancesResponse>;
|
|
235
|
+
|
|
236
|
+
getParamImportances(
|
|
237
|
+
request: strategysearch_strategysearch_pb.GetParamImportancesRequest,
|
|
238
|
+
metadata?: grpcWeb.Metadata | null,
|
|
239
|
+
callback?: (err: grpcWeb.RpcError,
|
|
240
|
+
response: strategysearch_strategysearch_pb.GetParamImportancesResponse) => void) {
|
|
241
|
+
if (callback !== undefined) {
|
|
242
|
+
return this.client_.rpcCall(
|
|
243
|
+
this.hostname_ +
|
|
244
|
+
'/trb.strategysearch.v1.StrategySearchService/GetParamImportances',
|
|
245
|
+
request,
|
|
246
|
+
metadata || {},
|
|
247
|
+
this.methodDescriptorGetParamImportances,
|
|
248
|
+
callback);
|
|
249
|
+
}
|
|
250
|
+
return this.client_.unaryCall(
|
|
251
|
+
this.hostname_ +
|
|
252
|
+
'/trb.strategysearch.v1.StrategySearchService/GetParamImportances',
|
|
253
|
+
request,
|
|
254
|
+
metadata || {},
|
|
255
|
+
this.methodDescriptorGetParamImportances);
|
|
256
|
+
}
|
|
257
|
+
|
|
172
258
|
methodDescriptorListSearches = new grpcWeb.MethodDescriptor(
|
|
173
259
|
'/trb.strategysearch.v1.StrategySearchService/ListSearches',
|
|
174
260
|
grpcWeb.MethodType.UNARY,
|
|
@@ -1088,6 +1088,28 @@ export namespace Trial {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
1090
|
|
|
1091
|
+
export class ParamImportance extends jspb.Message {
|
|
1092
|
+
getPath(): string;
|
|
1093
|
+
setPath(value: string): ParamImportance;
|
|
1094
|
+
|
|
1095
|
+
getImportance(): number;
|
|
1096
|
+
setImportance(value: number): ParamImportance;
|
|
1097
|
+
|
|
1098
|
+
serializeBinary(): Uint8Array;
|
|
1099
|
+
toObject(includeInstance?: boolean): ParamImportance.AsObject;
|
|
1100
|
+
static toObject(includeInstance: boolean, msg: ParamImportance): ParamImportance.AsObject;
|
|
1101
|
+
static serializeBinaryToWriter(message: ParamImportance, writer: jspb.BinaryWriter): void;
|
|
1102
|
+
static deserializeBinary(bytes: Uint8Array): ParamImportance;
|
|
1103
|
+
static deserializeBinaryFromReader(message: ParamImportance, reader: jspb.BinaryReader): ParamImportance;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
export namespace ParamImportance {
|
|
1107
|
+
export type AsObject = {
|
|
1108
|
+
path: string,
|
|
1109
|
+
importance: number,
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1091
1113
|
export class SearchProgress extends jspb.Message {
|
|
1092
1114
|
getStatus(): strategysearch_backtest_pb.RunStatus;
|
|
1093
1115
|
setStatus(value: strategysearch_backtest_pb.RunStatus): SearchProgress;
|
|
@@ -1194,6 +1216,21 @@ export class SearchRun extends jspb.Message {
|
|
|
1194
1216
|
hasFinishedAt(): boolean;
|
|
1195
1217
|
clearFinishedAt(): SearchRun;
|
|
1196
1218
|
|
|
1219
|
+
getTemplate(): StrategyTemplate | undefined;
|
|
1220
|
+
setTemplate(value?: StrategyTemplate): SearchRun;
|
|
1221
|
+
hasTemplate(): boolean;
|
|
1222
|
+
clearTemplate(): SearchRun;
|
|
1223
|
+
|
|
1224
|
+
getMarketSpace(): MarketSpace | undefined;
|
|
1225
|
+
setMarketSpace(value?: MarketSpace): SearchRun;
|
|
1226
|
+
hasMarketSpace(): boolean;
|
|
1227
|
+
clearMarketSpace(): SearchRun;
|
|
1228
|
+
|
|
1229
|
+
getMarketCandidatesList(): Array<MarketCandidate>;
|
|
1230
|
+
setMarketCandidatesList(value: Array<MarketCandidate>): SearchRun;
|
|
1231
|
+
clearMarketCandidatesList(): SearchRun;
|
|
1232
|
+
addMarketCandidates(value?: MarketCandidate, index?: number): MarketCandidate;
|
|
1233
|
+
|
|
1197
1234
|
serializeBinary(): Uint8Array;
|
|
1198
1235
|
toObject(includeInstance?: boolean): SearchRun.AsObject;
|
|
1199
1236
|
static toObject(includeInstance: boolean, msg: SearchRun): SearchRun.AsObject;
|
|
@@ -1215,6 +1252,9 @@ export namespace SearchRun {
|
|
|
1215
1252
|
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
1216
1253
|
startedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
1217
1254
|
finishedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
1255
|
+
template?: StrategyTemplate.AsObject,
|
|
1256
|
+
marketSpace?: MarketSpace.AsObject,
|
|
1257
|
+
marketCandidatesList: Array<MarketCandidate.AsObject>,
|
|
1218
1258
|
}
|
|
1219
1259
|
}
|
|
1220
1260
|
|
|
@@ -1236,6 +1276,146 @@ export namespace SearchTask {
|
|
|
1236
1276
|
}
|
|
1237
1277
|
}
|
|
1238
1278
|
|
|
1279
|
+
export class IndicatorTypeRanges extends jspb.Message {
|
|
1280
|
+
getIndicatorType(): string;
|
|
1281
|
+
setIndicatorType(value: string): IndicatorTypeRanges;
|
|
1282
|
+
|
|
1283
|
+
getFieldRangesList(): Array<ParamRange>;
|
|
1284
|
+
setFieldRangesList(value: Array<ParamRange>): IndicatorTypeRanges;
|
|
1285
|
+
clearFieldRangesList(): IndicatorTypeRanges;
|
|
1286
|
+
addFieldRanges(value?: ParamRange, index?: number): ParamRange;
|
|
1287
|
+
|
|
1288
|
+
serializeBinary(): Uint8Array;
|
|
1289
|
+
toObject(includeInstance?: boolean): IndicatorTypeRanges.AsObject;
|
|
1290
|
+
static toObject(includeInstance: boolean, msg: IndicatorTypeRanges): IndicatorTypeRanges.AsObject;
|
|
1291
|
+
static serializeBinaryToWriter(message: IndicatorTypeRanges, writer: jspb.BinaryWriter): void;
|
|
1292
|
+
static deserializeBinary(bytes: Uint8Array): IndicatorTypeRanges;
|
|
1293
|
+
static deserializeBinaryFromReader(message: IndicatorTypeRanges, reader: jspb.BinaryReader): IndicatorTypeRanges;
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
export namespace IndicatorTypeRanges {
|
|
1297
|
+
export type AsObject = {
|
|
1298
|
+
indicatorType: string,
|
|
1299
|
+
fieldRangesList: Array<ParamRange.AsObject>,
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
export class StrategyTemplate extends jspb.Message {
|
|
1304
|
+
getIndicatorPaletteList(): Array<string>;
|
|
1305
|
+
setIndicatorPaletteList(value: Array<string>): StrategyTemplate;
|
|
1306
|
+
clearIndicatorPaletteList(): StrategyTemplate;
|
|
1307
|
+
addIndicatorPalette(value: string, index?: number): StrategyTemplate;
|
|
1308
|
+
|
|
1309
|
+
getMaxIndicators(): number;
|
|
1310
|
+
setMaxIndicators(value: number): StrategyTemplate;
|
|
1311
|
+
|
|
1312
|
+
getMaxConditionsEntry(): number;
|
|
1313
|
+
setMaxConditionsEntry(value: number): StrategyTemplate;
|
|
1314
|
+
|
|
1315
|
+
getMaxConditionsExit(): number;
|
|
1316
|
+
setMaxConditionsExit(value: number): StrategyTemplate;
|
|
1317
|
+
|
|
1318
|
+
getTypeRangesList(): Array<IndicatorTypeRanges>;
|
|
1319
|
+
setTypeRangesList(value: Array<IndicatorTypeRanges>): StrategyTemplate;
|
|
1320
|
+
clearTypeRangesList(): StrategyTemplate;
|
|
1321
|
+
addTypeRanges(value?: IndicatorTypeRanges, index?: number): IndicatorTypeRanges;
|
|
1322
|
+
|
|
1323
|
+
getAllowedOpsList(): Array<strategysearch_spec_pb.CompareOp>;
|
|
1324
|
+
setAllowedOpsList(value: Array<strategysearch_spec_pb.CompareOp>): StrategyTemplate;
|
|
1325
|
+
clearAllowedOpsList(): StrategyTemplate;
|
|
1326
|
+
addAllowedOps(value: strategysearch_spec_pb.CompareOp, index?: number): StrategyTemplate;
|
|
1327
|
+
|
|
1328
|
+
serializeBinary(): Uint8Array;
|
|
1329
|
+
toObject(includeInstance?: boolean): StrategyTemplate.AsObject;
|
|
1330
|
+
static toObject(includeInstance: boolean, msg: StrategyTemplate): StrategyTemplate.AsObject;
|
|
1331
|
+
static serializeBinaryToWriter(message: StrategyTemplate, writer: jspb.BinaryWriter): void;
|
|
1332
|
+
static deserializeBinary(bytes: Uint8Array): StrategyTemplate;
|
|
1333
|
+
static deserializeBinaryFromReader(message: StrategyTemplate, reader: jspb.BinaryReader): StrategyTemplate;
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
export namespace StrategyTemplate {
|
|
1337
|
+
export type AsObject = {
|
|
1338
|
+
indicatorPaletteList: Array<string>,
|
|
1339
|
+
maxIndicators: number,
|
|
1340
|
+
maxConditionsEntry: number,
|
|
1341
|
+
maxConditionsExit: number,
|
|
1342
|
+
typeRangesList: Array<IndicatorTypeRanges.AsObject>,
|
|
1343
|
+
allowedOpsList: Array<strategysearch_spec_pb.CompareOp>,
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
export class MarketCandidate extends jspb.Message {
|
|
1348
|
+
getUid(): string;
|
|
1349
|
+
setUid(value: string): MarketCandidate;
|
|
1350
|
+
|
|
1351
|
+
getInterval(): number;
|
|
1352
|
+
setInterval(value: number): MarketCandidate;
|
|
1353
|
+
|
|
1354
|
+
getAvailableStart(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
1355
|
+
setAvailableStart(value?: google_protobuf_timestamp_pb.Timestamp): MarketCandidate;
|
|
1356
|
+
hasAvailableStart(): boolean;
|
|
1357
|
+
clearAvailableStart(): MarketCandidate;
|
|
1358
|
+
|
|
1359
|
+
getAvailableEnd(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
1360
|
+
setAvailableEnd(value?: google_protobuf_timestamp_pb.Timestamp): MarketCandidate;
|
|
1361
|
+
hasAvailableEnd(): boolean;
|
|
1362
|
+
clearAvailableEnd(): MarketCandidate;
|
|
1363
|
+
|
|
1364
|
+
serializeBinary(): Uint8Array;
|
|
1365
|
+
toObject(includeInstance?: boolean): MarketCandidate.AsObject;
|
|
1366
|
+
static toObject(includeInstance: boolean, msg: MarketCandidate): MarketCandidate.AsObject;
|
|
1367
|
+
static serializeBinaryToWriter(message: MarketCandidate, writer: jspb.BinaryWriter): void;
|
|
1368
|
+
static deserializeBinary(bytes: Uint8Array): MarketCandidate;
|
|
1369
|
+
static deserializeBinaryFromReader(message: MarketCandidate, reader: jspb.BinaryReader): MarketCandidate;
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
export namespace MarketCandidate {
|
|
1373
|
+
export type AsObject = {
|
|
1374
|
+
uid: string,
|
|
1375
|
+
interval: number,
|
|
1376
|
+
availableStart?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
1377
|
+
availableEnd?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
export class MarketSpace extends jspb.Message {
|
|
1382
|
+
getMode(): MarketMode;
|
|
1383
|
+
setMode(value: MarketMode): MarketSpace;
|
|
1384
|
+
|
|
1385
|
+
getUidFilterList(): Array<string>;
|
|
1386
|
+
setUidFilterList(value: Array<string>): MarketSpace;
|
|
1387
|
+
clearUidFilterList(): MarketSpace;
|
|
1388
|
+
addUidFilter(value: string, index?: number): MarketSpace;
|
|
1389
|
+
|
|
1390
|
+
getIntervalFilterList(): Array<number>;
|
|
1391
|
+
setIntervalFilterList(value: Array<number>): MarketSpace;
|
|
1392
|
+
clearIntervalFilterList(): MarketSpace;
|
|
1393
|
+
addIntervalFilter(value: number, index?: number): MarketSpace;
|
|
1394
|
+
|
|
1395
|
+
getPeriodLengthDays(): number;
|
|
1396
|
+
setPeriodLengthDays(value: number): MarketSpace;
|
|
1397
|
+
|
|
1398
|
+
getMinHistoryDays(): number;
|
|
1399
|
+
setMinHistoryDays(value: number): MarketSpace;
|
|
1400
|
+
|
|
1401
|
+
serializeBinary(): Uint8Array;
|
|
1402
|
+
toObject(includeInstance?: boolean): MarketSpace.AsObject;
|
|
1403
|
+
static toObject(includeInstance: boolean, msg: MarketSpace): MarketSpace.AsObject;
|
|
1404
|
+
static serializeBinaryToWriter(message: MarketSpace, writer: jspb.BinaryWriter): void;
|
|
1405
|
+
static deserializeBinary(bytes: Uint8Array): MarketSpace;
|
|
1406
|
+
static deserializeBinaryFromReader(message: MarketSpace, reader: jspb.BinaryReader): MarketSpace;
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
export namespace MarketSpace {
|
|
1410
|
+
export type AsObject = {
|
|
1411
|
+
mode: MarketMode,
|
|
1412
|
+
uidFilterList: Array<string>,
|
|
1413
|
+
intervalFilterList: Array<number>,
|
|
1414
|
+
periodLengthDays: number,
|
|
1415
|
+
minHistoryDays: number,
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1239
1419
|
export enum TrialState {
|
|
1240
1420
|
TRIAL_STATE_UNSPECIFIED = 0,
|
|
1241
1421
|
TRIAL_STATE_RUNNING = 1,
|
|
@@ -1244,3 +1424,7 @@ export enum TrialState {
|
|
|
1244
1424
|
TRIAL_STATE_PRUNED = 4,
|
|
1245
1425
|
TRIAL_STATE_FAIL = 5,
|
|
1246
1426
|
}
|
|
1427
|
+
export enum MarketMode {
|
|
1428
|
+
MARKET_MODE_PALETTE = 0,
|
|
1429
|
+
MARKET_MODE_RANDOM = 1,
|
|
1430
|
+
}
|