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.
Files changed (52) hide show
  1. package/.konfig/generate-id.txt +1 -1
  2. package/README.md +3 -5
  3. package/api/account-information-api.ts +136 -120
  4. package/api/api-disclaimer-api.ts +14 -19
  5. package/api/authentication-api.ts +37 -43
  6. package/api/connections-api.ts +46 -40
  7. package/api/error-logs-api.ts +12 -10
  8. package/api/options-api.ts +104 -108
  9. package/api/portfolio-management-api.ts +259 -253
  10. package/api/reference-data-api.ts +49 -53
  11. package/api/trading-api.ts +172 -185
  12. package/api/transactions-and-reporting-api.ts +64 -60
  13. package/client.ts +2 -0
  14. package/configuration.ts +1 -1
  15. package/dist/api/account-information-api.d.ts +112 -112
  16. package/dist/api/api-disclaimer-api.d.ts +10 -16
  17. package/dist/api/api-disclaimer-api.js +1 -1
  18. package/dist/api/authentication-api.d.ts +27 -40
  19. package/dist/api/authentication-api.js +2 -2
  20. package/dist/api/connections-api.d.ts +38 -38
  21. package/dist/api/error-logs-api.d.ts +10 -10
  22. package/dist/api/options-api.d.ts +82 -94
  23. package/dist/api/options-api.js +2 -2
  24. package/dist/api/portfolio-management-api.d.ts +214 -256
  25. package/dist/api/portfolio-management-api.js +7 -7
  26. package/dist/api/reference-data-api.d.ts +37 -50
  27. package/dist/api/reference-data-api.js +2 -2
  28. package/dist/api/trading-api.d.ts +131 -160
  29. package/dist/api/trading-api.js +10 -10
  30. package/dist/api/transactions-and-reporting-api.d.ts +52 -52
  31. package/dist/configuration.js +1 -1
  32. package/dist/models/index.d.ts +1 -0
  33. package/dist/models/index.js +1 -0
  34. package/dist/models/target-asset.d.ts +4 -2
  35. package/dist/models/trading-cancel-user-account-order-request.d.ts +24 -0
  36. package/dist/models/trading-cancel-user-account-order-request.js +15 -0
  37. package/docs/AccountInformationApi.md +72 -88
  38. package/docs/ApiDisclaimerApi.md +8 -12
  39. package/docs/ApiStatusApi.md +6 -7
  40. package/docs/AuthenticationApi.md +34 -48
  41. package/docs/ConnectionsApi.md +26 -32
  42. package/docs/ErrorLogsApi.md +8 -10
  43. package/docs/OptionsApi.md +55 -62
  44. package/docs/PortfolioManagementApi.md +229 -309
  45. package/docs/ReferenceDataApi.md +66 -93
  46. package/docs/TradingApi.md +88 -117
  47. package/docs/TransactionsAndReportingApi.md +26 -28
  48. package/index.test.ts +2 -4
  49. package/models/index.ts +1 -0
  50. package/models/target-asset.ts +2 -2
  51. package/models/trading-cancel-user-account-order-request.ts +29 -0
  52. 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.requestBody, options);
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.requestBody, options);
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 interface ReferenceDataApiGetCurrencyExchangeRatePairRequest {
851
+ export type ReferenceDataApiGetCurrencyExchangeRatePairRequest = {
852
+
852
853
  /**
853
- * A currency pair based on currency code for example, {CAD-USD}
854
- * @type {string}
855
- * @memberof ReferenceDataApiGetCurrencyExchangeRatePair
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 interface ReferenceDataApiGetSymbolsRequest {
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 interface ReferenceDataApiGetSymbolsByTickerRequest {
876
+ export type ReferenceDataApiGetSymbolsByTickerRequest = {
877
+
880
878
  /**
881
- * The ticker of the UniversalSymbol to get.
882
- * @type {string}
883
- * @memberof ReferenceDataApiGetSymbolsByTicker
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
- * OPTIONAL IN PATH Can be used instead of the ticker ; The ID of the UniversalSymbol to get.
889
- * @type {string}
890
- * @memberof ReferenceDataApiGetSymbolsByTicker
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 interface ReferenceDataApiListAllBrokerageAuthorizationTypeRequest {
899
+ export type ReferenceDataApiListAllBrokerageAuthorizationTypeRequest = {
900
+
901
901
  /**
902
- * Comma separated value of brokerage slugs
903
- * @type {string}
904
- * @memberof ReferenceDataApiListAllBrokerageAuthorizationType
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 interface ReferenceDataApiSymbolSearchUserAccountRequest {
915
+ export type ReferenceDataApiSymbolSearchUserAccountRequest = {
916
+
915
917
  /**
916
- *
917
- * @type {string}
918
- * @memberof ReferenceDataApiSymbolSearchUserAccount
919
- */
918
+ *
919
+ * @type {string}
920
+ * @memberof ReferenceDataApiSymbolSearchUserAccount
921
+ */
920
922
  readonly userId: string
921
-
923
+
922
924
  /**
923
- *
924
- * @type {string}
925
- * @memberof ReferenceDataApiSymbolSearchUserAccount
926
- */
925
+ *
926
+ * @type {string}
927
+ * @memberof ReferenceDataApiSymbolSearchUserAccount
928
+ */
927
929
  readonly userSecret: string
928
-
930
+
929
931
  /**
930
- * The ID of the account get positions.
931
- * @type {string}
932
- * @memberof ReferenceDataApiSymbolSearchUserAccount
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