@marleena/trb-proto 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/README.md +28 -23
  2. package/gen/js-ts/clickhouse/Clickhouse_grpcServiceClientPb.ts +108 -0
  3. package/gen/js-ts/clickhouse/clickhouse_grpc_pb.d.ts +464 -0
  4. package/gen/js-ts/db_api/Db_apiServiceClientPb.ts +215 -0
  5. package/gen/js-ts/db_api/db_api_pb.d.ts +406 -0
  6. package/gen/js-ts/db_api/db_api_pb.js +3371 -0
  7. package/gen/js-ts/example/ExampleServiceClientPb.ts +108 -0
  8. package/gen/js-ts/example/Example_pb.d.ts +77 -0
  9. package/gen/js-ts/manager_indicators/Manager_indicatorsServiceClientPb.ts +86 -0
  10. package/gen/js-ts/manager_indicators/manager_indicators_pb.d.ts +190 -0
  11. package/gen/js-ts/moex/MoexServiceClientPb.ts +86 -0
  12. package/gen/js-ts/moex/moex_pb.d.ts +53 -0
  13. package/gen/js-ts/nats/ManagerServiceClientPb.ts +1032 -0
  14. package/gen/js-ts/nats/manager_pb.d.ts +1416 -0
  15. package/gen/js-ts/nats/manager_pb.js +394 -0
  16. package/gen/js-ts/tinvest/InstrumentsServiceClientPb.ts +1892 -0
  17. package/gen/js-ts/tinvest/MarketdataServiceClientPb.ts +473 -0
  18. package/gen/js-ts/tinvest/OperationsServiceClientPb.ts +431 -0
  19. package/gen/js-ts/tinvest/OrdersServiceClientPb.ts +452 -0
  20. package/gen/js-ts/tinvest/SandboxServiceClientPb.ts +907 -0
  21. package/gen/js-ts/tinvest/SignalsServiceClientPb.ts +129 -0
  22. package/gen/js-ts/tinvest/StopordersServiceClientPb.ts +172 -0
  23. package/gen/js-ts/tinvest/UsersServiceClientPb.ts +387 -0
  24. package/gen/js-ts/tinvest/common_pb.d.ts +314 -0
  25. package/gen/js-ts/tinvest/instruments_pb.d.ts +6373 -0
  26. package/gen/js-ts/tinvest/marketdata_pb.d.ts +2397 -0
  27. package/gen/js-ts/tinvest/operations_pb.d.ts +2380 -0
  28. package/gen/js-ts/tinvest/orders_pb.d.ts +1555 -0
  29. package/gen/js-ts/tinvest/sandbox_pb.d.ts +129 -0
  30. package/gen/js-ts/tinvest/signals_pb.d.ts +408 -0
  31. package/gen/js-ts/tinvest/stoporders_pb.d.ts +493 -0
  32. package/gen/js-ts/tinvest/users_pb.d.ts +611 -0
  33. package/package.json +1 -1
