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.
- 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/common.ts +2 -2
- 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/common.js +2 -2
- 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/dist/pagination/page-types.d.ts +27 -0
- package/dist/pagination/page-types.js +13 -0
- package/dist/pagination/page.d.ts +6 -1
- package/dist/pagination/page.js +3 -0
- package/dist/pagination/pageable.d.ts +8 -3
- package/dist/pagination/pageable.js +5 -6
- package/dist/pagination/paginate.d.ts +2 -2
- package/docs/AccountInformationApi.md +72 -88
- package/docs/ApiDisclaimerApi.md +8 -12
- package/docs/ApiStatusApi.md +6 -7
- package/docs/AuthenticationApi.md +41 -55
- package/docs/ConnectionsApi.md +26 -32
- package/docs/ErrorLogsApi.md +8 -10
- package/docs/OptionsApi.md +60 -67
- package/docs/PortfolioManagementApi.md +246 -326
- package/docs/ReferenceDataApi.md +68 -95
- package/docs/TradingApi.md +107 -136
- 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/pagination/page-types.ts +34 -0
- package/pagination/page.ts +9 -1
- package/pagination/pageable.ts +16 -10
- package/pagination/paginate.ts +3 -2
- package/tsconfig.json +1 -0
- package/dist/index.test.d.ts +0 -1
- package/dist/index.test.js +0 -175
package/api/error-logs-api.ts
CHANGED
|
@@ -138,20 +138,22 @@ export const ErrorLogsApiFactory = function (configuration?: Configuration, base
|
|
|
138
138
|
* @export
|
|
139
139
|
* @interface ErrorLogsApiListUserErrorsRequest
|
|
140
140
|
*/
|
|
141
|
-
export
|
|
141
|
+
export type ErrorLogsApiListUserErrorsRequest = {
|
|
142
|
+
|
|
142
143
|
/**
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
*
|
|
145
|
+
* @type {string}
|
|
146
|
+
* @memberof ErrorLogsApiListUserErrors
|
|
147
|
+
*/
|
|
147
148
|
readonly userId: string
|
|
148
|
-
|
|
149
|
+
|
|
149
150
|
/**
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
151
|
+
*
|
|
152
|
+
* @type {string}
|
|
153
|
+
* @memberof ErrorLogsApiListUserErrors
|
|
154
|
+
*/
|
|
154
155
|
readonly userSecret: string
|
|
156
|
+
|
|
155
157
|
}
|
|
156
158
|
|
|
157
159
|
/**
|
package/api/options-api.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
522
|
+
export type OptionsApiGetOptionStrategyRequest = {
|
|
523
|
+
|
|
523
524
|
/**
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
525
|
+
*
|
|
526
|
+
* @type {string}
|
|
527
|
+
* @memberof OptionsApiGetOptionStrategy
|
|
528
|
+
*/
|
|
528
529
|
readonly userId: string
|
|
529
|
-
|
|
530
|
+
|
|
530
531
|
/**
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
532
|
+
*
|
|
533
|
+
* @type {string}
|
|
534
|
+
* @memberof OptionsApiGetOptionStrategy
|
|
535
|
+
*/
|
|
535
536
|
readonly userSecret: string
|
|
536
|
-
|
|
537
|
+
|
|
537
538
|
/**
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
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
|
|
552
|
+
export type OptionsApiGetOptionsChainRequest = {
|
|
553
|
+
|
|
558
554
|
/**
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
555
|
+
*
|
|
556
|
+
* @type {string}
|
|
557
|
+
* @memberof OptionsApiGetOptionsChain
|
|
558
|
+
*/
|
|
563
559
|
readonly userId: string
|
|
564
|
-
|
|
560
|
+
|
|
565
561
|
/**
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
562
|
+
*
|
|
563
|
+
* @type {string}
|
|
564
|
+
* @memberof OptionsApiGetOptionsChain
|
|
565
|
+
*/
|
|
570
566
|
readonly userSecret: string
|
|
571
|
-
|
|
567
|
+
|
|
572
568
|
/**
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
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
|
-
|
|
581
|
-
|
|
582
|
-
|
|
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
|
|
589
|
+
export type OptionsApiGetOptionsStrategyQuoteRequest = {
|
|
590
|
+
|
|
593
591
|
/**
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
592
|
+
*
|
|
593
|
+
* @type {string}
|
|
594
|
+
* @memberof OptionsApiGetOptionsStrategyQuote
|
|
595
|
+
*/
|
|
598
596
|
readonly userId: string
|
|
599
|
-
|
|
597
|
+
|
|
600
598
|
/**
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
599
|
+
*
|
|
600
|
+
* @type {string}
|
|
601
|
+
* @memberof OptionsApiGetOptionsStrategyQuote
|
|
602
|
+
*/
|
|
605
603
|
readonly userSecret: string
|
|
606
|
-
|
|
604
|
+
|
|
607
605
|
/**
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
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
|
-
|
|
616
|
-
|
|
617
|
-
|
|
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
|
|
626
|
+
export type OptionsApiListOptionHoldingsRequest = {
|
|
627
|
+
|
|
628
628
|
/**
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
629
|
+
*
|
|
630
|
+
* @type {string}
|
|
631
|
+
* @memberof OptionsApiListOptionHoldings
|
|
632
|
+
*/
|
|
633
633
|
readonly userId: string
|
|
634
|
-
|
|
634
|
+
|
|
635
635
|
/**
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
636
|
+
*
|
|
637
|
+
* @type {string}
|
|
638
|
+
* @memberof OptionsApiListOptionHoldings
|
|
639
|
+
*/
|
|
640
640
|
readonly userSecret: string
|
|
641
|
-
|
|
641
|
+
|
|
642
642
|
/**
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
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
|
|
656
|
+
export type OptionsApiPlaceOptionStrategyRequest = {
|
|
657
|
+
|
|
656
658
|
/**
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
659
|
+
*
|
|
660
|
+
* @type {string}
|
|
661
|
+
* @memberof OptionsApiPlaceOptionStrategy
|
|
662
|
+
*/
|
|
661
663
|
readonly userId: string
|
|
662
|
-
|
|
664
|
+
|
|
663
665
|
/**
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
666
|
+
*
|
|
667
|
+
* @type {string}
|
|
668
|
+
* @memberof OptionsApiPlaceOptionStrategy
|
|
669
|
+
*/
|
|
668
670
|
readonly userSecret: string
|
|
669
|
-
|
|
671
|
+
|
|
670
672
|
/**
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
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
|
-
|
|
679
|
-
|
|
680
|
-
|
|
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
|