snaptrade-typescript-sdk 5.0.0 → 6.1.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 +3 -5
- 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
|
@@ -660,7 +660,7 @@ export const ReferenceDataApiFp = function(configuration?: Configuration) {
|
|
|
660
660
|
* @throws {RequiredError}
|
|
661
661
|
*/
|
|
662
662
|
async getSymbols(requestParameters: ReferenceDataApiGetSymbolsRequest = {}, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UniversalSymbol>>> {
|
|
663
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getSymbols(requestParameters
|
|
663
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSymbols(requestParameters, options);
|
|
664
664
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
665
665
|
},
|
|
666
666
|
/**
|
|
@@ -723,7 +723,7 @@ export const ReferenceDataApiFp = function(configuration?: Configuration) {
|
|
|
723
723
|
* @throws {RequiredError}
|
|
724
724
|
*/
|
|
725
725
|
async symbolSearchUserAccount(requestParameters: ReferenceDataApiSymbolSearchUserAccountRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UniversalSymbol>>> {
|
|
726
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.symbolSearchUserAccount(requestParameters.userId, requestParameters.userSecret, requestParameters.accountId, requestParameters
|
|
726
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.symbolSearchUserAccount(requestParameters.userId, requestParameters.userSecret, requestParameters.accountId, requestParameters, options);
|
|
727
727
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
728
728
|
},
|
|
729
729
|
}
|
|
@@ -848,13 +848,15 @@ export const ReferenceDataApiFactory = function (configuration?: Configuration,
|
|
|
848
848
|
* @export
|
|
849
849
|
* @interface ReferenceDataApiGetCurrencyExchangeRatePairRequest
|
|
850
850
|
*/
|
|
851
|
-
export
|
|
851
|
+
export type ReferenceDataApiGetCurrencyExchangeRatePairRequest = {
|
|
852
|
+
|
|
852
853
|
/**
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
854
|
+
* A currency pair based on currency code for example, {CAD-USD}
|
|
855
|
+
* @type {string}
|
|
856
|
+
* @memberof ReferenceDataApiGetCurrencyExchangeRatePair
|
|
857
|
+
*/
|
|
857
858
|
readonly currencyPair: string
|
|
859
|
+
|
|
858
860
|
}
|
|
859
861
|
|
|
860
862
|
/**
|
|
@@ -862,34 +864,31 @@ export interface ReferenceDataApiGetCurrencyExchangeRatePairRequest {
|
|
|
862
864
|
* @export
|
|
863
865
|
* @interface ReferenceDataApiGetSymbolsRequest
|
|
864
866
|
*/
|
|
865
|
-
export
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
* @type {SymbolQuery}
|
|
869
|
-
* @memberof ReferenceDataApiGetSymbols
|
|
870
|
-
*/
|
|
871
|
-
readonly requestBody?: SymbolQuery
|
|
872
|
-
}
|
|
867
|
+
export type ReferenceDataApiGetSymbolsRequest = {
|
|
868
|
+
|
|
869
|
+
} & SymbolQuery
|
|
873
870
|
|
|
874
871
|
/**
|
|
875
872
|
* Request parameters for getSymbolsByTicker operation in ReferenceDataApi.
|
|
876
873
|
* @export
|
|
877
874
|
* @interface ReferenceDataApiGetSymbolsByTickerRequest
|
|
878
875
|
*/
|
|
879
|
-
export
|
|
876
|
+
export type ReferenceDataApiGetSymbolsByTickerRequest = {
|
|
877
|
+
|
|
880
878
|
/**
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
879
|
+
* The ticker of the UniversalSymbol to get.
|
|
880
|
+
* @type {string}
|
|
881
|
+
* @memberof ReferenceDataApiGetSymbolsByTicker
|
|
882
|
+
*/
|
|
885
883
|
readonly ticker: string
|
|
886
|
-
|
|
884
|
+
|
|
887
885
|
/**
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
886
|
+
* OPTIONAL IN PATH Can be used instead of the ticker ; The ID of the UniversalSymbol to get.
|
|
887
|
+
* @type {string}
|
|
888
|
+
* @memberof ReferenceDataApiGetSymbolsByTicker
|
|
889
|
+
*/
|
|
892
890
|
readonly symbolId?: string
|
|
891
|
+
|
|
893
892
|
}
|
|
894
893
|
|
|
895
894
|
/**
|
|
@@ -897,13 +896,15 @@ export interface ReferenceDataApiGetSymbolsByTickerRequest {
|
|
|
897
896
|
* @export
|
|
898
897
|
* @interface ReferenceDataApiListAllBrokerageAuthorizationTypeRequest
|
|
899
898
|
*/
|
|
900
|
-
export
|
|
899
|
+
export type ReferenceDataApiListAllBrokerageAuthorizationTypeRequest = {
|
|
900
|
+
|
|
901
901
|
/**
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
902
|
+
* Comma separated value of brokerage slugs
|
|
903
|
+
* @type {string}
|
|
904
|
+
* @memberof ReferenceDataApiListAllBrokerageAuthorizationType
|
|
905
|
+
*/
|
|
906
906
|
readonly brokerage?: string
|
|
907
|
+
|
|
907
908
|
}
|
|
908
909
|
|
|
909
910
|
/**
|
|
@@ -911,35 +912,30 @@ export interface ReferenceDataApiListAllBrokerageAuthorizationTypeRequest {
|
|
|
911
912
|
* @export
|
|
912
913
|
* @interface ReferenceDataApiSymbolSearchUserAccountRequest
|
|
913
914
|
*/
|
|
914
|
-
export
|
|
915
|
+
export type ReferenceDataApiSymbolSearchUserAccountRequest = {
|
|
916
|
+
|
|
915
917
|
/**
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
918
|
+
*
|
|
919
|
+
* @type {string}
|
|
920
|
+
* @memberof ReferenceDataApiSymbolSearchUserAccount
|
|
921
|
+
*/
|
|
920
922
|
readonly userId: string
|
|
921
|
-
|
|
923
|
+
|
|
922
924
|
/**
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
925
|
+
*
|
|
926
|
+
* @type {string}
|
|
927
|
+
* @memberof ReferenceDataApiSymbolSearchUserAccount
|
|
928
|
+
*/
|
|
927
929
|
readonly userSecret: string
|
|
928
|
-
|
|
930
|
+
|
|
929
931
|
/**
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
932
|
+
* The ID of the account get positions.
|
|
933
|
+
* @type {string}
|
|
934
|
+
* @memberof ReferenceDataApiSymbolSearchUserAccount
|
|
935
|
+
*/
|
|
934
936
|
readonly accountId: string
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
*
|
|
938
|
-
* @type {SymbolQuery}
|
|
939
|
-
* @memberof ReferenceDataApiSymbolSearchUserAccount
|
|
940
|
-
*/
|
|
941
|
-
readonly requestBody?: SymbolQuery
|
|
942
|
-
}
|
|
937
|
+
|
|
938
|
+
} & SymbolQuery
|
|
943
939
|
|
|
944
940
|
/**
|
|
945
941
|
* ReferenceDataApi - object-oriented interface
|