@@ -0,0 +1,314 @@
1
+ import * as jspb from 'google-protobuf'
2
+
3
+ import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; // proto import: "google/protobuf/timestamp.proto"
4
+
5
+
6
+ export class MoneyValue extends jspb.Message {
7
+ getCurrency(): string;
8
+ setCurrency(value: string): MoneyValue;
9
+
10
+ getUnits(): number;
11
+ setUnits(value: number): MoneyValue;
12
+
13
+ getNano(): number;
14
+ setNano(value: number): MoneyValue;
15
+
16
+ serializeBinary(): Uint8Array;
17
+ toObject(includeInstance?: boolean): MoneyValue.AsObject;
18
+ static toObject(includeInstance: boolean, msg: MoneyValue): MoneyValue.AsObject;
19
+ static serializeBinaryToWriter(message: MoneyValue, writer: jspb.BinaryWriter): void;
20
+ static deserializeBinary(bytes: Uint8Array): MoneyValue;
21
+ static deserializeBinaryFromReader(message: MoneyValue, reader: jspb.BinaryReader): MoneyValue;
22
+ }
23
+
24
+ export namespace MoneyValue {
25
+ export type AsObject = {
26
+ currency: string,
27
+ units: number,
28
+ nano: number,
29
+ }
30
+ }
31
+
32
+ export class Quotation extends jspb.Message {
33
+ getUnits(): number;
34
+ setUnits(value: number): Quotation;
35
+
36
+ getNano(): number;
37
+ setNano(value: number): Quotation;
38
+
39
+ serializeBinary(): Uint8Array;
40
+ toObject(includeInstance?: boolean): Quotation.AsObject;
41
+ static toObject(includeInstance: boolean, msg: Quotation): Quotation.AsObject;
42
+ static serializeBinaryToWriter(message: Quotation, writer: jspb.BinaryWriter): void;
43
+ static deserializeBinary(bytes: Uint8Array): Quotation;
44
+ static deserializeBinaryFromReader(message: Quotation, reader: jspb.BinaryReader): Quotation;
45
+ }
46
+
47
+ export namespace Quotation {
48
+ export type AsObject = {
49
+ units: number,
50
+ nano: number,
51
+ }
52
+ }
53
+
54
+ export class PingRequest extends jspb.Message {
55
+ getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
56
+ setTime(value?: google_protobuf_timestamp_pb.Timestamp): PingRequest;
57
+ hasTime(): boolean;
58
+ clearTime(): PingRequest;
59
+
60
+ serializeBinary(): Uint8Array;
61
+ toObject(includeInstance?: boolean): PingRequest.AsObject;
62
+ static toObject(includeInstance: boolean, msg: PingRequest): PingRequest.AsObject;
63
+ static serializeBinaryToWriter(message: PingRequest, writer: jspb.BinaryWriter): void;
64
+ static deserializeBinary(bytes: Uint8Array): PingRequest;
65
+ static deserializeBinaryFromReader(message: PingRequest, reader: jspb.BinaryReader): PingRequest;
66
+ }
67
+
68
+ export namespace PingRequest {
69
+ export type AsObject = {
70
+ time?: google_protobuf_timestamp_pb.Timestamp.AsObject,
71
+ }
72
+
73
+ export enum TimeCase {
74
+ _TIME_NOT_SET = 0,
75
+ TIME = 1,
76
+ }
77
+ }
78
+
79
+ export class PingDelaySettings extends jspb.Message {
80
+ getPingDelayMs(): number;
81
+ setPingDelayMs(value: number): PingDelaySettings;
82
+ hasPingDelayMs(): boolean;
83
+ clearPingDelayMs(): PingDelaySettings;
84
+
85
+ serializeBinary(): Uint8Array;
86
+ toObject(includeInstance?: boolean): PingDelaySettings.AsObject;
87
+ static toObject(includeInstance: boolean, msg: PingDelaySettings): PingDelaySettings.AsObject;
88
+ static serializeBinaryToWriter(message: PingDelaySettings, writer: jspb.BinaryWriter): void;
89
+ static deserializeBinary(bytes: Uint8Array): PingDelaySettings;
90
+ static deserializeBinaryFromReader(message: PingDelaySettings, reader: jspb.BinaryReader): PingDelaySettings;
91
+ }
92
+
93
+ export namespace PingDelaySettings {
94
+ export type AsObject = {
95
+ pingDelayMs?: number,
96
+ }
97
+
98
+ export enum PingDelayMsCase {
99
+ _PING_DELAY_MS_NOT_SET = 0,
100
+ PING_DELAY_MS = 15,
101
+ }
102
+ }
103
+
104
+ export class Ping extends jspb.Message {
105
+ getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
106
+ setTime(value?: google_protobuf_timestamp_pb.Timestamp): Ping;
107
+ hasTime(): boolean;
108
+ clearTime(): Ping;
109
+
110
+ getStreamId(): string;
111
+ setStreamId(value: string): Ping;
112
+
113
+ getPingRequestTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
114
+ setPingRequestTime(value?: google_protobuf_timestamp_pb.Timestamp): Ping;
115
+ hasPingRequestTime(): boolean;
116
+ clearPingRequestTime(): Ping;
117
+
118
+ serializeBinary(): Uint8Array;
119
+ toObject(includeInstance?: boolean): Ping.AsObject;
120
+ static toObject(includeInstance: boolean, msg: Ping): Ping.AsObject;
121
+ static serializeBinaryToWriter(message: Ping, writer: jspb.BinaryWriter): void;
122
+ static deserializeBinary(bytes: Uint8Array): Ping;
123
+ static deserializeBinaryFromReader(message: Ping, reader: jspb.BinaryReader): Ping;
124
+ }
125
+
126
+ export namespace Ping {
127
+ export type AsObject = {
128
+ time?: google_protobuf_timestamp_pb.Timestamp.AsObject,
129
+ streamId: string,
130
+ pingRequestTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
131
+ }
132
+
133
+ export enum PingRequestTimeCase {
134
+ _PING_REQUEST_TIME_NOT_SET = 0,
135
+ PING_REQUEST_TIME = 4,
136
+ }
137
+ }
138
+
139
+ export class Page extends jspb.Message {
140
+ getLimit(): number;
141
+ setLimit(value: number): Page;
142
+
143
+ getPageNumber(): number;
144
+ setPageNumber(value: number): Page;
145
+
146
+ serializeBinary(): Uint8Array;
147
+ toObject(includeInstance?: boolean): Page.AsObject;
148
+ static toObject(includeInstance: boolean, msg: Page): Page.AsObject;
149
+ static serializeBinaryToWriter(message: Page, writer: jspb.BinaryWriter): void;
150
+ static deserializeBinary(bytes: Uint8Array): Page;
151
+ static deserializeBinaryFromReader(message: Page, reader: jspb.BinaryReader): Page;
152
+ }
153
+
154
+ export namespace Page {
155
+ export type AsObject = {
156
+ limit: number,
157
+ pageNumber: number,
158
+ }
159
+ }
160
+
161
+ export class PageResponse extends jspb.Message {
162
+ getLimit(): number;
163
+ setLimit(value: number): PageResponse;
164
+
165
+ getPageNumber(): number;
166
+ setPageNumber(value: number): PageResponse;
167
+
168
+ getTotalCount(): number;
169
+ setTotalCount(value: number): PageResponse;
170
+
171
+ serializeBinary(): Uint8Array;
172
+ toObject(includeInstance?: boolean): PageResponse.AsObject;
173
+ static toObject(includeInstance: boolean, msg: PageResponse): PageResponse.AsObject;
174
+ static serializeBinaryToWriter(message: PageResponse, writer: jspb.BinaryWriter): void;
175
+ static deserializeBinary(bytes: Uint8Array): PageResponse;
176
+ static deserializeBinaryFromReader(message: PageResponse, reader: jspb.BinaryReader): PageResponse;
177
+ }
178
+
179
+ export namespace PageResponse {
180
+ export type AsObject = {
181
+ limit: number,
182
+ pageNumber: number,
183
+ totalCount: number,
184
+ }
185
+ }
186
+
187
+ export class ResponseMetadata extends jspb.Message {
188
+ getTrackingId(): string;
189
+ setTrackingId(value: string): ResponseMetadata;
190
+
191
+ getServerTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
192
+ setServerTime(value?: google_protobuf_timestamp_pb.Timestamp): ResponseMetadata;
193
+ hasServerTime(): boolean;
194
+ clearServerTime(): ResponseMetadata;
195
+
196
+ serializeBinary(): Uint8Array;
197
+ toObject(includeInstance?: boolean): ResponseMetadata.AsObject;
198
+ static toObject(includeInstance: boolean, msg: ResponseMetadata): ResponseMetadata.AsObject;
199
+ static serializeBinaryToWriter(message: ResponseMetadata, writer: jspb.BinaryWriter): void;
200
+ static deserializeBinary(bytes: Uint8Array): ResponseMetadata;
201
+ static deserializeBinaryFromReader(message: ResponseMetadata, reader: jspb.BinaryReader): ResponseMetadata;
202
+ }
203
+
204
+ export namespace ResponseMetadata {
205
+ export type AsObject = {
206
+ trackingId: string,
207
+ serverTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
208
+ }
209
+ }
210
+
211
+ export class BrandData extends jspb.Message {
212
+ getLogoName(): string;
213
+ setLogoName(value: string): BrandData;
214
+
215
+ getLogoBaseColor(): string;
216
+ setLogoBaseColor(value: string): BrandData;
217
+
218
+ getTextColor(): string;
219
+ setTextColor(value: string): BrandData;
220
+
221
+ serializeBinary(): Uint8Array;
222
+ toObject(includeInstance?: boolean): BrandData.AsObject;
223
+ static toObject(includeInstance: boolean, msg: BrandData): BrandData.AsObject;
224
+ static serializeBinaryToWriter(message: BrandData, writer: jspb.BinaryWriter): void;
225
+ static deserializeBinary(bytes: Uint8Array): BrandData;
226
+ static deserializeBinaryFromReader(message: BrandData, reader: jspb.BinaryReader): BrandData;
227
+ }
228
+
229
+ export namespace BrandData {
230
+ export type AsObject = {
231
+ logoName: string,
232
+ logoBaseColor: string,
233
+ textColor: string,
234
+ }
235
+ }
236
+
237
+ export class ErrorDetail extends jspb.Message {
238
+ getCode(): string;
239
+ setCode(value: string): ErrorDetail;
240
+
241
+ getMessage(): string;
242
+ setMessage(value: string): ErrorDetail;
243
+
244
+ serializeBinary(): Uint8Array;
245
+ toObject(includeInstance?: boolean): ErrorDetail.AsObject;
246
+ static toObject(includeInstance: boolean, msg: ErrorDetail): ErrorDetail.AsObject;
247
+ static serializeBinaryToWriter(message: ErrorDetail, writer: jspb.BinaryWriter): void;
248
+ static deserializeBinary(bytes: Uint8Array): ErrorDetail;
249
+ static deserializeBinaryFromReader(message: ErrorDetail, reader: jspb.BinaryReader): ErrorDetail;
250
+ }
251
+
252
+ export namespace ErrorDetail {
253
+ export type AsObject = {
254
+ code: string,
255
+ message: string,
256
+ }
257
+ }
258
+
259
+ export enum InstrumentType {
260
+ INSTRUMENT_TYPE_UNSPECIFIED = 0,
261
+ INSTRUMENT_TYPE_BOND = 1,
262
+ INSTRUMENT_TYPE_SHARE = 2,
263
+ INSTRUMENT_TYPE_CURRENCY = 3,
264
+ INSTRUMENT_TYPE_ETF = 4,
265
+ INSTRUMENT_TYPE_FUTURES = 5,
266
+ INSTRUMENT_TYPE_SP = 6,
267
+ INSTRUMENT_TYPE_OPTION = 7,
268
+ INSTRUMENT_TYPE_CLEARING_CERTIFICATE = 8,
269
+ INSTRUMENT_TYPE_INDEX = 9,
270
+ INSTRUMENT_TYPE_COMMODITY = 10,
271
+ INSTRUMENT_TYPE_DFA = 11,
272
+ }
273
+ export enum InstrumentStatus {
274
+ INSTRUMENT_STATUS_UNSPECIFIED = 0,
275
+ INSTRUMENT_STATUS_BASE = 1,
276
+ INSTRUMENT_STATUS_ALL = 2,
277
+ }
278
+ export enum SecurityTradingStatus {
279
+ SECURITY_TRADING_STATUS_UNSPECIFIED = 0,
280
+ SECURITY_TRADING_STATUS_NOT_AVAILABLE_FOR_TRADING = 1,
281
+ SECURITY_TRADING_STATUS_OPENING_PERIOD = 2,
282
+ SECURITY_TRADING_STATUS_CLOSING_PERIOD = 3,
283
+ SECURITY_TRADING_STATUS_BREAK_IN_TRADING = 4,
284
+ SECURITY_TRADING_STATUS_NORMAL_TRADING = 5,
285
+ SECURITY_TRADING_STATUS_CLOSING_AUCTION = 6,
286
+ SECURITY_TRADING_STATUS_DARK_POOL_AUCTION = 7,
287
+ SECURITY_TRADING_STATUS_DISCRETE_AUCTION = 8,
288
+ SECURITY_TRADING_STATUS_OPENING_AUCTION_PERIOD = 9,
289
+ SECURITY_TRADING_STATUS_TRADING_AT_CLOSING_AUCTION_PRICE = 10,
290
+ SECURITY_TRADING_STATUS_SESSION_ASSIGNED = 11,
291
+ SECURITY_TRADING_STATUS_SESSION_CLOSE = 12,
292
+ SECURITY_TRADING_STATUS_SESSION_OPEN = 13,
293
+ SECURITY_TRADING_STATUS_DEALER_NORMAL_TRADING = 14,
294
+ SECURITY_TRADING_STATUS_DEALER_BREAK_IN_TRADING = 15,
295
+ SECURITY_TRADING_STATUS_DEALER_NOT_AVAILABLE_FOR_TRADING = 16,
296
+ SECURITY_TRADING_STATUS_STABILIZATION_AUCTION = 17,
297
+ }
298
+ export enum PriceType {
299
+ PRICE_TYPE_UNSPECIFIED = 0,
300
+ PRICE_TYPE_POINT = 1,
301
+ PRICE_TYPE_CURRENCY = 2,
302
+ }
303
+ export enum ResultSubscriptionStatus {
304
+ RESULT_SUBSCRIPTION_STATUS_UNSPECIFIED = 0,
305
+ RESULT_SUBSCRIPTION_STATUS_OK = 1,
306
+ RESULT_SUBSCRIPTION_STATUS_ERROR = 13,
307
+ }
308
+ export enum RealExchange {
309
+ REAL_EXCHANGE_UNSPECIFIED = 0,
310
+ REAL_EXCHANGE_MOEX = 1,
311
+ REAL_EXCHANGE_RTS = 2,
312
+ REAL_EXCHANGE_OTC = 3,
313
+ REAL_EXCHANGE_DEALER = 4,
314
+ }