@limeint/trade-api 2.18.1-rc.1 → 2.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +110 -36
- package/dist/client.d.ts +10 -28
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +10 -86
- package/dist/client.js.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/accounts/accounts_service.d.ts +71 -88
- package/dist/generated/grpc/tradeapi/v1/accounts/accounts_service.d.ts.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/accounts/accounts_service.js +36 -145
- package/dist/generated/grpc/tradeapi/v1/accounts/accounts_service.js.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/assets/assets_service.d.ts +195 -196
- package/dist/generated/grpc/tradeapi/v1/assets/assets_service.d.ts.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/assets/assets_service.js +356 -95
- package/dist/generated/grpc/tradeapi/v1/assets/assets_service.js.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/auth/auth_service.d.ts +45 -45
- package/dist/generated/grpc/tradeapi/v1/auth/auth_service.d.ts.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/auth/auth_service.js +13 -13
- package/dist/generated/grpc/tradeapi/v1/auth/auth_service.js.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/corporateactions/corporate_actions_service.d.ts +69 -221
- package/dist/generated/grpc/tradeapi/v1/corporateactions/corporate_actions_service.d.ts.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/corporateactions/corporate_actions_service.js +165 -1208
- package/dist/generated/grpc/tradeapi/v1/corporateactions/corporate_actions_service.js.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/marketdata/marketdata_service.d.ts +136 -143
- package/dist/generated/grpc/tradeapi/v1/marketdata/marketdata_service.d.ts.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/marketdata/marketdata_service.js +202 -63
- package/dist/generated/grpc/tradeapi/v1/marketdata/marketdata_service.js.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/metrics/usage_metrics_service.d.ts +8 -23
- package/dist/generated/grpc/tradeapi/v1/metrics/usage_metrics_service.d.ts.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/metrics/usage_metrics_service.js +1 -6
- package/dist/generated/grpc/tradeapi/v1/metrics/usage_metrics_service.js.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/orders/orders_service.d.ts +235 -235
- package/dist/generated/grpc/tradeapi/v1/orders/orders_service.d.ts.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/orders/orders_service.js +187 -193
- package/dist/generated/grpc/tradeapi/v1/orders/orders_service.js.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/side.d.ts +2 -2
- package/dist/generated/grpc/tradeapi/v1/side.d.ts.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/side.js +2 -2
- package/dist/generated/grpc/tradeapi/v1/side.js.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/trade.d.ts +10 -10
- package/dist/generated/grpc/tradeapi/v1/trade.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/internal/auth.d.ts +10 -0
- package/dist/internal/auth.d.ts.map +1 -0
- package/dist/internal/auth.js +63 -0
- package/dist/internal/auth.js.map +1 -0
- package/dist/internal/retry.d.ts +10 -0
- package/dist/internal/retry.d.ts.map +1 -0
- package/dist/internal/retry.js +22 -0
- package/dist/internal/retry.js.map +1 -0
- package/dist/internal/services.d.ts +20 -0
- package/dist/internal/services.d.ts.map +1 -0
- package/dist/internal/services.js +20 -0
- package/dist/internal/services.js.map +1 -0
- package/package.json +9 -8
- package/dist/generated/grpc/tradeapi/v1/reports/reports_service.d.ts +0 -203
- package/dist/generated/grpc/tradeapi/v1/reports/reports_service.d.ts.map +0 -1
- package/dist/generated/grpc/tradeapi/v1/reports/reports_service.js +0 -871
- package/dist/generated/grpc/tradeapi/v1/reports/reports_service.js.map +0 -1
- package/dist/reports.d.ts +0 -2
- package/dist/reports.d.ts.map +0 -1
- package/dist/reports.js +0 -2
- package/dist/reports.js.map +0 -1
|
@@ -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
|
-
/**
|
|
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
|
|
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
|
|
27
|
+
/** Exchange Information */
|
|
28
28
|
exchanges: Exchange[];
|
|
29
29
|
}
|
|
30
|
-
/** Request a list of available
|
|
30
|
+
/** Request to get a list of available assets */
|
|
31
31
|
export interface AssetsRequest {
|
|
32
32
|
}
|
|
33
|
-
/** List of available
|
|
33
|
+
/** List of available assets */
|
|
34
34
|
export interface AssetsResponse {
|
|
35
|
-
/**
|
|
35
|
+
/** Asset information */
|
|
36
36
|
assets: Asset[];
|
|
37
37
|
}
|
|
38
|
-
/** Request a list of available
|
|
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
|
|
42
|
-
* For the first request, leave
|
|
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
|
|
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
|
|
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
|
|
57
|
+
/** Response containing some of the available assets. */
|
|
58
58
|
export interface AllAssetsResponse {
|
|
59
|
-
/**
|
|
59
|
+
/** Part of the list of assets */
|
|
60
60
|
assets: Asset[];
|
|
61
61
|
/**
|
|
62
|
-
* Cursor
|
|
63
|
-
* Pass this value
|
|
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
|
|
68
|
+
/** Request for information on a specific asset */
|
|
69
69
|
export interface GetAssetRequest {
|
|
70
|
-
/**
|
|
70
|
+
/** Symbol */
|
|
71
71
|
symbol: string;
|
|
72
|
-
/**
|
|
72
|
+
/** The account ID for which the asset information will be retrieved. */
|
|
73
73
|
accountId: string;
|
|
74
74
|
}
|
|
75
|
-
/**
|
|
75
|
+
/** List of information about a specific asset */
|
|
76
76
|
export interface GetAssetResponse {
|
|
77
77
|
/** Trading mode code */
|
|
78
78
|
board: string;
|
|
79
|
-
/**
|
|
79
|
+
/** Asset ID */
|
|
80
80
|
id: string;
|
|
81
|
-
/**
|
|
81
|
+
/** Asset ticker */
|
|
82
82
|
ticker: string;
|
|
83
83
|
/** mic exchange ID */
|
|
84
84
|
mic: string;
|
|
85
|
-
/** Isin
|
|
85
|
+
/** Isin asset identifier */
|
|
86
86
|
isin: string;
|
|
87
|
-
/**
|
|
87
|
+
/** Asset type */
|
|
88
88
|
type: string;
|
|
89
|
-
/**
|
|
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
|
|
93
|
+
/** Minimum price step. To calculate the final price step: min_step/(10 decimals) */
|
|
94
94
|
minStep: bigint;
|
|
95
|
-
/** Number of
|
|
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
|
-
/**
|
|
103
|
+
/** The quote currency may not match the asset's trading mode currency. */
|
|
104
104
|
quoteCurrency: string;
|
|
105
|
-
/** Specific parameters for
|
|
105
|
+
/** Specific parameters for instrument type "Futures" */
|
|
106
106
|
futureDetails?: GetAssetResponse_FutureDetails | undefined;
|
|
107
|
-
/** Specific parameters for
|
|
107
|
+
/** Specific parameters for instrument type "Option" */
|
|
108
108
|
optionDetails?: GetAssetResponse_OptionDetails | undefined;
|
|
109
|
-
/** Specific parameters for
|
|
109
|
+
/** Specific parameters for instrument type "Bond" */
|
|
110
110
|
bondDetails?: GetAssetResponse_BondDetails | undefined;
|
|
111
111
|
}
|
|
112
|
-
/** Specific parameters for
|
|
112
|
+
/** Specific parameters for instrument type "Futures" */
|
|
113
113
|
export interface GetAssetResponse_FutureDetails {
|
|
114
|
-
/**
|
|
114
|
+
/** Futures contract expiration date and time. */
|
|
115
115
|
expirationDate: Date | undefined;
|
|
116
|
-
/** Contract size (multiplier)
|
|
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
|
|
119
|
+
/** Specific parameters for instrument type "Option" */
|
|
120
120
|
export interface GetAssetResponse_OptionDetails {
|
|
121
|
-
/**
|
|
121
|
+
/** Option contract expiration date and time. */
|
|
122
122
|
expirationDate: Date | undefined;
|
|
123
|
-
/** Contract size (multiplier)
|
|
123
|
+
/** Contract size (multiplier) — the number of units of the underlying asset in one contract. */
|
|
124
124
|
contractSize: Decimal | undefined;
|
|
125
|
-
/**
|
|
125
|
+
/** Option strike price. */
|
|
126
126
|
strike: Decimal | undefined;
|
|
127
127
|
}
|
|
128
|
-
/** Specific parameters for
|
|
128
|
+
/** Specific parameters for instrument type "Bond" */
|
|
129
129
|
export interface GetAssetResponse_BondDetails {
|
|
130
|
-
/**
|
|
130
|
+
/** Current face value of one bond. */
|
|
131
131
|
bondFaceValue: Decimal | undefined;
|
|
132
|
-
/** Symbolic code of the
|
|
132
|
+
/** Symbolic currency code of the bond denomination (e.g., RUB, USD). */
|
|
133
133
|
currency: string;
|
|
134
134
|
}
|
|
135
|
-
/** Request for trading parameters
|
|
135
|
+
/** Request for asset trading parameters */
|
|
136
136
|
export interface GetAssetParamsRequest {
|
|
137
|
-
/**
|
|
137
|
+
/** Symbol */
|
|
138
138
|
symbol: string;
|
|
139
|
-
/**
|
|
139
|
+
/** ID of the account for which trading parameters will be selected */
|
|
140
140
|
accountId: string;
|
|
141
141
|
}
|
|
142
|
-
/**
|
|
142
|
+
/** Asset trading parameters */
|
|
143
143
|
export interface GetAssetParamsResponse {
|
|
144
|
-
/**
|
|
144
|
+
/** Symbol */
|
|
145
145
|
symbol: string;
|
|
146
146
|
/** Account ID for which trading parameters are selected */
|
|
147
147
|
accountId: string;
|
|
148
148
|
/**
|
|
149
|
-
*
|
|
150
|
-
*
|
|
151
|
-
* Clients should
|
|
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
|
-
/**
|
|
156
|
+
/** Are operations available in Long? */
|
|
157
157
|
longable: Longable | undefined;
|
|
158
|
-
/**
|
|
158
|
+
/** Are short operations available? */
|
|
159
159
|
shortable: Shortable | undefined;
|
|
160
|
-
/** Risk rate for
|
|
160
|
+
/** Risk rate for the Long operation */
|
|
161
161
|
longRiskRate: Decimal | undefined;
|
|
162
162
|
/**
|
|
163
|
-
*
|
|
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
|
|
168
|
+
/** Risk rate for a short transaction */
|
|
169
169
|
shortRiskRate: Decimal | undefined;
|
|
170
170
|
/**
|
|
171
|
-
* Collateral
|
|
171
|
+
* Collateral amount to maintain a Short position
|
|
172
172
|
*
|
|
173
173
|
* @deprecated
|
|
174
174
|
*/
|
|
175
175
|
shortCollateral: Money | undefined;
|
|
176
|
-
/** Initial
|
|
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
|
|
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
|
|
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
|
-
/**
|
|
187
|
+
/** Options chain request */
|
|
189
188
|
export interface OptionsChainRequest {
|
|
190
|
-
/**
|
|
189
|
+
/** The symbol of the option's underlying asset */
|
|
191
190
|
underlyingSymbol: string;
|
|
192
191
|
/**
|
|
193
|
-
* Optional parameter. Relevant for options on futures
|
|
194
|
-
* If
|
|
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
|
|
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
|
-
/**
|
|
202
|
+
/** Options Chain Information */
|
|
204
203
|
export interface OptionsChainResponse {
|
|
205
|
-
/**
|
|
204
|
+
/** The symbol of the option's underlying asset */
|
|
206
205
|
symbol: string;
|
|
207
|
-
/** Option
|
|
206
|
+
/** Option information */
|
|
208
207
|
options: Option[];
|
|
209
208
|
}
|
|
210
|
-
/** Request
|
|
209
|
+
/** Request to receive the asset schedule */
|
|
211
210
|
export interface ScheduleRequest {
|
|
212
|
-
/**
|
|
211
|
+
/** Symbol */
|
|
213
212
|
symbol: string;
|
|
214
213
|
}
|
|
215
|
-
/**
|
|
214
|
+
/** Asset Schedule */
|
|
216
215
|
export interface ScheduleResponse {
|
|
217
|
-
/**
|
|
216
|
+
/** Symbol */
|
|
218
217
|
symbol: string;
|
|
219
|
-
/**
|
|
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
|
|
228
|
+
/** Request to obtain the server time */
|
|
230
229
|
export interface ClockRequest {
|
|
231
230
|
}
|
|
232
|
-
/** Server
|
|
231
|
+
/** Server Time */
|
|
233
232
|
export interface ClockResponse {
|
|
234
233
|
/** Timestamp */
|
|
235
234
|
timestamp: Date | undefined;
|
|
236
235
|
}
|
|
237
|
-
/** Information
|
|
236
|
+
/** Exchange Information */
|
|
238
237
|
export interface Exchange {
|
|
239
|
-
/** Exchange ID
|
|
238
|
+
/** MIC Exchange ID */
|
|
240
239
|
mic: string;
|
|
241
|
-
/** Exchange
|
|
240
|
+
/** Exchange Name */
|
|
242
241
|
name: string;
|
|
243
242
|
}
|
|
244
|
-
/**
|
|
243
|
+
/** Asset Information */
|
|
245
244
|
export interface Asset {
|
|
246
|
-
/**
|
|
245
|
+
/** Ticker@mic symbol */
|
|
247
246
|
symbol: string;
|
|
248
|
-
/**
|
|
247
|
+
/** Asset ID */
|
|
249
248
|
id: string;
|
|
250
|
-
/**
|
|
249
|
+
/** Asset ticker */
|
|
251
250
|
ticker: string;
|
|
252
251
|
/** mic exchange ID */
|
|
253
252
|
mic: string;
|
|
254
|
-
/** Isin
|
|
253
|
+
/** Isin asset identifier */
|
|
255
254
|
isin: string;
|
|
256
|
-
/**
|
|
255
|
+
/** Asset type */
|
|
257
256
|
type: string;
|
|
258
|
-
/**
|
|
257
|
+
/** Asset name */
|
|
259
258
|
name: string;
|
|
260
|
-
/**
|
|
259
|
+
/** Is the asset archived or not? */
|
|
261
260
|
isArchived: boolean;
|
|
262
261
|
}
|
|
263
|
-
/** Option
|
|
262
|
+
/** Option Information */
|
|
264
263
|
export interface Option {
|
|
265
|
-
/**
|
|
264
|
+
/** Symbol */
|
|
266
265
|
symbol: string;
|
|
267
|
-
/**
|
|
266
|
+
/** Asset type */
|
|
268
267
|
type: Option_Type;
|
|
269
|
-
/** Lot
|
|
268
|
+
/** Lot quantity of the underlying asset */
|
|
270
269
|
contractSize: Decimal | undefined;
|
|
271
270
|
/** Trading start date */
|
|
272
271
|
tradeFirstDay: DateMessage | undefined;
|
|
273
|
-
/**
|
|
272
|
+
/** Trading end date */
|
|
274
273
|
tradeLastDay: DateMessage | undefined;
|
|
275
|
-
/** Option
|
|
274
|
+
/** Option strike price */
|
|
276
275
|
strike: Decimal | undefined;
|
|
277
|
-
/** Option
|
|
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
|
|
283
|
+
/** Option Type */
|
|
285
284
|
export declare enum Option_Type {
|
|
286
|
-
/** TYPE_UNSPECIFIED -
|
|
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
|
|
295
|
+
/** Are operations available in Long? */
|
|
297
296
|
export interface Longable {
|
|
298
|
-
/**
|
|
297
|
+
/** Asset status */
|
|
299
298
|
value: Longable_Status;
|
|
300
|
-
/**
|
|
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 -
|
|
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
|
-
/**
|
|
314
|
+
/** Are short operations available? */
|
|
316
315
|
export interface Shortable {
|
|
317
|
-
/**
|
|
316
|
+
/** Asset status */
|
|
318
317
|
value: Shortable_Status;
|
|
319
|
-
/**
|
|
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 -
|
|
327
|
+
/** HTB - Indication that the paper is Hard To Borrow (if any) */
|
|
329
328
|
HTB = 2,
|
|
330
|
-
/** ACCOUNT_NOT_APPROVED -
|
|
329
|
+
/** ACCOUNT_NOT_APPROVED - Forbidden at the account level */
|
|
331
330
|
ACCOUNT_NOT_APPROVED = 3,
|
|
332
|
-
/** AVAILABLE_STRATEGY - Allowed
|
|
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
|
|
337
|
+
/** Request to get the index composition. */
|
|
339
338
|
export interface GetConstituentsRequest {
|
|
340
|
-
/**
|
|
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
|
|
344
|
-
* For the first request, leave
|
|
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
|
-
/**
|
|
348
|
+
/** Result of the index composition request. */
|
|
350
349
|
export interface GetConstituentsResponse {
|
|
351
|
-
/** List of
|
|
350
|
+
/** List of constituents (securities) included in the calculation base of the requested index. */
|
|
352
351
|
constituents: Constituents[];
|
|
353
352
|
/**
|
|
354
|
-
* Cursor
|
|
355
|
-
* Pass this value
|
|
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
|
|
359
|
+
/** Information about a constituent (security) included in the index */
|
|
361
360
|
export interface Constituents {
|
|
362
|
-
/**
|
|
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
|
|
365
|
+
/** Global economic sector the company belongs to (e.g., "Technology", "Healthcare") */
|
|
367
366
|
sector: string;
|
|
368
|
-
/** Industry (sub-
|
|
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
|
-
/**
|
|
371
|
+
/** Index inclusion date */
|
|
373
372
|
indexInclusionDate: DateMessage | undefined;
|
|
374
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
*
|
|
413
|
-
*
|
|
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
|
|
432
|
-
*
|
|
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
|
|
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
|
-
*
|
|
472
|
-
*
|
|
473
|
-
* GET /v1/assets/
|
|
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
|
|
478
|
-
* - account_id
|
|
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
|
-
*
|
|
495
|
-
*
|
|
496
|
-
* GET /v1/assets/
|
|
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
|
|
501
|
-
* - account_id
|
|
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
|
-
*
|
|
518
|
-
*
|
|
519
|
-
* GET /v1/assets/
|
|
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
|
-
*
|
|
537
|
-
*
|
|
538
|
-
* GET /v1/assets/
|
|
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
|
-
*
|
|
556
|
-
*
|
|
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
|
-
*
|
|
592
|
-
*
|
|
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
|
|
599
|
-
*
|
|
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
|
|
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
|
-
*
|
|
615
|
-
*
|
|
616
|
-
* GET /v1/assets/
|
|
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
|
|
621
|
-
* - account_id
|
|
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
|
-
*
|
|
626
|
-
*
|
|
627
|
-
* GET /v1/assets/
|
|
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
|
|
632
|
-
* - account_id
|
|
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
|
-
*
|
|
637
|
-
*
|
|
638
|
-
* GET /v1/assets/
|
|
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
|
-
*
|
|
644
|
-
*
|
|
645
|
-
* GET /v1/assets/
|
|
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
|
-
*
|
|
651
|
-
*
|
|
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
|
-
*
|
|
662
|
-
*
|
|
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
|
|
669
|
-
*
|
|
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
|
|
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
|
-
*
|
|
685
|
-
*
|
|
686
|
-
* GET /v1/assets/
|
|
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
|
|
691
|
-
* - account_id
|
|
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
|
-
*
|
|
696
|
-
*
|
|
697
|
-
* GET /v1/assets/
|
|
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
|
|
702
|
-
* - account_id
|
|
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
|
-
*
|
|
707
|
-
*
|
|
708
|
-
* GET /v1/assets/
|
|
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
|
-
*
|
|
714
|
-
*
|
|
715
|
-
* GET /v1/assets/
|
|
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
|
-
*
|
|
721
|
-
*
|
|
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;
|