snaptrade-typescript-sdk 4.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.
Files changed (68) hide show
  1. package/.konfig/generate-id.txt +1 -1
  2. package/README.md +2 -2
  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/common.ts +2 -2
  15. package/configuration.ts +1 -1
  16. package/dist/api/account-information-api.d.ts +112 -112
  17. package/dist/api/api-disclaimer-api.d.ts +10 -16
  18. package/dist/api/api-disclaimer-api.js +1 -1
  19. package/dist/api/authentication-api.d.ts +27 -40
  20. package/dist/api/authentication-api.js +2 -2
  21. package/dist/api/connections-api.d.ts +38 -38
  22. package/dist/api/error-logs-api.d.ts +10 -10
  23. package/dist/api/options-api.d.ts +82 -94
  24. package/dist/api/options-api.js +2 -2
  25. package/dist/api/portfolio-management-api.d.ts +214 -256
  26. package/dist/api/portfolio-management-api.js +7 -7
  27. package/dist/api/reference-data-api.d.ts +37 -50
  28. package/dist/api/reference-data-api.js +2 -2
  29. package/dist/api/trading-api.d.ts +131 -160
  30. package/dist/api/trading-api.js +10 -10
  31. package/dist/api/transactions-and-reporting-api.d.ts +52 -52
  32. package/dist/common.js +2 -2
  33. package/dist/configuration.js +1 -1
  34. package/dist/models/index.d.ts +1 -0
  35. package/dist/models/index.js +1 -0
  36. package/dist/models/target-asset.d.ts +4 -2
  37. package/dist/models/trading-cancel-user-account-order-request.d.ts +24 -0
  38. package/dist/models/trading-cancel-user-account-order-request.js +15 -0
  39. package/dist/pagination/page-types.d.ts +27 -0
  40. package/dist/pagination/page-types.js +13 -0
  41. package/dist/pagination/page.d.ts +6 -1
  42. package/dist/pagination/page.js +3 -0
  43. package/dist/pagination/pageable.d.ts +8 -3
  44. package/dist/pagination/pageable.js +5 -6
  45. package/dist/pagination/paginate.d.ts +2 -2
  46. package/docs/AccountInformationApi.md +72 -88
  47. package/docs/ApiDisclaimerApi.md +8 -12
  48. package/docs/ApiStatusApi.md +6 -7
  49. package/docs/AuthenticationApi.md +41 -55
  50. package/docs/ConnectionsApi.md +26 -32
  51. package/docs/ErrorLogsApi.md +8 -10
  52. package/docs/OptionsApi.md +60 -67
  53. package/docs/PortfolioManagementApi.md +246 -326
  54. package/docs/ReferenceDataApi.md +68 -95
  55. package/docs/TradingApi.md +107 -136
  56. package/docs/TransactionsAndReportingApi.md +26 -28
  57. package/index.test.ts +2 -4
  58. package/models/index.ts +1 -0
  59. package/models/target-asset.ts +2 -2
  60. package/models/trading-cancel-user-account-order-request.ts +29 -0
  61. package/package.json +1 -1
  62. package/pagination/page-types.ts +34 -0
  63. package/pagination/page.ts +9 -1
  64. package/pagination/pageable.ts +16 -10
  65. package/pagination/paginate.ts +3 -2
  66. package/tsconfig.json +1 -0
  67. package/dist/index.test.d.ts +0 -1
  68. package/dist/index.test.js +0 -175
