@marleena/trb-proto 1.0.28 → 1.0.30
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/README.md +15 -3
- package/gen/js-ts/{tinvest → api/tinvest}/InstrumentsServiceClientPb.ts +432 -432
- package/gen/js-ts/{tinvest → api/tinvest}/MarketdataServiceClientPb.ts +98 -98
- package/gen/js-ts/{tinvest → api/tinvest}/OperationsServiceClientPb.ts +90 -90
- package/gen/js-ts/{tinvest → api/tinvest}/OrdersServiceClientPb.ts +94 -94
- package/gen/js-ts/{tinvest → api/tinvest}/SandboxServiceClientPb.ts +206 -206
- package/gen/js-ts/{tinvest → api/tinvest}/SignalsServiceClientPb.ts +22 -22
- package/gen/js-ts/{tinvest → api/tinvest}/StopordersServiceClientPb.ts +32 -32
- package/gen/js-ts/{tinvest → api/tinvest}/UsersServiceClientPb.ts +82 -82
- package/gen/js-ts/{tinvest → api/tinvest}/common_pb.js +1 -1
- package/gen/js-ts/{tinvest → api/tinvest}/instruments_pb.d.ts +560 -560
- package/gen/js-ts/{tinvest → api/tinvest}/instruments_pb.js +804 -804
- package/gen/js-ts/{tinvest → api/tinvest}/marketdata_pb.d.ts +104 -104
- package/gen/js-ts/{tinvest → api/tinvest}/marketdata_pb.js +154 -154
- package/gen/js-ts/{tinvest → api/tinvest}/operations_pb.d.ts +229 -229
- package/gen/js-ts/{tinvest → api/tinvest}/operations_pb.js +364 -364
- package/gen/js-ts/{tinvest → api/tinvest}/orders_pb.d.ts +153 -153
- package/gen/js-ts/{tinvest → api/tinvest}/orders_pb.js +226 -226
- package/gen/js-ts/{tinvest → api/tinvest}/sandbox_pb.d.ts +12 -12
- package/gen/js-ts/{tinvest → api/tinvest}/sandbox_pb.js +22 -22
- package/gen/js-ts/{tinvest → api/tinvest}/signals_pb.d.ts +32 -32
- package/gen/js-ts/{tinvest → api/tinvest}/signals_pb.js +54 -54
- package/gen/js-ts/{tinvest → api/tinvest}/stoporders_pb.d.ts +38 -38
- package/gen/js-ts/{tinvest → api/tinvest}/stoporders_pb.js +59 -59
- package/gen/js-ts/{tinvest → api/tinvest}/users_pb.d.ts +36 -36
- package/gen/js-ts/{tinvest → api/tinvest}/users_pb.js +59 -59
- package/gen/js-ts/clickhouse/AdminServiceClientPb.ts +1161 -0
- package/gen/js-ts/clickhouse/ClickhouseServiceClientPb.ts +216 -0
- package/gen/js-ts/{api/clickhouse/manager_pb.d.ts → clickhouse/admin_pb.d.ts} +2 -2
- package/gen/js-ts/{api/clickhouse/manager_pb.js → clickhouse/admin_pb.js} +1551 -1551
- package/gen/js-ts/{api/db_api/db_api_pb.d.ts → clickhouse/clickhouse_pb.d.ts} +8 -158
- package/gen/js-ts/clickhouse/clickhouse_pb.js +2440 -0
- package/gen/js-ts/nats/NatsServiceClientPb.ts +1032 -0
- package/gen/js-ts/{api/nats/manager_pb.d.ts → nats/nats_pb.d.ts} +1 -1
- package/gen/js-ts/{api/nats/manager_pb.js → nats/nats_pb.js} +1784 -1784
- package/gen/js-ts/postgresql/AdminServiceClientPb.ts +1591 -0
- package/gen/js-ts/postgresql/PostgresqlServiceClientPb.ts +129 -0
- package/gen/js-ts/postgresql/admin_pb.d.ts +1895 -0
- package/gen/js-ts/postgresql/admin_pb.js +15465 -0
- package/gen/js-ts/postgresql/postgresql_pb.d.ts +156 -0
- package/gen/js-ts/postgresql/postgresql_pb.js +1311 -0
- package/gen/js-ts/{api/test → test}/TestServiceClientPb.ts +16 -16
- package/gen/js-ts/{api/test → test}/test_pb.d.ts +5 -5
- package/gen/js-ts/{api/test → test}/test_pb.js +58 -58
- package/package.json +1 -1
- package/gen/js-ts/api/clickhouse/ManagerServiceClientPb.ts +0 -1161
- package/gen/js-ts/api/db_api/Db_apiServiceClientPb.ts +0 -302
- package/gen/js-ts/api/db_api/db_api_pb.js +0 -3723
- package/gen/js-ts/api/nats/ManagerServiceClientPb.ts +0 -1032
- /package/gen/js-ts/{tinvest → api/tinvest}/common_pb.d.ts +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
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 google_api_field_behavior_pb from '
|
|
5
|
-
import * as
|
|
4
|
+
import * as google_api_field_behavior_pb from '../../google/api/field_behavior_pb'; // proto import: "google/api/field_behavior.proto"
|
|
5
|
+
import * as api_tinvest_common_pb from '../../api/tinvest/common_pb'; // proto import: "api/tinvest/common.proto"
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
export class PostStopOrderRequest extends jspb.Message {
|
|
@@ -14,13 +14,13 @@ export class PostStopOrderRequest extends jspb.Message {
|
|
|
14
14
|
getQuantity(): number;
|
|
15
15
|
setQuantity(value: number): PostStopOrderRequest;
|
|
16
16
|
|
|
17
|
-
getPrice():
|
|
18
|
-
setPrice(value?:
|
|
17
|
+
getPrice(): api_tinvest_common_pb.Quotation | undefined;
|
|
18
|
+
setPrice(value?: api_tinvest_common_pb.Quotation): PostStopOrderRequest;
|
|
19
19
|
hasPrice(): boolean;
|
|
20
20
|
clearPrice(): PostStopOrderRequest;
|
|
21
21
|
|
|
22
|
-
getStopPrice():
|
|
23
|
-
setStopPrice(value?:
|
|
22
|
+
getStopPrice(): api_tinvest_common_pb.Quotation | undefined;
|
|
23
|
+
setStopPrice(value?: api_tinvest_common_pb.Quotation): PostStopOrderRequest;
|
|
24
24
|
hasStopPrice(): boolean;
|
|
25
25
|
clearStopPrice(): PostStopOrderRequest;
|
|
26
26
|
|
|
@@ -55,8 +55,8 @@ export class PostStopOrderRequest extends jspb.Message {
|
|
|
55
55
|
hasTrailingData(): boolean;
|
|
56
56
|
clearTrailingData(): PostStopOrderRequest;
|
|
57
57
|
|
|
58
|
-
getPriceType():
|
|
59
|
-
setPriceType(value:
|
|
58
|
+
getPriceType(): api_tinvest_common_pb.PriceType;
|
|
59
|
+
setPriceType(value: api_tinvest_common_pb.PriceType): PostStopOrderRequest;
|
|
60
60
|
|
|
61
61
|
getOrderId(): string;
|
|
62
62
|
setOrderId(value: string): PostStopOrderRequest;
|
|
@@ -81,8 +81,8 @@ export namespace PostStopOrderRequest {
|
|
|
81
81
|
export type AsObject = {
|
|
82
82
|
figi?: string,
|
|
83
83
|
quantity: number,
|
|
84
|
-
price?:
|
|
85
|
-
stopPrice?:
|
|
84
|
+
price?: api_tinvest_common_pb.Quotation.AsObject,
|
|
85
|
+
stopPrice?: api_tinvest_common_pb.Quotation.AsObject,
|
|
86
86
|
direction: StopOrderDirection,
|
|
87
87
|
accountId: string,
|
|
88
88
|
expirationType: StopOrderExpirationType,
|
|
@@ -92,23 +92,23 @@ export namespace PostStopOrderRequest {
|
|
|
92
92
|
exchangeOrderType: ExchangeOrderType,
|
|
93
93
|
takeProfitType: TakeProfitType,
|
|
94
94
|
trailingData?: PostStopOrderRequest.TrailingData.AsObject,
|
|
95
|
-
priceType:
|
|
95
|
+
priceType: api_tinvest_common_pb.PriceType,
|
|
96
96
|
orderId: string,
|
|
97
97
|
confirmMarginTrade: boolean,
|
|
98
98
|
instantExecution?: boolean,
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
export class TrailingData extends jspb.Message {
|
|
102
|
-
getIndent():
|
|
103
|
-
setIndent(value?:
|
|
102
|
+
getIndent(): api_tinvest_common_pb.Quotation | undefined;
|
|
103
|
+
setIndent(value?: api_tinvest_common_pb.Quotation): TrailingData;
|
|
104
104
|
hasIndent(): boolean;
|
|
105
105
|
clearIndent(): TrailingData;
|
|
106
106
|
|
|
107
107
|
getIndentType(): TrailingValueType;
|
|
108
108
|
setIndentType(value: TrailingValueType): TrailingData;
|
|
109
109
|
|
|
110
|
-
getSpread():
|
|
111
|
-
setSpread(value?:
|
|
110
|
+
getSpread(): api_tinvest_common_pb.Quotation | undefined;
|
|
111
|
+
setSpread(value?: api_tinvest_common_pb.Quotation): TrailingData;
|
|
112
112
|
hasSpread(): boolean;
|
|
113
113
|
clearSpread(): TrailingData;
|
|
114
114
|
|
|
@@ -125,9 +125,9 @@ export namespace PostStopOrderRequest {
|
|
|
125
125
|
|
|
126
126
|
export namespace TrailingData {
|
|
127
127
|
export type AsObject = {
|
|
128
|
-
indent?:
|
|
128
|
+
indent?: api_tinvest_common_pb.Quotation.AsObject,
|
|
129
129
|
indentType: TrailingValueType,
|
|
130
|
-
spread?:
|
|
130
|
+
spread?: api_tinvest_common_pb.Quotation.AsObject,
|
|
131
131
|
spreadType: TrailingValueType,
|
|
132
132
|
}
|
|
133
133
|
}
|
|
@@ -166,8 +166,8 @@ export class PostStopOrderResponse extends jspb.Message {
|
|
|
166
166
|
getOrderRequestId(): string;
|
|
167
167
|
setOrderRequestId(value: string): PostStopOrderResponse;
|
|
168
168
|
|
|
169
|
-
getResponseMetadata():
|
|
170
|
-
setResponseMetadata(value?:
|
|
169
|
+
getResponseMetadata(): api_tinvest_common_pb.ResponseMetadata | undefined;
|
|
170
|
+
setResponseMetadata(value?: api_tinvest_common_pb.ResponseMetadata): PostStopOrderResponse;
|
|
171
171
|
hasResponseMetadata(): boolean;
|
|
172
172
|
clearResponseMetadata(): PostStopOrderResponse;
|
|
173
173
|
|
|
@@ -183,7 +183,7 @@ export namespace PostStopOrderResponse {
|
|
|
183
183
|
export type AsObject = {
|
|
184
184
|
stopOrderId: string,
|
|
185
185
|
orderRequestId: string,
|
|
186
|
-
responseMetadata?:
|
|
186
|
+
responseMetadata?: api_tinvest_common_pb.ResponseMetadata.AsObject,
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
|
|
@@ -317,13 +317,13 @@ export class StopOrder extends jspb.Message {
|
|
|
317
317
|
hasExpirationTime(): boolean;
|
|
318
318
|
clearExpirationTime(): StopOrder;
|
|
319
319
|
|
|
320
|
-
getPrice():
|
|
321
|
-
setPrice(value?:
|
|
320
|
+
getPrice(): api_tinvest_common_pb.MoneyValue | undefined;
|
|
321
|
+
setPrice(value?: api_tinvest_common_pb.MoneyValue): StopOrder;
|
|
322
322
|
hasPrice(): boolean;
|
|
323
323
|
clearPrice(): StopOrder;
|
|
324
324
|
|
|
325
|
-
getStopPrice():
|
|
326
|
-
setStopPrice(value?:
|
|
325
|
+
getStopPrice(): api_tinvest_common_pb.MoneyValue | undefined;
|
|
326
|
+
setStopPrice(value?: api_tinvest_common_pb.MoneyValue): StopOrder;
|
|
327
327
|
hasStopPrice(): boolean;
|
|
328
328
|
clearStopPrice(): StopOrder;
|
|
329
329
|
|
|
@@ -377,8 +377,8 @@ export namespace StopOrder {
|
|
|
377
377
|
createDate?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
378
378
|
activationDateTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
379
379
|
expirationTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
380
|
-
price?:
|
|
381
|
-
stopPrice?:
|
|
380
|
+
price?: api_tinvest_common_pb.MoneyValue.AsObject,
|
|
381
|
+
stopPrice?: api_tinvest_common_pb.MoneyValue.AsObject,
|
|
382
382
|
instrumentUid: string,
|
|
383
383
|
takeProfitType: TakeProfitType,
|
|
384
384
|
trailingData?: StopOrder.TrailingData.AsObject,
|
|
@@ -391,16 +391,16 @@ export namespace StopOrder {
|
|
|
391
391
|
}
|
|
392
392
|
|
|
393
393
|
export class TrailingData extends jspb.Message {
|
|
394
|
-
getIndent():
|
|
395
|
-
setIndent(value?:
|
|
394
|
+
getIndent(): api_tinvest_common_pb.Quotation | undefined;
|
|
395
|
+
setIndent(value?: api_tinvest_common_pb.Quotation): TrailingData;
|
|
396
396
|
hasIndent(): boolean;
|
|
397
397
|
clearIndent(): TrailingData;
|
|
398
398
|
|
|
399
399
|
getIndentType(): TrailingValueType;
|
|
400
400
|
setIndentType(value: TrailingValueType): TrailingData;
|
|
401
401
|
|
|
402
|
-
getSpread():
|
|
403
|
-
setSpread(value?:
|
|
402
|
+
getSpread(): api_tinvest_common_pb.Quotation | undefined;
|
|
403
|
+
setSpread(value?: api_tinvest_common_pb.Quotation): TrailingData;
|
|
404
404
|
hasSpread(): boolean;
|
|
405
405
|
clearSpread(): TrailingData;
|
|
406
406
|
|
|
@@ -410,13 +410,13 @@ export namespace StopOrder {
|
|
|
410
410
|
getStatus(): TrailingStopStatus;
|
|
411
411
|
setStatus(value: TrailingStopStatus): TrailingData;
|
|
412
412
|
|
|
413
|
-
getPrice():
|
|
414
|
-
setPrice(value?:
|
|
413
|
+
getPrice(): api_tinvest_common_pb.Quotation | undefined;
|
|
414
|
+
setPrice(value?: api_tinvest_common_pb.Quotation): TrailingData;
|
|
415
415
|
hasPrice(): boolean;
|
|
416
416
|
clearPrice(): TrailingData;
|
|
417
417
|
|
|
418
|
-
getExtr():
|
|
419
|
-
setExtr(value?:
|
|
418
|
+
getExtr(): api_tinvest_common_pb.Quotation | undefined;
|
|
419
|
+
setExtr(value?: api_tinvest_common_pb.Quotation): TrailingData;
|
|
420
420
|
hasExtr(): boolean;
|
|
421
421
|
clearExtr(): TrailingData;
|
|
422
422
|
|
|
@@ -430,13 +430,13 @@ export namespace StopOrder {
|
|
|
430
430
|
|
|
431
431
|
export namespace TrailingData {
|
|
432
432
|
export type AsObject = {
|
|
433
|
-
indent?:
|
|
433
|
+
indent?: api_tinvest_common_pb.Quotation.AsObject,
|
|
434
434
|
indentType: TrailingValueType,
|
|
435
|
-
spread?:
|
|
435
|
+
spread?: api_tinvest_common_pb.Quotation.AsObject,
|
|
436
436
|
spreadType: TrailingValueType,
|
|
437
437
|
status: TrailingStopStatus,
|
|
438
|
-
price?:
|
|
439
|
-
extr?:
|
|
438
|
+
price?: api_tinvest_common_pb.Quotation.AsObject,
|
|
439
|
+
extr?: api_tinvest_common_pb.Quotation.AsObject,
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// source: tinvest/stoporders.proto
|
|
1
|
+
// source: api/tinvest/stoporders.proto
|
|
2
2
|
/**
|
|
3
3
|
* @fileoverview
|
|
4
4
|
* @enhanceable
|
|
@@ -23,10 +23,10 @@ var global =
|
|
|
23
23
|
|
|
24
24
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
25
25
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
26
|
-
var google_api_field_behavior_pb = require('
|
|
26
|
+
var google_api_field_behavior_pb = require('../../google/api/field_behavior_pb.js');
|
|
27
27
|
goog.object.extend(proto, google_api_field_behavior_pb);
|
|
28
|
-
var
|
|
29
|
-
goog.object.extend(proto,
|
|
28
|
+
var api_tinvest_common_pb = require('../../api/tinvest/common_pb.js');
|
|
29
|
+
goog.object.extend(proto, api_tinvest_common_pb);
|
|
30
30
|
goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderRequest', null, global);
|
|
31
31
|
goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderResponse', null, global);
|
|
32
32
|
goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.ExchangeOrderType', null, global);
|
|
@@ -267,8 +267,8 @@ proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.toObject = func
|
|
|
267
267
|
var f, obj = {
|
|
268
268
|
figi: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
|
|
269
269
|
quantity: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
270
|
-
price: (f = msg.getPrice()) &&
|
|
271
|
-
stopPrice: (f = msg.getStopPrice()) &&
|
|
270
|
+
price: (f = msg.getPrice()) && api_tinvest_common_pb.Quotation.toObject(includeInstance, f),
|
|
271
|
+
stopPrice: (f = msg.getStopPrice()) && api_tinvest_common_pb.Quotation.toObject(includeInstance, f),
|
|
272
272
|
direction: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
273
273
|
accountId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
274
274
|
expirationType: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
@@ -327,13 +327,13 @@ proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.deserializeBina
|
|
|
327
327
|
msg.setQuantity(value);
|
|
328
328
|
break;
|
|
329
329
|
case 3:
|
|
330
|
-
var value = new
|
|
331
|
-
reader.readMessage(value,
|
|
330
|
+
var value = new api_tinvest_common_pb.Quotation;
|
|
331
|
+
reader.readMessage(value,api_tinvest_common_pb.Quotation.deserializeBinaryFromReader);
|
|
332
332
|
msg.setPrice(value);
|
|
333
333
|
break;
|
|
334
334
|
case 4:
|
|
335
|
-
var value = new
|
|
336
|
-
reader.readMessage(value,
|
|
335
|
+
var value = new api_tinvest_common_pb.Quotation;
|
|
336
|
+
reader.readMessage(value,api_tinvest_common_pb.Quotation.deserializeBinaryFromReader);
|
|
337
337
|
msg.setStopPrice(value);
|
|
338
338
|
break;
|
|
339
339
|
case 5:
|
|
@@ -438,7 +438,7 @@ proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.serializeBinary
|
|
|
438
438
|
writer.writeMessage(
|
|
439
439
|
3,
|
|
440
440
|
f,
|
|
441
|
-
|
|
441
|
+
api_tinvest_common_pb.Quotation.serializeBinaryToWriter
|
|
442
442
|
);
|
|
443
443
|
}
|
|
444
444
|
f = message.getStopPrice();
|
|
@@ -446,7 +446,7 @@ proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.serializeBinary
|
|
|
446
446
|
writer.writeMessage(
|
|
447
447
|
4,
|
|
448
448
|
f,
|
|
449
|
-
|
|
449
|
+
api_tinvest_common_pb.Quotation.serializeBinaryToWriter
|
|
450
450
|
);
|
|
451
451
|
}
|
|
452
452
|
f = message.getDirection();
|
|
@@ -577,9 +577,9 @@ proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.pr
|
|
|
577
577
|
*/
|
|
578
578
|
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.toObject = function(includeInstance, msg) {
|
|
579
579
|
var f, obj = {
|
|
580
|
-
indent: (f = msg.getIndent()) &&
|
|
580
|
+
indent: (f = msg.getIndent()) && api_tinvest_common_pb.Quotation.toObject(includeInstance, f),
|
|
581
581
|
indentType: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
582
|
-
spread: (f = msg.getSpread()) &&
|
|
582
|
+
spread: (f = msg.getSpread()) && api_tinvest_common_pb.Quotation.toObject(includeInstance, f),
|
|
583
583
|
spreadType: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
584
584
|
};
|
|
585
585
|
|
|
@@ -618,8 +618,8 @@ proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.de
|
|
|
618
618
|
var field = reader.getFieldNumber();
|
|
619
619
|
switch (field) {
|
|
620
620
|
case 1:
|
|
621
|
-
var value = new
|
|
622
|
-
reader.readMessage(value,
|
|
621
|
+
var value = new api_tinvest_common_pb.Quotation;
|
|
622
|
+
reader.readMessage(value,api_tinvest_common_pb.Quotation.deserializeBinaryFromReader);
|
|
623
623
|
msg.setIndent(value);
|
|
624
624
|
break;
|
|
625
625
|
case 2:
|
|
@@ -627,8 +627,8 @@ proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.de
|
|
|
627
627
|
msg.setIndentType(value);
|
|
628
628
|
break;
|
|
629
629
|
case 3:
|
|
630
|
-
var value = new
|
|
631
|
-
reader.readMessage(value,
|
|
630
|
+
var value = new api_tinvest_common_pb.Quotation;
|
|
631
|
+
reader.readMessage(value,api_tinvest_common_pb.Quotation.deserializeBinaryFromReader);
|
|
632
632
|
msg.setSpread(value);
|
|
633
633
|
break;
|
|
634
634
|
case 4:
|
|
@@ -669,7 +669,7 @@ proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.se
|
|
|
669
669
|
writer.writeMessage(
|
|
670
670
|
1,
|
|
671
671
|
f,
|
|
672
|
-
|
|
672
|
+
api_tinvest_common_pb.Quotation.serializeBinaryToWriter
|
|
673
673
|
);
|
|
674
674
|
}
|
|
675
675
|
f = message.getIndentType();
|
|
@@ -684,7 +684,7 @@ proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.se
|
|
|
684
684
|
writer.writeMessage(
|
|
685
685
|
3,
|
|
686
686
|
f,
|
|
687
|
-
|
|
687
|
+
api_tinvest_common_pb.Quotation.serializeBinaryToWriter
|
|
688
688
|
);
|
|
689
689
|
}
|
|
690
690
|
f = message.getSpreadType();
|
|
@@ -703,7 +703,7 @@ proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.se
|
|
|
703
703
|
*/
|
|
704
704
|
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.prototype.getIndent = function() {
|
|
705
705
|
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Quotation} */ (
|
|
706
|
-
jspb.Message.getWrapperField(this,
|
|
706
|
+
jspb.Message.getWrapperField(this, api_tinvest_common_pb.Quotation, 1));
|
|
707
707
|
};
|
|
708
708
|
|
|
709
709
|
|
|
@@ -758,7 +758,7 @@ proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.pr
|
|
|
758
758
|
*/
|
|
759
759
|
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.prototype.getSpread = function() {
|
|
760
760
|
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Quotation} */ (
|
|
761
|
-
jspb.Message.getWrapperField(this,
|
|
761
|
+
jspb.Message.getWrapperField(this, api_tinvest_common_pb.Quotation, 3));
|
|
762
762
|
};
|
|
763
763
|
|
|
764
764
|
|
|
@@ -867,7 +867,7 @@ proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.setQu
|
|
|
867
867
|
*/
|
|
868
868
|
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.getPrice = function() {
|
|
869
869
|
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Quotation} */ (
|
|
870
|
-
jspb.Message.getWrapperField(this,
|
|
870
|
+
jspb.Message.getWrapperField(this, api_tinvest_common_pb.Quotation, 3));
|
|
871
871
|
};
|
|
872
872
|
|
|
873
873
|
|
|
@@ -904,7 +904,7 @@ proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.hasPr
|
|
|
904
904
|
*/
|
|
905
905
|
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.getStopPrice = function() {
|
|
906
906
|
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Quotation} */ (
|
|
907
|
-
jspb.Message.getWrapperField(this,
|
|
907
|
+
jspb.Message.getWrapperField(this, api_tinvest_common_pb.Quotation, 4));
|
|
908
908
|
};
|
|
909
909
|
|
|
910
910
|
|
|
@@ -1259,7 +1259,7 @@ proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse.toObject = fun
|
|
|
1259
1259
|
var f, obj = {
|
|
1260
1260
|
stopOrderId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1261
1261
|
orderRequestId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1262
|
-
responseMetadata: (f = msg.getResponseMetadata()) &&
|
|
1262
|
+
responseMetadata: (f = msg.getResponseMetadata()) && api_tinvest_common_pb.ResponseMetadata.toObject(includeInstance, f)
|
|
1263
1263
|
};
|
|
1264
1264
|
|
|
1265
1265
|
if (includeInstance) {
|
|
@@ -1305,8 +1305,8 @@ proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse.deserializeBin
|
|
|
1305
1305
|
msg.setOrderRequestId(value);
|
|
1306
1306
|
break;
|
|
1307
1307
|
case 254:
|
|
1308
|
-
var value = new
|
|
1309
|
-
reader.readMessage(value,
|
|
1308
|
+
var value = new api_tinvest_common_pb.ResponseMetadata;
|
|
1309
|
+
reader.readMessage(value,api_tinvest_common_pb.ResponseMetadata.deserializeBinaryFromReader);
|
|
1310
1310
|
msg.setResponseMetadata(value);
|
|
1311
1311
|
break;
|
|
1312
1312
|
default:
|
|
@@ -1357,7 +1357,7 @@ proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse.serializeBinar
|
|
|
1357
1357
|
writer.writeMessage(
|
|
1358
1358
|
254,
|
|
1359
1359
|
f,
|
|
1360
|
-
|
|
1360
|
+
api_tinvest_common_pb.ResponseMetadata.serializeBinaryToWriter
|
|
1361
1361
|
);
|
|
1362
1362
|
}
|
|
1363
1363
|
};
|
|
@@ -1405,7 +1405,7 @@ proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse.prototype.setO
|
|
|
1405
1405
|
*/
|
|
1406
1406
|
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse.prototype.getResponseMetadata = function() {
|
|
1407
1407
|
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata} */ (
|
|
1408
|
-
jspb.Message.getWrapperField(this,
|
|
1408
|
+
jspb.Message.getWrapperField(this, api_tinvest_common_pb.ResponseMetadata, 254));
|
|
1409
1409
|
};
|
|
1410
1410
|
|
|
1411
1411
|
|
|
@@ -2210,8 +2210,8 @@ orderType: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
|
2210
2210
|
createDate: (f = msg.getCreateDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
2211
2211
|
activationDateTime: (f = msg.getActivationDateTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
2212
2212
|
expirationTime: (f = msg.getExpirationTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
2213
|
-
price: (f = msg.getPrice()) &&
|
|
2214
|
-
stopPrice: (f = msg.getStopPrice()) &&
|
|
2213
|
+
price: (f = msg.getPrice()) && api_tinvest_common_pb.MoneyValue.toObject(includeInstance, f),
|
|
2214
|
+
stopPrice: (f = msg.getStopPrice()) && api_tinvest_common_pb.MoneyValue.toObject(includeInstance, f),
|
|
2215
2215
|
instrumentUid: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
2216
2216
|
takeProfitType: jspb.Message.getFieldWithDefault(msg, 13, 0),
|
|
2217
2217
|
trailingData: (f = msg.getTrailingData()) && proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.toObject(includeInstance, f),
|
|
@@ -2297,13 +2297,13 @@ proto.tinkoff.public.invest.api.contract.v1.StopOrder.deserializeBinaryFromReade
|
|
|
2297
2297
|
msg.setExpirationTime(value);
|
|
2298
2298
|
break;
|
|
2299
2299
|
case 10:
|
|
2300
|
-
var value = new
|
|
2301
|
-
reader.readMessage(value,
|
|
2300
|
+
var value = new api_tinvest_common_pb.MoneyValue;
|
|
2301
|
+
reader.readMessage(value,api_tinvest_common_pb.MoneyValue.deserializeBinaryFromReader);
|
|
2302
2302
|
msg.setPrice(value);
|
|
2303
2303
|
break;
|
|
2304
2304
|
case 11:
|
|
2305
|
-
var value = new
|
|
2306
|
-
reader.readMessage(value,
|
|
2305
|
+
var value = new api_tinvest_common_pb.MoneyValue;
|
|
2306
|
+
reader.readMessage(value,api_tinvest_common_pb.MoneyValue.deserializeBinaryFromReader);
|
|
2307
2307
|
msg.setStopPrice(value);
|
|
2308
2308
|
break;
|
|
2309
2309
|
case 12:
|
|
@@ -2443,7 +2443,7 @@ proto.tinkoff.public.invest.api.contract.v1.StopOrder.serializeBinaryToWriter =
|
|
|
2443
2443
|
writer.writeMessage(
|
|
2444
2444
|
10,
|
|
2445
2445
|
f,
|
|
2446
|
-
|
|
2446
|
+
api_tinvest_common_pb.MoneyValue.serializeBinaryToWriter
|
|
2447
2447
|
);
|
|
2448
2448
|
}
|
|
2449
2449
|
f = message.getStopPrice();
|
|
@@ -2451,7 +2451,7 @@ proto.tinkoff.public.invest.api.contract.v1.StopOrder.serializeBinaryToWriter =
|
|
|
2451
2451
|
writer.writeMessage(
|
|
2452
2452
|
11,
|
|
2453
2453
|
f,
|
|
2454
|
-
|
|
2454
|
+
api_tinvest_common_pb.MoneyValue.serializeBinaryToWriter
|
|
2455
2455
|
);
|
|
2456
2456
|
}
|
|
2457
2457
|
f = message.getInstrumentUid();
|
|
@@ -2553,13 +2553,13 @@ proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.toO
|
|
|
2553
2553
|
*/
|
|
2554
2554
|
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.toObject = function(includeInstance, msg) {
|
|
2555
2555
|
var f, obj = {
|
|
2556
|
-
indent: (f = msg.getIndent()) &&
|
|
2556
|
+
indent: (f = msg.getIndent()) && api_tinvest_common_pb.Quotation.toObject(includeInstance, f),
|
|
2557
2557
|
indentType: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
2558
|
-
spread: (f = msg.getSpread()) &&
|
|
2558
|
+
spread: (f = msg.getSpread()) && api_tinvest_common_pb.Quotation.toObject(includeInstance, f),
|
|
2559
2559
|
spreadType: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
2560
2560
|
status: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
2561
|
-
price: (f = msg.getPrice()) &&
|
|
2562
|
-
extr: (f = msg.getExtr()) &&
|
|
2561
|
+
price: (f = msg.getPrice()) && api_tinvest_common_pb.Quotation.toObject(includeInstance, f),
|
|
2562
|
+
extr: (f = msg.getExtr()) && api_tinvest_common_pb.Quotation.toObject(includeInstance, f)
|
|
2563
2563
|
};
|
|
2564
2564
|
|
|
2565
2565
|
if (includeInstance) {
|
|
@@ -2597,8 +2597,8 @@ proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.deserializeBi
|
|
|
2597
2597
|
var field = reader.getFieldNumber();
|
|
2598
2598
|
switch (field) {
|
|
2599
2599
|
case 1:
|
|
2600
|
-
var value = new
|
|
2601
|
-
reader.readMessage(value,
|
|
2600
|
+
var value = new api_tinvest_common_pb.Quotation;
|
|
2601
|
+
reader.readMessage(value,api_tinvest_common_pb.Quotation.deserializeBinaryFromReader);
|
|
2602
2602
|
msg.setIndent(value);
|
|
2603
2603
|
break;
|
|
2604
2604
|
case 2:
|
|
@@ -2606,8 +2606,8 @@ proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.deserializeBi
|
|
|
2606
2606
|
msg.setIndentType(value);
|
|
2607
2607
|
break;
|
|
2608
2608
|
case 3:
|
|
2609
|
-
var value = new
|
|
2610
|
-
reader.readMessage(value,
|
|
2609
|
+
var value = new api_tinvest_common_pb.Quotation;
|
|
2610
|
+
reader.readMessage(value,api_tinvest_common_pb.Quotation.deserializeBinaryFromReader);
|
|
2611
2611
|
msg.setSpread(value);
|
|
2612
2612
|
break;
|
|
2613
2613
|
case 4:
|
|
@@ -2619,13 +2619,13 @@ proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.deserializeBi
|
|
|
2619
2619
|
msg.setStatus(value);
|
|
2620
2620
|
break;
|
|
2621
2621
|
case 7:
|
|
2622
|
-
var value = new
|
|
2623
|
-
reader.readMessage(value,
|
|
2622
|
+
var value = new api_tinvest_common_pb.Quotation;
|
|
2623
|
+
reader.readMessage(value,api_tinvest_common_pb.Quotation.deserializeBinaryFromReader);
|
|
2624
2624
|
msg.setPrice(value);
|
|
2625
2625
|
break;
|
|
2626
2626
|
case 8:
|
|
2627
|
-
var value = new
|
|
2628
|
-
reader.readMessage(value,
|
|
2627
|
+
var value = new api_tinvest_common_pb.Quotation;
|
|
2628
|
+
reader.readMessage(value,api_tinvest_common_pb.Quotation.deserializeBinaryFromReader);
|
|
2629
2629
|
msg.setExtr(value);
|
|
2630
2630
|
break;
|
|
2631
2631
|
default:
|
|
@@ -2662,7 +2662,7 @@ proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.serializeBina
|
|
|
2662
2662
|
writer.writeMessage(
|
|
2663
2663
|
1,
|
|
2664
2664
|
f,
|
|
2665
|
-
|
|
2665
|
+
api_tinvest_common_pb.Quotation.serializeBinaryToWriter
|
|
2666
2666
|
);
|
|
2667
2667
|
}
|
|
2668
2668
|
f = message.getIndentType();
|
|
@@ -2677,7 +2677,7 @@ proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.serializeBina
|
|
|
2677
2677
|
writer.writeMessage(
|
|
2678
2678
|
3,
|
|
2679
2679
|
f,
|
|
2680
|
-
|
|
2680
|
+
api_tinvest_common_pb.Quotation.serializeBinaryToWriter
|
|
2681
2681
|
);
|
|
2682
2682
|
}
|
|
2683
2683
|
f = message.getSpreadType();
|
|
@@ -2699,7 +2699,7 @@ proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.serializeBina
|
|
|
2699
2699
|
writer.writeMessage(
|
|
2700
2700
|
7,
|
|
2701
2701
|
f,
|
|
2702
|
-
|
|
2702
|
+
api_tinvest_common_pb.Quotation.serializeBinaryToWriter
|
|
2703
2703
|
);
|
|
2704
2704
|
}
|
|
2705
2705
|
f = message.getExtr();
|
|
@@ -2707,7 +2707,7 @@ proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.serializeBina
|
|
|
2707
2707
|
writer.writeMessage(
|
|
2708
2708
|
8,
|
|
2709
2709
|
f,
|
|
2710
|
-
|
|
2710
|
+
api_tinvest_common_pb.Quotation.serializeBinaryToWriter
|
|
2711
2711
|
);
|
|
2712
2712
|
}
|
|
2713
2713
|
};
|
|
@@ -2719,7 +2719,7 @@ proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.serializeBina
|
|
|
2719
2719
|
*/
|
|
2720
2720
|
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.getIndent = function() {
|
|
2721
2721
|
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Quotation} */ (
|
|
2722
|
-
jspb.Message.getWrapperField(this,
|
|
2722
|
+
jspb.Message.getWrapperField(this, api_tinvest_common_pb.Quotation, 1));
|
|
2723
2723
|
};
|
|
2724
2724
|
|
|
2725
2725
|
|
|
@@ -2774,7 +2774,7 @@ proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.set
|
|
|
2774
2774
|
*/
|
|
2775
2775
|
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.getSpread = function() {
|
|
2776
2776
|
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Quotation} */ (
|
|
2777
|
-
jspb.Message.getWrapperField(this,
|
|
2777
|
+
jspb.Message.getWrapperField(this, api_tinvest_common_pb.Quotation, 3));
|
|
2778
2778
|
};
|
|
2779
2779
|
|
|
2780
2780
|
|
|
@@ -2847,7 +2847,7 @@ proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.set
|
|
|
2847
2847
|
*/
|
|
2848
2848
|
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.getPrice = function() {
|
|
2849
2849
|
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Quotation} */ (
|
|
2850
|
-
jspb.Message.getWrapperField(this,
|
|
2850
|
+
jspb.Message.getWrapperField(this, api_tinvest_common_pb.Quotation, 7));
|
|
2851
2851
|
};
|
|
2852
2852
|
|
|
2853
2853
|
|
|
@@ -2884,7 +2884,7 @@ proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.has
|
|
|
2884
2884
|
*/
|
|
2885
2885
|
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.getExtr = function() {
|
|
2886
2886
|
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Quotation} */ (
|
|
2887
|
-
jspb.Message.getWrapperField(this,
|
|
2887
|
+
jspb.Message.getWrapperField(this, api_tinvest_common_pb.Quotation, 8));
|
|
2888
2888
|
};
|
|
2889
2889
|
|
|
2890
2890
|
|
|
@@ -3140,7 +3140,7 @@ proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.hasExpirationTim
|
|
|
3140
3140
|
*/
|
|
3141
3141
|
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.getPrice = function() {
|
|
3142
3142
|
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.MoneyValue} */ (
|
|
3143
|
-
jspb.Message.getWrapperField(this,
|
|
3143
|
+
jspb.Message.getWrapperField(this, api_tinvest_common_pb.MoneyValue, 10));
|
|
3144
3144
|
};
|
|
3145
3145
|
|
|
3146
3146
|
|
|
@@ -3177,7 +3177,7 @@ proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.hasPrice = funct
|
|
|
3177
3177
|
*/
|
|
3178
3178
|
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.getStopPrice = function() {
|
|
3179
3179
|
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.MoneyValue} */ (
|
|
3180
|
-
jspb.Message.getWrapperField(this,
|
|
3180
|
+
jspb.Message.getWrapperField(this, api_tinvest_common_pb.MoneyValue, 11));
|
|
3181
3181
|
};
|
|
3182
3182
|
|
|
3183
3183
|
|