@finam/grpc-tradeapi 2.14.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.
Files changed (146) hide show
  1. package/README.md +41 -0
  2. package/google/api/annotations_pb.d.ts +34 -0
  3. package/google/api/annotations_pb.js +36 -0
  4. package/google/api/auth_pb.d.ts +382 -0
  5. package/google/api/auth_pb.js +68 -0
  6. package/google/api/backend_pb.d.ts +278 -0
  7. package/google/api/backend_pb.js +60 -0
  8. package/google/api/billing_pb.d.ts +112 -0
  9. package/google/api/billing_pb.js +40 -0
  10. package/google/api/client_pb.d.ts +906 -0
  11. package/google/api/client_pb.js +268 -0
  12. package/google/api/config_change_pb.d.ts +156 -0
  13. package/google/api/config_change_pb.js +55 -0
  14. package/google/api/consumer_pb.d.ts +151 -0
  15. package/google/api/consumer_pb.js +54 -0
  16. package/google/api/context_pb.d.ts +139 -0
  17. package/google/api/context_pb.js +40 -0
  18. package/google/api/control_pb.d.ts +61 -0
  19. package/google/api/control_pb.js +34 -0
  20. package/google/api/distribution_pb.d.ts +379 -0
  21. package/google/api/distribution_pb.js +76 -0
  22. package/google/api/documentation_pb.d.ts +249 -0
  23. package/google/api/documentation_pb.js +47 -0
  24. package/google/api/endpoint_pb.d.ts +98 -0
  25. package/google/api/endpoint_pb.js +33 -0
  26. package/google/api/error_reason_pb.d.ts +765 -0
  27. package/google/api/error_reason_pb.js +49 -0
  28. package/google/api/field_behavior_pb.d.ts +152 -0
  29. package/google/api/field_behavior_pb.js +65 -0
  30. package/google/api/field_info_pb.d.ts +171 -0
  31. package/google/api/field_info_pb.js +80 -0
  32. package/google/api/http_pb.d.ts +469 -0
  33. package/google/api/http_pb.js +47 -0
  34. package/google/api/httpbody_pb.d.ts +104 -0
  35. package/google/api/httpbody_pb.js +34 -0
  36. package/google/api/label_pb.d.ts +93 -0
  37. package/google/api/label_pb.js +47 -0
  38. package/google/api/launch_stage_pb.d.ts +115 -0
  39. package/google/api/launch_stage_pb.js +41 -0
  40. package/google/api/log_pb.d.ts +82 -0
  41. package/google/api/log_pb.js +34 -0
  42. package/google/api/logging_pb.d.ts +120 -0
  43. package/google/api/logging_pb.js +40 -0
  44. package/google/api/metric_pb.d.ts +474 -0
  45. package/google/api/metric_pb.js +94 -0
  46. package/google/api/monitored_resource_pb.d.ts +200 -0
  47. package/google/api/monitored_resource_pb.js +50 -0
  48. package/google/api/monitoring_pb.d.ts +146 -0
  49. package/google/api/monitoring_pb.js +40 -0
  50. package/google/api/policy_pb.d.ts +128 -0
  51. package/google/api/policy_pb.js +57 -0
  52. package/google/api/quota_pb.d.ts +273 -0
  53. package/google/api/quota_pb.js +47 -0
  54. package/google/api/resource_pb.d.ts +344 -0
  55. package/google/api/resource_pb.js +97 -0
  56. package/google/api/routing_pb.d.ts +497 -0
  57. package/google/api/routing_pb.js +49 -0
  58. package/google/api/service_pb.d.ts +305 -0
  59. package/google/api/service_pb.js +52 -0
  60. package/google/api/source_info_pb.d.ts +47 -0
  61. package/google/api/source_info_pb.js +34 -0
  62. package/google/api/system_parameter_pb.d.ts +153 -0
  63. package/google/api/system_parameter_pb.js +47 -0
  64. package/google/api/usage_pb.d.ts +143 -0
  65. package/google/api/usage_pb.js +40 -0
  66. package/google/api/visibility_pb.d.ts +158 -0
  67. package/google/api/visibility_pb.js +89 -0
  68. package/google/protobuf/any_pb.d.ts +182 -0
  69. package/google/protobuf/any_pb.js +49 -0
  70. package/google/protobuf/api_pb.d.ts +302 -0
  71. package/google/protobuf/api_pb.js +65 -0
  72. package/google/protobuf/descriptor_pb.d.ts +2511 -0
  73. package/google/protobuf/descriptor_pb.js +500 -0
  74. package/google/protobuf/duration_pb.d.ts +134 -0
  75. package/google/protobuf/duration_pb.js +49 -0
  76. package/google/protobuf/empty_pb.d.ts +63 -0
  77. package/google/protobuf/empty_pb.js +49 -0
  78. package/google/protobuf/field_mask_pb.d.ts +260 -0
  79. package/google/protobuf/field_mask_pb.js +49 -0
  80. package/google/protobuf/source_context_pb.d.ts +64 -0
  81. package/google/protobuf/source_context_pb.js +49 -0
  82. package/google/protobuf/struct_pb.d.ts +186 -0
  83. package/google/protobuf/struct_pb.js +80 -0
  84. package/google/protobuf/timestamp_pb.d.ts +163 -0
  85. package/google/protobuf/timestamp_pb.js +49 -0
  86. package/google/protobuf/type_pb.d.ts +532 -0
  87. package/google/protobuf/type_pb.js +121 -0
  88. package/google/protobuf/wrappers_pb.d.ts +250 -0
  89. package/google/protobuf/wrappers_pb.js +115 -0
  90. package/google/type/calendar_period_pb.d.ts +99 -0
  91. package/google/type/calendar_period_pb.js +42 -0
  92. package/google/type/color_pb.d.ts +200 -0
  93. package/google/type/color_pb.js +34 -0
  94. package/google/type/date_pb.d.ts +76 -0
  95. package/google/type/date_pb.js +33 -0
  96. package/google/type/datetime_pb.d.ts +175 -0
  97. package/google/type/datetime_pb.js +41 -0
  98. package/google/type/dayofweek_pb.d.ts +93 -0
  99. package/google/type/dayofweek_pb.js +40 -0
  100. package/google/type/decimal_pb.d.ts +111 -0
  101. package/google/type/decimal_pb.js +33 -0
  102. package/google/type/expr_pb.d.ts +102 -0
  103. package/google/type/expr_pb.js +33 -0
  104. package/google/type/fraction_pb.d.ts +54 -0
  105. package/google/type/fraction_pb.js +33 -0
  106. package/google/type/interval_pb.d.ts +65 -0
  107. package/google/type/interval_pb.js +34 -0
  108. package/google/type/latlng_pb.d.ts +57 -0
  109. package/google/type/latlng_pb.js +33 -0
  110. package/google/type/localized_text_pb.d.ts +56 -0
  111. package/google/type/localized_text_pb.js +33 -0
  112. package/google/type/money_pb.d.ts +66 -0
  113. package/google/type/money_pb.js +33 -0
  114. package/google/type/month_pb.d.ts +128 -0
  115. package/google/type/month_pb.js +40 -0
  116. package/google/type/phone_number_pb.d.ts +161 -0
  117. package/google/type/phone_number_pb.js +40 -0
  118. package/google/type/postal_address_pb.d.ts +190 -0
  119. package/google/type/postal_address_pb.js +33 -0
  120. package/google/type/quaternion_pb.d.ts +122 -0
  121. package/google/type/quaternion_pb.js +33 -0
  122. package/google/type/timeofday_pb.d.ts +72 -0
  123. package/google/type/timeofday_pb.js +33 -0
  124. package/grpc/gateway/protoc_gen_openapiv2/options/annotations_pb.d.ts +73 -0
  125. package/grpc/gateway/protoc_gen_openapiv2/options/annotations_pb.js +80 -0
  126. package/grpc/gateway/protoc_gen_openapiv2/options/openapiv2_pb.d.ts +1586 -0
  127. package/grpc/gateway/protoc_gen_openapiv2/options/openapiv2_pb.js +239 -0
  128. package/grpc/tradeapi/v1/accounts/accounts_service_pb.d.ts +671 -0
  129. package/grpc/tradeapi/v1/accounts/accounts_service_pb.js +126 -0
  130. package/grpc/tradeapi/v1/assets/assets_service_pb.d.ts +1318 -0
  131. package/grpc/tradeapi/v1/assets/assets_service_pb.js +279 -0
  132. package/grpc/tradeapi/v1/auth/auth_service_pb.d.ts +336 -0
  133. package/grpc/tradeapi/v1/auth/auth_service_pb.js +86 -0
  134. package/grpc/tradeapi/v1/marketdata/marketdata_service_pb.d.ts +1215 -0
  135. package/grpc/tradeapi/v1/marketdata/marketdata_service_pb.js +243 -0
  136. package/grpc/tradeapi/v1/metrics/usage_metrics_service_pb.d.ts +111 -0
  137. package/grpc/tradeapi/v1/metrics/usage_metrics_service_pb.js +46 -0
  138. package/grpc/tradeapi/v1/orders/orders_service_pb.d.ts +1256 -0
  139. package/grpc/tradeapi/v1/orders/orders_service_pb.js +242 -0
  140. package/grpc/tradeapi/v1/reports/reports_service_pb.d.ts +353 -0
  141. package/grpc/tradeapi/v1/reports/reports_service_pb.js +107 -0
  142. package/grpc/tradeapi/v1/side_pb.d.ts +44 -0
  143. package/grpc/tradeapi/v1/side_pb.js +26 -0
  144. package/grpc/tradeapi/v1/trade_pb.d.ts +91 -0
  145. package/grpc/tradeapi/v1/trade_pb.js +22 -0
  146. package/package.json +14 -0
