@limeint/trade-api 2.18.1-rc.1

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 (111) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +173 -0
  3. package/dist/accounts.d.ts +2 -0
  4. package/dist/accounts.d.ts.map +1 -0
  5. package/dist/accounts.js +2 -0
  6. package/dist/accounts.js.map +1 -0
  7. package/dist/assets.d.ts +2 -0
  8. package/dist/assets.d.ts.map +1 -0
  9. package/dist/assets.js +2 -0
  10. package/dist/assets.js.map +1 -0
  11. package/dist/auth.d.ts +2 -0
  12. package/dist/auth.d.ts.map +1 -0
  13. package/dist/auth.js +2 -0
  14. package/dist/auth.js.map +1 -0
  15. package/dist/client.d.ts +53 -0
  16. package/dist/client.d.ts.map +1 -0
  17. package/dist/client.js +143 -0
  18. package/dist/client.js.map +1 -0
  19. package/dist/corporate-actions.d.ts +2 -0
  20. package/dist/corporate-actions.d.ts.map +1 -0
  21. package/dist/corporate-actions.js +2 -0
  22. package/dist/corporate-actions.js.map +1 -0
  23. package/dist/errors.d.ts +31 -0
  24. package/dist/errors.d.ts.map +1 -0
  25. package/dist/errors.js +57 -0
  26. package/dist/errors.js.map +1 -0
  27. package/dist/generated/google/protobuf/timestamp.d.ts +123 -0
  28. package/dist/generated/google/protobuf/timestamp.d.ts.map +1 -0
  29. package/dist/generated/google/protobuf/timestamp.js +83 -0
  30. package/dist/generated/google/protobuf/timestamp.js.map +1 -0
  31. package/dist/generated/google/protobuf/wrappers.d.ts +106 -0
  32. package/dist/generated/google/protobuf/wrappers.d.ts.map +1 -0
  33. package/dist/generated/google/protobuf/wrappers.js +502 -0
  34. package/dist/generated/google/protobuf/wrappers.js.map +1 -0
  35. package/dist/generated/google/type/date.d.ts +50 -0
  36. package/dist/generated/google/type/date.d.ts.map +1 -0
  37. package/dist/generated/google/type/date.js +95 -0
  38. package/dist/generated/google/type/date.js.map +1 -0
  39. package/dist/generated/google/type/decimal.d.ts +91 -0
  40. package/dist/generated/google/type/decimal.d.ts.map +1 -0
  41. package/dist/generated/google/type/decimal.js +63 -0
  42. package/dist/generated/google/type/decimal.js.map +1 -0
  43. package/dist/generated/google/type/interval.d.ts +41 -0
  44. package/dist/generated/google/type/interval.d.ts.map +1 -0
  45. package/dist/generated/google/type/interval.js +110 -0
  46. package/dist/generated/google/type/interval.js.map +1 -0
  47. package/dist/generated/google/type/money.d.ts +36 -0
  48. package/dist/generated/google/type/money.d.ts.map +1 -0
  49. package/dist/generated/google/type/money.js +102 -0
  50. package/dist/generated/google/type/money.js.map +1 -0
  51. package/dist/generated/grpc/tradeapi/v1/accounts/accounts_service.d.ts +357 -0
  52. package/dist/generated/grpc/tradeapi/v1/accounts/accounts_service.d.ts.map +1 -0
  53. package/dist/generated/grpc/tradeapi/v1/accounts/accounts_service.js +1791 -0
  54. package/dist/generated/grpc/tradeapi/v1/accounts/accounts_service.js.map +1 -0
  55. package/dist/generated/grpc/tradeapi/v1/assets/assets_service.d.ts +742 -0
  56. package/dist/generated/grpc/tradeapi/v1/assets/assets_service.d.ts.map +1 -0
  57. package/dist/generated/grpc/tradeapi/v1/assets/assets_service.js +3897 -0
  58. package/dist/generated/grpc/tradeapi/v1/assets/assets_service.js.map +1 -0
  59. package/dist/generated/grpc/tradeapi/v1/auth/auth_service.d.ts +230 -0
  60. package/dist/generated/grpc/tradeapi/v1/auth/auth_service.d.ts.map +1 -0
  61. package/dist/generated/grpc/tradeapi/v1/auth/auth_service.js +779 -0
  62. package/dist/generated/grpc/tradeapi/v1/auth/auth_service.js.map +1 -0
  63. package/dist/generated/grpc/tradeapi/v1/corporateactions/corporate_actions_service.d.ts +419 -0
  64. package/dist/generated/grpc/tradeapi/v1/corporateactions/corporate_actions_service.d.ts.map +1 -0
  65. package/dist/generated/grpc/tradeapi/v1/corporateactions/corporate_actions_service.js +2844 -0
  66. package/dist/generated/grpc/tradeapi/v1/corporateactions/corporate_actions_service.js.map +1 -0
  67. package/dist/generated/grpc/tradeapi/v1/marketdata/marketdata_service.d.ts +553 -0
  68. package/dist/generated/grpc/tradeapi/v1/marketdata/marketdata_service.d.ts.map +1 -0
  69. package/dist/generated/grpc/tradeapi/v1/marketdata/marketdata_service.js +3038 -0
  70. package/dist/generated/grpc/tradeapi/v1/marketdata/marketdata_service.js.map +1 -0
  71. package/dist/generated/grpc/tradeapi/v1/metrics/usage_metrics_service.d.ts +88 -0
  72. package/dist/generated/grpc/tradeapi/v1/metrics/usage_metrics_service.d.ts.map +1 -0
  73. package/dist/generated/grpc/tradeapi/v1/metrics/usage_metrics_service.js +284 -0
  74. package/dist/generated/grpc/tradeapi/v1/metrics/usage_metrics_service.js.map +1 -0
  75. package/dist/generated/grpc/tradeapi/v1/orders/orders_service.d.ts +730 -0
  76. package/dist/generated/grpc/tradeapi/v1/orders/orders_service.d.ts.map +1 -0
  77. package/dist/generated/grpc/tradeapi/v1/orders/orders_service.js +3113 -0
  78. package/dist/generated/grpc/tradeapi/v1/orders/orders_service.js.map +1 -0
  79. package/dist/generated/grpc/tradeapi/v1/reports/reports_service.d.ts +203 -0
  80. package/dist/generated/grpc/tradeapi/v1/reports/reports_service.d.ts.map +1 -0
  81. package/dist/generated/grpc/tradeapi/v1/reports/reports_service.js +871 -0
  82. package/dist/generated/grpc/tradeapi/v1/reports/reports_service.js.map +1 -0
  83. package/dist/generated/grpc/tradeapi/v1/side.d.ts +14 -0
  84. package/dist/generated/grpc/tradeapi/v1/side.d.ts.map +1 -0
  85. package/dist/generated/grpc/tradeapi/v1/side.js +49 -0
  86. package/dist/generated/grpc/tradeapi/v1/side.js.map +1 -0
  87. package/dist/generated/grpc/tradeapi/v1/trade.d.ts +48 -0
  88. package/dist/generated/grpc/tradeapi/v1/trade.d.ts.map +1 -0
  89. package/dist/generated/grpc/tradeapi/v1/trade.js +271 -0
  90. package/dist/generated/grpc/tradeapi/v1/trade.js.map +1 -0
  91. package/dist/index.d.ts +4 -0
  92. package/dist/index.d.ts.map +1 -0
  93. package/dist/index.js +4 -0
  94. package/dist/index.js.map +1 -0
  95. package/dist/market-data.d.ts +2 -0
  96. package/dist/market-data.d.ts.map +1 -0
  97. package/dist/market-data.js +2 -0
  98. package/dist/market-data.js.map +1 -0
  99. package/dist/metrics.d.ts +2 -0
  100. package/dist/metrics.d.ts.map +1 -0
  101. package/dist/metrics.js +2 -0
  102. package/dist/metrics.js.map +1 -0
  103. package/dist/orders.d.ts +4 -0
  104. package/dist/orders.d.ts.map +1 -0
  105. package/dist/orders.js +4 -0
  106. package/dist/orders.js.map +1 -0
  107. package/dist/reports.d.ts +2 -0
  108. package/dist/reports.d.ts.map +1 -0
  109. package/dist/reports.js +2 -0
  110. package/dist/reports.js.map +1 -0
  111. package/package.json +97 -0
