snaptrade-typescript-sdk 5.0.0 → 6.0.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/.konfig/generate-id.txt +1 -1
- package/README.md +2 -2
- package/api/account-information-api.ts +136 -120
- package/api/api-disclaimer-api.ts +14 -19
- package/api/authentication-api.ts +37 -43
- package/api/connections-api.ts +46 -40
- package/api/error-logs-api.ts +12 -10
- package/api/options-api.ts +104 -108
- package/api/portfolio-management-api.ts +259 -253
- package/api/reference-data-api.ts +49 -53
- package/api/trading-api.ts +172 -185
- package/api/transactions-and-reporting-api.ts +64 -60
- package/client.ts +2 -0
- package/configuration.ts +1 -1
- package/dist/api/account-information-api.d.ts +112 -112
- package/dist/api/api-disclaimer-api.d.ts +10 -16
- package/dist/api/api-disclaimer-api.js +1 -1
- package/dist/api/authentication-api.d.ts +27 -40
- package/dist/api/authentication-api.js +2 -2
- package/dist/api/connections-api.d.ts +38 -38
- package/dist/api/error-logs-api.d.ts +10 -10
- package/dist/api/options-api.d.ts +82 -94
- package/dist/api/options-api.js +2 -2
- package/dist/api/portfolio-management-api.d.ts +214 -256
- package/dist/api/portfolio-management-api.js +7 -7
- package/dist/api/reference-data-api.d.ts +37 -50
- package/dist/api/reference-data-api.js +2 -2
- package/dist/api/trading-api.d.ts +131 -160
- package/dist/api/trading-api.js +10 -10
- package/dist/api/transactions-and-reporting-api.d.ts +52 -52
- package/dist/configuration.js +1 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/target-asset.d.ts +4 -2
- package/dist/models/trading-cancel-user-account-order-request.d.ts +24 -0
- package/dist/models/trading-cancel-user-account-order-request.js +15 -0
- package/docs/AccountInformationApi.md +72 -88
- package/docs/ApiDisclaimerApi.md +8 -12
- package/docs/ApiStatusApi.md +6 -7
- package/docs/AuthenticationApi.md +34 -48
- package/docs/ConnectionsApi.md +26 -32
- package/docs/ErrorLogsApi.md +8 -10
- package/docs/OptionsApi.md +55 -62
- package/docs/PortfolioManagementApi.md +229 -309
- package/docs/ReferenceDataApi.md +66 -93
- package/docs/TradingApi.md +88 -117
- package/docs/TransactionsAndReportingApi.md +26 -28
- package/index.test.ts +2 -4
- package/models/index.ts +1 -0
- package/models/target-asset.ts +2 -2
- package/models/trading-cancel-user-account-order-request.ts +29 -0
- package/package.json +1 -1
package/api/trading-api.ts
CHANGED
|
@@ -38,6 +38,8 @@ import { TradeExecutionStatus } from '../models';
|
|
|
38
38
|
// @ts-ignore
|
|
39
39
|
import { TradeImpact } from '../models';
|
|
40
40
|
// @ts-ignore
|
|
41
|
+
import { TradingCancelUserAccountOrderRequest } from '../models';
|
|
42
|
+
// @ts-ignore
|
|
41
43
|
import { TradingPlaceOCOOrderRequest } from '../models';
|
|
42
44
|
import { paginate } from "../pagination/paginate";
|
|
43
45
|
import { requestBeforeHook } from '../requestBeforeHook';
|
|
@@ -53,19 +55,19 @@ export const TradingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
53
55
|
* @param {string} userId
|
|
54
56
|
* @param {string} userSecret
|
|
55
57
|
* @param {string} accountId The ID of the account get positions.
|
|
56
|
-
* @param {
|
|
58
|
+
* @param {TradingCancelUserAccountOrderRequest} tradingCancelUserAccountOrderRequest The Order ID to be canceled
|
|
57
59
|
* @param {*} [options] Override http request option.
|
|
58
60
|
* @throws {RequiredError}
|
|
59
61
|
*/
|
|
60
|
-
cancelUserAccountOrder: async (userId: string, userSecret: string, accountId: string,
|
|
62
|
+
cancelUserAccountOrder: async (userId: string, userSecret: string, accountId: string, tradingCancelUserAccountOrderRequest: TradingCancelUserAccountOrderRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
61
63
|
// verify required parameter 'userId' is not null or undefined
|
|
62
64
|
assertParamExists('cancelUserAccountOrder', 'userId', userId)
|
|
63
65
|
// verify required parameter 'userSecret' is not null or undefined
|
|
64
66
|
assertParamExists('cancelUserAccountOrder', 'userSecret', userSecret)
|
|
65
67
|
// verify required parameter 'accountId' is not null or undefined
|
|
66
68
|
assertParamExists('cancelUserAccountOrder', 'accountId', accountId)
|
|
67
|
-
// verify required parameter '
|
|
68
|
-
assertParamExists('cancelUserAccountOrder', '
|
|
69
|
+
// verify required parameter 'tradingCancelUserAccountOrderRequest' is not null or undefined
|
|
70
|
+
assertParamExists('cancelUserAccountOrder', 'tradingCancelUserAccountOrderRequest', tradingCancelUserAccountOrderRequest)
|
|
69
71
|
const localVarPath = `/accounts/{accountId}/orders/cancel`
|
|
70
72
|
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
|
|
71
73
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -102,7 +104,7 @@ export const TradingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
102
104
|
|
|
103
105
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
104
106
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
105
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
107
|
+
localVarRequestOptions.data = serializeDataIfNeeded(tradingCancelUserAccountOrderRequest, localVarRequestOptions, configuration)
|
|
106
108
|
|
|
107
109
|
requestBeforeHook({
|
|
108
110
|
queryParameters: localVarQueryParameter,
|
|
@@ -701,7 +703,7 @@ export const TradingApiFp = function(configuration?: Configuration) {
|
|
|
701
703
|
* @throws {RequiredError}
|
|
702
704
|
*/
|
|
703
705
|
async cancelUserAccountOrder(requestParameters: TradingApiCancelUserAccountOrderRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountOrderRecord>> {
|
|
704
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelUserAccountOrder(requestParameters.userId, requestParameters.userSecret, requestParameters.accountId, requestParameters
|
|
706
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelUserAccountOrder(requestParameters.userId, requestParameters.userSecret, requestParameters.accountId, requestParameters, options);
|
|
705
707
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
706
708
|
},
|
|
707
709
|
/**
|
|
@@ -734,7 +736,7 @@ export const TradingApiFp = function(configuration?: Configuration) {
|
|
|
734
736
|
* @throws {RequiredError}
|
|
735
737
|
*/
|
|
736
738
|
async getOrderImpact(requestParameters: TradingApiGetOrderImpactRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManualTradeAndImpact>> {
|
|
737
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderImpact(requestParameters.userId, requestParameters.userSecret, requestParameters
|
|
739
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderImpact(requestParameters.userId, requestParameters.userSecret, requestParameters, options);
|
|
738
740
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
739
741
|
},
|
|
740
742
|
/**
|
|
@@ -756,7 +758,7 @@ export const TradingApiFp = function(configuration?: Configuration) {
|
|
|
756
758
|
* @throws {RequiredError}
|
|
757
759
|
*/
|
|
758
760
|
async modifyCalculatedTradeById(requestParameters: TradingApiModifyCalculatedTradeByIdRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Trade>> {
|
|
759
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.modifyCalculatedTradeById(requestParameters.portfolioGroupId, requestParameters.calculatedTradeId, requestParameters.tradeId, requestParameters
|
|
761
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.modifyCalculatedTradeById(requestParameters.portfolioGroupId, requestParameters.calculatedTradeId, requestParameters.tradeId, requestParameters, options);
|
|
760
762
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
761
763
|
},
|
|
762
764
|
/**
|
|
@@ -778,7 +780,7 @@ export const TradingApiFp = function(configuration?: Configuration) {
|
|
|
778
780
|
* @throws {RequiredError}
|
|
779
781
|
*/
|
|
780
782
|
async placeForceOrder(requestParameters: TradingApiPlaceForceOrderRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountOrderRecord>> {
|
|
781
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.placeForceOrder(requestParameters.userId, requestParameters.userSecret, requestParameters
|
|
783
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.placeForceOrder(requestParameters.userId, requestParameters.userSecret, requestParameters, options);
|
|
782
784
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
783
785
|
},
|
|
784
786
|
/**
|
|
@@ -789,7 +791,7 @@ export const TradingApiFp = function(configuration?: Configuration) {
|
|
|
789
791
|
* @throws {RequiredError}
|
|
790
792
|
*/
|
|
791
793
|
async placeOCOOrder(requestParameters: TradingApiPlaceOCOOrderRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountOrderRecord>> {
|
|
792
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.placeOCOOrder(requestParameters.userId, requestParameters.userSecret, requestParameters
|
|
794
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.placeOCOOrder(requestParameters.userId, requestParameters.userSecret, requestParameters, options);
|
|
793
795
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
794
796
|
},
|
|
795
797
|
/**
|
|
@@ -921,62 +923,59 @@ export const TradingApiFactory = function (configuration?: Configuration, basePa
|
|
|
921
923
|
* @export
|
|
922
924
|
* @interface TradingApiCancelUserAccountOrderRequest
|
|
923
925
|
*/
|
|
924
|
-
export
|
|
926
|
+
export type TradingApiCancelUserAccountOrderRequest = {
|
|
927
|
+
|
|
925
928
|
/**
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
929
|
+
*
|
|
930
|
+
* @type {string}
|
|
931
|
+
* @memberof TradingApiCancelUserAccountOrder
|
|
932
|
+
*/
|
|
930
933
|
readonly userId: string
|
|
931
|
-
|
|
934
|
+
|
|
932
935
|
/**
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
936
|
+
*
|
|
937
|
+
* @type {string}
|
|
938
|
+
* @memberof TradingApiCancelUserAccountOrder
|
|
939
|
+
*/
|
|
937
940
|
readonly userSecret: string
|
|
938
|
-
|
|
941
|
+
|
|
939
942
|
/**
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
943
|
+
* The ID of the account get positions.
|
|
944
|
+
* @type {string}
|
|
945
|
+
* @memberof TradingApiCancelUserAccountOrder
|
|
946
|
+
*/
|
|
944
947
|
readonly accountId: string
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
*
|
|
948
|
-
* @type {string}
|
|
949
|
-
* @memberof TradingApiCancelUserAccountOrder
|
|
950
|
-
*/
|
|
951
|
-
readonly requestBody: string
|
|
952
|
-
}
|
|
948
|
+
|
|
949
|
+
} & TradingCancelUserAccountOrderRequest
|
|
953
950
|
|
|
954
951
|
/**
|
|
955
952
|
* Request parameters for getCalculatedTradeImpactById operation in TradingApi.
|
|
956
953
|
* @export
|
|
957
954
|
* @interface TradingApiGetCalculatedTradeImpactByIdRequest
|
|
958
955
|
*/
|
|
959
|
-
export
|
|
956
|
+
export type TradingApiGetCalculatedTradeImpactByIdRequest = {
|
|
957
|
+
|
|
960
958
|
/**
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
959
|
+
* The ID of the PortfolioGroup to perform rebalancing calculations
|
|
960
|
+
* @type {string}
|
|
961
|
+
* @memberof TradingApiGetCalculatedTradeImpactById
|
|
962
|
+
*/
|
|
965
963
|
readonly portfolioGroupId: string
|
|
966
|
-
|
|
964
|
+
|
|
967
965
|
/**
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
966
|
+
* The ID of calculated trade to get account impact
|
|
967
|
+
* @type {string}
|
|
968
|
+
* @memberof TradingApiGetCalculatedTradeImpactById
|
|
969
|
+
*/
|
|
972
970
|
readonly calculatedTradeId: string
|
|
973
|
-
|
|
971
|
+
|
|
974
972
|
/**
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
973
|
+
* The ID of trade object
|
|
974
|
+
* @type {string}
|
|
975
|
+
* @memberof TradingApiGetCalculatedTradeImpactById
|
|
976
|
+
*/
|
|
979
977
|
readonly tradeId: string
|
|
978
|
+
|
|
980
979
|
}
|
|
981
980
|
|
|
982
981
|
/**
|
|
@@ -984,20 +983,22 @@ export interface TradingApiGetCalculatedTradeImpactByIdRequest {
|
|
|
984
983
|
* @export
|
|
985
984
|
* @interface TradingApiGetCalculatedTradesImpactRequest
|
|
986
985
|
*/
|
|
987
|
-
export
|
|
986
|
+
export type TradingApiGetCalculatedTradesImpactRequest = {
|
|
987
|
+
|
|
988
988
|
/**
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
989
|
+
* The ID of the PortfolioGroup to perform rebalancing calculations
|
|
990
|
+
* @type {string}
|
|
991
|
+
* @memberof TradingApiGetCalculatedTradesImpact
|
|
992
|
+
*/
|
|
993
993
|
readonly portfolioGroupId: string
|
|
994
|
-
|
|
994
|
+
|
|
995
995
|
/**
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
996
|
+
* The ID of calculated trade to get account impact
|
|
997
|
+
* @type {string}
|
|
998
|
+
* @memberof TradingApiGetCalculatedTradesImpact
|
|
999
|
+
*/
|
|
1000
1000
|
readonly calculatedTradeId: string
|
|
1001
|
+
|
|
1001
1002
|
}
|
|
1002
1003
|
|
|
1003
1004
|
/**
|
|
@@ -1005,69 +1006,66 @@ export interface TradingApiGetCalculatedTradesImpactRequest {
|
|
|
1005
1006
|
* @export
|
|
1006
1007
|
* @interface TradingApiGetOrderImpactRequest
|
|
1007
1008
|
*/
|
|
1008
|
-
export
|
|
1009
|
+
export type TradingApiGetOrderImpactRequest = {
|
|
1010
|
+
|
|
1009
1011
|
/**
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1012
|
+
*
|
|
1013
|
+
* @type {string}
|
|
1014
|
+
* @memberof TradingApiGetOrderImpact
|
|
1015
|
+
*/
|
|
1014
1016
|
readonly userId: string
|
|
1015
|
-
|
|
1017
|
+
|
|
1016
1018
|
/**
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1019
|
+
*
|
|
1020
|
+
* @type {string}
|
|
1021
|
+
* @memberof TradingApiGetOrderImpact
|
|
1022
|
+
*/
|
|
1021
1023
|
readonly userSecret: string
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
*
|
|
1025
|
-
* @type {ManualTradeForm}
|
|
1026
|
-
* @memberof TradingApiGetOrderImpact
|
|
1027
|
-
*/
|
|
1028
|
-
readonly requestBody: ManualTradeForm
|
|
1029
|
-
}
|
|
1024
|
+
|
|
1025
|
+
} & ManualTradeForm
|
|
1030
1026
|
|
|
1031
1027
|
/**
|
|
1032
1028
|
* Request parameters for getUserAccountQuotes operation in TradingApi.
|
|
1033
1029
|
* @export
|
|
1034
1030
|
* @interface TradingApiGetUserAccountQuotesRequest
|
|
1035
1031
|
*/
|
|
1036
|
-
export
|
|
1032
|
+
export type TradingApiGetUserAccountQuotesRequest = {
|
|
1033
|
+
|
|
1037
1034
|
/**
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1035
|
+
*
|
|
1036
|
+
* @type {string}
|
|
1037
|
+
* @memberof TradingApiGetUserAccountQuotes
|
|
1038
|
+
*/
|
|
1042
1039
|
readonly userId: string
|
|
1043
|
-
|
|
1040
|
+
|
|
1044
1041
|
/**
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1042
|
+
*
|
|
1043
|
+
* @type {string}
|
|
1044
|
+
* @memberof TradingApiGetUserAccountQuotes
|
|
1045
|
+
*/
|
|
1049
1046
|
readonly userSecret: string
|
|
1050
|
-
|
|
1047
|
+
|
|
1051
1048
|
/**
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1049
|
+
* List of universal_symbol_id or tickers to get quotes for.
|
|
1050
|
+
* @type {string}
|
|
1051
|
+
* @memberof TradingApiGetUserAccountQuotes
|
|
1052
|
+
*/
|
|
1056
1053
|
readonly symbols: string
|
|
1057
|
-
|
|
1054
|
+
|
|
1058
1055
|
/**
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1056
|
+
* The ID of the account to get quotes.
|
|
1057
|
+
* @type {string}
|
|
1058
|
+
* @memberof TradingApiGetUserAccountQuotes
|
|
1059
|
+
*/
|
|
1063
1060
|
readonly accountId: string
|
|
1064
|
-
|
|
1061
|
+
|
|
1065
1062
|
/**
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1063
|
+
* Should be set to True if providing tickers.
|
|
1064
|
+
* @type {boolean}
|
|
1065
|
+
* @memberof TradingApiGetUserAccountQuotes
|
|
1066
|
+
*/
|
|
1070
1067
|
readonly useTicker?: boolean
|
|
1068
|
+
|
|
1071
1069
|
}
|
|
1072
1070
|
|
|
1073
1071
|
/**
|
|
@@ -1075,55 +1073,52 @@ export interface TradingApiGetUserAccountQuotesRequest {
|
|
|
1075
1073
|
* @export
|
|
1076
1074
|
* @interface TradingApiModifyCalculatedTradeByIdRequest
|
|
1077
1075
|
*/
|
|
1078
|
-
export
|
|
1076
|
+
export type TradingApiModifyCalculatedTradeByIdRequest = {
|
|
1077
|
+
|
|
1079
1078
|
/**
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1079
|
+
* The ID of the PortfolioGroup to perform rebalancing calculations
|
|
1080
|
+
* @type {string}
|
|
1081
|
+
* @memberof TradingApiModifyCalculatedTradeById
|
|
1082
|
+
*/
|
|
1084
1083
|
readonly portfolioGroupId: string
|
|
1085
|
-
|
|
1084
|
+
|
|
1086
1085
|
/**
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1086
|
+
* The ID of calculated trade to get account impact
|
|
1087
|
+
* @type {string}
|
|
1088
|
+
* @memberof TradingApiModifyCalculatedTradeById
|
|
1089
|
+
*/
|
|
1091
1090
|
readonly calculatedTradeId: string
|
|
1092
|
-
|
|
1091
|
+
|
|
1093
1092
|
/**
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1093
|
+
* The ID of trade object
|
|
1094
|
+
* @type {string}
|
|
1095
|
+
* @memberof TradingApiModifyCalculatedTradeById
|
|
1096
|
+
*/
|
|
1098
1097
|
readonly tradeId: string
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
*
|
|
1102
|
-
* @type {Trade}
|
|
1103
|
-
* @memberof TradingApiModifyCalculatedTradeById
|
|
1104
|
-
*/
|
|
1105
|
-
readonly requestBody?: Trade
|
|
1106
|
-
}
|
|
1098
|
+
|
|
1099
|
+
} & Trade
|
|
1107
1100
|
|
|
1108
1101
|
/**
|
|
1109
1102
|
* Request parameters for placeCalculatedTrades operation in TradingApi.
|
|
1110
1103
|
* @export
|
|
1111
1104
|
* @interface TradingApiPlaceCalculatedTradesRequest
|
|
1112
1105
|
*/
|
|
1113
|
-
export
|
|
1106
|
+
export type TradingApiPlaceCalculatedTradesRequest = {
|
|
1107
|
+
|
|
1114
1108
|
/**
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1109
|
+
* The ID of the PortfolioGroup to perform rebalancing calculations
|
|
1110
|
+
* @type {string}
|
|
1111
|
+
* @memberof TradingApiPlaceCalculatedTrades
|
|
1112
|
+
*/
|
|
1119
1113
|
readonly portfolioGroupId: string
|
|
1120
|
-
|
|
1114
|
+
|
|
1121
1115
|
/**
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1116
|
+
* The ID of calculated trade to get account impact
|
|
1117
|
+
* @type {string}
|
|
1118
|
+
* @memberof TradingApiPlaceCalculatedTrades
|
|
1119
|
+
*/
|
|
1126
1120
|
readonly calculatedTradeId: string
|
|
1121
|
+
|
|
1127
1122
|
}
|
|
1128
1123
|
|
|
1129
1124
|
/**
|
|
@@ -1131,83 +1126,75 @@ export interface TradingApiPlaceCalculatedTradesRequest {
|
|
|
1131
1126
|
* @export
|
|
1132
1127
|
* @interface TradingApiPlaceForceOrderRequest
|
|
1133
1128
|
*/
|
|
1134
|
-
export
|
|
1129
|
+
export type TradingApiPlaceForceOrderRequest = {
|
|
1130
|
+
|
|
1135
1131
|
/**
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1132
|
+
*
|
|
1133
|
+
* @type {string}
|
|
1134
|
+
* @memberof TradingApiPlaceForceOrder
|
|
1135
|
+
*/
|
|
1140
1136
|
readonly userId: string
|
|
1141
|
-
|
|
1137
|
+
|
|
1142
1138
|
/**
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1139
|
+
*
|
|
1140
|
+
* @type {string}
|
|
1141
|
+
* @memberof TradingApiPlaceForceOrder
|
|
1142
|
+
*/
|
|
1147
1143
|
readonly userSecret: string
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
*
|
|
1151
|
-
* @type {ManualTradeForm}
|
|
1152
|
-
* @memberof TradingApiPlaceForceOrder
|
|
1153
|
-
*/
|
|
1154
|
-
readonly requestBody: ManualTradeForm
|
|
1155
|
-
}
|
|
1144
|
+
|
|
1145
|
+
} & ManualTradeForm
|
|
1156
1146
|
|
|
1157
1147
|
/**
|
|
1158
1148
|
* Request parameters for placeOCOOrder operation in TradingApi.
|
|
1159
1149
|
* @export
|
|
1160
1150
|
* @interface TradingApiPlaceOCOOrderRequest
|
|
1161
1151
|
*/
|
|
1162
|
-
export
|
|
1152
|
+
export type TradingApiPlaceOCOOrderRequest = {
|
|
1153
|
+
|
|
1163
1154
|
/**
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1155
|
+
*
|
|
1156
|
+
* @type {string}
|
|
1157
|
+
* @memberof TradingApiPlaceOCOOrder
|
|
1158
|
+
*/
|
|
1168
1159
|
readonly userId: string
|
|
1169
|
-
|
|
1160
|
+
|
|
1170
1161
|
/**
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1162
|
+
*
|
|
1163
|
+
* @type {string}
|
|
1164
|
+
* @memberof TradingApiPlaceOCOOrder
|
|
1165
|
+
*/
|
|
1175
1166
|
readonly userSecret: string
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
*
|
|
1179
|
-
* @type {TradingPlaceOCOOrderRequest}
|
|
1180
|
-
* @memberof TradingApiPlaceOCOOrder
|
|
1181
|
-
*/
|
|
1182
|
-
readonly requestBody: TradingPlaceOCOOrderRequest
|
|
1183
|
-
}
|
|
1167
|
+
|
|
1168
|
+
} & TradingPlaceOCOOrderRequest
|
|
1184
1169
|
|
|
1185
1170
|
/**
|
|
1186
1171
|
* Request parameters for placeOrder operation in TradingApi.
|
|
1187
1172
|
* @export
|
|
1188
1173
|
* @interface TradingApiPlaceOrderRequest
|
|
1189
1174
|
*/
|
|
1190
|
-
export
|
|
1175
|
+
export type TradingApiPlaceOrderRequest = {
|
|
1176
|
+
|
|
1191
1177
|
/**
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1178
|
+
* The ID of trade object obtained from trade/impact endpoint
|
|
1179
|
+
* @type {string}
|
|
1180
|
+
* @memberof TradingApiPlaceOrder
|
|
1181
|
+
*/
|
|
1196
1182
|
readonly tradeId: string
|
|
1197
|
-
|
|
1183
|
+
|
|
1198
1184
|
/**
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1185
|
+
*
|
|
1186
|
+
* @type {string}
|
|
1187
|
+
* @memberof TradingApiPlaceOrder
|
|
1188
|
+
*/
|
|
1203
1189
|
readonly userId: string
|
|
1204
|
-
|
|
1190
|
+
|
|
1205
1191
|
/**
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1192
|
+
*
|
|
1193
|
+
* @type {string}
|
|
1194
|
+
* @memberof TradingApiPlaceOrder
|
|
1195
|
+
*/
|
|
1210
1196
|
readonly userSecret: string
|
|
1197
|
+
|
|
1211
1198
|
}
|
|
1212
1199
|
|
|
1213
1200
|
/**
|