@@ -0,0 +1,671 @@
1
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=js+dts,import_extension=js"
2
+ // @generated from file grpc/tradeapi/v1/accounts/accounts_service.proto (package grpc.tradeapi.v1.accounts, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
+ import type { Message } from "@bufbuild/protobuf";
7
+ import type { Decimal } from "../../../../google/type/decimal_pb.js";
8
+ import type { Money } from "../../../../google/type/money_pb.js";
9
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
10
+ import type { Interval } from "../../../../google/type/interval_pb.js";
11
+ import type { AccountTrade } from "../trade_pb.js";
12
+
13
+ /**
14
+ * Describes the file grpc/tradeapi/v1/accounts/accounts_service.proto.
15
+ */
16
+ export declare const file_grpc_tradeapi_v1_accounts_accounts_service: GenFile;
17
+
18
+ /**
19
+ * Запрос получения информации по конкретному аккаунту
20
+ *
21
+ * @generated from message grpc.tradeapi.v1.accounts.GetAccountRequest
22
+ */
23
+ export declare type GetAccountRequest = Message<"grpc.tradeapi.v1.accounts.GetAccountRequest"> & {
24
+ /**
25
+ * Идентификатор аккаунта
26
+ *
27
+ * @generated from field: string account_id = 1;
28
+ */
29
+ accountId: string;
30
+ };
31
+
32
+ /**
33
+ * Describes the message grpc.tradeapi.v1.accounts.GetAccountRequest.
34
+ * Use `create(GetAccountRequestSchema)` to create a new message.
35
+ */
36
+ export declare const GetAccountRequestSchema: GenMessage<GetAccountRequest>;
37
+
38
+ /**
39
+ * Информация о конкретном аккаунте
40
+ *
41
+ * @generated from message grpc.tradeapi.v1.accounts.GetAccountResponse
42
+ */
43
+ export declare type GetAccountResponse = Message<"grpc.tradeapi.v1.accounts.GetAccountResponse"> & {
44
+ /**
45
+ * Идентификатор аккаунта
46
+ *
47
+ * @generated from field: string account_id = 1;
48
+ */
49
+ accountId: string;
50
+
51
+ /**
52
+ * Тип аккаунта
53
+ *
54
+ * @generated from field: string type = 2;
55
+ */
56
+ type: string;
57
+
58
+ /**
59
+ * Статус аккаунта
60
+ *
61
+ * @generated from field: string status = 3;
62
+ */
63
+ status: string;
64
+
65
+ /**
66
+ * Доступные средства плюс стоимость открытых позиций
67
+ *
68
+ * @generated from field: google.type.Decimal equity = 4;
69
+ */
70
+ equity?: Decimal;
71
+
72
+ /**
73
+ * Нереализованная прибыль
74
+ *
75
+ * @generated from field: google.type.Decimal unrealized_profit = 5;
76
+ */
77
+ unrealizedProfit?: Decimal;
78
+
79
+ /**
80
+ * Позиции. Открытые, плюс теоретические (по неисполненным активным заявкам)
81
+ *
82
+ * @generated from field: repeated grpc.tradeapi.v1.accounts.Position positions = 6;
83
+ */
84
+ positions: Position[];
85
+
86
+ /**
87
+ * Сумма собственных денежных средств на счете, доступная для торговли. Не включает маржинальные средства.
88
+ *
89
+ * @generated from field: repeated google.type.Money cash = 7;
90
+ */
91
+ cash: Money[];
92
+
93
+ /**
94
+ * @generated from oneof grpc.tradeapi.v1.accounts.GetAccountResponse.portfolio
95
+ */
96
+ portfolio: {
97
+ /**
98
+ * Общий тип для счетов Московской Биржи. Включает в себя как единые, так и моно счета.
99
+ *
100
+ * @generated from field: grpc.tradeapi.v1.accounts.MC portfolio_mc = 8;
101
+ */
102
+ value: MC;
103
+ case: "portfolioMc";
104
+ } | {
105
+ /**
106
+ * Тип портфеля для счетов на американских рынках.
107
+ *
108
+ * @generated from field: grpc.tradeapi.v1.accounts.MCT portfolio_mct = 9;
109
+ */
110
+ value: MCT;
111
+ case: "portfolioMct";
112
+ } | {
113
+ /**
114
+ * Тип портфеля для торговли на срочном рынке Московской Биржи.
115
+ *
116
+ * @generated from field: grpc.tradeapi.v1.accounts.FORTS portfolio_forts = 10;
117
+ */
118
+ value: FORTS;
119
+ case: "portfolioForts";
120
+ } | { case: undefined; value?: undefined };
121
+
122
+ /**
123
+ * Дата открытия счета
124
+ *
125
+ * @generated from field: google.protobuf.Timestamp open_account_date = 11;
126
+ */
127
+ openAccountDate?: Timestamp;
128
+
129
+ /**
130
+ * Дата первой торговой транзакции
131
+ *
132
+ * @generated from field: google.protobuf.Timestamp first_trade_date = 12;
133
+ */
134
+ firstTradeDate?: Timestamp;
135
+
136
+ /**
137
+ * Дата первой неторговой транзакции
138
+ *
139
+ * @generated from field: google.protobuf.Timestamp first_non_trade_date = 13;
140
+ */
141
+ firstNonTradeDate?: Timestamp;
142
+ };
143
+
144
+ /**
145
+ * Describes the message grpc.tradeapi.v1.accounts.GetAccountResponse.
146
+ * Use `create(GetAccountResponseSchema)` to create a new message.
147
+ */
148
+ export declare const GetAccountResponseSchema: GenMessage<GetAccountResponse>;
149
+
150
+ /**
151
+ * Общий тип для счетов Московской Биржи. Включает в себя как единые, так и специализированные (моно) счета для разных секций биржи.
152
+ * Единый торговый счет (ЕТС): Позволяет торговать на нескольких рынках (фондовый, валютный. срочный, spb, иностранные бумаги, иностранные фьючерсы) с единой денежной позиции.
153
+ * Моно-счет фондового рынка MOEX: Изолированный счет для торговли акциями, облигациями и паями.
154
+ * Моно-счет валютного рынка MOEX: Изолированный счет для операций с валютными парами (например, CNYRUB_TOM).
155
+ *
156
+ * @generated from message grpc.tradeapi.v1.accounts.MC
157
+ */
158
+ export declare type MC = Message<"grpc.tradeapi.v1.accounts.MC"> & {
159
+ /**
160
+ * Сумма собственных денежных средств на счете, доступная для торговли. Включает маржинальные средства.
161
+ *
162
+ * @generated from field: google.type.Decimal available_cash = 1;
163
+ */
164
+ availableCash?: Decimal;
165
+
166
+ /**
167
+ * Начальная маржа
168
+ *
169
+ * @generated from field: google.type.Decimal initial_margin = 2;
170
+ */
171
+ initialMargin?: Decimal;
172
+
173
+ /**
174
+ * Минимальная маржа
175
+ *
176
+ * @generated from field: google.type.Decimal maintenance_margin = 3;
177
+ */
178
+ maintenanceMargin?: Decimal;
179
+ };
180
+
181
+ /**
182
+ * Describes the message grpc.tradeapi.v1.accounts.MC.
183
+ * Use `create(MCSchema)` to create a new message.
184
+ */
185
+ export declare const MCSchema: GenMessage<MC>;
186
+
187
+ /**
188
+ * Тип портфеля для счетов на американских рынках.
189
+ * Предоставляет доступ к биржам США: NYSE, NASDAQ, CBOE, CME, сделки с американскими акциями, фьючерсами и опционами.
190
+ *
191
+ * @generated from message grpc.tradeapi.v1.accounts.MCT
192
+ */
193
+ export declare type MCT = Message<"grpc.tradeapi.v1.accounts.MCT"> & {
194
+ };
195
+
196
+ /**
197
+ * Describes the message grpc.tradeapi.v1.accounts.MCT.
198
+ * Use `create(MCTSchema)` to create a new message.
199
+ */
200
+ export declare const MCTSchema: GenMessage<MCT>;
201
+
202
+ /**
203
+ * Тип портфеля для торговли на срочном рынке Московской Биржи.
204
+ * Предназначен для работы с производными финансовыми инструментами: фьючерсами и опционами.
205
+ *
206
+ * @generated from message grpc.tradeapi.v1.accounts.FORTS
207
+ */
208
+ export declare type FORTS = Message<"grpc.tradeapi.v1.accounts.FORTS"> & {
209
+ /**
210
+ * Сумма собственных денежных средств на счете, доступная для торговли. Включает маржинальные средства.
211
+ *
212
+ * @generated from field: google.type.Decimal available_cash = 1;
213
+ */
214
+ availableCash?: Decimal;
215
+
216
+ /**
217
+ * Минимальная маржа (необходимая сумма обеспечения под открытые позиции)
218
+ *
219
+ * @generated from field: google.type.Decimal money_reserved = 2;
220
+ */
221
+ moneyReserved?: Decimal;
222
+ };
223
+
224
+ /**
225
+ * Describes the message grpc.tradeapi.v1.accounts.FORTS.
226
+ * Use `create(FORTSSchema)` to create a new message.
227
+ */
228
+ export declare const FORTSSchema: GenMessage<FORTS>;
229
+
230
+ /**
231
+ * Запрос получения истории по сделкам
232
+ *
233
+ * @generated from message grpc.tradeapi.v1.accounts.TradesRequest
234
+ */
235
+ export declare type TradesRequest = Message<"grpc.tradeapi.v1.accounts.TradesRequest"> & {
236
+ /**
237
+ * Идентификатор аккаунта
238
+ *
239
+ * @generated from field: string account_id = 1;
240
+ */
241
+ accountId: string;
242
+
243
+ /**
244
+ * Лимит количества сделок
245
+ *
246
+ * @generated from field: int32 limit = 2;
247
+ */
248
+ limit: number;
249
+
250
+ /**
251
+ * Начало и окончание запрашиваемого периода, Unix epoch time
252
+ *
253
+ * @generated from field: google.type.Interval interval = 3;
254
+ */
255
+ interval?: Interval;
256
+ };
257
+
258
+ /**
259
+ * Describes the message grpc.tradeapi.v1.accounts.TradesRequest.
260
+ * Use `create(TradesRequestSchema)` to create a new message.
261
+ */
262
+ export declare const TradesRequestSchema: GenMessage<TradesRequest>;
263
+
264
+ /**
265
+ * История по сделкам
266
+ *
267
+ * @generated from message grpc.tradeapi.v1.accounts.TradesResponse
268
+ */
269
+ export declare type TradesResponse = Message<"grpc.tradeapi.v1.accounts.TradesResponse"> & {
270
+ /**
271
+ * Сделки по аккаунту
272
+ *
273
+ * @generated from field: repeated grpc.tradeapi.v1.AccountTrade trades = 1;
274
+ */
275
+ trades: AccountTrade[];
276
+ };
277
+
278
+ /**
279
+ * Describes the message grpc.tradeapi.v1.accounts.TradesResponse.
280
+ * Use `create(TradesResponseSchema)` to create a new message.
281
+ */
282
+ export declare const TradesResponseSchema: GenMessage<TradesResponse>;
283
+
284
+ /**
285
+ * Запрос получения списка транзакций
286
+ *
287
+ * @generated from message grpc.tradeapi.v1.accounts.TransactionsRequest
288
+ */
289
+ export declare type TransactionsRequest = Message<"grpc.tradeapi.v1.accounts.TransactionsRequest"> & {
290
+ /**
291
+ * Идентификатор аккаунта
292
+ *
293
+ * @generated from field: string account_id = 1;
294
+ */
295
+ accountId: string;
296
+
297
+ /**
298
+ * Лимит количества транзакций
299
+ *
300
+ * @generated from field: int32 limit = 2;
301
+ */
302
+ limit: number;
303
+
304
+ /**
305
+ * Начало и окончание запрашиваемого периода, Unix epoch time
306
+ *
307
+ * @generated from field: google.type.Interval interval = 3;
308
+ */
309
+ interval?: Interval;
310
+ };
311
+
312
+ /**
313
+ * Describes the message grpc.tradeapi.v1.accounts.TransactionsRequest.
314
+ * Use `create(TransactionsRequestSchema)` to create a new message.
315
+ */
316
+ export declare const TransactionsRequestSchema: GenMessage<TransactionsRequest>;
317
+
318
+ /**
319
+ * Список транзакций
320
+ *
321
+ * @generated from message grpc.tradeapi.v1.accounts.TransactionsResponse
322
+ */
323
+ export declare type TransactionsResponse = Message<"grpc.tradeapi.v1.accounts.TransactionsResponse"> & {
324
+ /**
325
+ * Транзакции по аккаунту
326
+ *
327
+ * @generated from field: repeated grpc.tradeapi.v1.accounts.Transaction transactions = 1;
328
+ */
329
+ transactions: Transaction[];
330
+ };
331
+
332
+ /**
333
+ * Describes the message grpc.tradeapi.v1.accounts.TransactionsResponse.
334
+ * Use `create(TransactionsResponseSchema)` to create a new message.
335
+ */
336
+ export declare const TransactionsResponseSchema: GenMessage<TransactionsResponse>;
337
+
338
+ /**
339
+ * Информация о позиции
340
+ *
341
+ * @generated from message grpc.tradeapi.v1.accounts.Position
342
+ */
343
+ export declare type Position = Message<"grpc.tradeapi.v1.accounts.Position"> & {
344
+ /**
345
+ * Символ инструмента
346
+ *
347
+ * @generated from field: string symbol = 1;
348
+ */
349
+ symbol: string;
350
+
351
+ /**
352
+ * Количество в шт., значение со знаком определяющее (long-short)
353
+ *
354
+ * @generated from field: google.type.Decimal quantity = 2;
355
+ */
356
+ quantity?: Decimal;
357
+
358
+ /**
359
+ * Средняя цена. Не заполняется для FORTS позиций
360
+ *
361
+ * @generated from field: google.type.Decimal average_price = 3;
362
+ */
363
+ averagePrice?: Decimal;
364
+
365
+ /**
366
+ * Текущая цена
367
+ *
368
+ * @generated from field: google.type.Decimal current_price = 4;
369
+ */
370
+ currentPrice?: Decimal;
371
+
372
+ /**
373
+ * Поддерживающее гарантийное обеспечение. Заполняется только для FORTS позиций
374
+ *
375
+ * @generated from field: google.type.Decimal maintenance_margin = 5;
376
+ */
377
+ maintenanceMargin?: Decimal;
378
+
379
+ /**
380
+ * Прибыль или убыток за текущий день (PnL). Не заполняется для FORTS позиций
381
+ *
382
+ * @generated from field: google.type.Decimal daily_pnl = 6;
383
+ */
384
+ dailyPnl?: Decimal;
385
+
386
+ /**
387
+ * Суммарная нереализованная прибыль или убыток (PnL) текущей позиции
388
+ *
389
+ * @generated from field: google.type.Decimal unrealized_pnl = 7;
390
+ */
391
+ unrealizedPnl?: Decimal;
392
+ };
393
+
394
+ /**
395
+ * Describes the message grpc.tradeapi.v1.accounts.Position.
396
+ * Use `create(PositionSchema)` to create a new message.
397
+ */
398
+ export declare const PositionSchema: GenMessage<Position>;
399
+
400
+ /**
401
+ * Информация о транзакции
402
+ *
403
+ * @generated from message grpc.tradeapi.v1.accounts.Transaction
404
+ */
405
+ export declare type Transaction = Message<"grpc.tradeapi.v1.accounts.Transaction"> & {
406
+ /**
407
+ * Идентификатор транзакции
408
+ *
409
+ * @generated from field: string id = 1;
410
+ */
411
+ id: string;
412
+
413
+ /**
414
+ * Тип транзакции из TransactionCategory
415
+ *
416
+ * @generated from field: string category = 2 [deprecated = true];
417
+ * @deprecated
418
+ */
419
+ category: string;
420
+
421
+ /**
422
+ * Метка времени
423
+ *
424
+ * @generated from field: google.protobuf.Timestamp timestamp = 4;
425
+ */
426
+ timestamp?: Timestamp;
427
+
428
+ /**
429
+ * Символ инструмента
430
+ *
431
+ * @generated from field: string symbol = 5;
432
+ */
433
+ symbol: string;
434
+
435
+ /**
436
+ * Изменение в деньгах
437
+ *
438
+ * @generated from field: google.type.Money change = 6;
439
+ */
440
+ change?: Money;
441
+
442
+ /**
443
+ * Информация о сделке
444
+ *
445
+ * @generated from field: grpc.tradeapi.v1.accounts.Transaction.Trade trade = 7;
446
+ */
447
+ trade?: Transaction_Trade;
448
+
449
+ /**
450
+ * Категория транзакции из TransactionCategory.
451
+ *
452
+ * @generated from field: grpc.tradeapi.v1.accounts.Transaction.TransactionCategory transaction_category = 8;
453
+ */
454
+ transactionCategory: Transaction_TransactionCategory;
455
+
456
+ /**
457
+ * Наименование транзакции
458
+ *
459
+ * @generated from field: string transaction_name = 9;
460
+ */
461
+ transactionName: string;
462
+
463
+ /**
464
+ * Изменение в штуках, только для трансфера бумаг (для TransactionCategory = TRANSFER)
465
+ *
466
+ * @generated from field: google.type.Decimal change_qty = 10;
467
+ */
468
+ changeQty?: Decimal;
469
+ };
470
+
471
+ /**
472
+ * Describes the message grpc.tradeapi.v1.accounts.Transaction.
473
+ * Use `create(TransactionSchema)` to create a new message.
474
+ */
475
+ export declare const TransactionSchema: GenMessage<Transaction>;
476
+
477
+ /**
478
+ * Объект заполняется для торговых типов транзакций
479
+ *
480
+ * @generated from message grpc.tradeapi.v1.accounts.Transaction.Trade
481
+ */
482
+ export declare type Transaction_Trade = Message<"grpc.tradeapi.v1.accounts.Transaction.Trade"> & {
483
+ /**
484
+ * Количество в шт.
485
+ *
486
+ * @generated from field: google.type.Decimal size = 1;
487
+ */
488
+ size?: Decimal;
489
+
490
+ /**
491
+ * Цена сделки за штуку. Цена исполнения/Размер премии по опциону. Это цена заключения, значение берется из сделки.
492
+ *
493
+ * @generated from field: google.type.Decimal price = 2;
494
+ */
495
+ price?: Decimal;
496
+
497
+ /**
498
+ * НКД. Заполнено если в сделке есть НКД
499
+ *
500
+ * @generated from field: google.type.Decimal accrued_interest = 3;
501
+ */
502
+ accruedInterest?: Decimal;
503
+ };
504
+
505
+ /**
506
+ * Describes the message grpc.tradeapi.v1.accounts.Transaction.Trade.
507
+ * Use `create(Transaction_TradeSchema)` to create a new message.
508
+ */
509
+ export declare const Transaction_TradeSchema: GenMessage<Transaction_Trade>;
510
+
511
+ /**
512
+ * Категории транзакции.
513
+ *
514
+ * @generated from enum grpc.tradeapi.v1.accounts.Transaction.TransactionCategory
515
+ */
516
+ export enum Transaction_TransactionCategory {
517
+ /**
518
+ * Прочее
519
+ *
520
+ * @generated from enum value: OTHERS = 0;
521
+ */
522
+ OTHERS = 0,
523
+
524
+ /**
525
+ * Ввод ДС
526
+ *
527
+ * @generated from enum value: DEPOSIT = 1;
528
+ */
529
+ DEPOSIT = 1,
530
+
531
+ /**
532
+ * Вывод ДС
533
+ *
534
+ * @generated from enum value: WITHDRAW = 2;
535
+ */
536
+ WITHDRAW = 2,
537
+
538
+ /**
539
+ * Доход
540
+ *
541
+ * @generated from enum value: INCOME = 5;
542
+ */
543
+ INCOME = 5,
544
+
545
+ /**
546
+ * Комиссия
547
+ *
548
+ * @generated from enum value: COMMISSION = 7;
549
+ */
550
+ COMMISSION = 7,
551
+
552
+ /**
553
+ * Налог
554
+ *
555
+ * @generated from enum value: TAX = 8;
556
+ */
557
+ TAX = 8,
558
+
559
+ /**
560
+ * Наследство
561
+ *
562
+ * @generated from enum value: INHERITANCE = 9;
563
+ */
564
+ INHERITANCE = 9,
565
+
566
+ /**
567
+ * Перевод ДС
568
+ *
569
+ * @generated from enum value: TRANSFER = 11;
570
+ */
571
+ TRANSFER = 11,
572
+
573
+ /**
574
+ * Расторжение договора
575
+ *
576
+ * @generated from enum value: CONTRACT_TERMINATION = 12;
577
+ */
578
+ CONTRACT_TERMINATION = 12,
579
+
580
+ /**
581
+ * Расходы
582
+ *
583
+ * @generated from enum value: OUTCOMES = 13;
584
+ */
585
+ OUTCOMES = 13,
586
+
587
+ /**
588
+ * Штраф
589
+ *
590
+ * @generated from enum value: FINE = 15;
591
+ */
592
+ FINE = 15,
593
+
594
+ /**
595
+ * Займ
596
+ *
597
+ * @generated from enum value: LOAN = 19;
598
+ */
599
+ LOAN = 19,
600
+ }
601
+
602
+ /**
603
+ * Describes the enum grpc.tradeapi.v1.accounts.Transaction.TransactionCategory.
604
+ */
605
+ export declare const Transaction_TransactionCategorySchema: GenEnum<Transaction_TransactionCategory>;
606
+
607
+ /**
608
+ * Сервис аккаунтов
609
+ *
610
+ * @generated from service grpc.tradeapi.v1.accounts.AccountsService
611
+ */
612
+ export declare const AccountsService: GenService<{
613
+ /**
614
+ * Получение информации по конкретному аккаунту
615
+ * Пример HTTP запроса:
616
+ * GET /v1/accounts/A12345
617
+ * Authorization: <token>
618
+ *
619
+ * @generated from rpc grpc.tradeapi.v1.accounts.AccountsService.GetAccount
620
+ */
621
+ getAccount: {
622
+ methodKind: "unary";
623
+ input: typeof GetAccountRequestSchema;
624
+ output: typeof GetAccountResponseSchema;
625
+ },
626
+ /**
627
+ * Получение истории по сделкам аккаунта
628
+ * Пример HTTP запроса:
629
+ * GET /v1/accounts/A12345/trades?limit=50&interval.start_time=2023-01-01T00:00:00Z&interval.end_time=2023-01-31T23:59:59Z
630
+ * Authorization: <token>
631
+ *
632
+ * Параметры:
633
+ * - account_id - передается в URL пути
634
+ * - limit и interval - передаются как query-параметры
635
+ *
636
+ * @generated from rpc grpc.tradeapi.v1.accounts.AccountsService.Trades
637
+ */
638
+ trades: {
639
+ methodKind: "unary";
640
+ input: typeof TradesRequestSchema;
641
+ output: typeof TradesResponseSchema;
642
+ },
643
+ /**
644
+ * Получение списка транзакций аккаунта
645
+ * Пример HTTP запроса:
646
+ * GET /v1/accounts/A12345/transactions?limit=50&interval.start_time=2023-01-01T00:00:00Z&interval.end_time=2023-01-31T23:59:59Z
647
+ * Authorization: <token>
648
+ *
649
+ * Параметры:
650
+ * - account_id - передается в URL пути
651
+ * - limit и interval - передаются как query-параметры
652
+ *
653
+ * @generated from rpc grpc.tradeapi.v1.accounts.AccountsService.Transactions
654
+ */
655
+ transactions: {
656
+ methodKind: "unary";
657
+ input: typeof TransactionsRequestSchema;
658
+ output: typeof TransactionsResponseSchema;
659
+ },
660
+ /**
661
+ * Подписка на информацию по аккаунту. Стрим метод
662
+ *
663
+ * @generated from rpc grpc.tradeapi.v1.accounts.AccountsService.SubscribeAccount
664
+ */
665
+ subscribeAccount: {
666
+ methodKind: "server_streaming";
667
+ input: typeof GetAccountRequestSchema;
668
+ output: typeof GetAccountResponseSchema;
669
+ },
670
+ }>;
671
+