@@ -0,0 +1,742 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import type { CallContext, CallOptions } from "nice-grpc-common";
3
+ import { DateMessage } from "../../../../google/type/date.js";
4
+ import { Decimal } from "../../../../google/type/decimal.js";
5
+ import { Interval } from "../../../../google/type/interval.js";
6
+ import { Money } from "../../../../google/type/money.js";
7
+ export declare const protobufPackage = "grpc.tradeapi.v1.assets";
8
+ /** Acceptable price */
9
+ export declare enum PriceType {
10
+ /** UNKNOWN - Unknown */
11
+ UNKNOWN = 0,
12
+ /** POSITIVE - Positive. Greater than zero */
13
+ POSITIVE = 1,
14
+ /** NON_NEGATIVE - Non-negative. Greater than or equal to zero */
15
+ NON_NEGATIVE = 2,
16
+ /** ANY - Any */
17
+ ANY = 3,
18
+ UNRECOGNIZED = -1
19
+ }
20
+ export declare function priceTypeFromJSON(object: any): PriceType;
21
+ export declare function priceTypeToJSON(object: PriceType): string;
22
+ /** Request for a list of available exchanges */
23
+ export interface ExchangesRequest {
24
+ }
25
+ /** List of available exchanges */
26
+ export interface ExchangesResponse {
27
+ /** Information about the exchange */
28
+ exchanges: Exchange[];
29
+ }
30
+ /** Request a list of available instruments */
31
+ export interface AssetsRequest {
32
+ }
33
+ /** List of available instruments */
34
+ export interface AssetsResponse {
35
+ /** Instrument information */
36
+ assets: Asset[];
37
+ }
38
+ /** Request a list of available instruments */
39
+ export interface AllAssetsRequest {
40
+ /**
41
+ * Cursor for pagination. Specifies the sec_id of the instrument the list should start with.
42
+ * For the first request, leave the field blank (value 0).
43
+ * For subsequent requests, use next_cursor from the previous response.
44
+ */
45
+ cursor: bigint;
46
+ /**
47
+ * Filtering by instrument status: only active (non-archived) instruments are selected
48
+ * Default: false.
49
+ */
50
+ onlyActive: boolean;
51
+ /**
52
+ * Filtering by instrument status: only inactive (archived) instruments are selected
53
+ * Default: false.
54
+ */
55
+ onlyDisabled: boolean;
56
+ }
57
+ /** Response containing one page of available instruments */
58
+ export interface AllAssetsResponse {
59
+ /** Page of instruments */
60
+ assets: Asset[];
61
+ /**
62
+ * Cursor to get the next page. Contains the sec_id of the last instrument in the current list.
63
+ * Pass this value in the next request's cursor field to retrieve the next page.
64
+ * If the value is 0 or missing, this is the last page.
65
+ */
66
+ nextCursor: bigint;
67
+ }
68
+ /** Request information on a specific instrument */
69
+ export interface GetAssetRequest {
70
+ /** Instrument symbol */
71
+ symbol: string;
72
+ /** ID of the account for which information on the instrument will be selected */
73
+ accountId: string;
74
+ }
75
+ /** Information about a specific instrument */
76
+ export interface GetAssetResponse {
77
+ /** Trading mode code */
78
+ board: string;
79
+ /** Instrument ID */
80
+ id: string;
81
+ /** Instrument ticker */
82
+ ticker: string;
83
+ /** mic exchange ID */
84
+ mic: string;
85
+ /** Isin instrument identifier */
86
+ isin: string;
87
+ /** Instrument type */
88
+ type: string;
89
+ /** Instrument name */
90
+ name: string;
91
+ /** Number of decimal places in price */
92
+ decimals: number;
93
+ /** Minimum price increment. Calculate the effective increment as min_step/(10^decimals). */
94
+ minStep: bigint;
95
+ /** Number of units per lot */
96
+ lotSize: Decimal | undefined;
97
+ /**
98
+ * Futures expiration date
99
+ *
100
+ * @deprecated
101
+ */
102
+ expirationDate: DateMessage | undefined;
103
+ /** Quote currency may not coincide with the currency of the instrument trading mode */
104
+ quoteCurrency: string;
105
+ /** Specific parameters for an instrument of the "Futures" type */
106
+ futureDetails?: GetAssetResponse_FutureDetails | undefined;
107
+ /** Specific parameters for an instrument of the "Option" type */
108
+ optionDetails?: GetAssetResponse_OptionDetails | undefined;
109
+ /** Specific parameters for the instrument type "Bond" */
110
+ bondDetails?: GetAssetResponse_BondDetails | undefined;
111
+ }
112
+ /** Specific parameters for an instrument of the "Futures" type */
113
+ export interface GetAssetResponse_FutureDetails {
114
+ /** Date and time of expiration (execution) of the futures contract. */
115
+ expirationDate: Date | undefined;
116
+ /** Contract size (multiplier) is the number of units of the underlying asset in one contract. */
117
+ contractSize: Decimal | undefined;
118
+ }
119
+ /** Specific parameters for an instrument of the "Option" type */
120
+ export interface GetAssetResponse_OptionDetails {
121
+ /** Date and time of expiration (execution) of the option contract. */
122
+ expirationDate: Date | undefined;
123
+ /** Contract size (multiplier) is the number of units of the underlying asset in one contract. */
124
+ contractSize: Decimal | undefined;
125
+ /** The exercise price (strike) of the option. */
126
+ strike: Decimal | undefined;
127
+ }
128
+ /** Specific parameters for the instrument type "Bond" */
129
+ export interface GetAssetResponse_BondDetails {
130
+ /** The current face value of one bond. */
131
+ bondFaceValue: Decimal | undefined;
132
+ /** Symbolic code of the currency of the bond's par value (for example, RUB, USD). */
133
+ currency: string;
134
+ }
135
+ /** Request for trading parameters of an instrument */
136
+ export interface GetAssetParamsRequest {
137
+ /** Instrument symbol */
138
+ symbol: string;
139
+ /** Account ID for which trading parameters will be selected */
140
+ accountId: string;
141
+ }
142
+ /** Trading parameters of the instrument */
143
+ export interface GetAssetParamsResponse {
144
+ /** Instrument symbol */
145
+ symbol: string;
146
+ /** Account ID for which trading parameters are selected */
147
+ accountId: string;
148
+ /**
149
+ * Is trading available?
150
+ * Old field, marked as obsolete.
151
+ * Clients should switch to is_tradeable.
152
+ *
153
+ * @deprecated
154
+ */
155
+ tradeable: boolean;
156
+ /** Whether long operations are available */
157
+ longable: Longable | undefined;
158
+ /** Whether short operations are available */
159
+ shortable: Shortable | undefined;
160
+ /** Risk rate for a long operation */
161
+ longRiskRate: Decimal | undefined;
162
+ /**
163
+ * Collateral required to maintain a long position
164
+ *
165
+ * @deprecated
166
+ */
167
+ longCollateral: Money | undefined;
168
+ /** Risk rate for a short operation */
169
+ shortRiskRate: Decimal | undefined;
170
+ /**
171
+ * Collateral required to maintain a short position
172
+ *
173
+ * @deprecated
174
+ */
175
+ shortCollateral: Money | undefined;
176
+ /** Initial margin required to open a long position; for FORTS accounts this equals the exchange margin requirement */
177
+ longInitialMargin: Money | undefined;
178
+ /** Initial margin required to open a short position; for FORTS accounts this equals the exchange margin requirement */
179
+ shortInitialMargin: Money | undefined;
180
+ /**
181
+ * Is trading available?
182
+ * Replaces the legacy field and distinguishes false from an unset value.
183
+ */
184
+ isTradable: boolean | undefined;
185
+ /** Acceptable price. Helps determine whether it is possible to place orders with a negative price for a financial instrument */
186
+ priceType: PriceType;
187
+ }
188
+ /** Request to receive an option chain */
189
+ export interface OptionsChainRequest {
190
+ /** Symbol of the underlying asset of the option */
191
+ underlyingSymbol: string;
192
+ /**
193
+ * Optional parameter. Relevant for options on futures, by type (weekly, monthly).
194
+ * If the parameter is not specified, options with the closest expiration date will be returned.
195
+ */
196
+ root: string;
197
+ /**
198
+ * Optional filter by option expiration date.
199
+ * If the parameter is not specified, options with the closest expiration date will be returned.
200
+ */
201
+ expirationDate: DateMessage | undefined;
202
+ }
203
+ /** Option Chain Information */
204
+ export interface OptionsChainResponse {
205
+ /** Symbol of the underlying asset of the option */
206
+ symbol: string;
207
+ /** Option Information */
208
+ options: Option[];
209
+ }
210
+ /** Request an instrument schedule */
211
+ export interface ScheduleRequest {
212
+ /** Instrument symbol */
213
+ symbol: string;
214
+ }
215
+ /** Instrument schedule */
216
+ export interface ScheduleResponse {
217
+ /** Instrument symbol */
218
+ symbol: string;
219
+ /** Instrument sessions */
220
+ sessions: ScheduleResponse_Sessions[];
221
+ }
222
+ /** Sessions */
223
+ export interface ScheduleResponse_Sessions {
224
+ /** Session type */
225
+ type: string;
226
+ /** Session interval */
227
+ interval: Interval | undefined;
228
+ }
229
+ /** Request to get the time on the server */
230
+ export interface ClockRequest {
231
+ }
232
+ /** Server time */
233
+ export interface ClockResponse {
234
+ /** Timestamp */
235
+ timestamp: Date | undefined;
236
+ }
237
+ /** Information about the exchange */
238
+ export interface Exchange {
239
+ /** Exchange ID mic */
240
+ mic: string;
241
+ /** Exchange name */
242
+ name: string;
243
+ }
244
+ /** Instrument information */
245
+ export interface Asset {
246
+ /** Instrument symbol ticker@mic */
247
+ symbol: string;
248
+ /** Instrument ID */
249
+ id: string;
250
+ /** Instrument ticker */
251
+ ticker: string;
252
+ /** mic exchange ID */
253
+ mic: string;
254
+ /** Isin instrument identifier */
255
+ isin: string;
256
+ /** Instrument type */
257
+ type: string;
258
+ /** Instrument name */
259
+ name: string;
260
+ /** Archive instrument or not */
261
+ isArchived: boolean;
262
+ }
263
+ /** Option information */
264
+ export interface Option {
265
+ /** Instrument symbol */
266
+ symbol: string;
267
+ /** Instrument type */
268
+ type: Option_Type;
269
+ /** Lot, the amount of the underlying asset in the instrument */
270
+ contractSize: Decimal | undefined;
271
+ /** Trading start date */
272
+ tradeFirstDay: DateMessage | undefined;
273
+ /** Trade end date */
274
+ tradeLastDay: DateMessage | undefined;
275
+ /** Option exercise price */
276
+ strike: Decimal | undefined;
277
+ /** Option Multiplier */
278
+ multiplier: Decimal | undefined;
279
+ /** Expiration start date */
280
+ expirationFirstDay: DateMessage | undefined;
281
+ /** Expiration date */
282
+ expirationLastDay: DateMessage | undefined;
283
+ }
284
+ /** Option type */
285
+ export declare enum Option_Type {
286
+ /** TYPE_UNSPECIFIED - Undefined value */
287
+ TYPE_UNSPECIFIED = 0,
288
+ /** TYPE_CALL - Call */
289
+ TYPE_CALL = 1,
290
+ /** TYPE_PUT - Put */
291
+ TYPE_PUT = 2,
292
+ UNRECOGNIZED = -1
293
+ }
294
+ export declare function option_TypeFromJSON(object: any): Option_Type;
295
+ export declare function option_TypeToJSON(object: Option_Type): string;
296
+ /** Long-operation availability */
297
+ export interface Longable {
298
+ /** Instrument status */
299
+ value: Longable_Status;
300
+ /** Number of days remaining in a long-operation restriction, if any */
301
+ haltedDays: number;
302
+ }
303
+ /** Status */
304
+ export declare enum Longable_Status {
305
+ /** NOT_AVAILABLE - Not available */
306
+ NOT_AVAILABLE = 0,
307
+ /** AVAILABLE - Available */
308
+ AVAILABLE = 1,
309
+ /** ACCOUNT_NOT_APPROVED - Prohibited at account level */
310
+ ACCOUNT_NOT_APPROVED = 2,
311
+ UNRECOGNIZED = -1
312
+ }
313
+ export declare function longable_StatusFromJSON(object: any): Longable_Status;
314
+ export declare function longable_StatusToJSON(object: Longable_Status): string;
315
+ /** Short-operation availability */
316
+ export interface Shortable {
317
+ /** Instrument status */
318
+ value: Shortable_Status;
319
+ /** Number of days remaining in a short-operation restriction, if any */
320
+ haltedDays: number;
321
+ }
322
+ /** Status */
323
+ export declare enum Shortable_Status {
324
+ /** NOT_AVAILABLE - Not available */
325
+ NOT_AVAILABLE = 0,
326
+ /** AVAILABLE - Available */
327
+ AVAILABLE = 1,
328
+ /** HTB - Indicates that the security is hard to borrow */
329
+ HTB = 2,
330
+ /** ACCOUNT_NOT_APPROVED - Prohibited at account level */
331
+ ACCOUNT_NOT_APPROVED = 3,
332
+ /** AVAILABLE_STRATEGY - Allowed as part of a strategy */
333
+ AVAILABLE_STRATEGY = 4,
334
+ UNRECOGNIZED = -1
335
+ }
336
+ export declare function shortable_StatusFromJSON(object: any): Shortable_Status;
337
+ export declare function shortable_StatusToJSON(object: Shortable_Status): string;
338
+ /** Request for index composition */
339
+ export interface GetConstituentsRequest {
340
+ /** Index symbol (for example, "SPX@_SP" or "NDX@_SCI") */
341
+ symbol: string;
342
+ /**
343
+ * Cursor for pagination. Specifies the sec_id of the instrument the list should start with.
344
+ * For the first request, leave the field blank (value 0).
345
+ * For subsequent requests, use next_cursor from the previous response.
346
+ */
347
+ cursor: bigint;
348
+ }
349
+ /** Index composition query result */
350
+ export interface GetConstituentsResponse {
351
+ /** List of components (securities) included in the calculation base of the requested index */
352
+ constituents: Constituents[];
353
+ /**
354
+ * Cursor to get the next page. Contains the sec_id of the last instrument in the current list.
355
+ * Pass this value in the next request's cursor field to retrieve the next page.
356
+ * If the value is 0 or missing, this is the last page
357
+ */
358
+ nextCursor: bigint;
359
+ }
360
+ /** Information about the component (security) included in the index */
361
+ export interface Constituents {
362
+ /** Instrument symbol code */
363
+ symbol: string;
364
+ /** Full name of the issuing company */
365
+ name: string;
366
+ /** Global economic sector to which the company belongs (for example, "Technology", "Healthcare") */
367
+ sector: string;
368
+ /** Industry (sub-industry) of the company's activity (for example, "Software - Application") */
369
+ subSector: string;
370
+ /** Unique company identifier in the US SEC database (Central Index Key) */
371
+ cik: string;
372
+ /** Date the security was added to the index */
373
+ indexInclusionDate: DateMessage | undefined;
374
+ /** Instrument weight in index */
375
+ weight: Decimal | undefined;
376
+ }
377
+ export declare const ExchangesRequest: MessageFns<ExchangesRequest>;
378
+ export declare const ExchangesResponse: MessageFns<ExchangesResponse>;
379
+ export declare const AssetsRequest: MessageFns<AssetsRequest>;
380
+ export declare const AssetsResponse: MessageFns<AssetsResponse>;
381
+ export declare const AllAssetsRequest: MessageFns<AllAssetsRequest>;
382
+ export declare const AllAssetsResponse: MessageFns<AllAssetsResponse>;
383
+ export declare const GetAssetRequest: MessageFns<GetAssetRequest>;
384
+ export declare const GetAssetResponse: MessageFns<GetAssetResponse>;
385
+ export declare const GetAssetResponse_FutureDetails: MessageFns<GetAssetResponse_FutureDetails>;
386
+ export declare const GetAssetResponse_OptionDetails: MessageFns<GetAssetResponse_OptionDetails>;
387
+ export declare const GetAssetResponse_BondDetails: MessageFns<GetAssetResponse_BondDetails>;
388
+ export declare const GetAssetParamsRequest: MessageFns<GetAssetParamsRequest>;
389
+ export declare const GetAssetParamsResponse: MessageFns<GetAssetParamsResponse>;
390
+ export declare const OptionsChainRequest: MessageFns<OptionsChainRequest>;
391
+ export declare const OptionsChainResponse: MessageFns<OptionsChainResponse>;
392
+ export declare const ScheduleRequest: MessageFns<ScheduleRequest>;
393
+ export declare const ScheduleResponse: MessageFns<ScheduleResponse>;
394
+ export declare const ScheduleResponse_Sessions: MessageFns<ScheduleResponse_Sessions>;
395
+ export declare const ClockRequest: MessageFns<ClockRequest>;
396
+ export declare const ClockResponse: MessageFns<ClockResponse>;
397
+ export declare const Exchange: MessageFns<Exchange>;
398
+ export declare const Asset: MessageFns<Asset>;
399
+ export declare const Option: MessageFns<Option>;
400
+ export declare const Longable: MessageFns<Longable>;
401
+ export declare const Shortable: MessageFns<Shortable>;
402
+ export declare const GetConstituentsRequest: MessageFns<GetConstituentsRequest>;
403
+ export declare const GetConstituentsResponse: MessageFns<GetConstituentsResponse>;
404
+ export declare const Constituents: MessageFns<Constituents>;
405
+ /** Instrument service */
406
+ export type AssetsServiceDefinition = typeof AssetsServiceDefinition;
407
+ export declare const AssetsServiceDefinition: {
408
+ readonly name: "AssetsService";
409
+ readonly fullName: "grpc.tradeapi.v1.assets.AssetsService";
410
+ readonly methods: {
411
+ /**
412
+ * Get available exchanges, names, and MIC codes
413
+ * Example HTTP request:
414
+ * GET /v1/exchanges
415
+ * Authorization: <token>
416
+ */
417
+ readonly exchanges: {
418
+ readonly name: "Exchanges";
419
+ readonly requestType: typeof ExchangesRequest;
420
+ readonly requestStream: false;
421
+ readonly responseType: typeof ExchangesResponse;
422
+ readonly responseStream: false;
423
+ readonly options: {
424
+ readonly _unknownFields: {
425
+ readonly 8338: readonly [Uint8Array<ArrayBufferLike>];
426
+ readonly 578365826: readonly [Uint8Array<ArrayBufferLike>];
427
+ };
428
+ };
429
+ };
430
+ /**
431
+ * Get instruments available for trading and their descriptions
432
+ * Example HTTP request:
433
+ * GET /v1/assets
434
+ * Authorization: <token>
435
+ *
436
+ * @deprecated
437
+ */
438
+ readonly assets: {
439
+ readonly name: "Assets";
440
+ readonly requestType: typeof AssetsRequest;
441
+ readonly requestStream: false;
442
+ readonly responseType: typeof AssetsResponse;
443
+ readonly responseStream: false;
444
+ readonly options: {
445
+ readonly _unknownFields: {
446
+ readonly 8338: readonly [Uint8Array<ArrayBufferLike>];
447
+ readonly 578365826: readonly [Uint8Array<ArrayBufferLike>];
448
+ };
449
+ };
450
+ };
451
+ /**
452
+ * Get all instruments, including indicative and archived instruments, and their descriptions
453
+ * Example HTTP request:
454
+ * GET /v1/assets/all?cursor=56658&only_disabled=true
455
+ * Authorization: <token>
456
+ */
457
+ readonly allAssets: {
458
+ readonly name: "AllAssets";
459
+ readonly requestType: typeof AllAssetsRequest;
460
+ readonly requestStream: false;
461
+ readonly responseType: typeof AllAssetsResponse;
462
+ readonly responseStream: false;
463
+ readonly options: {
464
+ readonly _unknownFields: {
465
+ readonly 8338: readonly [Uint8Array<ArrayBufferLike>];
466
+ readonly 578365826: readonly [Uint8Array<ArrayBufferLike>];
467
+ };
468
+ };
469
+ };
470
+ /**
471
+ * Get information about a specific instrument
472
+ * Example HTTP request:
473
+ * GET /v1/assets/SBER@MISX?account_id=1440399
474
+ * Authorization: <token>
475
+ *
476
+ * Parameters:
477
+ * - symbol is passed in the URL path
478
+ * - account_id is passed as a query parameter
479
+ */
480
+ readonly getAsset: {
481
+ readonly name: "GetAsset";
482
+ readonly requestType: typeof GetAssetRequest;
483
+ readonly requestStream: false;
484
+ readonly responseType: typeof GetAssetResponse;
485
+ readonly responseStream: false;
486
+ readonly options: {
487
+ readonly _unknownFields: {
488
+ readonly 8338: readonly [Uint8Array<ArrayBufferLike>];
489
+ readonly 578365826: readonly [Uint8Array<ArrayBufferLike>];
490
+ };
491
+ };
492
+ };
493
+ /**
494
+ * Get trading parameters for an instrument
495
+ * Example HTTP request:
496
+ * GET /v1/assets/SBER@MISX/params?account_id=1440399
497
+ * Authorization: <token>
498
+ *
499
+ * Parameters:
500
+ * - symbol is passed in the URL path
501
+ * - account_id is passed as a query parameter
502
+ */
503
+ readonly getAssetParams: {
504
+ readonly name: "GetAssetParams";
505
+ readonly requestType: typeof GetAssetParamsRequest;
506
+ readonly requestStream: false;
507
+ readonly responseType: typeof GetAssetParamsResponse;
508
+ readonly responseStream: false;
509
+ readonly options: {
510
+ readonly _unknownFields: {
511
+ readonly 8338: readonly [Uint8Array<ArrayBufferLike>];
512
+ readonly 578365826: readonly [Uint8Array<ArrayBufferLike>];
513
+ };
514
+ };
515
+ };
516
+ /**
517
+ * Retrieving an options chain for the underlying asset
518
+ * Example HTTP request:
519
+ * GET /v1/assets/SBER@MISX/options
520
+ * Authorization: <token>
521
+ */
522
+ readonly optionsChain: {
523
+ readonly name: "OptionsChain";
524
+ readonly requestType: typeof OptionsChainRequest;
525
+ readonly requestStream: false;
526
+ readonly responseType: typeof OptionsChainResponse;
527
+ readonly responseStream: false;
528
+ readonly options: {
529
+ readonly _unknownFields: {
530
+ readonly 8338: readonly [Uint8Array<ArrayBufferLike>];
531
+ readonly 578365826: readonly [Uint8Array<ArrayBufferLike>];
532
+ };
533
+ };
534
+ };
535
+ /**
536
+ * Get an instrument's trading schedule
537
+ * Example HTTP request:
538
+ * GET /v1/assets/SBER@MISX/schedule
539
+ * Authorization: <token>
540
+ */
541
+ readonly schedule: {
542
+ readonly name: "Schedule";
543
+ readonly requestType: typeof ScheduleRequest;
544
+ readonly requestStream: false;
545
+ readonly responseType: typeof ScheduleResponse;
546
+ readonly responseStream: false;
547
+ readonly options: {
548
+ readonly _unknownFields: {
549
+ readonly 8338: readonly [Uint8Array<ArrayBufferLike>];
550
+ readonly 578365826: readonly [Uint8Array<ArrayBufferLike>];
551
+ };
552
+ };
553
+ };
554
+ /**
555
+ * Get the server time
556
+ * Example HTTP request:
557
+ * GET /v1/assets/clock
558
+ * Authorization: <token>
559
+ */
560
+ readonly clock: {
561
+ readonly name: "Clock";
562
+ readonly requestType: typeof ClockRequest;
563
+ readonly requestStream: false;
564
+ readonly responseType: typeof ClockResponse;
565
+ readonly responseStream: false;
566
+ readonly options: {
567
+ readonly _unknownFields: {
568
+ readonly 8338: readonly [Uint8Array<ArrayBufferLike>];
569
+ readonly 578365826: readonly [Uint8Array<ArrayBufferLike>];
570
+ };
571
+ };
572
+ };
573
+ /** Get the composition of a stock index by its symbol */
574
+ readonly getConstituents: {
575
+ readonly name: "GetConstituents";
576
+ readonly requestType: typeof GetConstituentsRequest;
577
+ readonly requestStream: false;
578
+ readonly responseType: typeof GetConstituentsResponse;
579
+ readonly responseStream: false;
580
+ readonly options: {
581
+ readonly _unknownFields: {
582
+ readonly 8338: readonly [Uint8Array<ArrayBufferLike>];
583
+ readonly 578365826: readonly [Uint8Array<ArrayBufferLike>];
584
+ };
585
+ };
586
+ };
587
+ };
588
+ };
589
+ export interface AssetsServiceImplementation<CallContextExt = {}> {
590
+ /**
591
+ * Get available exchanges, names, and MIC codes
592
+ * Example HTTP request:
593
+ * GET /v1/exchanges
594
+ * Authorization: <token>
595
+ */
596
+ exchanges(request: ExchangesRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ExchangesResponse>>;
597
+ /**
598
+ * Get instruments available for trading and their descriptions
599
+ * Example HTTP request:
600
+ * GET /v1/assets
601
+ * Authorization: <token>
602
+ *
603
+ * @deprecated
604
+ */
605
+ assets(request: AssetsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<AssetsResponse>>;
606
+ /**
607
+ * Get all instruments, including indicative and archived instruments, and their descriptions
608
+ * Example HTTP request:
609
+ * GET /v1/assets/all?cursor=56658&only_disabled=true
610
+ * Authorization: <token>
611
+ */
612
+ allAssets(request: AllAssetsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<AllAssetsResponse>>;
613
+ /**
614
+ * Get information about a specific instrument
615
+ * Example HTTP request:
616
+ * GET /v1/assets/SBER@MISX?account_id=1440399
617
+ * Authorization: <token>
618
+ *
619
+ * Parameters:
620
+ * - symbol is passed in the URL path
621
+ * - account_id is passed as a query parameter
622
+ */
623
+ getAsset(request: GetAssetRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetAssetResponse>>;
624
+ /**
625
+ * Get trading parameters for an instrument
626
+ * Example HTTP request:
627
+ * GET /v1/assets/SBER@MISX/params?account_id=1440399
628
+ * Authorization: <token>
629
+ *
630
+ * Parameters:
631
+ * - symbol is passed in the URL path
632
+ * - account_id is passed as a query parameter
633
+ */
634
+ getAssetParams(request: GetAssetParamsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetAssetParamsResponse>>;
635
+ /**
636
+ * Retrieving an options chain for the underlying asset
637
+ * Example HTTP request:
638
+ * GET /v1/assets/SBER@MISX/options
639
+ * Authorization: <token>
640
+ */
641
+ optionsChain(request: OptionsChainRequest, context: CallContext & CallContextExt): Promise<DeepPartial<OptionsChainResponse>>;
642
+ /**
643
+ * Get an instrument's trading schedule
644
+ * Example HTTP request:
645
+ * GET /v1/assets/SBER@MISX/schedule
646
+ * Authorization: <token>
647
+ */
648
+ schedule(request: ScheduleRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ScheduleResponse>>;
649
+ /**
650
+ * Get the server time
651
+ * Example HTTP request:
652
+ * GET /v1/assets/clock
653
+ * Authorization: <token>
654
+ */
655
+ clock(request: ClockRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ClockResponse>>;
656
+ /** Get the composition of a stock index by its symbol */
657
+ getConstituents(request: GetConstituentsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetConstituentsResponse>>;
658
+ }
659
+ export interface AssetsServiceClient<CallOptionsExt = {}> {
660
+ /**
661
+ * Get available exchanges, names, and MIC codes
662
+ * Example HTTP request:
663
+ * GET /v1/exchanges
664
+ * Authorization: <token>
665
+ */
666
+ exchanges(request: DeepPartial<ExchangesRequest>, options?: CallOptions & CallOptionsExt): Promise<ExchangesResponse>;
667
+ /**
668
+ * Get instruments available for trading and their descriptions
669
+ * Example HTTP request:
670
+ * GET /v1/assets
671
+ * Authorization: <token>
672
+ *
673
+ * @deprecated
674
+ */
675
+ assets(request: DeepPartial<AssetsRequest>, options?: CallOptions & CallOptionsExt): Promise<AssetsResponse>;
676
+ /**
677
+ * Get all instruments, including indicative and archived instruments, and their descriptions
678
+ * Example HTTP request:
679
+ * GET /v1/assets/all?cursor=56658&only_disabled=true
680
+ * Authorization: <token>
681
+ */
682
+ allAssets(request: DeepPartial<AllAssetsRequest>, options?: CallOptions & CallOptionsExt): Promise<AllAssetsResponse>;
683
+ /**
684
+ * Get information about a specific instrument
685
+ * Example HTTP request:
686
+ * GET /v1/assets/SBER@MISX?account_id=1440399
687
+ * Authorization: <token>
688
+ *
689
+ * Parameters:
690
+ * - symbol is passed in the URL path
691
+ * - account_id is passed as a query parameter
692
+ */
693
+ getAsset(request: DeepPartial<GetAssetRequest>, options?: CallOptions & CallOptionsExt): Promise<GetAssetResponse>;
694
+ /**
695
+ * Get trading parameters for an instrument
696
+ * Example HTTP request:
697
+ * GET /v1/assets/SBER@MISX/params?account_id=1440399
698
+ * Authorization: <token>
699
+ *
700
+ * Parameters:
701
+ * - symbol is passed in the URL path
702
+ * - account_id is passed as a query parameter
703
+ */
704
+ getAssetParams(request: DeepPartial<GetAssetParamsRequest>, options?: CallOptions & CallOptionsExt): Promise<GetAssetParamsResponse>;
705
+ /**
706
+ * Retrieving an options chain for the underlying asset
707
+ * Example HTTP request:
708
+ * GET /v1/assets/SBER@MISX/options
709
+ * Authorization: <token>
710
+ */
711
+ optionsChain(request: DeepPartial<OptionsChainRequest>, options?: CallOptions & CallOptionsExt): Promise<OptionsChainResponse>;
712
+ /**
713
+ * Get an instrument's trading schedule
714
+ * Example HTTP request:
715
+ * GET /v1/assets/SBER@MISX/schedule
716
+ * Authorization: <token>
717
+ */
718
+ schedule(request: DeepPartial<ScheduleRequest>, options?: CallOptions & CallOptionsExt): Promise<ScheduleResponse>;
719
+ /**
720
+ * Get the server time
721
+ * Example HTTP request:
722
+ * GET /v1/assets/clock
723
+ * Authorization: <token>
724
+ */
725
+ clock(request: DeepPartial<ClockRequest>, options?: CallOptions & CallOptionsExt): Promise<ClockResponse>;
726
+ /** Get the composition of a stock index by its symbol */
727
+ getConstituents(request: DeepPartial<GetConstituentsRequest>, options?: CallOptions & CallOptionsExt): Promise<GetConstituentsResponse>;
728
+ }
729
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
730
+ export type DeepPartial<T> = T extends bigint ? string | number | bigint : T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
731
+ [K in keyof T]?: DeepPartial<T[K]>;
732
+ } : Partial<T>;
733
+ export interface MessageFns<T> {
734
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
735
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
736
+ fromJSON(object: any): T;
737
+ toJSON(message: T): unknown;
738
+ create(base?: DeepPartial<T>): T;
739
+ fromPartial(object: DeepPartial<T>): T;
740
+ }
741
+ export {};
742
+ //# sourceMappingURL=assets_service.d.ts.map