snaptrade-typescript-sdk 9.0.14 → 9.0.16
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 +32 -55
- package/dist/api/account-information-api-generated.d.ts +24 -24
- package/dist/api/account-information-api-generated.js +24 -24
- package/dist/api/authentication-api-generated.d.ts +12 -12
- package/dist/api/authentication-api-generated.js +12 -12
- package/dist/api/reference-data-api-generated.d.ts +8 -8
- package/dist/api/reference-data-api-generated.js +8 -8
- package/dist/api/trading-api-generated.d.ts +8 -67
- package/dist/api/trading-api-generated.js +8 -107
- package/dist/browser.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/models/brokerage-symbol-symbol.d.ts +7 -0
- package/dist/models/figi-instrument.d.ts +20 -0
- package/dist/models/index.d.ts +2 -1
- package/dist/models/index.js +2 -1
- package/dist/models/symbol-figi-instrument.d.ts +19 -0
- package/dist/models/symbol-figi-instrument.js +2 -0
- package/dist/models/symbol.d.ts +7 -0
- package/dist/models/underlying-symbol.d.ts +7 -0
- package/dist/models/universal-symbol.d.ts +7 -0
- package/dist/operationParameterMap.js +0 -16
- package/package.json +1 -1
- package/dist/models/trading-place-ocoorder-request.d.ts +0 -19
- /package/dist/models/{trading-place-ocoorder-request.js → figi-instrument.js} +0 -0
|
@@ -21,7 +21,7 @@ export declare const AuthenticationApiAxiosParamCreator: (configuration?: Config
|
|
|
21
21
|
*/
|
|
22
22
|
deleteSnapTradeUser: (userId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* This API is available to ClientIDs which have opted to use encrypted JWTs (JSON Web Tokens) instead of standard SnapTrade signature verification.
|
|
25
25
|
* @summary Generate encrypted JWT token
|
|
26
26
|
* @param {string} userId
|
|
27
27
|
* @param {string} userSecret
|
|
@@ -47,7 +47,7 @@ export declare const AuthenticationApiAxiosParamCreator: (configuration?: Config
|
|
|
47
47
|
*/
|
|
48
48
|
loginSnapTradeUser: (userId: string, userSecret: string, snapTradeLoginUserRequestBody?: SnapTradeLoginUserRequestBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Registers a new SnapTrade user under your ClientID. Most SnapTrade operations require a user to be passed as a parameter.
|
|
51
51
|
* @summary Create SnapTrade user
|
|
52
52
|
* @param {SnapTradeRegisterUserRequestBody} snapTradeRegisterUserRequestBody
|
|
53
53
|
* @param {*} [options] Override http request option.
|
|
@@ -55,7 +55,7 @@ export declare const AuthenticationApiAxiosParamCreator: (configuration?: Config
|
|
|
55
55
|
*/
|
|
56
56
|
registerSnapTradeUser: (snapTradeRegisterUserRequestBody: SnapTradeRegisterUserRequestBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* This API is used to generate a new secret for a SnapTrade user. You might use this if a userSecret is comprimised or lost among other reasons.
|
|
59
59
|
* @summary Obtain a new user secret for a user
|
|
60
60
|
* @param {UserIDandSecret} userIDandSecret
|
|
61
61
|
* @param {*} [options] Override http request option.
|
|
@@ -77,7 +77,7 @@ export declare const AuthenticationApiFp: (configuration?: Configuration) => {
|
|
|
77
77
|
*/
|
|
78
78
|
deleteSnapTradeUser(requestParameters: AuthenticationApiDeleteSnapTradeUserRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteUserResponse>>;
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* This API is available to ClientIDs which have opted to use encrypted JWTs (JSON Web Tokens) instead of standard SnapTrade signature verification.
|
|
81
81
|
* @summary Generate encrypted JWT token
|
|
82
82
|
* @param {AuthenticationApiGetUserJWTRequest} requestParameters Request parameters.
|
|
83
83
|
* @param {*} [options] Override http request option.
|
|
@@ -100,7 +100,7 @@ export declare const AuthenticationApiFp: (configuration?: Configuration) => {
|
|
|
100
100
|
*/
|
|
101
101
|
loginSnapTradeUser(requestParameters: AuthenticationApiLoginSnapTradeUserRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthenticationLoginSnapTradeUser200Response>>;
|
|
102
102
|
/**
|
|
103
|
-
*
|
|
103
|
+
* Registers a new SnapTrade user under your ClientID. Most SnapTrade operations require a user to be passed as a parameter.
|
|
104
104
|
* @summary Create SnapTrade user
|
|
105
105
|
* @param {AuthenticationApiRegisterSnapTradeUserRequest} requestParameters Request parameters.
|
|
106
106
|
* @param {*} [options] Override http request option.
|
|
@@ -108,7 +108,7 @@ export declare const AuthenticationApiFp: (configuration?: Configuration) => {
|
|
|
108
108
|
*/
|
|
109
109
|
registerSnapTradeUser(requestParameters: AuthenticationApiRegisterSnapTradeUserRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserIDandSecret>>;
|
|
110
110
|
/**
|
|
111
|
-
*
|
|
111
|
+
* This API is used to generate a new secret for a SnapTrade user. You might use this if a userSecret is comprimised or lost among other reasons.
|
|
112
112
|
* @summary Obtain a new user secret for a user
|
|
113
113
|
* @param {AuthenticationApiResetSnapTradeUserSecretRequest} requestParameters Request parameters.
|
|
114
114
|
* @param {*} [options] Override http request option.
|
|
@@ -130,7 +130,7 @@ export declare const AuthenticationApiFactory: (configuration?: Configuration, b
|
|
|
130
130
|
*/
|
|
131
131
|
deleteSnapTradeUser(requestParameters: AuthenticationApiDeleteSnapTradeUserRequest, options?: AxiosRequestConfig): AxiosPromise<DeleteUserResponse>;
|
|
132
132
|
/**
|
|
133
|
-
*
|
|
133
|
+
* This API is available to ClientIDs which have opted to use encrypted JWTs (JSON Web Tokens) instead of standard SnapTrade signature verification.
|
|
134
134
|
* @summary Generate encrypted JWT token
|
|
135
135
|
* @param {AuthenticationApiGetUserJWTRequest} requestParameters Request parameters.
|
|
136
136
|
* @param {*} [options] Override http request option.
|
|
@@ -153,7 +153,7 @@ export declare const AuthenticationApiFactory: (configuration?: Configuration, b
|
|
|
153
153
|
*/
|
|
154
154
|
loginSnapTradeUser(requestParameters: AuthenticationApiLoginSnapTradeUserRequest, options?: AxiosRequestConfig): AxiosPromise<AuthenticationLoginSnapTradeUser200Response>;
|
|
155
155
|
/**
|
|
156
|
-
*
|
|
156
|
+
* Registers a new SnapTrade user under your ClientID. Most SnapTrade operations require a user to be passed as a parameter.
|
|
157
157
|
* @summary Create SnapTrade user
|
|
158
158
|
* @param {AuthenticationApiRegisterSnapTradeUserRequest} requestParameters Request parameters.
|
|
159
159
|
* @param {*} [options] Override http request option.
|
|
@@ -161,7 +161,7 @@ export declare const AuthenticationApiFactory: (configuration?: Configuration, b
|
|
|
161
161
|
*/
|
|
162
162
|
registerSnapTradeUser(requestParameters: AuthenticationApiRegisterSnapTradeUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserIDandSecret>;
|
|
163
163
|
/**
|
|
164
|
-
*
|
|
164
|
+
* This API is used to generate a new secret for a SnapTrade user. You might use this if a userSecret is comprimised or lost among other reasons.
|
|
165
165
|
* @summary Obtain a new user secret for a user
|
|
166
166
|
* @param {AuthenticationApiResetSnapTradeUserSecretRequest} requestParameters Request parameters.
|
|
167
167
|
* @param {*} [options] Override http request option.
|
|
@@ -249,7 +249,7 @@ export declare class AuthenticationApiGenerated extends BaseAPI {
|
|
|
249
249
|
*/
|
|
250
250
|
deleteSnapTradeUser(requestParameters: AuthenticationApiDeleteSnapTradeUserRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteUserResponse, any>>;
|
|
251
251
|
/**
|
|
252
|
-
*
|
|
252
|
+
* This API is available to ClientIDs which have opted to use encrypted JWTs (JSON Web Tokens) instead of standard SnapTrade signature verification.
|
|
253
253
|
* @summary Generate encrypted JWT token
|
|
254
254
|
* @param {AuthenticationApiGetUserJWTRequest} requestParameters Request parameters.
|
|
255
255
|
* @param {*} [options] Override http request option.
|
|
@@ -275,7 +275,7 @@ export declare class AuthenticationApiGenerated extends BaseAPI {
|
|
|
275
275
|
*/
|
|
276
276
|
loginSnapTradeUser(requestParameters: AuthenticationApiLoginSnapTradeUserRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthenticationLoginSnapTradeUser200Response, any>>;
|
|
277
277
|
/**
|
|
278
|
-
*
|
|
278
|
+
* Registers a new SnapTrade user under your ClientID. Most SnapTrade operations require a user to be passed as a parameter.
|
|
279
279
|
* @summary Create SnapTrade user
|
|
280
280
|
* @param {AuthenticationApiRegisterSnapTradeUserRequest} requestParameters Request parameters.
|
|
281
281
|
* @param {*} [options] Override http request option.
|
|
@@ -284,7 +284,7 @@ export declare class AuthenticationApiGenerated extends BaseAPI {
|
|
|
284
284
|
*/
|
|
285
285
|
registerSnapTradeUser(requestParameters: AuthenticationApiRegisterSnapTradeUserRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserIDandSecret, any>>;
|
|
286
286
|
/**
|
|
287
|
-
*
|
|
287
|
+
* This API is used to generate a new secret for a SnapTrade user. You might use this if a userSecret is comprimised or lost among other reasons.
|
|
288
288
|
* @summary Obtain a new user secret for a user
|
|
289
289
|
* @param {AuthenticationApiResetSnapTradeUserSecretRequest} requestParameters Request parameters.
|
|
290
290
|
* @param {*} [options] Override http request option.
|
|
@@ -81,7 +81,7 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
81
81
|
};
|
|
82
82
|
}),
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
84
|
+
* This API is available to ClientIDs which have opted to use encrypted JWTs (JSON Web Tokens) instead of standard SnapTrade signature verification.
|
|
85
85
|
* @summary Generate encrypted JWT token
|
|
86
86
|
* @param {string} userId
|
|
87
87
|
* @param {string} userSecret
|
|
@@ -226,7 +226,7 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
226
226
|
};
|
|
227
227
|
}),
|
|
228
228
|
/**
|
|
229
|
-
*
|
|
229
|
+
* Registers a new SnapTrade user under your ClientID. Most SnapTrade operations require a user to be passed as a parameter.
|
|
230
230
|
* @summary Create SnapTrade user
|
|
231
231
|
* @param {SnapTradeRegisterUserRequestBody} snapTradeRegisterUserRequestBody
|
|
232
232
|
* @param {*} [options] Override http request option.
|
|
@@ -271,7 +271,7 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
271
271
|
};
|
|
272
272
|
}),
|
|
273
273
|
/**
|
|
274
|
-
*
|
|
274
|
+
* This API is used to generate a new secret for a SnapTrade user. You might use this if a userSecret is comprimised or lost among other reasons.
|
|
275
275
|
* @summary Obtain a new user secret for a user
|
|
276
276
|
* @param {UserIDandSecret} userIDandSecret
|
|
277
277
|
* @param {*} [options] Override http request option.
|
|
@@ -339,7 +339,7 @@ const AuthenticationApiFp = function (configuration) {
|
|
|
339
339
|
});
|
|
340
340
|
},
|
|
341
341
|
/**
|
|
342
|
-
*
|
|
342
|
+
* This API is available to ClientIDs which have opted to use encrypted JWTs (JSON Web Tokens) instead of standard SnapTrade signature verification.
|
|
343
343
|
* @summary Generate encrypted JWT token
|
|
344
344
|
* @param {AuthenticationApiGetUserJWTRequest} requestParameters Request parameters.
|
|
345
345
|
* @param {*} [options] Override http request option.
|
|
@@ -385,7 +385,7 @@ const AuthenticationApiFp = function (configuration) {
|
|
|
385
385
|
});
|
|
386
386
|
},
|
|
387
387
|
/**
|
|
388
|
-
*
|
|
388
|
+
* Registers a new SnapTrade user under your ClientID. Most SnapTrade operations require a user to be passed as a parameter.
|
|
389
389
|
* @summary Create SnapTrade user
|
|
390
390
|
* @param {AuthenticationApiRegisterSnapTradeUserRequest} requestParameters Request parameters.
|
|
391
391
|
* @param {*} [options] Override http request option.
|
|
@@ -401,7 +401,7 @@ const AuthenticationApiFp = function (configuration) {
|
|
|
401
401
|
});
|
|
402
402
|
},
|
|
403
403
|
/**
|
|
404
|
-
*
|
|
404
|
+
* This API is used to generate a new secret for a SnapTrade user. You might use this if a userSecret is comprimised or lost among other reasons.
|
|
405
405
|
* @summary Obtain a new user secret for a user
|
|
406
406
|
* @param {AuthenticationApiResetSnapTradeUserSecretRequest} requestParameters Request parameters.
|
|
407
407
|
* @param {*} [options] Override http request option.
|
|
@@ -438,7 +438,7 @@ const AuthenticationApiFactory = function (configuration, basePath, axios) {
|
|
|
438
438
|
return localVarFp.deleteSnapTradeUser(requestParameters, options).then((request) => request(axios, basePath));
|
|
439
439
|
},
|
|
440
440
|
/**
|
|
441
|
-
*
|
|
441
|
+
* This API is available to ClientIDs which have opted to use encrypted JWTs (JSON Web Tokens) instead of standard SnapTrade signature verification.
|
|
442
442
|
* @summary Generate encrypted JWT token
|
|
443
443
|
* @param {AuthenticationApiGetUserJWTRequest} requestParameters Request parameters.
|
|
444
444
|
* @param {*} [options] Override http request option.
|
|
@@ -467,7 +467,7 @@ const AuthenticationApiFactory = function (configuration, basePath, axios) {
|
|
|
467
467
|
return localVarFp.loginSnapTradeUser(requestParameters, options).then((request) => request(axios, basePath));
|
|
468
468
|
},
|
|
469
469
|
/**
|
|
470
|
-
*
|
|
470
|
+
* Registers a new SnapTrade user under your ClientID. Most SnapTrade operations require a user to be passed as a parameter.
|
|
471
471
|
* @summary Create SnapTrade user
|
|
472
472
|
* @param {AuthenticationApiRegisterSnapTradeUserRequest} requestParameters Request parameters.
|
|
473
473
|
* @param {*} [options] Override http request option.
|
|
@@ -477,7 +477,7 @@ const AuthenticationApiFactory = function (configuration, basePath, axios) {
|
|
|
477
477
|
return localVarFp.registerSnapTradeUser(requestParameters, options).then((request) => request(axios, basePath));
|
|
478
478
|
},
|
|
479
479
|
/**
|
|
480
|
-
*
|
|
480
|
+
* This API is used to generate a new secret for a SnapTrade user. You might use this if a userSecret is comprimised or lost among other reasons.
|
|
481
481
|
* @summary Obtain a new user secret for a user
|
|
482
482
|
* @param {AuthenticationApiResetSnapTradeUserSecretRequest} requestParameters Request parameters.
|
|
483
483
|
* @param {*} [options] Override http request option.
|
|
@@ -508,7 +508,7 @@ class AuthenticationApiGenerated extends base_1.BaseAPI {
|
|
|
508
508
|
return (0, exports.AuthenticationApiFp)(this.configuration).deleteSnapTradeUser(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
509
509
|
}
|
|
510
510
|
/**
|
|
511
|
-
*
|
|
511
|
+
* This API is available to ClientIDs which have opted to use encrypted JWTs (JSON Web Tokens) instead of standard SnapTrade signature verification.
|
|
512
512
|
* @summary Generate encrypted JWT token
|
|
513
513
|
* @param {AuthenticationApiGetUserJWTRequest} requestParameters Request parameters.
|
|
514
514
|
* @param {*} [options] Override http request option.
|
|
@@ -540,7 +540,7 @@ class AuthenticationApiGenerated extends base_1.BaseAPI {
|
|
|
540
540
|
return (0, exports.AuthenticationApiFp)(this.configuration).loginSnapTradeUser(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
541
541
|
}
|
|
542
542
|
/**
|
|
543
|
-
*
|
|
543
|
+
* Registers a new SnapTrade user under your ClientID. Most SnapTrade operations require a user to be passed as a parameter.
|
|
544
544
|
* @summary Create SnapTrade user
|
|
545
545
|
* @param {AuthenticationApiRegisterSnapTradeUserRequest} requestParameters Request parameters.
|
|
546
546
|
* @param {*} [options] Override http request option.
|
|
@@ -551,7 +551,7 @@ class AuthenticationApiGenerated extends base_1.BaseAPI {
|
|
|
551
551
|
return (0, exports.AuthenticationApiFp)(this.configuration).registerSnapTradeUser(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
552
552
|
}
|
|
553
553
|
/**
|
|
554
|
-
*
|
|
554
|
+
* This API is used to generate a new secret for a SnapTrade user. You might use this if a userSecret is comprimised or lost among other reasons.
|
|
555
555
|
* @summary Obtain a new user secret for a user
|
|
556
556
|
* @param {AuthenticationApiResetSnapTradeUserSecretRequest} requestParameters Request parameters.
|
|
557
557
|
* @param {*} [options] Override http request option.
|
|
@@ -24,7 +24,7 @@ export declare const ReferenceDataApiAxiosParamCreator: (configuration?: Configu
|
|
|
24
24
|
*/
|
|
25
25
|
getCurrencyExchangeRatePair: (currencyPair: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Returns useful data related to the specified ClientID, including allowed brokerages and data access.
|
|
28
28
|
* @summary Get metadata related to Snaptrade partner
|
|
29
29
|
* @param {*} [options] Override http request option.
|
|
30
30
|
* @throws {RequiredError}
|
|
@@ -90,7 +90,7 @@ export declare const ReferenceDataApiAxiosParamCreator: (configuration?: Configu
|
|
|
90
90
|
*/
|
|
91
91
|
listAllCurrenciesRates: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* Returns a list of universal symbols that are supported by the specificied account. Returned symbols are based on the provided search string, matching on ticker and name.
|
|
94
94
|
* @summary Search for symbols available in an account
|
|
95
95
|
* @param {string} userId
|
|
96
96
|
* @param {string} userSecret
|
|
@@ -115,7 +115,7 @@ export declare const ReferenceDataApiFp: (configuration?: Configuration) => {
|
|
|
115
115
|
*/
|
|
116
116
|
getCurrencyExchangeRatePair(requestParameters: ReferenceDataApiGetCurrencyExchangeRatePairRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExchangeRatePairs>>;
|
|
117
117
|
/**
|
|
118
|
-
*
|
|
118
|
+
* Returns useful data related to the specified ClientID, including allowed brokerages and data access.
|
|
119
119
|
* @summary Get metadata related to Snaptrade partner
|
|
120
120
|
* @param {*} [options] Override http request option.
|
|
121
121
|
* @throws {RequiredError}
|
|
@@ -181,7 +181,7 @@ export declare const ReferenceDataApiFp: (configuration?: Configuration) => {
|
|
|
181
181
|
*/
|
|
182
182
|
listAllCurrenciesRates(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ExchangeRatePairs>>>;
|
|
183
183
|
/**
|
|
184
|
-
*
|
|
184
|
+
* Returns a list of universal symbols that are supported by the specificied account. Returned symbols are based on the provided search string, matching on ticker and name.
|
|
185
185
|
* @summary Search for symbols available in an account
|
|
186
186
|
* @param {ReferenceDataApiSymbolSearchUserAccountRequest} requestParameters Request parameters.
|
|
187
187
|
* @param {*} [options] Override http request option.
|
|
@@ -203,7 +203,7 @@ export declare const ReferenceDataApiFactory: (configuration?: Configuration, ba
|
|
|
203
203
|
*/
|
|
204
204
|
getCurrencyExchangeRatePair(requestParameters: ReferenceDataApiGetCurrencyExchangeRatePairRequest, options?: AxiosRequestConfig): AxiosPromise<ExchangeRatePairs>;
|
|
205
205
|
/**
|
|
206
|
-
*
|
|
206
|
+
* Returns useful data related to the specified ClientID, including allowed brokerages and data access.
|
|
207
207
|
* @summary Get metadata related to Snaptrade partner
|
|
208
208
|
* @param {*} [options] Override http request option.
|
|
209
209
|
* @throws {RequiredError}
|
|
@@ -269,7 +269,7 @@ export declare const ReferenceDataApiFactory: (configuration?: Configuration, ba
|
|
|
269
269
|
*/
|
|
270
270
|
listAllCurrenciesRates(options?: AxiosRequestConfig): AxiosPromise<Array<ExchangeRatePairs>>;
|
|
271
271
|
/**
|
|
272
|
-
*
|
|
272
|
+
* Returns a list of universal symbols that are supported by the specificied account. Returned symbols are based on the provided search string, matching on ticker and name.
|
|
273
273
|
* @summary Search for symbols available in an account
|
|
274
274
|
* @param {ReferenceDataApiSymbolSearchUserAccountRequest} requestParameters Request parameters.
|
|
275
275
|
* @param {*} [options] Override http request option.
|
|
@@ -364,7 +364,7 @@ export declare class ReferenceDataApiGenerated extends BaseAPI {
|
|
|
364
364
|
*/
|
|
365
365
|
getCurrencyExchangeRatePair(requestParameters: ReferenceDataApiGetCurrencyExchangeRatePairRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExchangeRatePairs, any>>;
|
|
366
366
|
/**
|
|
367
|
-
*
|
|
367
|
+
* Returns useful data related to the specified ClientID, including allowed brokerages and data access.
|
|
368
368
|
* @summary Get metadata related to Snaptrade partner
|
|
369
369
|
* @param {*} [options] Override http request option.
|
|
370
370
|
* @throws {RequiredError}
|
|
@@ -439,7 +439,7 @@ export declare class ReferenceDataApiGenerated extends BaseAPI {
|
|
|
439
439
|
*/
|
|
440
440
|
listAllCurrenciesRates(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExchangeRatePairs[], any>>;
|
|
441
441
|
/**
|
|
442
|
-
*
|
|
442
|
+
* Returns a list of universal symbols that are supported by the specificied account. Returned symbols are based on the provided search string, matching on ticker and name.
|
|
443
443
|
* @summary Search for symbols available in an account
|
|
444
444
|
* @param {ReferenceDataApiSymbolSearchUserAccountRequest} requestParameters Request parameters.
|
|
445
445
|
* @param {*} [options] Override http request option.
|
|
@@ -79,7 +79,7 @@ const ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
79
79
|
};
|
|
80
80
|
}),
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
82
|
+
* Returns useful data related to the specified ClientID, including allowed brokerages and data access.
|
|
83
83
|
* @summary Get metadata related to Snaptrade partner
|
|
84
84
|
* @param {*} [options] Override http request option.
|
|
85
85
|
* @throws {RequiredError}
|
|
@@ -442,7 +442,7 @@ const ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
442
442
|
};
|
|
443
443
|
}),
|
|
444
444
|
/**
|
|
445
|
-
*
|
|
445
|
+
* Returns a list of universal symbols that are supported by the specificied account. Returned symbols are based on the provided search string, matching on ticker and name.
|
|
446
446
|
* @summary Search for symbols available in an account
|
|
447
447
|
* @param {string} userId
|
|
448
448
|
* @param {string} userSecret
|
|
@@ -524,7 +524,7 @@ const ReferenceDataApiFp = function (configuration) {
|
|
|
524
524
|
});
|
|
525
525
|
},
|
|
526
526
|
/**
|
|
527
|
-
*
|
|
527
|
+
* Returns useful data related to the specified ClientID, including allowed brokerages and data access.
|
|
528
528
|
* @summary Get metadata related to Snaptrade partner
|
|
529
529
|
* @param {*} [options] Override http request option.
|
|
530
530
|
* @throws {RequiredError}
|
|
@@ -638,7 +638,7 @@ const ReferenceDataApiFp = function (configuration) {
|
|
|
638
638
|
});
|
|
639
639
|
},
|
|
640
640
|
/**
|
|
641
|
-
*
|
|
641
|
+
* Returns a list of universal symbols that are supported by the specificied account. Returned symbols are based on the provided search string, matching on ticker and name.
|
|
642
642
|
* @summary Search for symbols available in an account
|
|
643
643
|
* @param {ReferenceDataApiSymbolSearchUserAccountRequest} requestParameters Request parameters.
|
|
644
644
|
* @param {*} [options] Override http request option.
|
|
@@ -674,7 +674,7 @@ const ReferenceDataApiFactory = function (configuration, basePath, axios) {
|
|
|
674
674
|
return localVarFp.getCurrencyExchangeRatePair(requestParameters, options).then((request) => request(axios, basePath));
|
|
675
675
|
},
|
|
676
676
|
/**
|
|
677
|
-
*
|
|
677
|
+
* Returns useful data related to the specified ClientID, including allowed brokerages and data access.
|
|
678
678
|
* @summary Get metadata related to Snaptrade partner
|
|
679
679
|
* @param {*} [options] Override http request option.
|
|
680
680
|
* @throws {RequiredError}
|
|
@@ -758,7 +758,7 @@ const ReferenceDataApiFactory = function (configuration, basePath, axios) {
|
|
|
758
758
|
return localVarFp.listAllCurrenciesRates(options).then((request) => request(axios, basePath));
|
|
759
759
|
},
|
|
760
760
|
/**
|
|
761
|
-
*
|
|
761
|
+
* Returns a list of universal symbols that are supported by the specificied account. Returned symbols are based on the provided search string, matching on ticker and name.
|
|
762
762
|
* @summary Search for symbols available in an account
|
|
763
763
|
* @param {ReferenceDataApiSymbolSearchUserAccountRequest} requestParameters Request parameters.
|
|
764
764
|
* @param {*} [options] Override http request option.
|
|
@@ -789,7 +789,7 @@ class ReferenceDataApiGenerated extends base_1.BaseAPI {
|
|
|
789
789
|
return (0, exports.ReferenceDataApiFp)(this.configuration).getCurrencyExchangeRatePair(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
790
790
|
}
|
|
791
791
|
/**
|
|
792
|
-
*
|
|
792
|
+
* Returns useful data related to the specified ClientID, including allowed brokerages and data access.
|
|
793
793
|
* @summary Get metadata related to Snaptrade partner
|
|
794
794
|
* @param {*} [options] Override http request option.
|
|
795
795
|
* @throws {RequiredError}
|
|
@@ -882,7 +882,7 @@ class ReferenceDataApiGenerated extends base_1.BaseAPI {
|
|
|
882
882
|
return (0, exports.ReferenceDataApiFp)(this.configuration).listAllCurrenciesRates(options).then((request) => request(this.axios, this.basePath));
|
|
883
883
|
}
|
|
884
884
|
/**
|
|
885
|
-
*
|
|
885
|
+
* Returns a list of universal symbols that are supported by the specificied account. Returned symbols are based on the provided search string, matching on ticker and name.
|
|
886
886
|
* @summary Search for symbols available in an account
|
|
887
887
|
* @param {ReferenceDataApiSymbolSearchUserAccountRequest} requestParameters Request parameters.
|
|
888
888
|
* @param {*} [options] Override http request option.
|
|
@@ -6,7 +6,6 @@ import { ManualTradeAndImpact } from '../models';
|
|
|
6
6
|
import { ManualTradeForm } from '../models';
|
|
7
7
|
import { SymbolsQuotesInner } from '../models';
|
|
8
8
|
import { TradingCancelUserAccountOrderRequest } from '../models';
|
|
9
|
-
import { TradingPlaceOCOOrderRequest } from '../models';
|
|
10
9
|
import { ValidatedTradeBody } from '../models';
|
|
11
10
|
/**
|
|
12
11
|
* TradingApi - axios parameter creator
|
|
@@ -14,7 +13,7 @@ import { ValidatedTradeBody } from '../models';
|
|
|
14
13
|
*/
|
|
15
14
|
export declare const TradingApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
16
15
|
/**
|
|
17
|
-
*
|
|
16
|
+
* Sends a signal to the brokerage to cancel the specified order. This will only work if the order has not yet been executed.
|
|
18
17
|
* @summary Cancel open order in account
|
|
19
18
|
* @param {string} userId
|
|
20
19
|
* @param {string} userSecret
|
|
@@ -35,7 +34,7 @@ export declare const TradingApiAxiosParamCreator: (configuration?: Configuration
|
|
|
35
34
|
*/
|
|
36
35
|
getOrderImpact: (userId: string, userSecret: string, manualTradeForm: ManualTradeForm, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
37
36
|
/**
|
|
38
|
-
*
|
|
37
|
+
* Returns live quote(s) from the brokerage for the specified symbol(s).
|
|
39
38
|
* @summary Get symbol quotes
|
|
40
39
|
* @param {string} userId
|
|
41
40
|
* @param {string} userSecret
|
|
@@ -56,17 +55,6 @@ export declare const TradingApiAxiosParamCreator: (configuration?: Configuration
|
|
|
56
55
|
* @throws {RequiredError}
|
|
57
56
|
*/
|
|
58
57
|
placeForceOrder: (userId: string, userSecret: string, manualTradeForm: ManualTradeForm, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @summary Place a OCO (One Cancels Other) order
|
|
62
|
-
* @param {string} userId
|
|
63
|
-
* @param {string} userSecret
|
|
64
|
-
* @param {TradingPlaceOCOOrderRequest} tradingPlaceOCOOrderRequest
|
|
65
|
-
* @param {*} [options] Override http request option.
|
|
66
|
-
* @deprecated
|
|
67
|
-
* @throws {RequiredError}
|
|
68
|
-
*/
|
|
69
|
-
placeOCOOrder: (userId: string, userSecret: string, tradingPlaceOCOOrderRequest: TradingPlaceOCOOrderRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
70
58
|
/**
|
|
71
59
|
*
|
|
72
60
|
* @summary Place order
|
|
@@ -85,7 +73,7 @@ export declare const TradingApiAxiosParamCreator: (configuration?: Configuration
|
|
|
85
73
|
*/
|
|
86
74
|
export declare const TradingApiFp: (configuration?: Configuration) => {
|
|
87
75
|
/**
|
|
88
|
-
*
|
|
76
|
+
* Sends a signal to the brokerage to cancel the specified order. This will only work if the order has not yet been executed.
|
|
89
77
|
* @summary Cancel open order in account
|
|
90
78
|
* @param {TradingApiCancelUserAccountOrderRequest} requestParameters Request parameters.
|
|
91
79
|
* @param {*} [options] Override http request option.
|
|
@@ -101,7 +89,7 @@ export declare const TradingApiFp: (configuration?: Configuration) => {
|
|
|
101
89
|
*/
|
|
102
90
|
getOrderImpact(requestParameters: TradingApiGetOrderImpactRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManualTradeAndImpact>>;
|
|
103
91
|
/**
|
|
104
|
-
*
|
|
92
|
+
* Returns live quote(s) from the brokerage for the specified symbol(s).
|
|
105
93
|
* @summary Get symbol quotes
|
|
106
94
|
* @param {TradingApiGetUserAccountQuotesRequest} requestParameters Request parameters.
|
|
107
95
|
* @param {*} [options] Override http request option.
|
|
@@ -116,15 +104,6 @@ export declare const TradingApiFp: (configuration?: Configuration) => {
|
|
|
116
104
|
* @throws {RequiredError}
|
|
117
105
|
*/
|
|
118
106
|
placeForceOrder(requestParameters: TradingApiPlaceForceOrderRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountOrderRecord>>;
|
|
119
|
-
/**
|
|
120
|
-
*
|
|
121
|
-
* @summary Place a OCO (One Cancels Other) order
|
|
122
|
-
* @param {TradingApiPlaceOCOOrderRequest} requestParameters Request parameters.
|
|
123
|
-
* @param {*} [options] Override http request option.
|
|
124
|
-
* @deprecated
|
|
125
|
-
* @throws {RequiredError}
|
|
126
|
-
*/
|
|
127
|
-
placeOCOOrder(requestParameters: TradingApiPlaceOCOOrderRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountOrderRecord>>;
|
|
128
107
|
/**
|
|
129
108
|
*
|
|
130
109
|
* @summary Place order
|
|
@@ -140,7 +119,7 @@ export declare const TradingApiFp: (configuration?: Configuration) => {
|
|
|
140
119
|
*/
|
|
141
120
|
export declare const TradingApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
142
121
|
/**
|
|
143
|
-
*
|
|
122
|
+
* Sends a signal to the brokerage to cancel the specified order. This will only work if the order has not yet been executed.
|
|
144
123
|
* @summary Cancel open order in account
|
|
145
124
|
* @param {TradingApiCancelUserAccountOrderRequest} requestParameters Request parameters.
|
|
146
125
|
* @param {*} [options] Override http request option.
|
|
@@ -156,7 +135,7 @@ export declare const TradingApiFactory: (configuration?: Configuration, basePath
|
|
|
156
135
|
*/
|
|
157
136
|
getOrderImpact(requestParameters: TradingApiGetOrderImpactRequest, options?: AxiosRequestConfig): AxiosPromise<ManualTradeAndImpact>;
|
|
158
137
|
/**
|
|
159
|
-
*
|
|
138
|
+
* Returns live quote(s) from the brokerage for the specified symbol(s).
|
|
160
139
|
* @summary Get symbol quotes
|
|
161
140
|
* @param {TradingApiGetUserAccountQuotesRequest} requestParameters Request parameters.
|
|
162
141
|
* @param {*} [options] Override http request option.
|
|
@@ -171,15 +150,6 @@ export declare const TradingApiFactory: (configuration?: Configuration, basePath
|
|
|
171
150
|
* @throws {RequiredError}
|
|
172
151
|
*/
|
|
173
152
|
placeForceOrder(requestParameters: TradingApiPlaceForceOrderRequest, options?: AxiosRequestConfig): AxiosPromise<AccountOrderRecord>;
|
|
174
|
-
/**
|
|
175
|
-
*
|
|
176
|
-
* @summary Place a OCO (One Cancels Other) order
|
|
177
|
-
* @param {TradingApiPlaceOCOOrderRequest} requestParameters Request parameters.
|
|
178
|
-
* @param {*} [options] Override http request option.
|
|
179
|
-
* @deprecated
|
|
180
|
-
* @throws {RequiredError}
|
|
181
|
-
*/
|
|
182
|
-
placeOCOOrder(requestParameters: TradingApiPlaceOCOOrderRequest, options?: AxiosRequestConfig): AxiosPromise<AccountOrderRecord>;
|
|
183
153
|
/**
|
|
184
154
|
*
|
|
185
155
|
* @summary Place order
|
|
@@ -289,25 +259,6 @@ export type TradingApiPlaceForceOrderRequest = {
|
|
|
289
259
|
*/
|
|
290
260
|
readonly userSecret: string;
|
|
291
261
|
} & ManualTradeForm;
|
|
292
|
-
/**
|
|
293
|
-
* Request parameters for placeOCOOrder operation in TradingApi.
|
|
294
|
-
* @export
|
|
295
|
-
* @interface TradingApiPlaceOCOOrderRequest
|
|
296
|
-
*/
|
|
297
|
-
export type TradingApiPlaceOCOOrderRequest = {
|
|
298
|
-
/**
|
|
299
|
-
*
|
|
300
|
-
* @type {string}
|
|
301
|
-
* @memberof TradingApiPlaceOCOOrder
|
|
302
|
-
*/
|
|
303
|
-
readonly userId: string;
|
|
304
|
-
/**
|
|
305
|
-
*
|
|
306
|
-
* @type {string}
|
|
307
|
-
* @memberof TradingApiPlaceOCOOrder
|
|
308
|
-
*/
|
|
309
|
-
readonly userSecret: string;
|
|
310
|
-
} & TradingPlaceOCOOrderRequest;
|
|
311
262
|
/**
|
|
312
263
|
* Request parameters for placeOrder operation in TradingApi.
|
|
313
264
|
* @export
|
|
@@ -341,7 +292,7 @@ export type TradingApiPlaceOrderRequest = {
|
|
|
341
292
|
*/
|
|
342
293
|
export declare class TradingApiGenerated extends BaseAPI {
|
|
343
294
|
/**
|
|
344
|
-
*
|
|
295
|
+
* Sends a signal to the brokerage to cancel the specified order. This will only work if the order has not yet been executed.
|
|
345
296
|
* @summary Cancel open order in account
|
|
346
297
|
* @param {TradingApiCancelUserAccountOrderRequest} requestParameters Request parameters.
|
|
347
298
|
* @param {*} [options] Override http request option.
|
|
@@ -359,7 +310,7 @@ export declare class TradingApiGenerated extends BaseAPI {
|
|
|
359
310
|
*/
|
|
360
311
|
getOrderImpact(requestParameters: TradingApiGetOrderImpactRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ManualTradeAndImpact, any>>;
|
|
361
312
|
/**
|
|
362
|
-
*
|
|
313
|
+
* Returns live quote(s) from the brokerage for the specified symbol(s).
|
|
363
314
|
* @summary Get symbol quotes
|
|
364
315
|
* @param {TradingApiGetUserAccountQuotesRequest} requestParameters Request parameters.
|
|
365
316
|
* @param {*} [options] Override http request option.
|
|
@@ -376,16 +327,6 @@ export declare class TradingApiGenerated extends BaseAPI {
|
|
|
376
327
|
* @memberof TradingApiGenerated
|
|
377
328
|
*/
|
|
378
329
|
placeForceOrder(requestParameters: TradingApiPlaceForceOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountOrderRecord, any>>;
|
|
379
|
-
/**
|
|
380
|
-
*
|
|
381
|
-
* @summary Place a OCO (One Cancels Other) order
|
|
382
|
-
* @param {TradingApiPlaceOCOOrderRequest} requestParameters Request parameters.
|
|
383
|
-
* @param {*} [options] Override http request option.
|
|
384
|
-
* @deprecated
|
|
385
|
-
* @throws {RequiredError}
|
|
386
|
-
* @memberof TradingApiGenerated
|
|
387
|
-
*/
|
|
388
|
-
placeOCOOrder(requestParameters: TradingApiPlaceOCOOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountOrderRecord, any>>;
|
|
389
330
|
/**
|
|
390
331
|
*
|
|
391
332
|
* @summary Place order
|