@@ -138,20 +138,22 @@ export const ErrorLogsApiFactory = function (configuration?: Configuration, base
138
138
  * @export
139
139
  * @interface ErrorLogsApiListUserErrorsRequest
140
140
  */
141
- export interface ErrorLogsApiListUserErrorsRequest {
141
+ export type ErrorLogsApiListUserErrorsRequest = {
142
+
142
143
  /**
143
- *
144
- * @type {string}
145
- * @memberof ErrorLogsApiListUserErrors
146
- */
144
+ *
145
+ * @type {string}
146
+ * @memberof ErrorLogsApiListUserErrors
147
+ */
147
148
  readonly userId: string
148
-
149
+
149
150
  /**
150
- *
151
- * @type {string}
152
- * @memberof ErrorLogsApiListUserErrors
153
- */
151
+ *
152
+ * @type {string}
153
+ * @memberof ErrorLogsApiListUserErrors
154
+ */
154
155
  readonly userSecret: string
156
+
155
157
  }
156
158
 
157
159
  /**
@@ -404,7 +404,7 @@ export const OptionsApiFp = function(configuration?: Configuration) {
404
404
  * @throws {RequiredError}
405
405
  */
406
406
  async getOptionStrategy(requestParameters: OptionsApiGetOptionStrategyRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StrategyQuotes>> {
407
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOptionStrategy(requestParameters.userId, requestParameters.userSecret, requestParameters.accountId, requestParameters.requestBody, options);
407
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOptionStrategy(requestParameters.userId, requestParameters.userSecret, requestParameters.accountId, requestParameters, options);
408
408
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
409
409
  },
410
410
  /**
@@ -448,7 +448,7 @@ export const OptionsApiFp = function(configuration?: Configuration) {
448
448
  * @throws {RequiredError}
449
449
  */
450
450
  async placeOptionStrategy(requestParameters: OptionsApiPlaceOptionStrategyRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StrategyOrderRecord>> {
451
- const localVarAxiosArgs = await localVarAxiosParamCreator.placeOptionStrategy(requestParameters.userId, requestParameters.userSecret, requestParameters.accountId, requestParameters.optionStrategyId, requestParameters.requestBody, options);
451
+ const localVarAxiosArgs = await localVarAxiosParamCreator.placeOptionStrategy(requestParameters.userId, requestParameters.userSecret, requestParameters.accountId, requestParameters.optionStrategyId, requestParameters, options);
452
452
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
453
453
  },
454
454
  }
@@ -519,69 +519,66 @@ export const OptionsApiFactory = function (configuration?: Configuration, basePa
519
519
  * @export
520
520
  * @interface OptionsApiGetOptionStrategyRequest
521
521
  */
522
- export interface OptionsApiGetOptionStrategyRequest {
522
+ export type OptionsApiGetOptionStrategyRequest = {
523
+
523
524
  /**
524
- *
525
- * @type {string}
526
- * @memberof OptionsApiGetOptionStrategy
527
- */
525
+ *
526
+ * @type {string}
527
+ * @memberof OptionsApiGetOptionStrategy
528
+ */
528
529
  readonly userId: string
529
-
530
+
530
531
  /**
531
- *
532
- * @type {string}
533
- * @memberof OptionsApiGetOptionStrategy
534
- */
532
+ *
533
+ * @type {string}
534
+ * @memberof OptionsApiGetOptionStrategy
535
+ */
535
536
  readonly userSecret: string
536
-
537
+
537
538
  /**
538
- * The ID of the account get positions.
539
- * @type {string}
540
- * @memberof OptionsApiGetOptionStrategy
541
- */
539
+ * The ID of the account get positions.
540
+ * @type {string}
541
+ * @memberof OptionsApiGetOptionStrategy
542
+ */
542
543
  readonly accountId: string
543
-
544
- /**
545
- *
546
- * @type {OptionsGetOptionStrategyRequest}
547
- * @memberof OptionsApiGetOptionStrategy
548
- */
549
- readonly requestBody: OptionsGetOptionStrategyRequest
550
- }
544
+
545
+ } & OptionsGetOptionStrategyRequest
551
546
 
552
547
  /**
553
548
  * Request parameters for getOptionsChain operation in OptionsApi.
554
549
  * @export
555
550
  * @interface OptionsApiGetOptionsChainRequest
556
551
  */
557
- export interface OptionsApiGetOptionsChainRequest {
552
+ export type OptionsApiGetOptionsChainRequest = {
553
+
558
554
  /**
559
- *
560
- * @type {string}
561
- * @memberof OptionsApiGetOptionsChain
562
- */
555
+ *
556
+ * @type {string}
557
+ * @memberof OptionsApiGetOptionsChain
558
+ */
563
559
  readonly userId: string
564
-
560
+
565
561
  /**
566
- *
567
- * @type {string}
568
- * @memberof OptionsApiGetOptionsChain
569
- */
562
+ *
563
+ * @type {string}
564
+ * @memberof OptionsApiGetOptionsChain
565
+ */
570
566
  readonly userSecret: string
571
-
567
+
572
568
  /**
573
- * The ID of the account get positions.
574
- * @type {string}
575
- * @memberof OptionsApiGetOptionsChain
576
- */
569
+ * The ID of the account get positions.
570
+ * @type {string}
571
+ * @memberof OptionsApiGetOptionsChain
572
+ */
577
573
  readonly accountId: string
578
-
574
+
579
575
  /**
580
- * Universal symbol ID if symbol
581
- * @type {string}
582
- * @memberof OptionsApiGetOptionsChain
583
- */
576
+ * Universal symbol ID if symbol
577
+ * @type {string}
578
+ * @memberof OptionsApiGetOptionsChain
579
+ */
584
580
  readonly symbol: string
581
+
585
582
  }
586
583
 
587
584
  /**
@@ -589,34 +586,36 @@ export interface OptionsApiGetOptionsChainRequest {
589
586
  * @export
590
587
  * @interface OptionsApiGetOptionsStrategyQuoteRequest
591
588
  */
592
- export interface OptionsApiGetOptionsStrategyQuoteRequest {
589
+ export type OptionsApiGetOptionsStrategyQuoteRequest = {
590
+
593
591
  /**
594
- *
595
- * @type {string}
596
- * @memberof OptionsApiGetOptionsStrategyQuote
597
- */
592
+ *
593
+ * @type {string}
594
+ * @memberof OptionsApiGetOptionsStrategyQuote
595
+ */
598
596
  readonly userId: string
599
-
597
+
600
598
  /**
601
- *
602
- * @type {string}
603
- * @memberof OptionsApiGetOptionsStrategyQuote
604
- */
599
+ *
600
+ * @type {string}
601
+ * @memberof OptionsApiGetOptionsStrategyQuote
602
+ */
605
603
  readonly userSecret: string
606
-
604
+
607
605
  /**
608
- * The ID of the account get positions.
609
- * @type {string}
610
- * @memberof OptionsApiGetOptionsStrategyQuote
611
- */
606
+ * The ID of the account get positions.
607
+ * @type {string}
608
+ * @memberof OptionsApiGetOptionsStrategyQuote
609
+ */
612
610
  readonly accountId: string
613
-
611
+
614
612
  /**
615
- * Option strategy id obtained from response when creating option strategy object
616
- * @type {string}
617
- * @memberof OptionsApiGetOptionsStrategyQuote
618
- */
613
+ * Option strategy id obtained from response when creating option strategy object
614
+ * @type {string}
615
+ * @memberof OptionsApiGetOptionsStrategyQuote
616
+ */
619
617
  readonly optionStrategyId: string
618
+
620
619
  }
621
620
 
622
621
  /**
@@ -624,27 +623,29 @@ export interface OptionsApiGetOptionsStrategyQuoteRequest {
624
623
  * @export
625
624
  * @interface OptionsApiListOptionHoldingsRequest
626
625
  */
627
- export interface OptionsApiListOptionHoldingsRequest {
626
+ export type OptionsApiListOptionHoldingsRequest = {
627
+
628
628
  /**
629
- *
630
- * @type {string}
631
- * @memberof OptionsApiListOptionHoldings
632
- */
629
+ *
630
+ * @type {string}
631
+ * @memberof OptionsApiListOptionHoldings
632
+ */
633
633
  readonly userId: string
634
-
634
+
635
635
  /**
636
- *
637
- * @type {string}
638
- * @memberof OptionsApiListOptionHoldings
639
- */
636
+ *
637
+ * @type {string}
638
+ * @memberof OptionsApiListOptionHoldings
639
+ */
640
640
  readonly userSecret: string
641
-
641
+
642
642
  /**
643
- * The ID of the account get positions.
644
- * @type {string}
645
- * @memberof OptionsApiListOptionHoldings
646
- */
643
+ * The ID of the account get positions.
644
+ * @type {string}
645
+ * @memberof OptionsApiListOptionHoldings
646
+ */
647
647
  readonly accountId: string
648
+
648
649
  }
649
650
 
650
651
  /**
@@ -652,42 +653,37 @@ export interface OptionsApiListOptionHoldingsRequest {
652
653
  * @export
653
654
  * @interface OptionsApiPlaceOptionStrategyRequest
654
655
  */
655
- export interface OptionsApiPlaceOptionStrategyRequest {
656
+ export type OptionsApiPlaceOptionStrategyRequest = {
657
+
656
658
  /**
657
- *
658
- * @type {string}
659
- * @memberof OptionsApiPlaceOptionStrategy
660
- */
659
+ *
660
+ * @type {string}
661
+ * @memberof OptionsApiPlaceOptionStrategy
662
+ */
661
663
  readonly userId: string
662
-
664
+
663
665
  /**
664
- *
665
- * @type {string}
666
- * @memberof OptionsApiPlaceOptionStrategy
667
- */
666
+ *
667
+ * @type {string}
668
+ * @memberof OptionsApiPlaceOptionStrategy
669
+ */
668
670
  readonly userSecret: string
669
-
671
+
670
672
  /**
671
- * The ID of the account get positions.
672
- * @type {string}
673
- * @memberof OptionsApiPlaceOptionStrategy
674
- */
673
+ * The ID of the account get positions.
674
+ * @type {string}
675
+ * @memberof OptionsApiPlaceOptionStrategy
676
+ */
675
677
  readonly accountId: string
676
-
678
+
677
679
  /**
678
- * Option strategy id obtained from response when creating option strategy object
679
- * @type {string}
680
- * @memberof OptionsApiPlaceOptionStrategy
681
- */
680
+ * Option strategy id obtained from response when creating option strategy object
681
+ * @type {string}
682
+ * @memberof OptionsApiPlaceOptionStrategy
683
+ */
682
684
  readonly optionStrategyId: string
683
-
684
- /**
685
- *
686
- * @type {OptionsPlaceOptionStrategyRequest}
687
- * @memberof OptionsApiPlaceOptionStrategy
688
- */
689
- readonly requestBody: OptionsPlaceOptionStrategyRequest
690
- }
685
+
686
+ } & OptionsPlaceOptionStrategyRequest
691
687
 
692
688
  /**
693
689
  * OptionsApi - object-oriented interface