@marleena/trb-proto 0.1.0
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/LICENSE +21 -0
- package/README.md +53 -0
- package/gen/js-ts/clickhouse/clickhouse_grpc_pb.js +3611 -0
- package/gen/js-ts/example/Example_pb.js +634 -0
- package/gen/js-ts/google/api/annotations_pb.d.ts +6 -0
- package/gen/js-ts/google/api/annotations_pb.js +54 -0
- package/gen/js-ts/google/api/field_behavior_pb.d.ts +15 -0
- package/gen/js-ts/google/api/field_behavior_pb.js +67 -0
- package/gen/js-ts/google/api/http_pb.d.ts +120 -0
- package/gen/js-ts/google/api/http_pb.js +1012 -0
- package/gen/js-ts/manager_indicators/manager_indicators_pb.js +563 -0
- package/gen/js-ts/moex/moex_pb.js +420 -0
- package/gen/js-ts/nats/manager_pb.js +11310 -0
- package/gen/js-ts/tinvest/common_pb.js +2094 -0
- package/gen/js-ts/tinvest/instruments_pb.js +49999 -0
- package/gen/js-ts/tinvest/marketdata_pb.js +17991 -0
- package/gen/js-ts/tinvest/operations_pb.js +18145 -0
- package/gen/js-ts/tinvest/orders_pb.js +11378 -0
- package/gen/js-ts/tinvest/sandbox_pb.js +1009 -0
- package/gen/js-ts/tinvest/signals_pb.js +2566 -0
- package/gen/js-ts/tinvest/stoporders_pb.js +3486 -0
- package/gen/js-ts/tinvest/users_pb.js +4934 -0
- package/package.json +39 -0
|
@@ -0,0 +1,3486 @@
|
|
|
1
|
+
// source: tinvest/stoporders.proto
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview
|
|
4
|
+
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
13
|
+
|
|
14
|
+
var jspb = require('google-protobuf');
|
|
15
|
+
var goog = jspb;
|
|
16
|
+
var global =
|
|
17
|
+
(typeof globalThis !== 'undefined' && globalThis) ||
|
|
18
|
+
(typeof window !== 'undefined' && window) ||
|
|
19
|
+
(typeof global !== 'undefined' && global) ||
|
|
20
|
+
(typeof self !== 'undefined' && self) ||
|
|
21
|
+
(function () { return this; }).call(null) ||
|
|
22
|
+
Function('return this')();
|
|
23
|
+
|
|
24
|
+
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
25
|
+
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
26
|
+
var google_api_field_behavior_pb = require('../google/api/field_behavior_pb.js');
|
|
27
|
+
goog.object.extend(proto, google_api_field_behavior_pb);
|
|
28
|
+
var tinvest_common_pb = require('../tinvest/common_pb.js');
|
|
29
|
+
goog.object.extend(proto, tinvest_common_pb);
|
|
30
|
+
goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderRequest', null, global);
|
|
31
|
+
goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderResponse', null, global);
|
|
32
|
+
goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.ExchangeOrderType', null, global);
|
|
33
|
+
goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest', null, global);
|
|
34
|
+
goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersResponse', null, global);
|
|
35
|
+
goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest', null, global);
|
|
36
|
+
goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData', null, global);
|
|
37
|
+
goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse', null, global);
|
|
38
|
+
goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.StopOrder', null, global);
|
|
39
|
+
goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData', null, global);
|
|
40
|
+
goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.StopOrderDirection', null, global);
|
|
41
|
+
goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.StopOrderExpirationType', null, global);
|
|
42
|
+
goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.StopOrderStatusOption', null, global);
|
|
43
|
+
goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.StopOrderType', null, global);
|
|
44
|
+
goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.TakeProfitType', null, global);
|
|
45
|
+
goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.TrailingStopStatus', null, global);
|
|
46
|
+
goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.TrailingValueType', null, global);
|
|
47
|
+
/**
|
|
48
|
+
* Generated by JsPbCodeGenerator.
|
|
49
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
50
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
51
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
52
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
53
|
+
* valid.
|
|
54
|
+
* @extends {jspb.Message}
|
|
55
|
+
* @constructor
|
|
56
|
+
*/
|
|
57
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest = function(opt_data) {
|
|
58
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
59
|
+
};
|
|
60
|
+
goog.inherits(proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest, jspb.Message);
|
|
61
|
+
if (goog.DEBUG && !COMPILED) {
|
|
62
|
+
/**
|
|
63
|
+
* @public
|
|
64
|
+
* @override
|
|
65
|
+
*/
|
|
66
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.displayName = 'proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest';
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Generated by JsPbCodeGenerator.
|
|
70
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
71
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
72
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
73
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
74
|
+
* valid.
|
|
75
|
+
* @extends {jspb.Message}
|
|
76
|
+
* @constructor
|
|
77
|
+
*/
|
|
78
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData = function(opt_data) {
|
|
79
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
80
|
+
};
|
|
81
|
+
goog.inherits(proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData, jspb.Message);
|
|
82
|
+
if (goog.DEBUG && !COMPILED) {
|
|
83
|
+
/**
|
|
84
|
+
* @public
|
|
85
|
+
* @override
|
|
86
|
+
*/
|
|
87
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.displayName = 'proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData';
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Generated by JsPbCodeGenerator.
|
|
91
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
92
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
93
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
94
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
95
|
+
* valid.
|
|
96
|
+
* @extends {jspb.Message}
|
|
97
|
+
* @constructor
|
|
98
|
+
*/
|
|
99
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse = function(opt_data) {
|
|
100
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
101
|
+
};
|
|
102
|
+
goog.inherits(proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse, jspb.Message);
|
|
103
|
+
if (goog.DEBUG && !COMPILED) {
|
|
104
|
+
/**
|
|
105
|
+
* @public
|
|
106
|
+
* @override
|
|
107
|
+
*/
|
|
108
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse.displayName = 'proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse';
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Generated by JsPbCodeGenerator.
|
|
112
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
113
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
114
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
115
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
116
|
+
* valid.
|
|
117
|
+
* @extends {jspb.Message}
|
|
118
|
+
* @constructor
|
|
119
|
+
*/
|
|
120
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest = function(opt_data) {
|
|
121
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
122
|
+
};
|
|
123
|
+
goog.inherits(proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest, jspb.Message);
|
|
124
|
+
if (goog.DEBUG && !COMPILED) {
|
|
125
|
+
/**
|
|
126
|
+
* @public
|
|
127
|
+
* @override
|
|
128
|
+
*/
|
|
129
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest.displayName = 'proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest';
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Generated by JsPbCodeGenerator.
|
|
133
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
134
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
135
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
136
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
137
|
+
* valid.
|
|
138
|
+
* @extends {jspb.Message}
|
|
139
|
+
* @constructor
|
|
140
|
+
*/
|
|
141
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersResponse = function(opt_data) {
|
|
142
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersResponse.repeatedFields_, null);
|
|
143
|
+
};
|
|
144
|
+
goog.inherits(proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersResponse, jspb.Message);
|
|
145
|
+
if (goog.DEBUG && !COMPILED) {
|
|
146
|
+
/**
|
|
147
|
+
* @public
|
|
148
|
+
* @override
|
|
149
|
+
*/
|
|
150
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersResponse.displayName = 'proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersResponse';
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Generated by JsPbCodeGenerator.
|
|
154
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
155
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
156
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
157
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
158
|
+
* valid.
|
|
159
|
+
* @extends {jspb.Message}
|
|
160
|
+
* @constructor
|
|
161
|
+
*/
|
|
162
|
+
proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderRequest = function(opt_data) {
|
|
163
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
164
|
+
};
|
|
165
|
+
goog.inherits(proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderRequest, jspb.Message);
|
|
166
|
+
if (goog.DEBUG && !COMPILED) {
|
|
167
|
+
/**
|
|
168
|
+
* @public
|
|
169
|
+
* @override
|
|
170
|
+
*/
|
|
171
|
+
proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderRequest.displayName = 'proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderRequest';
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Generated by JsPbCodeGenerator.
|
|
175
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
176
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
177
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
178
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
179
|
+
* valid.
|
|
180
|
+
* @extends {jspb.Message}
|
|
181
|
+
* @constructor
|
|
182
|
+
*/
|
|
183
|
+
proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderResponse = function(opt_data) {
|
|
184
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
185
|
+
};
|
|
186
|
+
goog.inherits(proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderResponse, jspb.Message);
|
|
187
|
+
if (goog.DEBUG && !COMPILED) {
|
|
188
|
+
/**
|
|
189
|
+
* @public
|
|
190
|
+
* @override
|
|
191
|
+
*/
|
|
192
|
+
proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderResponse.displayName = 'proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderResponse';
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Generated by JsPbCodeGenerator.
|
|
196
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
197
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
198
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
199
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
200
|
+
* valid.
|
|
201
|
+
* @extends {jspb.Message}
|
|
202
|
+
* @constructor
|
|
203
|
+
*/
|
|
204
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder = function(opt_data) {
|
|
205
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
206
|
+
};
|
|
207
|
+
goog.inherits(proto.tinkoff.public.invest.api.contract.v1.StopOrder, jspb.Message);
|
|
208
|
+
if (goog.DEBUG && !COMPILED) {
|
|
209
|
+
/**
|
|
210
|
+
* @public
|
|
211
|
+
* @override
|
|
212
|
+
*/
|
|
213
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.displayName = 'proto.tinkoff.public.invest.api.contract.v1.StopOrder';
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Generated by JsPbCodeGenerator.
|
|
217
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
218
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
219
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
220
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
221
|
+
* valid.
|
|
222
|
+
* @extends {jspb.Message}
|
|
223
|
+
* @constructor
|
|
224
|
+
*/
|
|
225
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData = function(opt_data) {
|
|
226
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
227
|
+
};
|
|
228
|
+
goog.inherits(proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData, jspb.Message);
|
|
229
|
+
if (goog.DEBUG && !COMPILED) {
|
|
230
|
+
/**
|
|
231
|
+
* @public
|
|
232
|
+
* @override
|
|
233
|
+
*/
|
|
234
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.displayName = 'proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData';
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
240
|
+
/**
|
|
241
|
+
* Creates an object representation of this proto.
|
|
242
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
243
|
+
* Optional fields that are not set will be set to undefined.
|
|
244
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
245
|
+
* For the list of reserved names please see:
|
|
246
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
247
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
248
|
+
* JSPB instance for transitional soy proto support:
|
|
249
|
+
* http://goto/soy-param-migration
|
|
250
|
+
* @return {!Object}
|
|
251
|
+
*/
|
|
252
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.toObject = function(opt_includeInstance) {
|
|
253
|
+
return proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.toObject(opt_includeInstance, this);
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Static version of the {@see toObject} method.
|
|
259
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
260
|
+
* the JSPB instance for transitional soy proto support:
|
|
261
|
+
* http://goto/soy-param-migration
|
|
262
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest} msg The msg instance to transform.
|
|
263
|
+
* @return {!Object}
|
|
264
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
265
|
+
*/
|
|
266
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.toObject = function(includeInstance, msg) {
|
|
267
|
+
var f, obj = {
|
|
268
|
+
figi: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
|
|
269
|
+
quantity: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
270
|
+
price: (f = msg.getPrice()) && tinvest_common_pb.Quotation.toObject(includeInstance, f),
|
|
271
|
+
stopPrice: (f = msg.getStopPrice()) && tinvest_common_pb.Quotation.toObject(includeInstance, f),
|
|
272
|
+
direction: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
273
|
+
accountId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
274
|
+
expirationType: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
275
|
+
stopOrderType: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
276
|
+
expireDate: (f = msg.getExpireDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
277
|
+
instrumentId: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
278
|
+
exchangeOrderType: jspb.Message.getFieldWithDefault(msg, 11, 0),
|
|
279
|
+
takeProfitType: jspb.Message.getFieldWithDefault(msg, 12, 0),
|
|
280
|
+
trailingData: (f = msg.getTrailingData()) && proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.toObject(includeInstance, f),
|
|
281
|
+
priceType: jspb.Message.getFieldWithDefault(msg, 14, 0),
|
|
282
|
+
orderId: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
283
|
+
confirmMarginTrade: jspb.Message.getBooleanFieldWithDefault(msg, 16, false),
|
|
284
|
+
instantExecution: (f = jspb.Message.getBooleanField(msg, 17)) == null ? undefined : f
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
if (includeInstance) {
|
|
288
|
+
obj.$jspbMessageInstance = msg;
|
|
289
|
+
}
|
|
290
|
+
return obj;
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Deserializes binary data (in protobuf wire format).
|
|
297
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
298
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest}
|
|
299
|
+
*/
|
|
300
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.deserializeBinary = function(bytes) {
|
|
301
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
302
|
+
var msg = new proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest;
|
|
303
|
+
return proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.deserializeBinaryFromReader(msg, reader);
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
309
|
+
* given reader into the given message object.
|
|
310
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest} msg The message object to deserialize into.
|
|
311
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
312
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest}
|
|
313
|
+
*/
|
|
314
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
315
|
+
while (reader.nextField()) {
|
|
316
|
+
if (reader.isEndGroup()) {
|
|
317
|
+
break;
|
|
318
|
+
}
|
|
319
|
+
var field = reader.getFieldNumber();
|
|
320
|
+
switch (field) {
|
|
321
|
+
case 1:
|
|
322
|
+
var value = /** @type {string} */ (reader.readString());
|
|
323
|
+
msg.setFigi(value);
|
|
324
|
+
break;
|
|
325
|
+
case 2:
|
|
326
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
327
|
+
msg.setQuantity(value);
|
|
328
|
+
break;
|
|
329
|
+
case 3:
|
|
330
|
+
var value = new tinvest_common_pb.Quotation;
|
|
331
|
+
reader.readMessage(value,tinvest_common_pb.Quotation.deserializeBinaryFromReader);
|
|
332
|
+
msg.setPrice(value);
|
|
333
|
+
break;
|
|
334
|
+
case 4:
|
|
335
|
+
var value = new tinvest_common_pb.Quotation;
|
|
336
|
+
reader.readMessage(value,tinvest_common_pb.Quotation.deserializeBinaryFromReader);
|
|
337
|
+
msg.setStopPrice(value);
|
|
338
|
+
break;
|
|
339
|
+
case 5:
|
|
340
|
+
var value = /** @type {!proto.tinkoff.public.invest.api.contract.v1.StopOrderDirection} */ (reader.readEnum());
|
|
341
|
+
msg.setDirection(value);
|
|
342
|
+
break;
|
|
343
|
+
case 6:
|
|
344
|
+
var value = /** @type {string} */ (reader.readString());
|
|
345
|
+
msg.setAccountId(value);
|
|
346
|
+
break;
|
|
347
|
+
case 7:
|
|
348
|
+
var value = /** @type {!proto.tinkoff.public.invest.api.contract.v1.StopOrderExpirationType} */ (reader.readEnum());
|
|
349
|
+
msg.setExpirationType(value);
|
|
350
|
+
break;
|
|
351
|
+
case 8:
|
|
352
|
+
var value = /** @type {!proto.tinkoff.public.invest.api.contract.v1.StopOrderType} */ (reader.readEnum());
|
|
353
|
+
msg.setStopOrderType(value);
|
|
354
|
+
break;
|
|
355
|
+
case 9:
|
|
356
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
357
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
358
|
+
msg.setExpireDate(value);
|
|
359
|
+
break;
|
|
360
|
+
case 10:
|
|
361
|
+
var value = /** @type {string} */ (reader.readString());
|
|
362
|
+
msg.setInstrumentId(value);
|
|
363
|
+
break;
|
|
364
|
+
case 11:
|
|
365
|
+
var value = /** @type {!proto.tinkoff.public.invest.api.contract.v1.ExchangeOrderType} */ (reader.readEnum());
|
|
366
|
+
msg.setExchangeOrderType(value);
|
|
367
|
+
break;
|
|
368
|
+
case 12:
|
|
369
|
+
var value = /** @type {!proto.tinkoff.public.invest.api.contract.v1.TakeProfitType} */ (reader.readEnum());
|
|
370
|
+
msg.setTakeProfitType(value);
|
|
371
|
+
break;
|
|
372
|
+
case 13:
|
|
373
|
+
var value = new proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData;
|
|
374
|
+
reader.readMessage(value,proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.deserializeBinaryFromReader);
|
|
375
|
+
msg.setTrailingData(value);
|
|
376
|
+
break;
|
|
377
|
+
case 14:
|
|
378
|
+
var value = /** @type {!proto.tinkoff.public.invest.api.contract.v1.PriceType} */ (reader.readEnum());
|
|
379
|
+
msg.setPriceType(value);
|
|
380
|
+
break;
|
|
381
|
+
case 15:
|
|
382
|
+
var value = /** @type {string} */ (reader.readString());
|
|
383
|
+
msg.setOrderId(value);
|
|
384
|
+
break;
|
|
385
|
+
case 16:
|
|
386
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
387
|
+
msg.setConfirmMarginTrade(value);
|
|
388
|
+
break;
|
|
389
|
+
case 17:
|
|
390
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
391
|
+
msg.setInstantExecution(value);
|
|
392
|
+
break;
|
|
393
|
+
default:
|
|
394
|
+
reader.skipField();
|
|
395
|
+
break;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
return msg;
|
|
399
|
+
};
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
404
|
+
* @return {!Uint8Array}
|
|
405
|
+
*/
|
|
406
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.serializeBinary = function() {
|
|
407
|
+
var writer = new jspb.BinaryWriter();
|
|
408
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.serializeBinaryToWriter(this, writer);
|
|
409
|
+
return writer.getResultBuffer();
|
|
410
|
+
};
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
415
|
+
* format), writing to the given BinaryWriter.
|
|
416
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest} message
|
|
417
|
+
* @param {!jspb.BinaryWriter} writer
|
|
418
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
419
|
+
*/
|
|
420
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.serializeBinaryToWriter = function(message, writer) {
|
|
421
|
+
var f = undefined;
|
|
422
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
423
|
+
if (f != null) {
|
|
424
|
+
writer.writeString(
|
|
425
|
+
1,
|
|
426
|
+
f
|
|
427
|
+
);
|
|
428
|
+
}
|
|
429
|
+
f = message.getQuantity();
|
|
430
|
+
if (f !== 0) {
|
|
431
|
+
writer.writeInt64(
|
|
432
|
+
2,
|
|
433
|
+
f
|
|
434
|
+
);
|
|
435
|
+
}
|
|
436
|
+
f = message.getPrice();
|
|
437
|
+
if (f != null) {
|
|
438
|
+
writer.writeMessage(
|
|
439
|
+
3,
|
|
440
|
+
f,
|
|
441
|
+
tinvest_common_pb.Quotation.serializeBinaryToWriter
|
|
442
|
+
);
|
|
443
|
+
}
|
|
444
|
+
f = message.getStopPrice();
|
|
445
|
+
if (f != null) {
|
|
446
|
+
writer.writeMessage(
|
|
447
|
+
4,
|
|
448
|
+
f,
|
|
449
|
+
tinvest_common_pb.Quotation.serializeBinaryToWriter
|
|
450
|
+
);
|
|
451
|
+
}
|
|
452
|
+
f = message.getDirection();
|
|
453
|
+
if (f !== 0.0) {
|
|
454
|
+
writer.writeEnum(
|
|
455
|
+
5,
|
|
456
|
+
f
|
|
457
|
+
);
|
|
458
|
+
}
|
|
459
|
+
f = message.getAccountId();
|
|
460
|
+
if (f.length > 0) {
|
|
461
|
+
writer.writeString(
|
|
462
|
+
6,
|
|
463
|
+
f
|
|
464
|
+
);
|
|
465
|
+
}
|
|
466
|
+
f = message.getExpirationType();
|
|
467
|
+
if (f !== 0.0) {
|
|
468
|
+
writer.writeEnum(
|
|
469
|
+
7,
|
|
470
|
+
f
|
|
471
|
+
);
|
|
472
|
+
}
|
|
473
|
+
f = message.getStopOrderType();
|
|
474
|
+
if (f !== 0.0) {
|
|
475
|
+
writer.writeEnum(
|
|
476
|
+
8,
|
|
477
|
+
f
|
|
478
|
+
);
|
|
479
|
+
}
|
|
480
|
+
f = message.getExpireDate();
|
|
481
|
+
if (f != null) {
|
|
482
|
+
writer.writeMessage(
|
|
483
|
+
9,
|
|
484
|
+
f,
|
|
485
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
486
|
+
);
|
|
487
|
+
}
|
|
488
|
+
f = message.getInstrumentId();
|
|
489
|
+
if (f.length > 0) {
|
|
490
|
+
writer.writeString(
|
|
491
|
+
10,
|
|
492
|
+
f
|
|
493
|
+
);
|
|
494
|
+
}
|
|
495
|
+
f = message.getExchangeOrderType();
|
|
496
|
+
if (f !== 0.0) {
|
|
497
|
+
writer.writeEnum(
|
|
498
|
+
11,
|
|
499
|
+
f
|
|
500
|
+
);
|
|
501
|
+
}
|
|
502
|
+
f = message.getTakeProfitType();
|
|
503
|
+
if (f !== 0.0) {
|
|
504
|
+
writer.writeEnum(
|
|
505
|
+
12,
|
|
506
|
+
f
|
|
507
|
+
);
|
|
508
|
+
}
|
|
509
|
+
f = message.getTrailingData();
|
|
510
|
+
if (f != null) {
|
|
511
|
+
writer.writeMessage(
|
|
512
|
+
13,
|
|
513
|
+
f,
|
|
514
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.serializeBinaryToWriter
|
|
515
|
+
);
|
|
516
|
+
}
|
|
517
|
+
f = message.getPriceType();
|
|
518
|
+
if (f !== 0.0) {
|
|
519
|
+
writer.writeEnum(
|
|
520
|
+
14,
|
|
521
|
+
f
|
|
522
|
+
);
|
|
523
|
+
}
|
|
524
|
+
f = message.getOrderId();
|
|
525
|
+
if (f.length > 0) {
|
|
526
|
+
writer.writeString(
|
|
527
|
+
15,
|
|
528
|
+
f
|
|
529
|
+
);
|
|
530
|
+
}
|
|
531
|
+
f = message.getConfirmMarginTrade();
|
|
532
|
+
if (f) {
|
|
533
|
+
writer.writeBool(
|
|
534
|
+
16,
|
|
535
|
+
f
|
|
536
|
+
);
|
|
537
|
+
}
|
|
538
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 17));
|
|
539
|
+
if (f != null) {
|
|
540
|
+
writer.writeBool(
|
|
541
|
+
17,
|
|
542
|
+
f
|
|
543
|
+
);
|
|
544
|
+
}
|
|
545
|
+
};
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
552
|
+
/**
|
|
553
|
+
* Creates an object representation of this proto.
|
|
554
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
555
|
+
* Optional fields that are not set will be set to undefined.
|
|
556
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
557
|
+
* For the list of reserved names please see:
|
|
558
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
559
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
560
|
+
* JSPB instance for transitional soy proto support:
|
|
561
|
+
* http://goto/soy-param-migration
|
|
562
|
+
* @return {!Object}
|
|
563
|
+
*/
|
|
564
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.prototype.toObject = function(opt_includeInstance) {
|
|
565
|
+
return proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.toObject(opt_includeInstance, this);
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* Static version of the {@see toObject} method.
|
|
571
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
572
|
+
* the JSPB instance for transitional soy proto support:
|
|
573
|
+
* http://goto/soy-param-migration
|
|
574
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData} msg The msg instance to transform.
|
|
575
|
+
* @return {!Object}
|
|
576
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
577
|
+
*/
|
|
578
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.toObject = function(includeInstance, msg) {
|
|
579
|
+
var f, obj = {
|
|
580
|
+
indent: (f = msg.getIndent()) && tinvest_common_pb.Quotation.toObject(includeInstance, f),
|
|
581
|
+
indentType: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
582
|
+
spread: (f = msg.getSpread()) && tinvest_common_pb.Quotation.toObject(includeInstance, f),
|
|
583
|
+
spreadType: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
584
|
+
};
|
|
585
|
+
|
|
586
|
+
if (includeInstance) {
|
|
587
|
+
obj.$jspbMessageInstance = msg;
|
|
588
|
+
}
|
|
589
|
+
return obj;
|
|
590
|
+
};
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* Deserializes binary data (in protobuf wire format).
|
|
596
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
597
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData}
|
|
598
|
+
*/
|
|
599
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.deserializeBinary = function(bytes) {
|
|
600
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
601
|
+
var msg = new proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData;
|
|
602
|
+
return proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.deserializeBinaryFromReader(msg, reader);
|
|
603
|
+
};
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
608
|
+
* given reader into the given message object.
|
|
609
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData} msg The message object to deserialize into.
|
|
610
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
611
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData}
|
|
612
|
+
*/
|
|
613
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.deserializeBinaryFromReader = function(msg, reader) {
|
|
614
|
+
while (reader.nextField()) {
|
|
615
|
+
if (reader.isEndGroup()) {
|
|
616
|
+
break;
|
|
617
|
+
}
|
|
618
|
+
var field = reader.getFieldNumber();
|
|
619
|
+
switch (field) {
|
|
620
|
+
case 1:
|
|
621
|
+
var value = new tinvest_common_pb.Quotation;
|
|
622
|
+
reader.readMessage(value,tinvest_common_pb.Quotation.deserializeBinaryFromReader);
|
|
623
|
+
msg.setIndent(value);
|
|
624
|
+
break;
|
|
625
|
+
case 2:
|
|
626
|
+
var value = /** @type {!proto.tinkoff.public.invest.api.contract.v1.TrailingValueType} */ (reader.readEnum());
|
|
627
|
+
msg.setIndentType(value);
|
|
628
|
+
break;
|
|
629
|
+
case 3:
|
|
630
|
+
var value = new tinvest_common_pb.Quotation;
|
|
631
|
+
reader.readMessage(value,tinvest_common_pb.Quotation.deserializeBinaryFromReader);
|
|
632
|
+
msg.setSpread(value);
|
|
633
|
+
break;
|
|
634
|
+
case 4:
|
|
635
|
+
var value = /** @type {!proto.tinkoff.public.invest.api.contract.v1.TrailingValueType} */ (reader.readEnum());
|
|
636
|
+
msg.setSpreadType(value);
|
|
637
|
+
break;
|
|
638
|
+
default:
|
|
639
|
+
reader.skipField();
|
|
640
|
+
break;
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
return msg;
|
|
644
|
+
};
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
649
|
+
* @return {!Uint8Array}
|
|
650
|
+
*/
|
|
651
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.prototype.serializeBinary = function() {
|
|
652
|
+
var writer = new jspb.BinaryWriter();
|
|
653
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.serializeBinaryToWriter(this, writer);
|
|
654
|
+
return writer.getResultBuffer();
|
|
655
|
+
};
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
660
|
+
* format), writing to the given BinaryWriter.
|
|
661
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData} message
|
|
662
|
+
* @param {!jspb.BinaryWriter} writer
|
|
663
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
664
|
+
*/
|
|
665
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.serializeBinaryToWriter = function(message, writer) {
|
|
666
|
+
var f = undefined;
|
|
667
|
+
f = message.getIndent();
|
|
668
|
+
if (f != null) {
|
|
669
|
+
writer.writeMessage(
|
|
670
|
+
1,
|
|
671
|
+
f,
|
|
672
|
+
tinvest_common_pb.Quotation.serializeBinaryToWriter
|
|
673
|
+
);
|
|
674
|
+
}
|
|
675
|
+
f = message.getIndentType();
|
|
676
|
+
if (f !== 0.0) {
|
|
677
|
+
writer.writeEnum(
|
|
678
|
+
2,
|
|
679
|
+
f
|
|
680
|
+
);
|
|
681
|
+
}
|
|
682
|
+
f = message.getSpread();
|
|
683
|
+
if (f != null) {
|
|
684
|
+
writer.writeMessage(
|
|
685
|
+
3,
|
|
686
|
+
f,
|
|
687
|
+
tinvest_common_pb.Quotation.serializeBinaryToWriter
|
|
688
|
+
);
|
|
689
|
+
}
|
|
690
|
+
f = message.getSpreadType();
|
|
691
|
+
if (f !== 0.0) {
|
|
692
|
+
writer.writeEnum(
|
|
693
|
+
4,
|
|
694
|
+
f
|
|
695
|
+
);
|
|
696
|
+
}
|
|
697
|
+
};
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* optional Quotation indent = 1;
|
|
702
|
+
* @return {?proto.tinkoff.public.invest.api.contract.v1.Quotation}
|
|
703
|
+
*/
|
|
704
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.prototype.getIndent = function() {
|
|
705
|
+
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Quotation} */ (
|
|
706
|
+
jspb.Message.getWrapperField(this, tinvest_common_pb.Quotation, 1));
|
|
707
|
+
};
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* @param {?proto.tinkoff.public.invest.api.contract.v1.Quotation|undefined} value
|
|
712
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData} returns this
|
|
713
|
+
*/
|
|
714
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.prototype.setIndent = function(value) {
|
|
715
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
716
|
+
};
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* Clears the message field making it undefined.
|
|
721
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData} returns this
|
|
722
|
+
*/
|
|
723
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.prototype.clearIndent = function() {
|
|
724
|
+
return this.setIndent(undefined);
|
|
725
|
+
};
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* Returns whether this field is set.
|
|
730
|
+
* @return {boolean}
|
|
731
|
+
*/
|
|
732
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.prototype.hasIndent = function() {
|
|
733
|
+
return jspb.Message.getField(this, 1) != null;
|
|
734
|
+
};
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* optional TrailingValueType indent_type = 2;
|
|
739
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.TrailingValueType}
|
|
740
|
+
*/
|
|
741
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.prototype.getIndentType = function() {
|
|
742
|
+
return /** @type {!proto.tinkoff.public.invest.api.contract.v1.TrailingValueType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
743
|
+
};
|
|
744
|
+
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.TrailingValueType} value
|
|
748
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData} returns this
|
|
749
|
+
*/
|
|
750
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.prototype.setIndentType = function(value) {
|
|
751
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
752
|
+
};
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* optional Quotation spread = 3;
|
|
757
|
+
* @return {?proto.tinkoff.public.invest.api.contract.v1.Quotation}
|
|
758
|
+
*/
|
|
759
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.prototype.getSpread = function() {
|
|
760
|
+
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Quotation} */ (
|
|
761
|
+
jspb.Message.getWrapperField(this, tinvest_common_pb.Quotation, 3));
|
|
762
|
+
};
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* @param {?proto.tinkoff.public.invest.api.contract.v1.Quotation|undefined} value
|
|
767
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData} returns this
|
|
768
|
+
*/
|
|
769
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.prototype.setSpread = function(value) {
|
|
770
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
771
|
+
};
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* Clears the message field making it undefined.
|
|
776
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData} returns this
|
|
777
|
+
*/
|
|
778
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.prototype.clearSpread = function() {
|
|
779
|
+
return this.setSpread(undefined);
|
|
780
|
+
};
|
|
781
|
+
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* Returns whether this field is set.
|
|
785
|
+
* @return {boolean}
|
|
786
|
+
*/
|
|
787
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.prototype.hasSpread = function() {
|
|
788
|
+
return jspb.Message.getField(this, 3) != null;
|
|
789
|
+
};
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* optional TrailingValueType spread_type = 4;
|
|
794
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.TrailingValueType}
|
|
795
|
+
*/
|
|
796
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.prototype.getSpreadType = function() {
|
|
797
|
+
return /** @type {!proto.tinkoff.public.invest.api.contract.v1.TrailingValueType} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
798
|
+
};
|
|
799
|
+
|
|
800
|
+
|
|
801
|
+
/**
|
|
802
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.TrailingValueType} value
|
|
803
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData} returns this
|
|
804
|
+
*/
|
|
805
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData.prototype.setSpreadType = function(value) {
|
|
806
|
+
return jspb.Message.setProto3EnumField(this, 4, value);
|
|
807
|
+
};
|
|
808
|
+
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* optional string figi = 1;
|
|
812
|
+
* @return {string}
|
|
813
|
+
*/
|
|
814
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.getFigi = function() {
|
|
815
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
816
|
+
};
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* @param {string} value
|
|
821
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest} returns this
|
|
822
|
+
*/
|
|
823
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.setFigi = function(value) {
|
|
824
|
+
return jspb.Message.setField(this, 1, value);
|
|
825
|
+
};
|
|
826
|
+
|
|
827
|
+
|
|
828
|
+
/**
|
|
829
|
+
* Clears the field making it undefined.
|
|
830
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest} returns this
|
|
831
|
+
*/
|
|
832
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.clearFigi = function() {
|
|
833
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
834
|
+
};
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* Returns whether this field is set.
|
|
839
|
+
* @return {boolean}
|
|
840
|
+
*/
|
|
841
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.hasFigi = function() {
|
|
842
|
+
return jspb.Message.getField(this, 1) != null;
|
|
843
|
+
};
|
|
844
|
+
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* optional int64 quantity = 2;
|
|
848
|
+
* @return {number}
|
|
849
|
+
*/
|
|
850
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.getQuantity = function() {
|
|
851
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
852
|
+
};
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
/**
|
|
856
|
+
* @param {number} value
|
|
857
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest} returns this
|
|
858
|
+
*/
|
|
859
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.setQuantity = function(value) {
|
|
860
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
861
|
+
};
|
|
862
|
+
|
|
863
|
+
|
|
864
|
+
/**
|
|
865
|
+
* optional Quotation price = 3;
|
|
866
|
+
* @return {?proto.tinkoff.public.invest.api.contract.v1.Quotation}
|
|
867
|
+
*/
|
|
868
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.getPrice = function() {
|
|
869
|
+
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Quotation} */ (
|
|
870
|
+
jspb.Message.getWrapperField(this, tinvest_common_pb.Quotation, 3));
|
|
871
|
+
};
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
/**
|
|
875
|
+
* @param {?proto.tinkoff.public.invest.api.contract.v1.Quotation|undefined} value
|
|
876
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest} returns this
|
|
877
|
+
*/
|
|
878
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.setPrice = function(value) {
|
|
879
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
880
|
+
};
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
/**
|
|
884
|
+
* Clears the message field making it undefined.
|
|
885
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest} returns this
|
|
886
|
+
*/
|
|
887
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.clearPrice = function() {
|
|
888
|
+
return this.setPrice(undefined);
|
|
889
|
+
};
|
|
890
|
+
|
|
891
|
+
|
|
892
|
+
/**
|
|
893
|
+
* Returns whether this field is set.
|
|
894
|
+
* @return {boolean}
|
|
895
|
+
*/
|
|
896
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.hasPrice = function() {
|
|
897
|
+
return jspb.Message.getField(this, 3) != null;
|
|
898
|
+
};
|
|
899
|
+
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
* optional Quotation stop_price = 4;
|
|
903
|
+
* @return {?proto.tinkoff.public.invest.api.contract.v1.Quotation}
|
|
904
|
+
*/
|
|
905
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.getStopPrice = function() {
|
|
906
|
+
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Quotation} */ (
|
|
907
|
+
jspb.Message.getWrapperField(this, tinvest_common_pb.Quotation, 4));
|
|
908
|
+
};
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* @param {?proto.tinkoff.public.invest.api.contract.v1.Quotation|undefined} value
|
|
913
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest} returns this
|
|
914
|
+
*/
|
|
915
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.setStopPrice = function(value) {
|
|
916
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
917
|
+
};
|
|
918
|
+
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* Clears the message field making it undefined.
|
|
922
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest} returns this
|
|
923
|
+
*/
|
|
924
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.clearStopPrice = function() {
|
|
925
|
+
return this.setStopPrice(undefined);
|
|
926
|
+
};
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
/**
|
|
930
|
+
* Returns whether this field is set.
|
|
931
|
+
* @return {boolean}
|
|
932
|
+
*/
|
|
933
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.hasStopPrice = function() {
|
|
934
|
+
return jspb.Message.getField(this, 4) != null;
|
|
935
|
+
};
|
|
936
|
+
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
* optional StopOrderDirection direction = 5;
|
|
940
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrderDirection}
|
|
941
|
+
*/
|
|
942
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.getDirection = function() {
|
|
943
|
+
return /** @type {!proto.tinkoff.public.invest.api.contract.v1.StopOrderDirection} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
944
|
+
};
|
|
945
|
+
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.StopOrderDirection} value
|
|
949
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest} returns this
|
|
950
|
+
*/
|
|
951
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.setDirection = function(value) {
|
|
952
|
+
return jspb.Message.setProto3EnumField(this, 5, value);
|
|
953
|
+
};
|
|
954
|
+
|
|
955
|
+
|
|
956
|
+
/**
|
|
957
|
+
* optional string account_id = 6;
|
|
958
|
+
* @return {string}
|
|
959
|
+
*/
|
|
960
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.getAccountId = function() {
|
|
961
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
962
|
+
};
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* @param {string} value
|
|
967
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest} returns this
|
|
968
|
+
*/
|
|
969
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.setAccountId = function(value) {
|
|
970
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
971
|
+
};
|
|
972
|
+
|
|
973
|
+
|
|
974
|
+
/**
|
|
975
|
+
* optional StopOrderExpirationType expiration_type = 7;
|
|
976
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrderExpirationType}
|
|
977
|
+
*/
|
|
978
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.getExpirationType = function() {
|
|
979
|
+
return /** @type {!proto.tinkoff.public.invest.api.contract.v1.StopOrderExpirationType} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
980
|
+
};
|
|
981
|
+
|
|
982
|
+
|
|
983
|
+
/**
|
|
984
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.StopOrderExpirationType} value
|
|
985
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest} returns this
|
|
986
|
+
*/
|
|
987
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.setExpirationType = function(value) {
|
|
988
|
+
return jspb.Message.setProto3EnumField(this, 7, value);
|
|
989
|
+
};
|
|
990
|
+
|
|
991
|
+
|
|
992
|
+
/**
|
|
993
|
+
* optional StopOrderType stop_order_type = 8;
|
|
994
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrderType}
|
|
995
|
+
*/
|
|
996
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.getStopOrderType = function() {
|
|
997
|
+
return /** @type {!proto.tinkoff.public.invest.api.contract.v1.StopOrderType} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
998
|
+
};
|
|
999
|
+
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.StopOrderType} value
|
|
1003
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest} returns this
|
|
1004
|
+
*/
|
|
1005
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.setStopOrderType = function(value) {
|
|
1006
|
+
return jspb.Message.setProto3EnumField(this, 8, value);
|
|
1007
|
+
};
|
|
1008
|
+
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
* optional google.protobuf.Timestamp expire_date = 9;
|
|
1012
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
1013
|
+
*/
|
|
1014
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.getExpireDate = function() {
|
|
1015
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
1016
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9));
|
|
1017
|
+
};
|
|
1018
|
+
|
|
1019
|
+
|
|
1020
|
+
/**
|
|
1021
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
1022
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest} returns this
|
|
1023
|
+
*/
|
|
1024
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.setExpireDate = function(value) {
|
|
1025
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
1026
|
+
};
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
/**
|
|
1030
|
+
* Clears the message field making it undefined.
|
|
1031
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest} returns this
|
|
1032
|
+
*/
|
|
1033
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.clearExpireDate = function() {
|
|
1034
|
+
return this.setExpireDate(undefined);
|
|
1035
|
+
};
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
/**
|
|
1039
|
+
* Returns whether this field is set.
|
|
1040
|
+
* @return {boolean}
|
|
1041
|
+
*/
|
|
1042
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.hasExpireDate = function() {
|
|
1043
|
+
return jspb.Message.getField(this, 9) != null;
|
|
1044
|
+
};
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
/**
|
|
1048
|
+
* optional string instrument_id = 10;
|
|
1049
|
+
* @return {string}
|
|
1050
|
+
*/
|
|
1051
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.getInstrumentId = function() {
|
|
1052
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
1053
|
+
};
|
|
1054
|
+
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* @param {string} value
|
|
1058
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest} returns this
|
|
1059
|
+
*/
|
|
1060
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.setInstrumentId = function(value) {
|
|
1061
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
1062
|
+
};
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
/**
|
|
1066
|
+
* optional ExchangeOrderType exchange_order_type = 11;
|
|
1067
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.ExchangeOrderType}
|
|
1068
|
+
*/
|
|
1069
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.getExchangeOrderType = function() {
|
|
1070
|
+
return /** @type {!proto.tinkoff.public.invest.api.contract.v1.ExchangeOrderType} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
|
|
1071
|
+
};
|
|
1072
|
+
|
|
1073
|
+
|
|
1074
|
+
/**
|
|
1075
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.ExchangeOrderType} value
|
|
1076
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest} returns this
|
|
1077
|
+
*/
|
|
1078
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.setExchangeOrderType = function(value) {
|
|
1079
|
+
return jspb.Message.setProto3EnumField(this, 11, value);
|
|
1080
|
+
};
|
|
1081
|
+
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* optional TakeProfitType take_profit_type = 12;
|
|
1085
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.TakeProfitType}
|
|
1086
|
+
*/
|
|
1087
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.getTakeProfitType = function() {
|
|
1088
|
+
return /** @type {!proto.tinkoff.public.invest.api.contract.v1.TakeProfitType} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
|
|
1089
|
+
};
|
|
1090
|
+
|
|
1091
|
+
|
|
1092
|
+
/**
|
|
1093
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.TakeProfitType} value
|
|
1094
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest} returns this
|
|
1095
|
+
*/
|
|
1096
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.setTakeProfitType = function(value) {
|
|
1097
|
+
return jspb.Message.setProto3EnumField(this, 12, value);
|
|
1098
|
+
};
|
|
1099
|
+
|
|
1100
|
+
|
|
1101
|
+
/**
|
|
1102
|
+
* optional TrailingData trailing_data = 13;
|
|
1103
|
+
* @return {?proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData}
|
|
1104
|
+
*/
|
|
1105
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.getTrailingData = function() {
|
|
1106
|
+
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData} */ (
|
|
1107
|
+
jspb.Message.getWrapperField(this, proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData, 13));
|
|
1108
|
+
};
|
|
1109
|
+
|
|
1110
|
+
|
|
1111
|
+
/**
|
|
1112
|
+
* @param {?proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.TrailingData|undefined} value
|
|
1113
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest} returns this
|
|
1114
|
+
*/
|
|
1115
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.setTrailingData = function(value) {
|
|
1116
|
+
return jspb.Message.setWrapperField(this, 13, value);
|
|
1117
|
+
};
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
/**
|
|
1121
|
+
* Clears the message field making it undefined.
|
|
1122
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest} returns this
|
|
1123
|
+
*/
|
|
1124
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.clearTrailingData = function() {
|
|
1125
|
+
return this.setTrailingData(undefined);
|
|
1126
|
+
};
|
|
1127
|
+
|
|
1128
|
+
|
|
1129
|
+
/**
|
|
1130
|
+
* Returns whether this field is set.
|
|
1131
|
+
* @return {boolean}
|
|
1132
|
+
*/
|
|
1133
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.hasTrailingData = function() {
|
|
1134
|
+
return jspb.Message.getField(this, 13) != null;
|
|
1135
|
+
};
|
|
1136
|
+
|
|
1137
|
+
|
|
1138
|
+
/**
|
|
1139
|
+
* optional PriceType price_type = 14;
|
|
1140
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PriceType}
|
|
1141
|
+
*/
|
|
1142
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.getPriceType = function() {
|
|
1143
|
+
return /** @type {!proto.tinkoff.public.invest.api.contract.v1.PriceType} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
|
|
1144
|
+
};
|
|
1145
|
+
|
|
1146
|
+
|
|
1147
|
+
/**
|
|
1148
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.PriceType} value
|
|
1149
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest} returns this
|
|
1150
|
+
*/
|
|
1151
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.setPriceType = function(value) {
|
|
1152
|
+
return jspb.Message.setProto3EnumField(this, 14, value);
|
|
1153
|
+
};
|
|
1154
|
+
|
|
1155
|
+
|
|
1156
|
+
/**
|
|
1157
|
+
* optional string order_id = 15;
|
|
1158
|
+
* @return {string}
|
|
1159
|
+
*/
|
|
1160
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.getOrderId = function() {
|
|
1161
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
|
|
1162
|
+
};
|
|
1163
|
+
|
|
1164
|
+
|
|
1165
|
+
/**
|
|
1166
|
+
* @param {string} value
|
|
1167
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest} returns this
|
|
1168
|
+
*/
|
|
1169
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.setOrderId = function(value) {
|
|
1170
|
+
return jspb.Message.setProto3StringField(this, 15, value);
|
|
1171
|
+
};
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+
/**
|
|
1175
|
+
* optional bool confirm_margin_trade = 16;
|
|
1176
|
+
* @return {boolean}
|
|
1177
|
+
*/
|
|
1178
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.getConfirmMarginTrade = function() {
|
|
1179
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 16, false));
|
|
1180
|
+
};
|
|
1181
|
+
|
|
1182
|
+
|
|
1183
|
+
/**
|
|
1184
|
+
* @param {boolean} value
|
|
1185
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest} returns this
|
|
1186
|
+
*/
|
|
1187
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.setConfirmMarginTrade = function(value) {
|
|
1188
|
+
return jspb.Message.setProto3BooleanField(this, 16, value);
|
|
1189
|
+
};
|
|
1190
|
+
|
|
1191
|
+
|
|
1192
|
+
/**
|
|
1193
|
+
* optional bool instant_execution = 17;
|
|
1194
|
+
* @return {boolean}
|
|
1195
|
+
*/
|
|
1196
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.getInstantExecution = function() {
|
|
1197
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false));
|
|
1198
|
+
};
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
/**
|
|
1202
|
+
* @param {boolean} value
|
|
1203
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest} returns this
|
|
1204
|
+
*/
|
|
1205
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.setInstantExecution = function(value) {
|
|
1206
|
+
return jspb.Message.setField(this, 17, value);
|
|
1207
|
+
};
|
|
1208
|
+
|
|
1209
|
+
|
|
1210
|
+
/**
|
|
1211
|
+
* Clears the field making it undefined.
|
|
1212
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest} returns this
|
|
1213
|
+
*/
|
|
1214
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.clearInstantExecution = function() {
|
|
1215
|
+
return jspb.Message.setField(this, 17, undefined);
|
|
1216
|
+
};
|
|
1217
|
+
|
|
1218
|
+
|
|
1219
|
+
/**
|
|
1220
|
+
* Returns whether this field is set.
|
|
1221
|
+
* @return {boolean}
|
|
1222
|
+
*/
|
|
1223
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderRequest.prototype.hasInstantExecution = function() {
|
|
1224
|
+
return jspb.Message.getField(this, 17) != null;
|
|
1225
|
+
};
|
|
1226
|
+
|
|
1227
|
+
|
|
1228
|
+
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1232
|
+
/**
|
|
1233
|
+
* Creates an object representation of this proto.
|
|
1234
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1235
|
+
* Optional fields that are not set will be set to undefined.
|
|
1236
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1237
|
+
* For the list of reserved names please see:
|
|
1238
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1239
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1240
|
+
* JSPB instance for transitional soy proto support:
|
|
1241
|
+
* http://goto/soy-param-migration
|
|
1242
|
+
* @return {!Object}
|
|
1243
|
+
*/
|
|
1244
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1245
|
+
return proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse.toObject(opt_includeInstance, this);
|
|
1246
|
+
};
|
|
1247
|
+
|
|
1248
|
+
|
|
1249
|
+
/**
|
|
1250
|
+
* Static version of the {@see toObject} method.
|
|
1251
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1252
|
+
* the JSPB instance for transitional soy proto support:
|
|
1253
|
+
* http://goto/soy-param-migration
|
|
1254
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse} msg The msg instance to transform.
|
|
1255
|
+
* @return {!Object}
|
|
1256
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1257
|
+
*/
|
|
1258
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse.toObject = function(includeInstance, msg) {
|
|
1259
|
+
var f, obj = {
|
|
1260
|
+
stopOrderId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1261
|
+
orderRequestId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1262
|
+
responseMetadata: (f = msg.getResponseMetadata()) && tinvest_common_pb.ResponseMetadata.toObject(includeInstance, f)
|
|
1263
|
+
};
|
|
1264
|
+
|
|
1265
|
+
if (includeInstance) {
|
|
1266
|
+
obj.$jspbMessageInstance = msg;
|
|
1267
|
+
}
|
|
1268
|
+
return obj;
|
|
1269
|
+
};
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
/**
|
|
1274
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1275
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1276
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse}
|
|
1277
|
+
*/
|
|
1278
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse.deserializeBinary = function(bytes) {
|
|
1279
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1280
|
+
var msg = new proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse;
|
|
1281
|
+
return proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse.deserializeBinaryFromReader(msg, reader);
|
|
1282
|
+
};
|
|
1283
|
+
|
|
1284
|
+
|
|
1285
|
+
/**
|
|
1286
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1287
|
+
* given reader into the given message object.
|
|
1288
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse} msg The message object to deserialize into.
|
|
1289
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1290
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse}
|
|
1291
|
+
*/
|
|
1292
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1293
|
+
while (reader.nextField()) {
|
|
1294
|
+
if (reader.isEndGroup()) {
|
|
1295
|
+
break;
|
|
1296
|
+
}
|
|
1297
|
+
var field = reader.getFieldNumber();
|
|
1298
|
+
switch (field) {
|
|
1299
|
+
case 1:
|
|
1300
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1301
|
+
msg.setStopOrderId(value);
|
|
1302
|
+
break;
|
|
1303
|
+
case 2:
|
|
1304
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1305
|
+
msg.setOrderRequestId(value);
|
|
1306
|
+
break;
|
|
1307
|
+
case 254:
|
|
1308
|
+
var value = new tinvest_common_pb.ResponseMetadata;
|
|
1309
|
+
reader.readMessage(value,tinvest_common_pb.ResponseMetadata.deserializeBinaryFromReader);
|
|
1310
|
+
msg.setResponseMetadata(value);
|
|
1311
|
+
break;
|
|
1312
|
+
default:
|
|
1313
|
+
reader.skipField();
|
|
1314
|
+
break;
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
return msg;
|
|
1318
|
+
};
|
|
1319
|
+
|
|
1320
|
+
|
|
1321
|
+
/**
|
|
1322
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1323
|
+
* @return {!Uint8Array}
|
|
1324
|
+
*/
|
|
1325
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse.prototype.serializeBinary = function() {
|
|
1326
|
+
var writer = new jspb.BinaryWriter();
|
|
1327
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse.serializeBinaryToWriter(this, writer);
|
|
1328
|
+
return writer.getResultBuffer();
|
|
1329
|
+
};
|
|
1330
|
+
|
|
1331
|
+
|
|
1332
|
+
/**
|
|
1333
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1334
|
+
* format), writing to the given BinaryWriter.
|
|
1335
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse} message
|
|
1336
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1337
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1338
|
+
*/
|
|
1339
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1340
|
+
var f = undefined;
|
|
1341
|
+
f = message.getStopOrderId();
|
|
1342
|
+
if (f.length > 0) {
|
|
1343
|
+
writer.writeString(
|
|
1344
|
+
1,
|
|
1345
|
+
f
|
|
1346
|
+
);
|
|
1347
|
+
}
|
|
1348
|
+
f = message.getOrderRequestId();
|
|
1349
|
+
if (f.length > 0) {
|
|
1350
|
+
writer.writeString(
|
|
1351
|
+
2,
|
|
1352
|
+
f
|
|
1353
|
+
);
|
|
1354
|
+
}
|
|
1355
|
+
f = message.getResponseMetadata();
|
|
1356
|
+
if (f != null) {
|
|
1357
|
+
writer.writeMessage(
|
|
1358
|
+
254,
|
|
1359
|
+
f,
|
|
1360
|
+
tinvest_common_pb.ResponseMetadata.serializeBinaryToWriter
|
|
1361
|
+
);
|
|
1362
|
+
}
|
|
1363
|
+
};
|
|
1364
|
+
|
|
1365
|
+
|
|
1366
|
+
/**
|
|
1367
|
+
* optional string stop_order_id = 1;
|
|
1368
|
+
* @return {string}
|
|
1369
|
+
*/
|
|
1370
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse.prototype.getStopOrderId = function() {
|
|
1371
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1372
|
+
};
|
|
1373
|
+
|
|
1374
|
+
|
|
1375
|
+
/**
|
|
1376
|
+
* @param {string} value
|
|
1377
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse} returns this
|
|
1378
|
+
*/
|
|
1379
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse.prototype.setStopOrderId = function(value) {
|
|
1380
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1381
|
+
};
|
|
1382
|
+
|
|
1383
|
+
|
|
1384
|
+
/**
|
|
1385
|
+
* optional string order_request_id = 2;
|
|
1386
|
+
* @return {string}
|
|
1387
|
+
*/
|
|
1388
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse.prototype.getOrderRequestId = function() {
|
|
1389
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1390
|
+
};
|
|
1391
|
+
|
|
1392
|
+
|
|
1393
|
+
/**
|
|
1394
|
+
* @param {string} value
|
|
1395
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse} returns this
|
|
1396
|
+
*/
|
|
1397
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse.prototype.setOrderRequestId = function(value) {
|
|
1398
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1399
|
+
};
|
|
1400
|
+
|
|
1401
|
+
|
|
1402
|
+
/**
|
|
1403
|
+
* optional ResponseMetadata response_metadata = 254;
|
|
1404
|
+
* @return {?proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata}
|
|
1405
|
+
*/
|
|
1406
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse.prototype.getResponseMetadata = function() {
|
|
1407
|
+
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata} */ (
|
|
1408
|
+
jspb.Message.getWrapperField(this, tinvest_common_pb.ResponseMetadata, 254));
|
|
1409
|
+
};
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
/**
|
|
1413
|
+
* @param {?proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata|undefined} value
|
|
1414
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse} returns this
|
|
1415
|
+
*/
|
|
1416
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse.prototype.setResponseMetadata = function(value) {
|
|
1417
|
+
return jspb.Message.setWrapperField(this, 254, value);
|
|
1418
|
+
};
|
|
1419
|
+
|
|
1420
|
+
|
|
1421
|
+
/**
|
|
1422
|
+
* Clears the message field making it undefined.
|
|
1423
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse} returns this
|
|
1424
|
+
*/
|
|
1425
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse.prototype.clearResponseMetadata = function() {
|
|
1426
|
+
return this.setResponseMetadata(undefined);
|
|
1427
|
+
};
|
|
1428
|
+
|
|
1429
|
+
|
|
1430
|
+
/**
|
|
1431
|
+
* Returns whether this field is set.
|
|
1432
|
+
* @return {boolean}
|
|
1433
|
+
*/
|
|
1434
|
+
proto.tinkoff.public.invest.api.contract.v1.PostStopOrderResponse.prototype.hasResponseMetadata = function() {
|
|
1435
|
+
return jspb.Message.getField(this, 254) != null;
|
|
1436
|
+
};
|
|
1437
|
+
|
|
1438
|
+
|
|
1439
|
+
|
|
1440
|
+
|
|
1441
|
+
|
|
1442
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1443
|
+
/**
|
|
1444
|
+
* Creates an object representation of this proto.
|
|
1445
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1446
|
+
* Optional fields that are not set will be set to undefined.
|
|
1447
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1448
|
+
* For the list of reserved names please see:
|
|
1449
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1450
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1451
|
+
* JSPB instance for transitional soy proto support:
|
|
1452
|
+
* http://goto/soy-param-migration
|
|
1453
|
+
* @return {!Object}
|
|
1454
|
+
*/
|
|
1455
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1456
|
+
return proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest.toObject(opt_includeInstance, this);
|
|
1457
|
+
};
|
|
1458
|
+
|
|
1459
|
+
|
|
1460
|
+
/**
|
|
1461
|
+
* Static version of the {@see toObject} method.
|
|
1462
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1463
|
+
* the JSPB instance for transitional soy proto support:
|
|
1464
|
+
* http://goto/soy-param-migration
|
|
1465
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest} msg The msg instance to transform.
|
|
1466
|
+
* @return {!Object}
|
|
1467
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1468
|
+
*/
|
|
1469
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest.toObject = function(includeInstance, msg) {
|
|
1470
|
+
var f, obj = {
|
|
1471
|
+
accountId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1472
|
+
status: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
1473
|
+
from: (f = msg.getFrom()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
1474
|
+
to: (f = msg.getTo()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
1475
|
+
};
|
|
1476
|
+
|
|
1477
|
+
if (includeInstance) {
|
|
1478
|
+
obj.$jspbMessageInstance = msg;
|
|
1479
|
+
}
|
|
1480
|
+
return obj;
|
|
1481
|
+
};
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
|
|
1485
|
+
/**
|
|
1486
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1487
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1488
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest}
|
|
1489
|
+
*/
|
|
1490
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest.deserializeBinary = function(bytes) {
|
|
1491
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1492
|
+
var msg = new proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest;
|
|
1493
|
+
return proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest.deserializeBinaryFromReader(msg, reader);
|
|
1494
|
+
};
|
|
1495
|
+
|
|
1496
|
+
|
|
1497
|
+
/**
|
|
1498
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1499
|
+
* given reader into the given message object.
|
|
1500
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest} msg The message object to deserialize into.
|
|
1501
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1502
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest}
|
|
1503
|
+
*/
|
|
1504
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1505
|
+
while (reader.nextField()) {
|
|
1506
|
+
if (reader.isEndGroup()) {
|
|
1507
|
+
break;
|
|
1508
|
+
}
|
|
1509
|
+
var field = reader.getFieldNumber();
|
|
1510
|
+
switch (field) {
|
|
1511
|
+
case 1:
|
|
1512
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1513
|
+
msg.setAccountId(value);
|
|
1514
|
+
break;
|
|
1515
|
+
case 2:
|
|
1516
|
+
var value = /** @type {!proto.tinkoff.public.invest.api.contract.v1.StopOrderStatusOption} */ (reader.readEnum());
|
|
1517
|
+
msg.setStatus(value);
|
|
1518
|
+
break;
|
|
1519
|
+
case 3:
|
|
1520
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
1521
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
1522
|
+
msg.setFrom(value);
|
|
1523
|
+
break;
|
|
1524
|
+
case 4:
|
|
1525
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
1526
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
1527
|
+
msg.setTo(value);
|
|
1528
|
+
break;
|
|
1529
|
+
default:
|
|
1530
|
+
reader.skipField();
|
|
1531
|
+
break;
|
|
1532
|
+
}
|
|
1533
|
+
}
|
|
1534
|
+
return msg;
|
|
1535
|
+
};
|
|
1536
|
+
|
|
1537
|
+
|
|
1538
|
+
/**
|
|
1539
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1540
|
+
* @return {!Uint8Array}
|
|
1541
|
+
*/
|
|
1542
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest.prototype.serializeBinary = function() {
|
|
1543
|
+
var writer = new jspb.BinaryWriter();
|
|
1544
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest.serializeBinaryToWriter(this, writer);
|
|
1545
|
+
return writer.getResultBuffer();
|
|
1546
|
+
};
|
|
1547
|
+
|
|
1548
|
+
|
|
1549
|
+
/**
|
|
1550
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1551
|
+
* format), writing to the given BinaryWriter.
|
|
1552
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest} message
|
|
1553
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1554
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1555
|
+
*/
|
|
1556
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1557
|
+
var f = undefined;
|
|
1558
|
+
f = message.getAccountId();
|
|
1559
|
+
if (f.length > 0) {
|
|
1560
|
+
writer.writeString(
|
|
1561
|
+
1,
|
|
1562
|
+
f
|
|
1563
|
+
);
|
|
1564
|
+
}
|
|
1565
|
+
f = message.getStatus();
|
|
1566
|
+
if (f !== 0.0) {
|
|
1567
|
+
writer.writeEnum(
|
|
1568
|
+
2,
|
|
1569
|
+
f
|
|
1570
|
+
);
|
|
1571
|
+
}
|
|
1572
|
+
f = message.getFrom();
|
|
1573
|
+
if (f != null) {
|
|
1574
|
+
writer.writeMessage(
|
|
1575
|
+
3,
|
|
1576
|
+
f,
|
|
1577
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
1578
|
+
);
|
|
1579
|
+
}
|
|
1580
|
+
f = message.getTo();
|
|
1581
|
+
if (f != null) {
|
|
1582
|
+
writer.writeMessage(
|
|
1583
|
+
4,
|
|
1584
|
+
f,
|
|
1585
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
1586
|
+
);
|
|
1587
|
+
}
|
|
1588
|
+
};
|
|
1589
|
+
|
|
1590
|
+
|
|
1591
|
+
/**
|
|
1592
|
+
* optional string account_id = 1;
|
|
1593
|
+
* @return {string}
|
|
1594
|
+
*/
|
|
1595
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest.prototype.getAccountId = function() {
|
|
1596
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1597
|
+
};
|
|
1598
|
+
|
|
1599
|
+
|
|
1600
|
+
/**
|
|
1601
|
+
* @param {string} value
|
|
1602
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest} returns this
|
|
1603
|
+
*/
|
|
1604
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest.prototype.setAccountId = function(value) {
|
|
1605
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1606
|
+
};
|
|
1607
|
+
|
|
1608
|
+
|
|
1609
|
+
/**
|
|
1610
|
+
* optional StopOrderStatusOption status = 2;
|
|
1611
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrderStatusOption}
|
|
1612
|
+
*/
|
|
1613
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest.prototype.getStatus = function() {
|
|
1614
|
+
return /** @type {!proto.tinkoff.public.invest.api.contract.v1.StopOrderStatusOption} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1615
|
+
};
|
|
1616
|
+
|
|
1617
|
+
|
|
1618
|
+
/**
|
|
1619
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.StopOrderStatusOption} value
|
|
1620
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest} returns this
|
|
1621
|
+
*/
|
|
1622
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest.prototype.setStatus = function(value) {
|
|
1623
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
1624
|
+
};
|
|
1625
|
+
|
|
1626
|
+
|
|
1627
|
+
/**
|
|
1628
|
+
* optional google.protobuf.Timestamp from = 3;
|
|
1629
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
1630
|
+
*/
|
|
1631
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest.prototype.getFrom = function() {
|
|
1632
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
1633
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
1634
|
+
};
|
|
1635
|
+
|
|
1636
|
+
|
|
1637
|
+
/**
|
|
1638
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
1639
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest} returns this
|
|
1640
|
+
*/
|
|
1641
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest.prototype.setFrom = function(value) {
|
|
1642
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
1643
|
+
};
|
|
1644
|
+
|
|
1645
|
+
|
|
1646
|
+
/**
|
|
1647
|
+
* Clears the message field making it undefined.
|
|
1648
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest} returns this
|
|
1649
|
+
*/
|
|
1650
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest.prototype.clearFrom = function() {
|
|
1651
|
+
return this.setFrom(undefined);
|
|
1652
|
+
};
|
|
1653
|
+
|
|
1654
|
+
|
|
1655
|
+
/**
|
|
1656
|
+
* Returns whether this field is set.
|
|
1657
|
+
* @return {boolean}
|
|
1658
|
+
*/
|
|
1659
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest.prototype.hasFrom = function() {
|
|
1660
|
+
return jspb.Message.getField(this, 3) != null;
|
|
1661
|
+
};
|
|
1662
|
+
|
|
1663
|
+
|
|
1664
|
+
/**
|
|
1665
|
+
* optional google.protobuf.Timestamp to = 4;
|
|
1666
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
1667
|
+
*/
|
|
1668
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest.prototype.getTo = function() {
|
|
1669
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
1670
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
|
|
1671
|
+
};
|
|
1672
|
+
|
|
1673
|
+
|
|
1674
|
+
/**
|
|
1675
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
1676
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest} returns this
|
|
1677
|
+
*/
|
|
1678
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest.prototype.setTo = function(value) {
|
|
1679
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
1680
|
+
};
|
|
1681
|
+
|
|
1682
|
+
|
|
1683
|
+
/**
|
|
1684
|
+
* Clears the message field making it undefined.
|
|
1685
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest} returns this
|
|
1686
|
+
*/
|
|
1687
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest.prototype.clearTo = function() {
|
|
1688
|
+
return this.setTo(undefined);
|
|
1689
|
+
};
|
|
1690
|
+
|
|
1691
|
+
|
|
1692
|
+
/**
|
|
1693
|
+
* Returns whether this field is set.
|
|
1694
|
+
* @return {boolean}
|
|
1695
|
+
*/
|
|
1696
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersRequest.prototype.hasTo = function() {
|
|
1697
|
+
return jspb.Message.getField(this, 4) != null;
|
|
1698
|
+
};
|
|
1699
|
+
|
|
1700
|
+
|
|
1701
|
+
|
|
1702
|
+
/**
|
|
1703
|
+
* List of repeated fields within this message type.
|
|
1704
|
+
* @private {!Array<number>}
|
|
1705
|
+
* @const
|
|
1706
|
+
*/
|
|
1707
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersResponse.repeatedFields_ = [1];
|
|
1708
|
+
|
|
1709
|
+
|
|
1710
|
+
|
|
1711
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1712
|
+
/**
|
|
1713
|
+
* Creates an object representation of this proto.
|
|
1714
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1715
|
+
* Optional fields that are not set will be set to undefined.
|
|
1716
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1717
|
+
* For the list of reserved names please see:
|
|
1718
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1719
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1720
|
+
* JSPB instance for transitional soy proto support:
|
|
1721
|
+
* http://goto/soy-param-migration
|
|
1722
|
+
* @return {!Object}
|
|
1723
|
+
*/
|
|
1724
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1725
|
+
return proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersResponse.toObject(opt_includeInstance, this);
|
|
1726
|
+
};
|
|
1727
|
+
|
|
1728
|
+
|
|
1729
|
+
/**
|
|
1730
|
+
* Static version of the {@see toObject} method.
|
|
1731
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1732
|
+
* the JSPB instance for transitional soy proto support:
|
|
1733
|
+
* http://goto/soy-param-migration
|
|
1734
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersResponse} msg The msg instance to transform.
|
|
1735
|
+
* @return {!Object}
|
|
1736
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1737
|
+
*/
|
|
1738
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersResponse.toObject = function(includeInstance, msg) {
|
|
1739
|
+
var f, obj = {
|
|
1740
|
+
stopOrdersList: jspb.Message.toObjectList(msg.getStopOrdersList(),
|
|
1741
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.toObject, includeInstance)
|
|
1742
|
+
};
|
|
1743
|
+
|
|
1744
|
+
if (includeInstance) {
|
|
1745
|
+
obj.$jspbMessageInstance = msg;
|
|
1746
|
+
}
|
|
1747
|
+
return obj;
|
|
1748
|
+
};
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
|
|
1752
|
+
/**
|
|
1753
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1754
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1755
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersResponse}
|
|
1756
|
+
*/
|
|
1757
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersResponse.deserializeBinary = function(bytes) {
|
|
1758
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1759
|
+
var msg = new proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersResponse;
|
|
1760
|
+
return proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersResponse.deserializeBinaryFromReader(msg, reader);
|
|
1761
|
+
};
|
|
1762
|
+
|
|
1763
|
+
|
|
1764
|
+
/**
|
|
1765
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1766
|
+
* given reader into the given message object.
|
|
1767
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersResponse} msg The message object to deserialize into.
|
|
1768
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1769
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersResponse}
|
|
1770
|
+
*/
|
|
1771
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1772
|
+
while (reader.nextField()) {
|
|
1773
|
+
if (reader.isEndGroup()) {
|
|
1774
|
+
break;
|
|
1775
|
+
}
|
|
1776
|
+
var field = reader.getFieldNumber();
|
|
1777
|
+
switch (field) {
|
|
1778
|
+
case 1:
|
|
1779
|
+
var value = new proto.tinkoff.public.invest.api.contract.v1.StopOrder;
|
|
1780
|
+
reader.readMessage(value,proto.tinkoff.public.invest.api.contract.v1.StopOrder.deserializeBinaryFromReader);
|
|
1781
|
+
msg.addStopOrders(value);
|
|
1782
|
+
break;
|
|
1783
|
+
default:
|
|
1784
|
+
reader.skipField();
|
|
1785
|
+
break;
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
return msg;
|
|
1789
|
+
};
|
|
1790
|
+
|
|
1791
|
+
|
|
1792
|
+
/**
|
|
1793
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1794
|
+
* @return {!Uint8Array}
|
|
1795
|
+
*/
|
|
1796
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersResponse.prototype.serializeBinary = function() {
|
|
1797
|
+
var writer = new jspb.BinaryWriter();
|
|
1798
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersResponse.serializeBinaryToWriter(this, writer);
|
|
1799
|
+
return writer.getResultBuffer();
|
|
1800
|
+
};
|
|
1801
|
+
|
|
1802
|
+
|
|
1803
|
+
/**
|
|
1804
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1805
|
+
* format), writing to the given BinaryWriter.
|
|
1806
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersResponse} message
|
|
1807
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1808
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1809
|
+
*/
|
|
1810
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1811
|
+
var f = undefined;
|
|
1812
|
+
f = message.getStopOrdersList();
|
|
1813
|
+
if (f.length > 0) {
|
|
1814
|
+
writer.writeRepeatedMessage(
|
|
1815
|
+
1,
|
|
1816
|
+
f,
|
|
1817
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.serializeBinaryToWriter
|
|
1818
|
+
);
|
|
1819
|
+
}
|
|
1820
|
+
};
|
|
1821
|
+
|
|
1822
|
+
|
|
1823
|
+
/**
|
|
1824
|
+
* repeated StopOrder stop_orders = 1;
|
|
1825
|
+
* @return {!Array<!proto.tinkoff.public.invest.api.contract.v1.StopOrder>}
|
|
1826
|
+
*/
|
|
1827
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersResponse.prototype.getStopOrdersList = function() {
|
|
1828
|
+
return /** @type{!Array<!proto.tinkoff.public.invest.api.contract.v1.StopOrder>} */ (
|
|
1829
|
+
jspb.Message.getRepeatedWrapperField(this, proto.tinkoff.public.invest.api.contract.v1.StopOrder, 1));
|
|
1830
|
+
};
|
|
1831
|
+
|
|
1832
|
+
|
|
1833
|
+
/**
|
|
1834
|
+
* @param {!Array<!proto.tinkoff.public.invest.api.contract.v1.StopOrder>} value
|
|
1835
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersResponse} returns this
|
|
1836
|
+
*/
|
|
1837
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersResponse.prototype.setStopOrdersList = function(value) {
|
|
1838
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
1839
|
+
};
|
|
1840
|
+
|
|
1841
|
+
|
|
1842
|
+
/**
|
|
1843
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.StopOrder=} opt_value
|
|
1844
|
+
* @param {number=} opt_index
|
|
1845
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder}
|
|
1846
|
+
*/
|
|
1847
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersResponse.prototype.addStopOrders = function(opt_value, opt_index) {
|
|
1848
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.tinkoff.public.invest.api.contract.v1.StopOrder, opt_index);
|
|
1849
|
+
};
|
|
1850
|
+
|
|
1851
|
+
|
|
1852
|
+
/**
|
|
1853
|
+
* Clears the list making it empty but non-null.
|
|
1854
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersResponse} returns this
|
|
1855
|
+
*/
|
|
1856
|
+
proto.tinkoff.public.invest.api.contract.v1.GetStopOrdersResponse.prototype.clearStopOrdersList = function() {
|
|
1857
|
+
return this.setStopOrdersList([]);
|
|
1858
|
+
};
|
|
1859
|
+
|
|
1860
|
+
|
|
1861
|
+
|
|
1862
|
+
|
|
1863
|
+
|
|
1864
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1865
|
+
/**
|
|
1866
|
+
* Creates an object representation of this proto.
|
|
1867
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1868
|
+
* Optional fields that are not set will be set to undefined.
|
|
1869
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1870
|
+
* For the list of reserved names please see:
|
|
1871
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1872
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1873
|
+
* JSPB instance for transitional soy proto support:
|
|
1874
|
+
* http://goto/soy-param-migration
|
|
1875
|
+
* @return {!Object}
|
|
1876
|
+
*/
|
|
1877
|
+
proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1878
|
+
return proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderRequest.toObject(opt_includeInstance, this);
|
|
1879
|
+
};
|
|
1880
|
+
|
|
1881
|
+
|
|
1882
|
+
/**
|
|
1883
|
+
* Static version of the {@see toObject} method.
|
|
1884
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1885
|
+
* the JSPB instance for transitional soy proto support:
|
|
1886
|
+
* http://goto/soy-param-migration
|
|
1887
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderRequest} msg The msg instance to transform.
|
|
1888
|
+
* @return {!Object}
|
|
1889
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1890
|
+
*/
|
|
1891
|
+
proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderRequest.toObject = function(includeInstance, msg) {
|
|
1892
|
+
var f, obj = {
|
|
1893
|
+
accountId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1894
|
+
stopOrderId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
1895
|
+
};
|
|
1896
|
+
|
|
1897
|
+
if (includeInstance) {
|
|
1898
|
+
obj.$jspbMessageInstance = msg;
|
|
1899
|
+
}
|
|
1900
|
+
return obj;
|
|
1901
|
+
};
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
|
|
1905
|
+
/**
|
|
1906
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1907
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1908
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderRequest}
|
|
1909
|
+
*/
|
|
1910
|
+
proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderRequest.deserializeBinary = function(bytes) {
|
|
1911
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1912
|
+
var msg = new proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderRequest;
|
|
1913
|
+
return proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderRequest.deserializeBinaryFromReader(msg, reader);
|
|
1914
|
+
};
|
|
1915
|
+
|
|
1916
|
+
|
|
1917
|
+
/**
|
|
1918
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1919
|
+
* given reader into the given message object.
|
|
1920
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderRequest} msg The message object to deserialize into.
|
|
1921
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1922
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderRequest}
|
|
1923
|
+
*/
|
|
1924
|
+
proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1925
|
+
while (reader.nextField()) {
|
|
1926
|
+
if (reader.isEndGroup()) {
|
|
1927
|
+
break;
|
|
1928
|
+
}
|
|
1929
|
+
var field = reader.getFieldNumber();
|
|
1930
|
+
switch (field) {
|
|
1931
|
+
case 1:
|
|
1932
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1933
|
+
msg.setAccountId(value);
|
|
1934
|
+
break;
|
|
1935
|
+
case 2:
|
|
1936
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1937
|
+
msg.setStopOrderId(value);
|
|
1938
|
+
break;
|
|
1939
|
+
default:
|
|
1940
|
+
reader.skipField();
|
|
1941
|
+
break;
|
|
1942
|
+
}
|
|
1943
|
+
}
|
|
1944
|
+
return msg;
|
|
1945
|
+
};
|
|
1946
|
+
|
|
1947
|
+
|
|
1948
|
+
/**
|
|
1949
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1950
|
+
* @return {!Uint8Array}
|
|
1951
|
+
*/
|
|
1952
|
+
proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderRequest.prototype.serializeBinary = function() {
|
|
1953
|
+
var writer = new jspb.BinaryWriter();
|
|
1954
|
+
proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderRequest.serializeBinaryToWriter(this, writer);
|
|
1955
|
+
return writer.getResultBuffer();
|
|
1956
|
+
};
|
|
1957
|
+
|
|
1958
|
+
|
|
1959
|
+
/**
|
|
1960
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1961
|
+
* format), writing to the given BinaryWriter.
|
|
1962
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderRequest} message
|
|
1963
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1964
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1965
|
+
*/
|
|
1966
|
+
proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1967
|
+
var f = undefined;
|
|
1968
|
+
f = message.getAccountId();
|
|
1969
|
+
if (f.length > 0) {
|
|
1970
|
+
writer.writeString(
|
|
1971
|
+
1,
|
|
1972
|
+
f
|
|
1973
|
+
);
|
|
1974
|
+
}
|
|
1975
|
+
f = message.getStopOrderId();
|
|
1976
|
+
if (f.length > 0) {
|
|
1977
|
+
writer.writeString(
|
|
1978
|
+
2,
|
|
1979
|
+
f
|
|
1980
|
+
);
|
|
1981
|
+
}
|
|
1982
|
+
};
|
|
1983
|
+
|
|
1984
|
+
|
|
1985
|
+
/**
|
|
1986
|
+
* optional string account_id = 1;
|
|
1987
|
+
* @return {string}
|
|
1988
|
+
*/
|
|
1989
|
+
proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderRequest.prototype.getAccountId = function() {
|
|
1990
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1991
|
+
};
|
|
1992
|
+
|
|
1993
|
+
|
|
1994
|
+
/**
|
|
1995
|
+
* @param {string} value
|
|
1996
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderRequest} returns this
|
|
1997
|
+
*/
|
|
1998
|
+
proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderRequest.prototype.setAccountId = function(value) {
|
|
1999
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2000
|
+
};
|
|
2001
|
+
|
|
2002
|
+
|
|
2003
|
+
/**
|
|
2004
|
+
* optional string stop_order_id = 2;
|
|
2005
|
+
* @return {string}
|
|
2006
|
+
*/
|
|
2007
|
+
proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderRequest.prototype.getStopOrderId = function() {
|
|
2008
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2009
|
+
};
|
|
2010
|
+
|
|
2011
|
+
|
|
2012
|
+
/**
|
|
2013
|
+
* @param {string} value
|
|
2014
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderRequest} returns this
|
|
2015
|
+
*/
|
|
2016
|
+
proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderRequest.prototype.setStopOrderId = function(value) {
|
|
2017
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
2018
|
+
};
|
|
2019
|
+
|
|
2020
|
+
|
|
2021
|
+
|
|
2022
|
+
|
|
2023
|
+
|
|
2024
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2025
|
+
/**
|
|
2026
|
+
* Creates an object representation of this proto.
|
|
2027
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2028
|
+
* Optional fields that are not set will be set to undefined.
|
|
2029
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2030
|
+
* For the list of reserved names please see:
|
|
2031
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2032
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2033
|
+
* JSPB instance for transitional soy proto support:
|
|
2034
|
+
* http://goto/soy-param-migration
|
|
2035
|
+
* @return {!Object}
|
|
2036
|
+
*/
|
|
2037
|
+
proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2038
|
+
return proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderResponse.toObject(opt_includeInstance, this);
|
|
2039
|
+
};
|
|
2040
|
+
|
|
2041
|
+
|
|
2042
|
+
/**
|
|
2043
|
+
* Static version of the {@see toObject} method.
|
|
2044
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2045
|
+
* the JSPB instance for transitional soy proto support:
|
|
2046
|
+
* http://goto/soy-param-migration
|
|
2047
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderResponse} msg The msg instance to transform.
|
|
2048
|
+
* @return {!Object}
|
|
2049
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2050
|
+
*/
|
|
2051
|
+
proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderResponse.toObject = function(includeInstance, msg) {
|
|
2052
|
+
var f, obj = {
|
|
2053
|
+
time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
2054
|
+
};
|
|
2055
|
+
|
|
2056
|
+
if (includeInstance) {
|
|
2057
|
+
obj.$jspbMessageInstance = msg;
|
|
2058
|
+
}
|
|
2059
|
+
return obj;
|
|
2060
|
+
};
|
|
2061
|
+
}
|
|
2062
|
+
|
|
2063
|
+
|
|
2064
|
+
/**
|
|
2065
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2066
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2067
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderResponse}
|
|
2068
|
+
*/
|
|
2069
|
+
proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderResponse.deserializeBinary = function(bytes) {
|
|
2070
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2071
|
+
var msg = new proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderResponse;
|
|
2072
|
+
return proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderResponse.deserializeBinaryFromReader(msg, reader);
|
|
2073
|
+
};
|
|
2074
|
+
|
|
2075
|
+
|
|
2076
|
+
/**
|
|
2077
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2078
|
+
* given reader into the given message object.
|
|
2079
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderResponse} msg The message object to deserialize into.
|
|
2080
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2081
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderResponse}
|
|
2082
|
+
*/
|
|
2083
|
+
proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2084
|
+
while (reader.nextField()) {
|
|
2085
|
+
if (reader.isEndGroup()) {
|
|
2086
|
+
break;
|
|
2087
|
+
}
|
|
2088
|
+
var field = reader.getFieldNumber();
|
|
2089
|
+
switch (field) {
|
|
2090
|
+
case 1:
|
|
2091
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
2092
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
2093
|
+
msg.setTime(value);
|
|
2094
|
+
break;
|
|
2095
|
+
default:
|
|
2096
|
+
reader.skipField();
|
|
2097
|
+
break;
|
|
2098
|
+
}
|
|
2099
|
+
}
|
|
2100
|
+
return msg;
|
|
2101
|
+
};
|
|
2102
|
+
|
|
2103
|
+
|
|
2104
|
+
/**
|
|
2105
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2106
|
+
* @return {!Uint8Array}
|
|
2107
|
+
*/
|
|
2108
|
+
proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderResponse.prototype.serializeBinary = function() {
|
|
2109
|
+
var writer = new jspb.BinaryWriter();
|
|
2110
|
+
proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderResponse.serializeBinaryToWriter(this, writer);
|
|
2111
|
+
return writer.getResultBuffer();
|
|
2112
|
+
};
|
|
2113
|
+
|
|
2114
|
+
|
|
2115
|
+
/**
|
|
2116
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2117
|
+
* format), writing to the given BinaryWriter.
|
|
2118
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderResponse} message
|
|
2119
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2120
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2121
|
+
*/
|
|
2122
|
+
proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2123
|
+
var f = undefined;
|
|
2124
|
+
f = message.getTime();
|
|
2125
|
+
if (f != null) {
|
|
2126
|
+
writer.writeMessage(
|
|
2127
|
+
1,
|
|
2128
|
+
f,
|
|
2129
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
2130
|
+
);
|
|
2131
|
+
}
|
|
2132
|
+
};
|
|
2133
|
+
|
|
2134
|
+
|
|
2135
|
+
/**
|
|
2136
|
+
* optional google.protobuf.Timestamp time = 1;
|
|
2137
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
2138
|
+
*/
|
|
2139
|
+
proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderResponse.prototype.getTime = function() {
|
|
2140
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
2141
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
|
|
2142
|
+
};
|
|
2143
|
+
|
|
2144
|
+
|
|
2145
|
+
/**
|
|
2146
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
2147
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderResponse} returns this
|
|
2148
|
+
*/
|
|
2149
|
+
proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderResponse.prototype.setTime = function(value) {
|
|
2150
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
2151
|
+
};
|
|
2152
|
+
|
|
2153
|
+
|
|
2154
|
+
/**
|
|
2155
|
+
* Clears the message field making it undefined.
|
|
2156
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderResponse} returns this
|
|
2157
|
+
*/
|
|
2158
|
+
proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderResponse.prototype.clearTime = function() {
|
|
2159
|
+
return this.setTime(undefined);
|
|
2160
|
+
};
|
|
2161
|
+
|
|
2162
|
+
|
|
2163
|
+
/**
|
|
2164
|
+
* Returns whether this field is set.
|
|
2165
|
+
* @return {boolean}
|
|
2166
|
+
*/
|
|
2167
|
+
proto.tinkoff.public.invest.api.contract.v1.CancelStopOrderResponse.prototype.hasTime = function() {
|
|
2168
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2169
|
+
};
|
|
2170
|
+
|
|
2171
|
+
|
|
2172
|
+
|
|
2173
|
+
|
|
2174
|
+
|
|
2175
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2176
|
+
/**
|
|
2177
|
+
* Creates an object representation of this proto.
|
|
2178
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2179
|
+
* Optional fields that are not set will be set to undefined.
|
|
2180
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2181
|
+
* For the list of reserved names please see:
|
|
2182
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2183
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2184
|
+
* JSPB instance for transitional soy proto support:
|
|
2185
|
+
* http://goto/soy-param-migration
|
|
2186
|
+
* @return {!Object}
|
|
2187
|
+
*/
|
|
2188
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.toObject = function(opt_includeInstance) {
|
|
2189
|
+
return proto.tinkoff.public.invest.api.contract.v1.StopOrder.toObject(opt_includeInstance, this);
|
|
2190
|
+
};
|
|
2191
|
+
|
|
2192
|
+
|
|
2193
|
+
/**
|
|
2194
|
+
* Static version of the {@see toObject} method.
|
|
2195
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2196
|
+
* the JSPB instance for transitional soy proto support:
|
|
2197
|
+
* http://goto/soy-param-migration
|
|
2198
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} msg The msg instance to transform.
|
|
2199
|
+
* @return {!Object}
|
|
2200
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2201
|
+
*/
|
|
2202
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.toObject = function(includeInstance, msg) {
|
|
2203
|
+
var f, obj = {
|
|
2204
|
+
stopOrderId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2205
|
+
lotsRequested: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
2206
|
+
figi: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
2207
|
+
direction: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
2208
|
+
currency: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
2209
|
+
orderType: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
2210
|
+
createDate: (f = msg.getCreateDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
2211
|
+
activationDateTime: (f = msg.getActivationDateTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
2212
|
+
expirationTime: (f = msg.getExpirationTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
2213
|
+
price: (f = msg.getPrice()) && tinvest_common_pb.MoneyValue.toObject(includeInstance, f),
|
|
2214
|
+
stopPrice: (f = msg.getStopPrice()) && tinvest_common_pb.MoneyValue.toObject(includeInstance, f),
|
|
2215
|
+
instrumentUid: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
2216
|
+
takeProfitType: jspb.Message.getFieldWithDefault(msg, 13, 0),
|
|
2217
|
+
trailingData: (f = msg.getTrailingData()) && proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.toObject(includeInstance, f),
|
|
2218
|
+
status: jspb.Message.getFieldWithDefault(msg, 15, 0),
|
|
2219
|
+
exchangeOrderType: jspb.Message.getFieldWithDefault(msg, 16, 0),
|
|
2220
|
+
exchangeOrderId: (f = jspb.Message.getField(msg, 17)) == null ? undefined : f,
|
|
2221
|
+
ticker: jspb.Message.getFieldWithDefault(msg, 18, ""),
|
|
2222
|
+
classCode: jspb.Message.getFieldWithDefault(msg, 19, ""),
|
|
2223
|
+
instantExecution: jspb.Message.getBooleanFieldWithDefault(msg, 20, false)
|
|
2224
|
+
};
|
|
2225
|
+
|
|
2226
|
+
if (includeInstance) {
|
|
2227
|
+
obj.$jspbMessageInstance = msg;
|
|
2228
|
+
}
|
|
2229
|
+
return obj;
|
|
2230
|
+
};
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
|
|
2234
|
+
/**
|
|
2235
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2236
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2237
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder}
|
|
2238
|
+
*/
|
|
2239
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.deserializeBinary = function(bytes) {
|
|
2240
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2241
|
+
var msg = new proto.tinkoff.public.invest.api.contract.v1.StopOrder;
|
|
2242
|
+
return proto.tinkoff.public.invest.api.contract.v1.StopOrder.deserializeBinaryFromReader(msg, reader);
|
|
2243
|
+
};
|
|
2244
|
+
|
|
2245
|
+
|
|
2246
|
+
/**
|
|
2247
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2248
|
+
* given reader into the given message object.
|
|
2249
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} msg The message object to deserialize into.
|
|
2250
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2251
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder}
|
|
2252
|
+
*/
|
|
2253
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.deserializeBinaryFromReader = function(msg, reader) {
|
|
2254
|
+
while (reader.nextField()) {
|
|
2255
|
+
if (reader.isEndGroup()) {
|
|
2256
|
+
break;
|
|
2257
|
+
}
|
|
2258
|
+
var field = reader.getFieldNumber();
|
|
2259
|
+
switch (field) {
|
|
2260
|
+
case 1:
|
|
2261
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2262
|
+
msg.setStopOrderId(value);
|
|
2263
|
+
break;
|
|
2264
|
+
case 2:
|
|
2265
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
2266
|
+
msg.setLotsRequested(value);
|
|
2267
|
+
break;
|
|
2268
|
+
case 3:
|
|
2269
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2270
|
+
msg.setFigi(value);
|
|
2271
|
+
break;
|
|
2272
|
+
case 4:
|
|
2273
|
+
var value = /** @type {!proto.tinkoff.public.invest.api.contract.v1.StopOrderDirection} */ (reader.readEnum());
|
|
2274
|
+
msg.setDirection(value);
|
|
2275
|
+
break;
|
|
2276
|
+
case 5:
|
|
2277
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2278
|
+
msg.setCurrency(value);
|
|
2279
|
+
break;
|
|
2280
|
+
case 6:
|
|
2281
|
+
var value = /** @type {!proto.tinkoff.public.invest.api.contract.v1.StopOrderType} */ (reader.readEnum());
|
|
2282
|
+
msg.setOrderType(value);
|
|
2283
|
+
break;
|
|
2284
|
+
case 7:
|
|
2285
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
2286
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
2287
|
+
msg.setCreateDate(value);
|
|
2288
|
+
break;
|
|
2289
|
+
case 8:
|
|
2290
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
2291
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
2292
|
+
msg.setActivationDateTime(value);
|
|
2293
|
+
break;
|
|
2294
|
+
case 9:
|
|
2295
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
2296
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
2297
|
+
msg.setExpirationTime(value);
|
|
2298
|
+
break;
|
|
2299
|
+
case 10:
|
|
2300
|
+
var value = new tinvest_common_pb.MoneyValue;
|
|
2301
|
+
reader.readMessage(value,tinvest_common_pb.MoneyValue.deserializeBinaryFromReader);
|
|
2302
|
+
msg.setPrice(value);
|
|
2303
|
+
break;
|
|
2304
|
+
case 11:
|
|
2305
|
+
var value = new tinvest_common_pb.MoneyValue;
|
|
2306
|
+
reader.readMessage(value,tinvest_common_pb.MoneyValue.deserializeBinaryFromReader);
|
|
2307
|
+
msg.setStopPrice(value);
|
|
2308
|
+
break;
|
|
2309
|
+
case 12:
|
|
2310
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2311
|
+
msg.setInstrumentUid(value);
|
|
2312
|
+
break;
|
|
2313
|
+
case 13:
|
|
2314
|
+
var value = /** @type {!proto.tinkoff.public.invest.api.contract.v1.TakeProfitType} */ (reader.readEnum());
|
|
2315
|
+
msg.setTakeProfitType(value);
|
|
2316
|
+
break;
|
|
2317
|
+
case 14:
|
|
2318
|
+
var value = new proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData;
|
|
2319
|
+
reader.readMessage(value,proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.deserializeBinaryFromReader);
|
|
2320
|
+
msg.setTrailingData(value);
|
|
2321
|
+
break;
|
|
2322
|
+
case 15:
|
|
2323
|
+
var value = /** @type {!proto.tinkoff.public.invest.api.contract.v1.StopOrderStatusOption} */ (reader.readEnum());
|
|
2324
|
+
msg.setStatus(value);
|
|
2325
|
+
break;
|
|
2326
|
+
case 16:
|
|
2327
|
+
var value = /** @type {!proto.tinkoff.public.invest.api.contract.v1.ExchangeOrderType} */ (reader.readEnum());
|
|
2328
|
+
msg.setExchangeOrderType(value);
|
|
2329
|
+
break;
|
|
2330
|
+
case 17:
|
|
2331
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2332
|
+
msg.setExchangeOrderId(value);
|
|
2333
|
+
break;
|
|
2334
|
+
case 18:
|
|
2335
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2336
|
+
msg.setTicker(value);
|
|
2337
|
+
break;
|
|
2338
|
+
case 19:
|
|
2339
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2340
|
+
msg.setClassCode(value);
|
|
2341
|
+
break;
|
|
2342
|
+
case 20:
|
|
2343
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
2344
|
+
msg.setInstantExecution(value);
|
|
2345
|
+
break;
|
|
2346
|
+
default:
|
|
2347
|
+
reader.skipField();
|
|
2348
|
+
break;
|
|
2349
|
+
}
|
|
2350
|
+
}
|
|
2351
|
+
return msg;
|
|
2352
|
+
};
|
|
2353
|
+
|
|
2354
|
+
|
|
2355
|
+
/**
|
|
2356
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2357
|
+
* @return {!Uint8Array}
|
|
2358
|
+
*/
|
|
2359
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.serializeBinary = function() {
|
|
2360
|
+
var writer = new jspb.BinaryWriter();
|
|
2361
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.serializeBinaryToWriter(this, writer);
|
|
2362
|
+
return writer.getResultBuffer();
|
|
2363
|
+
};
|
|
2364
|
+
|
|
2365
|
+
|
|
2366
|
+
/**
|
|
2367
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2368
|
+
* format), writing to the given BinaryWriter.
|
|
2369
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} message
|
|
2370
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2371
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2372
|
+
*/
|
|
2373
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.serializeBinaryToWriter = function(message, writer) {
|
|
2374
|
+
var f = undefined;
|
|
2375
|
+
f = message.getStopOrderId();
|
|
2376
|
+
if (f.length > 0) {
|
|
2377
|
+
writer.writeString(
|
|
2378
|
+
1,
|
|
2379
|
+
f
|
|
2380
|
+
);
|
|
2381
|
+
}
|
|
2382
|
+
f = message.getLotsRequested();
|
|
2383
|
+
if (f !== 0) {
|
|
2384
|
+
writer.writeInt64(
|
|
2385
|
+
2,
|
|
2386
|
+
f
|
|
2387
|
+
);
|
|
2388
|
+
}
|
|
2389
|
+
f = message.getFigi();
|
|
2390
|
+
if (f.length > 0) {
|
|
2391
|
+
writer.writeString(
|
|
2392
|
+
3,
|
|
2393
|
+
f
|
|
2394
|
+
);
|
|
2395
|
+
}
|
|
2396
|
+
f = message.getDirection();
|
|
2397
|
+
if (f !== 0.0) {
|
|
2398
|
+
writer.writeEnum(
|
|
2399
|
+
4,
|
|
2400
|
+
f
|
|
2401
|
+
);
|
|
2402
|
+
}
|
|
2403
|
+
f = message.getCurrency();
|
|
2404
|
+
if (f.length > 0) {
|
|
2405
|
+
writer.writeString(
|
|
2406
|
+
5,
|
|
2407
|
+
f
|
|
2408
|
+
);
|
|
2409
|
+
}
|
|
2410
|
+
f = message.getOrderType();
|
|
2411
|
+
if (f !== 0.0) {
|
|
2412
|
+
writer.writeEnum(
|
|
2413
|
+
6,
|
|
2414
|
+
f
|
|
2415
|
+
);
|
|
2416
|
+
}
|
|
2417
|
+
f = message.getCreateDate();
|
|
2418
|
+
if (f != null) {
|
|
2419
|
+
writer.writeMessage(
|
|
2420
|
+
7,
|
|
2421
|
+
f,
|
|
2422
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
2423
|
+
);
|
|
2424
|
+
}
|
|
2425
|
+
f = message.getActivationDateTime();
|
|
2426
|
+
if (f != null) {
|
|
2427
|
+
writer.writeMessage(
|
|
2428
|
+
8,
|
|
2429
|
+
f,
|
|
2430
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
2431
|
+
);
|
|
2432
|
+
}
|
|
2433
|
+
f = message.getExpirationTime();
|
|
2434
|
+
if (f != null) {
|
|
2435
|
+
writer.writeMessage(
|
|
2436
|
+
9,
|
|
2437
|
+
f,
|
|
2438
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
2439
|
+
);
|
|
2440
|
+
}
|
|
2441
|
+
f = message.getPrice();
|
|
2442
|
+
if (f != null) {
|
|
2443
|
+
writer.writeMessage(
|
|
2444
|
+
10,
|
|
2445
|
+
f,
|
|
2446
|
+
tinvest_common_pb.MoneyValue.serializeBinaryToWriter
|
|
2447
|
+
);
|
|
2448
|
+
}
|
|
2449
|
+
f = message.getStopPrice();
|
|
2450
|
+
if (f != null) {
|
|
2451
|
+
writer.writeMessage(
|
|
2452
|
+
11,
|
|
2453
|
+
f,
|
|
2454
|
+
tinvest_common_pb.MoneyValue.serializeBinaryToWriter
|
|
2455
|
+
);
|
|
2456
|
+
}
|
|
2457
|
+
f = message.getInstrumentUid();
|
|
2458
|
+
if (f.length > 0) {
|
|
2459
|
+
writer.writeString(
|
|
2460
|
+
12,
|
|
2461
|
+
f
|
|
2462
|
+
);
|
|
2463
|
+
}
|
|
2464
|
+
f = message.getTakeProfitType();
|
|
2465
|
+
if (f !== 0.0) {
|
|
2466
|
+
writer.writeEnum(
|
|
2467
|
+
13,
|
|
2468
|
+
f
|
|
2469
|
+
);
|
|
2470
|
+
}
|
|
2471
|
+
f = message.getTrailingData();
|
|
2472
|
+
if (f != null) {
|
|
2473
|
+
writer.writeMessage(
|
|
2474
|
+
14,
|
|
2475
|
+
f,
|
|
2476
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.serializeBinaryToWriter
|
|
2477
|
+
);
|
|
2478
|
+
}
|
|
2479
|
+
f = message.getStatus();
|
|
2480
|
+
if (f !== 0.0) {
|
|
2481
|
+
writer.writeEnum(
|
|
2482
|
+
15,
|
|
2483
|
+
f
|
|
2484
|
+
);
|
|
2485
|
+
}
|
|
2486
|
+
f = message.getExchangeOrderType();
|
|
2487
|
+
if (f !== 0.0) {
|
|
2488
|
+
writer.writeEnum(
|
|
2489
|
+
16,
|
|
2490
|
+
f
|
|
2491
|
+
);
|
|
2492
|
+
}
|
|
2493
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 17));
|
|
2494
|
+
if (f != null) {
|
|
2495
|
+
writer.writeString(
|
|
2496
|
+
17,
|
|
2497
|
+
f
|
|
2498
|
+
);
|
|
2499
|
+
}
|
|
2500
|
+
f = message.getTicker();
|
|
2501
|
+
if (f.length > 0) {
|
|
2502
|
+
writer.writeString(
|
|
2503
|
+
18,
|
|
2504
|
+
f
|
|
2505
|
+
);
|
|
2506
|
+
}
|
|
2507
|
+
f = message.getClassCode();
|
|
2508
|
+
if (f.length > 0) {
|
|
2509
|
+
writer.writeString(
|
|
2510
|
+
19,
|
|
2511
|
+
f
|
|
2512
|
+
);
|
|
2513
|
+
}
|
|
2514
|
+
f = message.getInstantExecution();
|
|
2515
|
+
if (f) {
|
|
2516
|
+
writer.writeBool(
|
|
2517
|
+
20,
|
|
2518
|
+
f
|
|
2519
|
+
);
|
|
2520
|
+
}
|
|
2521
|
+
};
|
|
2522
|
+
|
|
2523
|
+
|
|
2524
|
+
|
|
2525
|
+
|
|
2526
|
+
|
|
2527
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2528
|
+
/**
|
|
2529
|
+
* Creates an object representation of this proto.
|
|
2530
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2531
|
+
* Optional fields that are not set will be set to undefined.
|
|
2532
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2533
|
+
* For the list of reserved names please see:
|
|
2534
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2535
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2536
|
+
* JSPB instance for transitional soy proto support:
|
|
2537
|
+
* http://goto/soy-param-migration
|
|
2538
|
+
* @return {!Object}
|
|
2539
|
+
*/
|
|
2540
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.toObject = function(opt_includeInstance) {
|
|
2541
|
+
return proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.toObject(opt_includeInstance, this);
|
|
2542
|
+
};
|
|
2543
|
+
|
|
2544
|
+
|
|
2545
|
+
/**
|
|
2546
|
+
* Static version of the {@see toObject} method.
|
|
2547
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2548
|
+
* the JSPB instance for transitional soy proto support:
|
|
2549
|
+
* http://goto/soy-param-migration
|
|
2550
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData} msg The msg instance to transform.
|
|
2551
|
+
* @return {!Object}
|
|
2552
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2553
|
+
*/
|
|
2554
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.toObject = function(includeInstance, msg) {
|
|
2555
|
+
var f, obj = {
|
|
2556
|
+
indent: (f = msg.getIndent()) && tinvest_common_pb.Quotation.toObject(includeInstance, f),
|
|
2557
|
+
indentType: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
2558
|
+
spread: (f = msg.getSpread()) && tinvest_common_pb.Quotation.toObject(includeInstance, f),
|
|
2559
|
+
spreadType: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
2560
|
+
status: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
2561
|
+
price: (f = msg.getPrice()) && tinvest_common_pb.Quotation.toObject(includeInstance, f),
|
|
2562
|
+
extr: (f = msg.getExtr()) && tinvest_common_pb.Quotation.toObject(includeInstance, f)
|
|
2563
|
+
};
|
|
2564
|
+
|
|
2565
|
+
if (includeInstance) {
|
|
2566
|
+
obj.$jspbMessageInstance = msg;
|
|
2567
|
+
}
|
|
2568
|
+
return obj;
|
|
2569
|
+
};
|
|
2570
|
+
}
|
|
2571
|
+
|
|
2572
|
+
|
|
2573
|
+
/**
|
|
2574
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2575
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2576
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData}
|
|
2577
|
+
*/
|
|
2578
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.deserializeBinary = function(bytes) {
|
|
2579
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2580
|
+
var msg = new proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData;
|
|
2581
|
+
return proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.deserializeBinaryFromReader(msg, reader);
|
|
2582
|
+
};
|
|
2583
|
+
|
|
2584
|
+
|
|
2585
|
+
/**
|
|
2586
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2587
|
+
* given reader into the given message object.
|
|
2588
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData} msg The message object to deserialize into.
|
|
2589
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2590
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData}
|
|
2591
|
+
*/
|
|
2592
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.deserializeBinaryFromReader = function(msg, reader) {
|
|
2593
|
+
while (reader.nextField()) {
|
|
2594
|
+
if (reader.isEndGroup()) {
|
|
2595
|
+
break;
|
|
2596
|
+
}
|
|
2597
|
+
var field = reader.getFieldNumber();
|
|
2598
|
+
switch (field) {
|
|
2599
|
+
case 1:
|
|
2600
|
+
var value = new tinvest_common_pb.Quotation;
|
|
2601
|
+
reader.readMessage(value,tinvest_common_pb.Quotation.deserializeBinaryFromReader);
|
|
2602
|
+
msg.setIndent(value);
|
|
2603
|
+
break;
|
|
2604
|
+
case 2:
|
|
2605
|
+
var value = /** @type {!proto.tinkoff.public.invest.api.contract.v1.TrailingValueType} */ (reader.readEnum());
|
|
2606
|
+
msg.setIndentType(value);
|
|
2607
|
+
break;
|
|
2608
|
+
case 3:
|
|
2609
|
+
var value = new tinvest_common_pb.Quotation;
|
|
2610
|
+
reader.readMessage(value,tinvest_common_pb.Quotation.deserializeBinaryFromReader);
|
|
2611
|
+
msg.setSpread(value);
|
|
2612
|
+
break;
|
|
2613
|
+
case 4:
|
|
2614
|
+
var value = /** @type {!proto.tinkoff.public.invest.api.contract.v1.TrailingValueType} */ (reader.readEnum());
|
|
2615
|
+
msg.setSpreadType(value);
|
|
2616
|
+
break;
|
|
2617
|
+
case 5:
|
|
2618
|
+
var value = /** @type {!proto.tinkoff.public.invest.api.contract.v1.TrailingStopStatus} */ (reader.readEnum());
|
|
2619
|
+
msg.setStatus(value);
|
|
2620
|
+
break;
|
|
2621
|
+
case 7:
|
|
2622
|
+
var value = new tinvest_common_pb.Quotation;
|
|
2623
|
+
reader.readMessage(value,tinvest_common_pb.Quotation.deserializeBinaryFromReader);
|
|
2624
|
+
msg.setPrice(value);
|
|
2625
|
+
break;
|
|
2626
|
+
case 8:
|
|
2627
|
+
var value = new tinvest_common_pb.Quotation;
|
|
2628
|
+
reader.readMessage(value,tinvest_common_pb.Quotation.deserializeBinaryFromReader);
|
|
2629
|
+
msg.setExtr(value);
|
|
2630
|
+
break;
|
|
2631
|
+
default:
|
|
2632
|
+
reader.skipField();
|
|
2633
|
+
break;
|
|
2634
|
+
}
|
|
2635
|
+
}
|
|
2636
|
+
return msg;
|
|
2637
|
+
};
|
|
2638
|
+
|
|
2639
|
+
|
|
2640
|
+
/**
|
|
2641
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2642
|
+
* @return {!Uint8Array}
|
|
2643
|
+
*/
|
|
2644
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.serializeBinary = function() {
|
|
2645
|
+
var writer = new jspb.BinaryWriter();
|
|
2646
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.serializeBinaryToWriter(this, writer);
|
|
2647
|
+
return writer.getResultBuffer();
|
|
2648
|
+
};
|
|
2649
|
+
|
|
2650
|
+
|
|
2651
|
+
/**
|
|
2652
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2653
|
+
* format), writing to the given BinaryWriter.
|
|
2654
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData} message
|
|
2655
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2656
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2657
|
+
*/
|
|
2658
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.serializeBinaryToWriter = function(message, writer) {
|
|
2659
|
+
var f = undefined;
|
|
2660
|
+
f = message.getIndent();
|
|
2661
|
+
if (f != null) {
|
|
2662
|
+
writer.writeMessage(
|
|
2663
|
+
1,
|
|
2664
|
+
f,
|
|
2665
|
+
tinvest_common_pb.Quotation.serializeBinaryToWriter
|
|
2666
|
+
);
|
|
2667
|
+
}
|
|
2668
|
+
f = message.getIndentType();
|
|
2669
|
+
if (f !== 0.0) {
|
|
2670
|
+
writer.writeEnum(
|
|
2671
|
+
2,
|
|
2672
|
+
f
|
|
2673
|
+
);
|
|
2674
|
+
}
|
|
2675
|
+
f = message.getSpread();
|
|
2676
|
+
if (f != null) {
|
|
2677
|
+
writer.writeMessage(
|
|
2678
|
+
3,
|
|
2679
|
+
f,
|
|
2680
|
+
tinvest_common_pb.Quotation.serializeBinaryToWriter
|
|
2681
|
+
);
|
|
2682
|
+
}
|
|
2683
|
+
f = message.getSpreadType();
|
|
2684
|
+
if (f !== 0.0) {
|
|
2685
|
+
writer.writeEnum(
|
|
2686
|
+
4,
|
|
2687
|
+
f
|
|
2688
|
+
);
|
|
2689
|
+
}
|
|
2690
|
+
f = message.getStatus();
|
|
2691
|
+
if (f !== 0.0) {
|
|
2692
|
+
writer.writeEnum(
|
|
2693
|
+
5,
|
|
2694
|
+
f
|
|
2695
|
+
);
|
|
2696
|
+
}
|
|
2697
|
+
f = message.getPrice();
|
|
2698
|
+
if (f != null) {
|
|
2699
|
+
writer.writeMessage(
|
|
2700
|
+
7,
|
|
2701
|
+
f,
|
|
2702
|
+
tinvest_common_pb.Quotation.serializeBinaryToWriter
|
|
2703
|
+
);
|
|
2704
|
+
}
|
|
2705
|
+
f = message.getExtr();
|
|
2706
|
+
if (f != null) {
|
|
2707
|
+
writer.writeMessage(
|
|
2708
|
+
8,
|
|
2709
|
+
f,
|
|
2710
|
+
tinvest_common_pb.Quotation.serializeBinaryToWriter
|
|
2711
|
+
);
|
|
2712
|
+
}
|
|
2713
|
+
};
|
|
2714
|
+
|
|
2715
|
+
|
|
2716
|
+
/**
|
|
2717
|
+
* optional Quotation indent = 1;
|
|
2718
|
+
* @return {?proto.tinkoff.public.invest.api.contract.v1.Quotation}
|
|
2719
|
+
*/
|
|
2720
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.getIndent = function() {
|
|
2721
|
+
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Quotation} */ (
|
|
2722
|
+
jspb.Message.getWrapperField(this, tinvest_common_pb.Quotation, 1));
|
|
2723
|
+
};
|
|
2724
|
+
|
|
2725
|
+
|
|
2726
|
+
/**
|
|
2727
|
+
* @param {?proto.tinkoff.public.invest.api.contract.v1.Quotation|undefined} value
|
|
2728
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData} returns this
|
|
2729
|
+
*/
|
|
2730
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.setIndent = function(value) {
|
|
2731
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
2732
|
+
};
|
|
2733
|
+
|
|
2734
|
+
|
|
2735
|
+
/**
|
|
2736
|
+
* Clears the message field making it undefined.
|
|
2737
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData} returns this
|
|
2738
|
+
*/
|
|
2739
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.clearIndent = function() {
|
|
2740
|
+
return this.setIndent(undefined);
|
|
2741
|
+
};
|
|
2742
|
+
|
|
2743
|
+
|
|
2744
|
+
/**
|
|
2745
|
+
* Returns whether this field is set.
|
|
2746
|
+
* @return {boolean}
|
|
2747
|
+
*/
|
|
2748
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.hasIndent = function() {
|
|
2749
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2750
|
+
};
|
|
2751
|
+
|
|
2752
|
+
|
|
2753
|
+
/**
|
|
2754
|
+
* optional TrailingValueType indent_type = 2;
|
|
2755
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.TrailingValueType}
|
|
2756
|
+
*/
|
|
2757
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.getIndentType = function() {
|
|
2758
|
+
return /** @type {!proto.tinkoff.public.invest.api.contract.v1.TrailingValueType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
2759
|
+
};
|
|
2760
|
+
|
|
2761
|
+
|
|
2762
|
+
/**
|
|
2763
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.TrailingValueType} value
|
|
2764
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData} returns this
|
|
2765
|
+
*/
|
|
2766
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.setIndentType = function(value) {
|
|
2767
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
2768
|
+
};
|
|
2769
|
+
|
|
2770
|
+
|
|
2771
|
+
/**
|
|
2772
|
+
* optional Quotation spread = 3;
|
|
2773
|
+
* @return {?proto.tinkoff.public.invest.api.contract.v1.Quotation}
|
|
2774
|
+
*/
|
|
2775
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.getSpread = function() {
|
|
2776
|
+
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Quotation} */ (
|
|
2777
|
+
jspb.Message.getWrapperField(this, tinvest_common_pb.Quotation, 3));
|
|
2778
|
+
};
|
|
2779
|
+
|
|
2780
|
+
|
|
2781
|
+
/**
|
|
2782
|
+
* @param {?proto.tinkoff.public.invest.api.contract.v1.Quotation|undefined} value
|
|
2783
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData} returns this
|
|
2784
|
+
*/
|
|
2785
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.setSpread = function(value) {
|
|
2786
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
2787
|
+
};
|
|
2788
|
+
|
|
2789
|
+
|
|
2790
|
+
/**
|
|
2791
|
+
* Clears the message field making it undefined.
|
|
2792
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData} returns this
|
|
2793
|
+
*/
|
|
2794
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.clearSpread = function() {
|
|
2795
|
+
return this.setSpread(undefined);
|
|
2796
|
+
};
|
|
2797
|
+
|
|
2798
|
+
|
|
2799
|
+
/**
|
|
2800
|
+
* Returns whether this field is set.
|
|
2801
|
+
* @return {boolean}
|
|
2802
|
+
*/
|
|
2803
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.hasSpread = function() {
|
|
2804
|
+
return jspb.Message.getField(this, 3) != null;
|
|
2805
|
+
};
|
|
2806
|
+
|
|
2807
|
+
|
|
2808
|
+
/**
|
|
2809
|
+
* optional TrailingValueType spread_type = 4;
|
|
2810
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.TrailingValueType}
|
|
2811
|
+
*/
|
|
2812
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.getSpreadType = function() {
|
|
2813
|
+
return /** @type {!proto.tinkoff.public.invest.api.contract.v1.TrailingValueType} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
2814
|
+
};
|
|
2815
|
+
|
|
2816
|
+
|
|
2817
|
+
/**
|
|
2818
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.TrailingValueType} value
|
|
2819
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData} returns this
|
|
2820
|
+
*/
|
|
2821
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.setSpreadType = function(value) {
|
|
2822
|
+
return jspb.Message.setProto3EnumField(this, 4, value);
|
|
2823
|
+
};
|
|
2824
|
+
|
|
2825
|
+
|
|
2826
|
+
/**
|
|
2827
|
+
* optional TrailingStopStatus status = 5;
|
|
2828
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.TrailingStopStatus}
|
|
2829
|
+
*/
|
|
2830
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.getStatus = function() {
|
|
2831
|
+
return /** @type {!proto.tinkoff.public.invest.api.contract.v1.TrailingStopStatus} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
2832
|
+
};
|
|
2833
|
+
|
|
2834
|
+
|
|
2835
|
+
/**
|
|
2836
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.TrailingStopStatus} value
|
|
2837
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData} returns this
|
|
2838
|
+
*/
|
|
2839
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.setStatus = function(value) {
|
|
2840
|
+
return jspb.Message.setProto3EnumField(this, 5, value);
|
|
2841
|
+
};
|
|
2842
|
+
|
|
2843
|
+
|
|
2844
|
+
/**
|
|
2845
|
+
* optional Quotation price = 7;
|
|
2846
|
+
* @return {?proto.tinkoff.public.invest.api.contract.v1.Quotation}
|
|
2847
|
+
*/
|
|
2848
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.getPrice = function() {
|
|
2849
|
+
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Quotation} */ (
|
|
2850
|
+
jspb.Message.getWrapperField(this, tinvest_common_pb.Quotation, 7));
|
|
2851
|
+
};
|
|
2852
|
+
|
|
2853
|
+
|
|
2854
|
+
/**
|
|
2855
|
+
* @param {?proto.tinkoff.public.invest.api.contract.v1.Quotation|undefined} value
|
|
2856
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData} returns this
|
|
2857
|
+
*/
|
|
2858
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.setPrice = function(value) {
|
|
2859
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
2860
|
+
};
|
|
2861
|
+
|
|
2862
|
+
|
|
2863
|
+
/**
|
|
2864
|
+
* Clears the message field making it undefined.
|
|
2865
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData} returns this
|
|
2866
|
+
*/
|
|
2867
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.clearPrice = function() {
|
|
2868
|
+
return this.setPrice(undefined);
|
|
2869
|
+
};
|
|
2870
|
+
|
|
2871
|
+
|
|
2872
|
+
/**
|
|
2873
|
+
* Returns whether this field is set.
|
|
2874
|
+
* @return {boolean}
|
|
2875
|
+
*/
|
|
2876
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.hasPrice = function() {
|
|
2877
|
+
return jspb.Message.getField(this, 7) != null;
|
|
2878
|
+
};
|
|
2879
|
+
|
|
2880
|
+
|
|
2881
|
+
/**
|
|
2882
|
+
* optional Quotation extr = 8;
|
|
2883
|
+
* @return {?proto.tinkoff.public.invest.api.contract.v1.Quotation}
|
|
2884
|
+
*/
|
|
2885
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.getExtr = function() {
|
|
2886
|
+
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Quotation} */ (
|
|
2887
|
+
jspb.Message.getWrapperField(this, tinvest_common_pb.Quotation, 8));
|
|
2888
|
+
};
|
|
2889
|
+
|
|
2890
|
+
|
|
2891
|
+
/**
|
|
2892
|
+
* @param {?proto.tinkoff.public.invest.api.contract.v1.Quotation|undefined} value
|
|
2893
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData} returns this
|
|
2894
|
+
*/
|
|
2895
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.setExtr = function(value) {
|
|
2896
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
2897
|
+
};
|
|
2898
|
+
|
|
2899
|
+
|
|
2900
|
+
/**
|
|
2901
|
+
* Clears the message field making it undefined.
|
|
2902
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData} returns this
|
|
2903
|
+
*/
|
|
2904
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.clearExtr = function() {
|
|
2905
|
+
return this.setExtr(undefined);
|
|
2906
|
+
};
|
|
2907
|
+
|
|
2908
|
+
|
|
2909
|
+
/**
|
|
2910
|
+
* Returns whether this field is set.
|
|
2911
|
+
* @return {boolean}
|
|
2912
|
+
*/
|
|
2913
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData.prototype.hasExtr = function() {
|
|
2914
|
+
return jspb.Message.getField(this, 8) != null;
|
|
2915
|
+
};
|
|
2916
|
+
|
|
2917
|
+
|
|
2918
|
+
/**
|
|
2919
|
+
* optional string stop_order_id = 1;
|
|
2920
|
+
* @return {string}
|
|
2921
|
+
*/
|
|
2922
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.getStopOrderId = function() {
|
|
2923
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2924
|
+
};
|
|
2925
|
+
|
|
2926
|
+
|
|
2927
|
+
/**
|
|
2928
|
+
* @param {string} value
|
|
2929
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} returns this
|
|
2930
|
+
*/
|
|
2931
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.setStopOrderId = function(value) {
|
|
2932
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2933
|
+
};
|
|
2934
|
+
|
|
2935
|
+
|
|
2936
|
+
/**
|
|
2937
|
+
* optional int64 lots_requested = 2;
|
|
2938
|
+
* @return {number}
|
|
2939
|
+
*/
|
|
2940
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.getLotsRequested = function() {
|
|
2941
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
2942
|
+
};
|
|
2943
|
+
|
|
2944
|
+
|
|
2945
|
+
/**
|
|
2946
|
+
* @param {number} value
|
|
2947
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} returns this
|
|
2948
|
+
*/
|
|
2949
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.setLotsRequested = function(value) {
|
|
2950
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
2951
|
+
};
|
|
2952
|
+
|
|
2953
|
+
|
|
2954
|
+
/**
|
|
2955
|
+
* optional string figi = 3;
|
|
2956
|
+
* @return {string}
|
|
2957
|
+
*/
|
|
2958
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.getFigi = function() {
|
|
2959
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
2960
|
+
};
|
|
2961
|
+
|
|
2962
|
+
|
|
2963
|
+
/**
|
|
2964
|
+
* @param {string} value
|
|
2965
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} returns this
|
|
2966
|
+
*/
|
|
2967
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.setFigi = function(value) {
|
|
2968
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
2969
|
+
};
|
|
2970
|
+
|
|
2971
|
+
|
|
2972
|
+
/**
|
|
2973
|
+
* optional StopOrderDirection direction = 4;
|
|
2974
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrderDirection}
|
|
2975
|
+
*/
|
|
2976
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.getDirection = function() {
|
|
2977
|
+
return /** @type {!proto.tinkoff.public.invest.api.contract.v1.StopOrderDirection} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
2978
|
+
};
|
|
2979
|
+
|
|
2980
|
+
|
|
2981
|
+
/**
|
|
2982
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.StopOrderDirection} value
|
|
2983
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} returns this
|
|
2984
|
+
*/
|
|
2985
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.setDirection = function(value) {
|
|
2986
|
+
return jspb.Message.setProto3EnumField(this, 4, value);
|
|
2987
|
+
};
|
|
2988
|
+
|
|
2989
|
+
|
|
2990
|
+
/**
|
|
2991
|
+
* optional string currency = 5;
|
|
2992
|
+
* @return {string}
|
|
2993
|
+
*/
|
|
2994
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.getCurrency = function() {
|
|
2995
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
2996
|
+
};
|
|
2997
|
+
|
|
2998
|
+
|
|
2999
|
+
/**
|
|
3000
|
+
* @param {string} value
|
|
3001
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} returns this
|
|
3002
|
+
*/
|
|
3003
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.setCurrency = function(value) {
|
|
3004
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
3005
|
+
};
|
|
3006
|
+
|
|
3007
|
+
|
|
3008
|
+
/**
|
|
3009
|
+
* optional StopOrderType order_type = 6;
|
|
3010
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrderType}
|
|
3011
|
+
*/
|
|
3012
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.getOrderType = function() {
|
|
3013
|
+
return /** @type {!proto.tinkoff.public.invest.api.contract.v1.StopOrderType} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
3014
|
+
};
|
|
3015
|
+
|
|
3016
|
+
|
|
3017
|
+
/**
|
|
3018
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.StopOrderType} value
|
|
3019
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} returns this
|
|
3020
|
+
*/
|
|
3021
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.setOrderType = function(value) {
|
|
3022
|
+
return jspb.Message.setProto3EnumField(this, 6, value);
|
|
3023
|
+
};
|
|
3024
|
+
|
|
3025
|
+
|
|
3026
|
+
/**
|
|
3027
|
+
* optional google.protobuf.Timestamp create_date = 7;
|
|
3028
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
3029
|
+
*/
|
|
3030
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.getCreateDate = function() {
|
|
3031
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
3032
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
|
|
3033
|
+
};
|
|
3034
|
+
|
|
3035
|
+
|
|
3036
|
+
/**
|
|
3037
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
3038
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} returns this
|
|
3039
|
+
*/
|
|
3040
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.setCreateDate = function(value) {
|
|
3041
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
3042
|
+
};
|
|
3043
|
+
|
|
3044
|
+
|
|
3045
|
+
/**
|
|
3046
|
+
* Clears the message field making it undefined.
|
|
3047
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} returns this
|
|
3048
|
+
*/
|
|
3049
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.clearCreateDate = function() {
|
|
3050
|
+
return this.setCreateDate(undefined);
|
|
3051
|
+
};
|
|
3052
|
+
|
|
3053
|
+
|
|
3054
|
+
/**
|
|
3055
|
+
* Returns whether this field is set.
|
|
3056
|
+
* @return {boolean}
|
|
3057
|
+
*/
|
|
3058
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.hasCreateDate = function() {
|
|
3059
|
+
return jspb.Message.getField(this, 7) != null;
|
|
3060
|
+
};
|
|
3061
|
+
|
|
3062
|
+
|
|
3063
|
+
/**
|
|
3064
|
+
* optional google.protobuf.Timestamp activation_date_time = 8;
|
|
3065
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
3066
|
+
*/
|
|
3067
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.getActivationDateTime = function() {
|
|
3068
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
3069
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8));
|
|
3070
|
+
};
|
|
3071
|
+
|
|
3072
|
+
|
|
3073
|
+
/**
|
|
3074
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
3075
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} returns this
|
|
3076
|
+
*/
|
|
3077
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.setActivationDateTime = function(value) {
|
|
3078
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
3079
|
+
};
|
|
3080
|
+
|
|
3081
|
+
|
|
3082
|
+
/**
|
|
3083
|
+
* Clears the message field making it undefined.
|
|
3084
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} returns this
|
|
3085
|
+
*/
|
|
3086
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.clearActivationDateTime = function() {
|
|
3087
|
+
return this.setActivationDateTime(undefined);
|
|
3088
|
+
};
|
|
3089
|
+
|
|
3090
|
+
|
|
3091
|
+
/**
|
|
3092
|
+
* Returns whether this field is set.
|
|
3093
|
+
* @return {boolean}
|
|
3094
|
+
*/
|
|
3095
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.hasActivationDateTime = function() {
|
|
3096
|
+
return jspb.Message.getField(this, 8) != null;
|
|
3097
|
+
};
|
|
3098
|
+
|
|
3099
|
+
|
|
3100
|
+
/**
|
|
3101
|
+
* optional google.protobuf.Timestamp expiration_time = 9;
|
|
3102
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
3103
|
+
*/
|
|
3104
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.getExpirationTime = function() {
|
|
3105
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
3106
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9));
|
|
3107
|
+
};
|
|
3108
|
+
|
|
3109
|
+
|
|
3110
|
+
/**
|
|
3111
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
3112
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} returns this
|
|
3113
|
+
*/
|
|
3114
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.setExpirationTime = function(value) {
|
|
3115
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
3116
|
+
};
|
|
3117
|
+
|
|
3118
|
+
|
|
3119
|
+
/**
|
|
3120
|
+
* Clears the message field making it undefined.
|
|
3121
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} returns this
|
|
3122
|
+
*/
|
|
3123
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.clearExpirationTime = function() {
|
|
3124
|
+
return this.setExpirationTime(undefined);
|
|
3125
|
+
};
|
|
3126
|
+
|
|
3127
|
+
|
|
3128
|
+
/**
|
|
3129
|
+
* Returns whether this field is set.
|
|
3130
|
+
* @return {boolean}
|
|
3131
|
+
*/
|
|
3132
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.hasExpirationTime = function() {
|
|
3133
|
+
return jspb.Message.getField(this, 9) != null;
|
|
3134
|
+
};
|
|
3135
|
+
|
|
3136
|
+
|
|
3137
|
+
/**
|
|
3138
|
+
* optional MoneyValue price = 10;
|
|
3139
|
+
* @return {?proto.tinkoff.public.invest.api.contract.v1.MoneyValue}
|
|
3140
|
+
*/
|
|
3141
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.getPrice = function() {
|
|
3142
|
+
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.MoneyValue} */ (
|
|
3143
|
+
jspb.Message.getWrapperField(this, tinvest_common_pb.MoneyValue, 10));
|
|
3144
|
+
};
|
|
3145
|
+
|
|
3146
|
+
|
|
3147
|
+
/**
|
|
3148
|
+
* @param {?proto.tinkoff.public.invest.api.contract.v1.MoneyValue|undefined} value
|
|
3149
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} returns this
|
|
3150
|
+
*/
|
|
3151
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.setPrice = function(value) {
|
|
3152
|
+
return jspb.Message.setWrapperField(this, 10, value);
|
|
3153
|
+
};
|
|
3154
|
+
|
|
3155
|
+
|
|
3156
|
+
/**
|
|
3157
|
+
* Clears the message field making it undefined.
|
|
3158
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} returns this
|
|
3159
|
+
*/
|
|
3160
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.clearPrice = function() {
|
|
3161
|
+
return this.setPrice(undefined);
|
|
3162
|
+
};
|
|
3163
|
+
|
|
3164
|
+
|
|
3165
|
+
/**
|
|
3166
|
+
* Returns whether this field is set.
|
|
3167
|
+
* @return {boolean}
|
|
3168
|
+
*/
|
|
3169
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.hasPrice = function() {
|
|
3170
|
+
return jspb.Message.getField(this, 10) != null;
|
|
3171
|
+
};
|
|
3172
|
+
|
|
3173
|
+
|
|
3174
|
+
/**
|
|
3175
|
+
* optional MoneyValue stop_price = 11;
|
|
3176
|
+
* @return {?proto.tinkoff.public.invest.api.contract.v1.MoneyValue}
|
|
3177
|
+
*/
|
|
3178
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.getStopPrice = function() {
|
|
3179
|
+
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.MoneyValue} */ (
|
|
3180
|
+
jspb.Message.getWrapperField(this, tinvest_common_pb.MoneyValue, 11));
|
|
3181
|
+
};
|
|
3182
|
+
|
|
3183
|
+
|
|
3184
|
+
/**
|
|
3185
|
+
* @param {?proto.tinkoff.public.invest.api.contract.v1.MoneyValue|undefined} value
|
|
3186
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} returns this
|
|
3187
|
+
*/
|
|
3188
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.setStopPrice = function(value) {
|
|
3189
|
+
return jspb.Message.setWrapperField(this, 11, value);
|
|
3190
|
+
};
|
|
3191
|
+
|
|
3192
|
+
|
|
3193
|
+
/**
|
|
3194
|
+
* Clears the message field making it undefined.
|
|
3195
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} returns this
|
|
3196
|
+
*/
|
|
3197
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.clearStopPrice = function() {
|
|
3198
|
+
return this.setStopPrice(undefined);
|
|
3199
|
+
};
|
|
3200
|
+
|
|
3201
|
+
|
|
3202
|
+
/**
|
|
3203
|
+
* Returns whether this field is set.
|
|
3204
|
+
* @return {boolean}
|
|
3205
|
+
*/
|
|
3206
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.hasStopPrice = function() {
|
|
3207
|
+
return jspb.Message.getField(this, 11) != null;
|
|
3208
|
+
};
|
|
3209
|
+
|
|
3210
|
+
|
|
3211
|
+
/**
|
|
3212
|
+
* optional string instrument_uid = 12;
|
|
3213
|
+
* @return {string}
|
|
3214
|
+
*/
|
|
3215
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.getInstrumentUid = function() {
|
|
3216
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
|
|
3217
|
+
};
|
|
3218
|
+
|
|
3219
|
+
|
|
3220
|
+
/**
|
|
3221
|
+
* @param {string} value
|
|
3222
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} returns this
|
|
3223
|
+
*/
|
|
3224
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.setInstrumentUid = function(value) {
|
|
3225
|
+
return jspb.Message.setProto3StringField(this, 12, value);
|
|
3226
|
+
};
|
|
3227
|
+
|
|
3228
|
+
|
|
3229
|
+
/**
|
|
3230
|
+
* optional TakeProfitType take_profit_type = 13;
|
|
3231
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.TakeProfitType}
|
|
3232
|
+
*/
|
|
3233
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.getTakeProfitType = function() {
|
|
3234
|
+
return /** @type {!proto.tinkoff.public.invest.api.contract.v1.TakeProfitType} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
|
|
3235
|
+
};
|
|
3236
|
+
|
|
3237
|
+
|
|
3238
|
+
/**
|
|
3239
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.TakeProfitType} value
|
|
3240
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} returns this
|
|
3241
|
+
*/
|
|
3242
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.setTakeProfitType = function(value) {
|
|
3243
|
+
return jspb.Message.setProto3EnumField(this, 13, value);
|
|
3244
|
+
};
|
|
3245
|
+
|
|
3246
|
+
|
|
3247
|
+
/**
|
|
3248
|
+
* optional TrailingData trailing_data = 14;
|
|
3249
|
+
* @return {?proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData}
|
|
3250
|
+
*/
|
|
3251
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.getTrailingData = function() {
|
|
3252
|
+
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData} */ (
|
|
3253
|
+
jspb.Message.getWrapperField(this, proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData, 14));
|
|
3254
|
+
};
|
|
3255
|
+
|
|
3256
|
+
|
|
3257
|
+
/**
|
|
3258
|
+
* @param {?proto.tinkoff.public.invest.api.contract.v1.StopOrder.TrailingData|undefined} value
|
|
3259
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} returns this
|
|
3260
|
+
*/
|
|
3261
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.setTrailingData = function(value) {
|
|
3262
|
+
return jspb.Message.setWrapperField(this, 14, value);
|
|
3263
|
+
};
|
|
3264
|
+
|
|
3265
|
+
|
|
3266
|
+
/**
|
|
3267
|
+
* Clears the message field making it undefined.
|
|
3268
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} returns this
|
|
3269
|
+
*/
|
|
3270
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.clearTrailingData = function() {
|
|
3271
|
+
return this.setTrailingData(undefined);
|
|
3272
|
+
};
|
|
3273
|
+
|
|
3274
|
+
|
|
3275
|
+
/**
|
|
3276
|
+
* Returns whether this field is set.
|
|
3277
|
+
* @return {boolean}
|
|
3278
|
+
*/
|
|
3279
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.hasTrailingData = function() {
|
|
3280
|
+
return jspb.Message.getField(this, 14) != null;
|
|
3281
|
+
};
|
|
3282
|
+
|
|
3283
|
+
|
|
3284
|
+
/**
|
|
3285
|
+
* optional StopOrderStatusOption status = 15;
|
|
3286
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrderStatusOption}
|
|
3287
|
+
*/
|
|
3288
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.getStatus = function() {
|
|
3289
|
+
return /** @type {!proto.tinkoff.public.invest.api.contract.v1.StopOrderStatusOption} */ (jspb.Message.getFieldWithDefault(this, 15, 0));
|
|
3290
|
+
};
|
|
3291
|
+
|
|
3292
|
+
|
|
3293
|
+
/**
|
|
3294
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.StopOrderStatusOption} value
|
|
3295
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} returns this
|
|
3296
|
+
*/
|
|
3297
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.setStatus = function(value) {
|
|
3298
|
+
return jspb.Message.setProto3EnumField(this, 15, value);
|
|
3299
|
+
};
|
|
3300
|
+
|
|
3301
|
+
|
|
3302
|
+
/**
|
|
3303
|
+
* optional ExchangeOrderType exchange_order_type = 16;
|
|
3304
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.ExchangeOrderType}
|
|
3305
|
+
*/
|
|
3306
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.getExchangeOrderType = function() {
|
|
3307
|
+
return /** @type {!proto.tinkoff.public.invest.api.contract.v1.ExchangeOrderType} */ (jspb.Message.getFieldWithDefault(this, 16, 0));
|
|
3308
|
+
};
|
|
3309
|
+
|
|
3310
|
+
|
|
3311
|
+
/**
|
|
3312
|
+
* @param {!proto.tinkoff.public.invest.api.contract.v1.ExchangeOrderType} value
|
|
3313
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} returns this
|
|
3314
|
+
*/
|
|
3315
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.setExchangeOrderType = function(value) {
|
|
3316
|
+
return jspb.Message.setProto3EnumField(this, 16, value);
|
|
3317
|
+
};
|
|
3318
|
+
|
|
3319
|
+
|
|
3320
|
+
/**
|
|
3321
|
+
* optional string exchange_order_id = 17;
|
|
3322
|
+
* @return {string}
|
|
3323
|
+
*/
|
|
3324
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.getExchangeOrderId = function() {
|
|
3325
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
|
|
3326
|
+
};
|
|
3327
|
+
|
|
3328
|
+
|
|
3329
|
+
/**
|
|
3330
|
+
* @param {string} value
|
|
3331
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} returns this
|
|
3332
|
+
*/
|
|
3333
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.setExchangeOrderId = function(value) {
|
|
3334
|
+
return jspb.Message.setField(this, 17, value);
|
|
3335
|
+
};
|
|
3336
|
+
|
|
3337
|
+
|
|
3338
|
+
/**
|
|
3339
|
+
* Clears the field making it undefined.
|
|
3340
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} returns this
|
|
3341
|
+
*/
|
|
3342
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.clearExchangeOrderId = function() {
|
|
3343
|
+
return jspb.Message.setField(this, 17, undefined);
|
|
3344
|
+
};
|
|
3345
|
+
|
|
3346
|
+
|
|
3347
|
+
/**
|
|
3348
|
+
* Returns whether this field is set.
|
|
3349
|
+
* @return {boolean}
|
|
3350
|
+
*/
|
|
3351
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.hasExchangeOrderId = function() {
|
|
3352
|
+
return jspb.Message.getField(this, 17) != null;
|
|
3353
|
+
};
|
|
3354
|
+
|
|
3355
|
+
|
|
3356
|
+
/**
|
|
3357
|
+
* optional string ticker = 18;
|
|
3358
|
+
* @return {string}
|
|
3359
|
+
*/
|
|
3360
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.getTicker = function() {
|
|
3361
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
|
|
3362
|
+
};
|
|
3363
|
+
|
|
3364
|
+
|
|
3365
|
+
/**
|
|
3366
|
+
* @param {string} value
|
|
3367
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} returns this
|
|
3368
|
+
*/
|
|
3369
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.setTicker = function(value) {
|
|
3370
|
+
return jspb.Message.setProto3StringField(this, 18, value);
|
|
3371
|
+
};
|
|
3372
|
+
|
|
3373
|
+
|
|
3374
|
+
/**
|
|
3375
|
+
* optional string class_code = 19;
|
|
3376
|
+
* @return {string}
|
|
3377
|
+
*/
|
|
3378
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.getClassCode = function() {
|
|
3379
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
|
|
3380
|
+
};
|
|
3381
|
+
|
|
3382
|
+
|
|
3383
|
+
/**
|
|
3384
|
+
* @param {string} value
|
|
3385
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} returns this
|
|
3386
|
+
*/
|
|
3387
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.setClassCode = function(value) {
|
|
3388
|
+
return jspb.Message.setProto3StringField(this, 19, value);
|
|
3389
|
+
};
|
|
3390
|
+
|
|
3391
|
+
|
|
3392
|
+
/**
|
|
3393
|
+
* optional bool instant_execution = 20;
|
|
3394
|
+
* @return {boolean}
|
|
3395
|
+
*/
|
|
3396
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.getInstantExecution = function() {
|
|
3397
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 20, false));
|
|
3398
|
+
};
|
|
3399
|
+
|
|
3400
|
+
|
|
3401
|
+
/**
|
|
3402
|
+
* @param {boolean} value
|
|
3403
|
+
* @return {!proto.tinkoff.public.invest.api.contract.v1.StopOrder} returns this
|
|
3404
|
+
*/
|
|
3405
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrder.prototype.setInstantExecution = function(value) {
|
|
3406
|
+
return jspb.Message.setProto3BooleanField(this, 20, value);
|
|
3407
|
+
};
|
|
3408
|
+
|
|
3409
|
+
|
|
3410
|
+
/**
|
|
3411
|
+
* @enum {number}
|
|
3412
|
+
*/
|
|
3413
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrderDirection = {
|
|
3414
|
+
STOP_ORDER_DIRECTION_UNSPECIFIED: 0,
|
|
3415
|
+
STOP_ORDER_DIRECTION_BUY: 1,
|
|
3416
|
+
STOP_ORDER_DIRECTION_SELL: 2
|
|
3417
|
+
};
|
|
3418
|
+
|
|
3419
|
+
/**
|
|
3420
|
+
* @enum {number}
|
|
3421
|
+
*/
|
|
3422
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrderExpirationType = {
|
|
3423
|
+
STOP_ORDER_EXPIRATION_TYPE_UNSPECIFIED: 0,
|
|
3424
|
+
STOP_ORDER_EXPIRATION_TYPE_GOOD_TILL_CANCEL: 1,
|
|
3425
|
+
STOP_ORDER_EXPIRATION_TYPE_GOOD_TILL_DATE: 2
|
|
3426
|
+
};
|
|
3427
|
+
|
|
3428
|
+
/**
|
|
3429
|
+
* @enum {number}
|
|
3430
|
+
*/
|
|
3431
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrderType = {
|
|
3432
|
+
STOP_ORDER_TYPE_UNSPECIFIED: 0,
|
|
3433
|
+
STOP_ORDER_TYPE_TAKE_PROFIT: 1,
|
|
3434
|
+
STOP_ORDER_TYPE_STOP_LOSS: 2,
|
|
3435
|
+
STOP_ORDER_TYPE_STOP_LIMIT: 3
|
|
3436
|
+
};
|
|
3437
|
+
|
|
3438
|
+
/**
|
|
3439
|
+
* @enum {number}
|
|
3440
|
+
*/
|
|
3441
|
+
proto.tinkoff.public.invest.api.contract.v1.StopOrderStatusOption = {
|
|
3442
|
+
STOP_ORDER_STATUS_UNSPECIFIED: 0,
|
|
3443
|
+
STOP_ORDER_STATUS_ALL: 1,
|
|
3444
|
+
STOP_ORDER_STATUS_ACTIVE: 2,
|
|
3445
|
+
STOP_ORDER_STATUS_EXECUTED: 3,
|
|
3446
|
+
STOP_ORDER_STATUS_CANCELED: 4,
|
|
3447
|
+
STOP_ORDER_STATUS_EXPIRED: 5
|
|
3448
|
+
};
|
|
3449
|
+
|
|
3450
|
+
/**
|
|
3451
|
+
* @enum {number}
|
|
3452
|
+
*/
|
|
3453
|
+
proto.tinkoff.public.invest.api.contract.v1.ExchangeOrderType = {
|
|
3454
|
+
EXCHANGE_ORDER_TYPE_UNSPECIFIED: 0,
|
|
3455
|
+
EXCHANGE_ORDER_TYPE_MARKET: 1,
|
|
3456
|
+
EXCHANGE_ORDER_TYPE_LIMIT: 2
|
|
3457
|
+
};
|
|
3458
|
+
|
|
3459
|
+
/**
|
|
3460
|
+
* @enum {number}
|
|
3461
|
+
*/
|
|
3462
|
+
proto.tinkoff.public.invest.api.contract.v1.TakeProfitType = {
|
|
3463
|
+
TAKE_PROFIT_TYPE_UNSPECIFIED: 0,
|
|
3464
|
+
TAKE_PROFIT_TYPE_REGULAR: 1,
|
|
3465
|
+
TAKE_PROFIT_TYPE_TRAILING: 2
|
|
3466
|
+
};
|
|
3467
|
+
|
|
3468
|
+
/**
|
|
3469
|
+
* @enum {number}
|
|
3470
|
+
*/
|
|
3471
|
+
proto.tinkoff.public.invest.api.contract.v1.TrailingValueType = {
|
|
3472
|
+
TRAILING_VALUE_UNSPECIFIED: 0,
|
|
3473
|
+
TRAILING_VALUE_ABSOLUTE: 1,
|
|
3474
|
+
TRAILING_VALUE_RELATIVE: 2
|
|
3475
|
+
};
|
|
3476
|
+
|
|
3477
|
+
/**
|
|
3478
|
+
* @enum {number}
|
|
3479
|
+
*/
|
|
3480
|
+
proto.tinkoff.public.invest.api.contract.v1.TrailingStopStatus = {
|
|
3481
|
+
TRAILING_STOP_UNSPECIFIED: 0,
|
|
3482
|
+
TRAILING_STOP_ACTIVE: 1,
|
|
3483
|
+
TRAILING_STOP_ACTIVATED: 2
|
|
3484
|
+
};
|
|
3485
|
+
|
|
3486
|
+
goog.object.extend(exports, proto.tinkoff.public.invest.api.contract.v1);
|