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