snaptrade-typescript-sdk 12.2.16 → 12.2.18

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/dist/index.d.cts CHANGED
@@ -845,7 +845,7 @@ interface Position {
845
845
  */
846
846
  'cash_equivalent'?: boolean | null;
847
847
  /**
848
- * List of tax lots for the given position. Disabled by default, only available on paid plans, enable this feature in the [Add-on page of the Customer Dashboard](https://dashboard.snaptrade.com/add-ons)
848
+ * List of tax lots for the given position. Disabled by default, enable this feature in the [Add-on page of the Customer Dashboard](https://dashboard.snaptrade.com/add-ons)
849
849
  * @type {Array<TaxLot>}
850
850
  * @memberof Position
851
851
  */
@@ -3208,7 +3208,7 @@ interface AccountPosition {
3208
3208
  */
3209
3209
  'cash_equivalent'?: boolean;
3210
3210
  /**
3211
- * List of tax lots for the given position (disabled by default, only available on paid plans, contact support if needed)
3211
+ * List of tax lots for the given position. Disabled by default; enable via the Customer Dashboard Add-ons page. When enabled, this field is included only for stocks, ADRs, ETFs, mutual funds, and crypto positions. For these positions, an empty list means no tax lot data is available. Availability varies by brokerage and position. This field is omitted for all other instrument kinds or when the feature is disabled.
3212
3212
  * @type {Array<TaxLot>}
3213
3213
  * @memberof AccountPosition
3214
3214
  */
@@ -3462,7 +3462,7 @@ interface AccountValueHistoryItem {
3462
3462
  interface AccountValueHistoryResponse {
3463
3463
  [key: string]: any;
3464
3464
  /**
3465
- * List of estimated account values over time returned by the endpoint.
3465
+ * List of estimated account values over time returned by the endpoint. The data may contain gaps and is best used for charting trends, rather than as a complete or exact record of historical account values.
3466
3466
  * @type {Array<AccountValueHistoryItem>}
3467
3467
  * @memberof AccountValueHistoryResponse
3468
3468
  */
@@ -3529,887 +3529,903 @@ interface AllAccountPositionsResponse {
3529
3529
  'data_freshness': AllAccountPositionsResponseDataFreshness;
3530
3530
  }
3531
3531
  //#endregion
3532
- //#region models/encrypted-response-encrypted-message-data.d.ts
3532
+ //#region models/deposit-account-net-value.d.ts
3533
3533
  /**
3534
- *
3534
+ * Net value of the account -- cash balance for deposit accounts. Shared across all account kinds -- negative for `line_of_credit` accounts, representing money owed. Null when unknown (e.g. a real-time fetch failed and no cached value exists).
3535
3535
  * @export
3536
- * @interface EncryptedResponseEncryptedMessageData
3536
+ * @interface DepositAccountNetValue
3537
3537
  */
3538
- interface EncryptedResponseEncryptedMessageData {
3538
+ interface DepositAccountNetValue {
3539
3539
  [key: string]: any;
3540
3540
  /**
3541
3541
  *
3542
- * @type {string}
3543
- * @memberof EncryptedResponseEncryptedMessageData
3544
- */
3545
- 'encryptedMessage'?: string;
3546
- /**
3547
- *
3548
- * @type {string}
3549
- * @memberof EncryptedResponseEncryptedMessageData
3542
+ * @type {number}
3543
+ * @memberof DepositAccountNetValue
3550
3544
  */
3551
- 'tag'?: string;
3545
+ 'amount'?: number | null;
3552
3546
  /**
3553
3547
  *
3554
3548
  * @type {string}
3555
- * @memberof EncryptedResponseEncryptedMessageData
3549
+ * @memberof DepositAccountNetValue
3556
3550
  */
3557
- 'nonce'?: string;
3551
+ 'currency'?: string | null;
3558
3552
  }
3559
3553
  //#endregion
3560
- //#region models/encrypted-response.d.ts
3554
+ //#region models/deposit-account-sync-status.d.ts
3561
3555
  /**
3562
- * This response consists of 2 different components that must be decrypted to obtain the decrypted message * Decrypting the encryptedSharedKey The encrypted shared key is a shared key that was randomly generated by SnapTrade and encrypted using the users SSH public key provided when registering the user It is needed to decrypt the message in step 2. To decrypt the shared key, the user should have access to their SSH private key stored locally in their device An example Python code on how to decrypt the shared key is shown below ``` def decrypt_rsa_message(self, encrypted_message): from Crypto.Cipher import PKCS1_OAEP from Crypto.PublicKey import RSA from base64 import b64decode f = open(\'private.pem\', \'r\') private_key = RSA.import_key(f.read()) cipher = PKCS1_OAEP.new(private_key) return cipher.decrypt(b64decode(encrypted_message.encode())).decode() ``` * Decrypting the encryptedMessageData The data meant to be returned by an endpoint can be obtained by decrypting the encrypted message An encrypted message is a message that is encrypted using AES - MODE OCB with the shared key obtained in step one An example code to decrypt the encrypted message is shown below ``` def decrypt_aes_message(self, shared_key, encrypted_message): from Crypto.Cipher import AES from base64 import b64decode encrypted_msg = b64decode(encrypted_message[\"encryptedMessage\"].encode()) tag = b64decode(encrypted_message[\"tag\"].encode()) nonce = b64decode(encrypted_message[\"nonce\"].encode()) cipher = AES.new(shared_key.encode(), AES.MODE_OCB, nonce=nonce) return cipher.decrypt_and_verify(encrypted_msg, tag).decode() ```
3556
+ * Contains status updates for the account sync process between SnapTrade and the institution, used by `DepositAccount` in `Connections_listConnectionAccounts`. Each property is optional -- an institution may not report sync status for every data type. Deposit accounts don\'t place orders or hold positions, so unlike `ConnectionAccountSyncStatus` this type has no `orders` or `positions` field. `balances` is the timestamp of the last successful sync of that data type (null if never synced).
3563
3557
  * @export
3564
- * @interface EncryptedResponse
3558
+ * @interface DepositAccountSyncStatus
3565
3559
  */
3566
- interface EncryptedResponse {
3567
- /**
3568
- *
3569
- * @type {string}
3570
- * @memberof EncryptedResponse
3571
- */
3572
- 'encryptedSharedKey'?: string;
3560
+ interface DepositAccountSyncStatus {
3561
+ [key: string]: any;
3573
3562
  /**
3574
3563
  *
3575
- * @type {EncryptedResponseEncryptedMessageData}
3576
- * @memberof EncryptedResponse
3577
- */
3578
- 'encryptedMessageData'?: EncryptedResponseEncryptedMessageData;
3579
- }
3580
- //#endregion
3581
- //#region models/login-redirect-uri.d.ts
3582
- /**
3583
- * Redirect uri upon successful login
3584
- * @export
3585
- * @interface LoginRedirectURI
3586
- */
3587
- interface LoginRedirectURI {
3588
- /**
3589
- * Connection Portal link to redirect user to connect a brokerage account.
3590
- * @type {string}
3591
- * @memberof LoginRedirectURI
3564
+ * @type {TransactionsStatus}
3565
+ * @memberof DepositAccountSyncStatus
3592
3566
  */
3593
- 'redirectURI'?: string;
3567
+ 'transactions'?: TransactionsStatus;
3594
3568
  /**
3595
- * ID to identify the connection portal session.
3569
+ * Date in ISO 8601 format or null (YYYY-MM-DD HH:MM:SS.mmmmmmTZ)
3596
3570
  * @type {string}
3597
- * @memberof LoginRedirectURI
3571
+ * @memberof DepositAccountSyncStatus
3598
3572
  */
3599
- 'sessionId'?: string;
3573
+ 'balances'?: string | null;
3600
3574
  }
3601
3575
  //#endregion
3602
- //#region models/authentication-login-snap-trade-user200-response.d.ts
3603
- /**
3604
- * @type AuthenticationLoginSnapTradeUser200Response
3605
- * @export
3606
- */
3607
- type AuthenticationLoginSnapTradeUser200Response = EncryptedResponse | LoginRedirectURI;
3608
- //#endregion
3609
- //#region models/brokerage-authorization-disabled-confirmation.d.ts
3576
+ //#region models/deposit-account.d.ts
3610
3577
  /**
3611
- * Confirmation that the connection has been disabled.
3578
+ * A deposit account (checking, savings) under a connection.
3612
3579
  * @export
3613
- * @interface BrokerageAuthorizationDisabledConfirmation
3580
+ * @interface DepositAccount
3614
3581
  */
3615
- interface BrokerageAuthorizationDisabledConfirmation {
3582
+ interface DepositAccount {
3616
3583
  [key: string]: any;
3617
3584
  /**
3618
- * Connection disabled confirmation
3585
+ * Discriminator for the account kind.
3619
3586
  * @type {string}
3620
- * @memberof BrokerageAuthorizationDisabledConfirmation
3587
+ * @memberof DepositAccount
3621
3588
  */
3622
- 'detail'?: string;
3623
- }
3624
- //#endregion
3625
- //#region models/brokerage-authorization-refresh-confirmation.d.ts
3626
- /**
3627
- * Confirmation that the syncs have been scheduled.
3628
- * @export
3629
- * @interface BrokerageAuthorizationRefreshConfirmation
3630
- */
3631
- interface BrokerageAuthorizationRefreshConfirmation {
3632
- [key: string]: any;
3589
+ 'kind': DepositAccountKindEnum;
3633
3590
  /**
3634
- * Refresh confirmation details
3591
+ * Unique identifier for the connected institution account. This is the UUID used to reference the account in SnapTrade.
3635
3592
  * @type {string}
3636
- * @memberof BrokerageAuthorizationRefreshConfirmation
3593
+ * @memberof DepositAccount
3637
3594
  */
3638
- 'detail'?: string;
3639
- }
3640
- //#endregion
3641
- //#region models/brokerage-authorization-transactions-sync-confirmation.d.ts
3642
- /**
3643
- * Confirmation that the transaction syncs have been scheduled.
3644
- * @export
3645
- * @interface BrokerageAuthorizationTransactionsSyncConfirmation
3646
- */
3647
- interface BrokerageAuthorizationTransactionsSyncConfirmation {
3648
- [key: string]: any;
3595
+ 'id': string;
3649
3596
  /**
3650
- * Transactions sync confirmation details
3597
+ * Unique identifier for the connection (brokerage_authorization_id). This is the UUID used to reference the connection in SnapTrade.
3651
3598
  * @type {string}
3652
- * @memberof BrokerageAuthorizationTransactionsSyncConfirmation
3599
+ * @memberof DepositAccount
3653
3600
  */
3654
- 'detail'?: string;
3655
- }
3656
- //#endregion
3657
- //#region models/brokerage-authorization-type-read-only-brokerage.d.ts
3658
- /**
3659
- *
3660
- * @export
3661
- * @interface BrokerageAuthorizationTypeReadOnlyBrokerage
3662
- */
3663
- interface BrokerageAuthorizationTypeReadOnlyBrokerage {
3664
- [key: string]: any;
3601
+ 'connection_id': string;
3665
3602
  /**
3666
- *
3603
+ * A display name for the account. Either assigned by the user or by the institution itself.
3667
3604
  * @type {string}
3668
- * @memberof BrokerageAuthorizationTypeReadOnlyBrokerage
3605
+ * @memberof DepositAccount
3669
3606
  */
3670
- 'id'?: string;
3607
+ 'display_name'?: string | null;
3671
3608
  /**
3672
- * Full name of the brokerage.
3609
+ * The account number assigned by the institution, masked to the last 4 characters (e.g. `****4821`).
3673
3610
  * @type {string}
3674
- * @memberof BrokerageAuthorizationTypeReadOnlyBrokerage
3611
+ * @memberof DepositAccount
3675
3612
  */
3676
- 'name'?: string;
3613
+ 'masked_account_number': string;
3677
3614
  /**
3678
- * A unique identifier for that brokerage. It is usually the name of the brokerage in capital letters and will never change.
3615
+ * A stable and unique account identifier provided by the institution. Will be set to null if not provided. When present, can be used to check if a user has connected the same institution account across multiple connections.
3679
3616
  * @type {string}
3680
- * @memberof BrokerageAuthorizationTypeReadOnlyBrokerage
3617
+ * @memberof DepositAccount
3681
3618
  */
3682
- 'slug'?: string;
3683
- }
3684
- //#endregion
3685
- //#region models/brokerage-authorization-type-read-only.d.ts
3686
- /**
3687
- *
3688
- * @export
3689
- * @interface BrokerageAuthorizationTypeReadOnly
3690
- */
3691
- interface BrokerageAuthorizationTypeReadOnly {
3692
- [key: string]: any;
3619
+ 'institution_account_id'?: string | null;
3693
3620
  /**
3694
- *
3621
+ * Unique identifier for the institution that holds the account.
3695
3622
  * @type {string}
3696
- * @memberof BrokerageAuthorizationTypeReadOnly
3623
+ * @memberof DepositAccount
3697
3624
  */
3698
- 'id'?: string;
3625
+ 'institution_id'?: string;
3699
3626
  /**
3700
- *
3627
+ * Timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format indicating when the account was opened at the institution. Only populated for institutions that expose this data; `null` for all other institutions.
3701
3628
  * @type {string}
3702
- * @memberof BrokerageAuthorizationTypeReadOnly
3629
+ * @memberof DepositAccount
3703
3630
  */
3704
- 'type'?: BrokerageAuthorizationTypeReadOnlyTypeEnum;
3631
+ 'opening_date'?: string | null;
3705
3632
  /**
3706
3633
  *
3634
+ * @type {DepositAccountSyncStatus}
3635
+ * @memberof DepositAccount
3636
+ */
3637
+ 'sync_status': DepositAccountSyncStatus;
3638
+ /**
3639
+ * The account type as provided by the institution.
3707
3640
  * @type {string}
3708
- * @memberof BrokerageAuthorizationTypeReadOnly
3641
+ * @memberof DepositAccount
3709
3642
  */
3710
- 'auth_type'?: BrokerageAuthorizationTypeReadOnlyAuthTypeEnum;
3643
+ 'raw_type'?: string | null;
3711
3644
  /**
3712
3645
  *
3713
- * @type {BrokerageAuthorizationTypeReadOnlyBrokerage}
3714
- * @memberof BrokerageAuthorizationTypeReadOnly
3646
+ * @type {DepositAccountNetValue}
3647
+ * @memberof DepositAccount
3715
3648
  */
3716
- 'brokerage'?: BrokerageAuthorizationTypeReadOnlyBrokerage;
3649
+ 'net_value'?: DepositAccountNetValue | null;
3717
3650
  }
3718
- type BrokerageAuthorizationTypeReadOnlyTypeEnum = 'read' | 'trade';
3719
- type BrokerageAuthorizationTypeReadOnlyAuthTypeEnum = 'OAUTH' | 'SCRAPE' | 'UNOFFICIAL_API' | 'TOKEN';
3651
+ type DepositAccountKindEnum = 'deposit';
3720
3652
  //#endregion
3721
- //#region models/brokerage-instrument.d.ts
3653
+ //#region models/connection-account-sync-status.d.ts
3722
3654
  /**
3723
- *
3655
+ * Contains status updates for the account sync process between SnapTrade and the institution, used by `InvestmentAccount` in `Connections_listConnectionAccounts`. Each property is optional -- an institution may not report sync status for every data type. `orders`/`positions`/`balances` are the timestamp of the last successful sync of that data type (null if never synced). See `DepositAccountSyncStatus`/`LineOfCreditAccountSyncStatus` for the deposit/line-of-credit counterparts, which omit `orders`/`positions` since those account kinds don\'t place orders or hold positions.
3724
3656
  * @export
3725
- * @interface BrokerageInstrument
3657
+ * @interface ConnectionAccountSyncStatus
3726
3658
  */
3727
- interface BrokerageInstrument {
3659
+ interface ConnectionAccountSyncStatus {
3728
3660
  [key: string]: any;
3729
3661
  /**
3730
- * The instrument\'s trading symbol / ticker.
3731
- * @type {string}
3732
- * @memberof BrokerageInstrument
3662
+ *
3663
+ * @type {TransactionsStatus}
3664
+ * @memberof ConnectionAccountSyncStatus
3733
3665
  */
3734
- 'symbol': string;
3666
+ 'transactions'?: TransactionsStatus;
3735
3667
  /**
3736
- * The MIC code of the exchange where the instrument is traded.
3668
+ * Date in ISO 8601 format or null (YYYY-MM-DD HH:MM:SS.mmmmmmTZ)
3737
3669
  * @type {string}
3738
- * @memberof BrokerageInstrument
3739
- */
3740
- 'exchange_mic'?: string | null;
3741
- /**
3742
- * Whether the instrument is tradeable through the brokerage. `null` if the tradeability is unknown.
3743
- * @type {boolean}
3744
- * @memberof BrokerageInstrument
3670
+ * @memberof ConnectionAccountSyncStatus
3745
3671
  */
3746
- 'tradeable'?: boolean | null;
3672
+ 'orders'?: string | null;
3747
3673
  /**
3748
- * Whether the instrument allows fractional units. `null` if the fractionability is unknown.
3749
- * @type {boolean}
3750
- * @memberof BrokerageInstrument
3674
+ * Date in ISO 8601 format or null (YYYY-MM-DD HH:MM:SS.mmmmmmTZ)
3675
+ * @type {string}
3676
+ * @memberof ConnectionAccountSyncStatus
3751
3677
  */
3752
- 'fractionable'?: boolean | null;
3678
+ 'positions'?: string | null;
3753
3679
  /**
3754
- * The universal symbol ID of the instrument. This is the ID used to reference the instrument in SnapTrade API calls.
3680
+ * Date in ISO 8601 format or null (YYYY-MM-DD HH:MM:SS.mmmmmmTZ)
3755
3681
  * @type {string}
3756
- * @memberof BrokerageInstrument
3682
+ * @memberof ConnectionAccountSyncStatus
3757
3683
  */
3758
- 'universal_symbol_id'?: string | null;
3684
+ 'balances'?: string | null;
3759
3685
  }
3760
3686
  //#endregion
3761
- //#region models/brokerage-instruments-response.d.ts
3687
+ //#region models/investment-account-net-value.d.ts
3762
3688
  /**
3763
- *
3689
+ * Net value of the account -- total market value for investment accounts. Shared across all account kinds -- negative for `line_of_credit` accounts, representing money owed. Null when unknown (e.g. a real-time fetch failed and no cached value exists).
3764
3690
  * @export
3765
- * @interface BrokerageInstrumentsResponse
3691
+ * @interface InvestmentAccountNetValue
3766
3692
  */
3767
- interface BrokerageInstrumentsResponse {
3693
+ interface InvestmentAccountNetValue {
3768
3694
  [key: string]: any;
3769
3695
  /**
3770
3696
  *
3771
- * @type {Array<BrokerageInstrument>}
3772
- * @memberof BrokerageInstrumentsResponse
3697
+ * @type {number}
3698
+ * @memberof InvestmentAccountNetValue
3773
3699
  */
3774
- 'instruments'?: Array<BrokerageInstrument>;
3700
+ 'amount'?: number | null;
3701
+ /**
3702
+ *
3703
+ * @type {string}
3704
+ * @memberof InvestmentAccountNetValue
3705
+ */
3706
+ 'currency'?: string | null;
3775
3707
  }
3776
3708
  //#endregion
3777
- //#region models/cancel-order-response.d.ts
3709
+ //#region models/investment-account.d.ts
3778
3710
  /**
3779
- *
3711
+ * An investment account under a connection. `opening_date`, `funding_date`, and `net_value` are real-time or cached depending on the caller\'s plan -- see `Connections_listConnectionAccounts` -- and always cached on `AccountInformation_listAllUserAccounts`.
3780
3712
  * @export
3781
- * @interface CancelOrderResponse
3713
+ * @interface InvestmentAccount
3782
3714
  */
3783
- interface CancelOrderResponse {
3715
+ interface InvestmentAccount {
3784
3716
  [key: string]: any;
3785
3717
  /**
3786
- * Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.
3718
+ * Discriminator for the account kind.
3787
3719
  * @type {string}
3788
- * @memberof CancelOrderResponse
3720
+ * @memberof InvestmentAccount
3789
3721
  */
3790
- 'brokerage_order_id': string;
3722
+ 'kind': InvestmentAccountKindEnum;
3791
3723
  /**
3792
- * The raw response from the brokerage.
3793
- * @type {{ [key: string]: any; }}
3794
- * @memberof CancelOrderResponse
3724
+ * Unique identifier for the connected institution account. This is the UUID used to reference the account in SnapTrade.
3725
+ * @type {string}
3726
+ * @memberof InvestmentAccount
3795
3727
  */
3796
- 'raw_response'?: {
3797
- [key: string]: any;
3798
- } | null;
3799
- }
3800
- //#endregion
3801
- //#region models/child-brokerage-order-ids.d.ts
3802
- /**
3803
- *
3804
- * @export
3805
- * @interface ChildBrokerageOrderIDs
3806
- */
3807
- interface ChildBrokerageOrderIDs {
3808
- [key: string]: any;
3728
+ 'id': string;
3809
3729
  /**
3810
- * The brokerage order ID for the take profit leg of the bracket order
3730
+ * Unique identifier for the connection (brokerage_authorization_id). This is the UUID used to reference the connection in SnapTrade.
3811
3731
  * @type {string}
3812
- * @memberof ChildBrokerageOrderIDs
3732
+ * @memberof InvestmentAccount
3813
3733
  */
3814
- 'take_profit_order_id'?: string;
3734
+ 'connection_id': string;
3815
3735
  /**
3816
- * The brokerage order ID for the stop loss leg of the bracket order
3736
+ * A display name for the account. Either assigned by the user or by the institution itself.
3817
3737
  * @type {string}
3818
- * @memberof ChildBrokerageOrderIDs
3738
+ * @memberof InvestmentAccount
3819
3739
  */
3820
- 'stop_loss_order_id'?: string;
3821
- }
3822
- //#endregion
3823
- //#region models/order-type-strict.d.ts
3824
- /**
3825
- * The type of order to place. - For `Limit` and `StopLimit` orders, the `price` field is required. - For `Stop` and `StopLimit` orders, the `stop` field is required.
3826
- * @export
3827
- * @enum {string}
3828
- */
3829
- type OrderTypeStrict = 'Limit' | 'Market' | 'StopLimit' | 'Stop';
3830
- //#endregion
3831
- //#region models/time-in-force-strict.d.ts
3832
- /**
3833
- * The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. Here are the supported values: - `Day` - Day. The order is valid only for the trading day on which it is placed. - `GTC` - Good Til Canceled. The order is valid until it is executed or canceled. - `FOK` - Fill Or Kill. The order must be executed in its entirety immediately or be canceled completely. - `IOC` - Immediate Or Cancel. The order must be executed immediately. Any portion of the order that cannot be filled immediately will be canceled.
3834
- * @export
3835
- * @enum {string}
3836
- */
3837
- type TimeInForceStrict = 'FOK' | 'Day' | 'GTC' | 'IOC';
3838
- //#endregion
3839
- //#region models/trading-instrument.d.ts
3840
- /**
3841
- *
3842
- * @export
3843
- * @interface TradingInstrument
3844
- */
3845
- interface TradingInstrument {
3846
- [key: string]: any;
3740
+ 'display_name'?: string | null;
3847
3741
  /**
3848
- * The instrument\'s trading ticker symbol. This currently supports stock symbols and Options symbols in the 21 character OCC format. For example `AAPL 251114C00240000` represents a call option on AAPL expiring on 2025-11-14 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format)
3742
+ * The account number assigned by the institution, masked to the last 4 characters (e.g. `****8443`).
3849
3743
  * @type {string}
3850
- * @memberof TradingInstrument
3744
+ * @memberof InvestmentAccount
3851
3745
  */
3852
- 'symbol': string;
3746
+ 'masked_account_number': string;
3853
3747
  /**
3854
- * The instrument\'s type
3748
+ * A stable and unique account identifier provided by the institution. Will be set to null if not provided. When present, can be used to check if a user has connected the same institution account across multiple connections.
3855
3749
  * @type {string}
3856
- * @memberof TradingInstrument
3750
+ * @memberof InvestmentAccount
3857
3751
  */
3858
- 'type': TradingInstrumentTypeEnum;
3859
- }
3860
- type TradingInstrumentTypeEnum = 'EQUITY' | 'OPTION' | 'CRYPTOCURRENCY' | 'CRYPTOCURRENCY_PAIR';
3861
- //#endregion
3862
- //#region models/complex-order-leg.d.ts
3863
- /**
3864
- * A single order within a complex group. For option OCOs, each peer trades one option contract type.
3865
- * @export
3866
- * @interface ComplexOrderLeg
3867
- */
3868
- interface ComplexOrderLeg {
3869
- [key: string]: any;
3752
+ 'institution_account_id'?: string | null;
3870
3753
  /**
3871
- * The role of this leg within the complex order.
3754
+ * Unique identifier for the institution that holds the account.
3872
3755
  * @type {string}
3873
- * @memberof ComplexOrderLeg
3756
+ * @memberof InvestmentAccount
3874
3757
  */
3875
- 'order_role': ComplexOrderLegOrderRoleEnum;
3758
+ 'institution_id'?: string;
3876
3759
  /**
3877
- * The action describes the intent or side of a trade. This is either `BUY` or `SELL` for Equity symbols or `BUY_TO_OPEN`, `BUY_TO_CLOSE`, `SELL_TO_OPEN` or `SELL_TO_CLOSE` for Options.
3878
- * @type {ActionStrictWithOptions}
3879
- * @memberof ComplexOrderLeg
3760
+ * Timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format indicating when the account was opened at the institution. Only populated for institutions that expose this data; `null` for all other institutions. See [supported institutions](https://support.snaptrade.com/brokerages) for the full list.
3761
+ * @type {string}
3762
+ * @memberof InvestmentAccount
3880
3763
  */
3881
- 'action': ActionStrictWithOptions;
3764
+ 'opening_date'?: string | null;
3765
+ /**
3766
+ * Timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format indicating when the account was funded. Only populated for institutions that expose this data; `null` for all other institutions. See [supported institutions](https://support.snaptrade.com/brokerages) for the full list.
3767
+ * @type {string}
3768
+ * @memberof InvestmentAccount
3769
+ */
3770
+ 'funding_date'?: string | null;
3882
3771
  /**
3883
3772
  *
3884
- * @type {TradingInstrument}
3885
- * @memberof ComplexOrderLeg
3773
+ * @type {ConnectionAccountSyncStatus}
3774
+ * @memberof InvestmentAccount
3886
3775
  */
3887
- 'instrument': TradingInstrument;
3776
+ 'sync_status': ConnectionAccountSyncStatus;
3888
3777
  /**
3889
- * The type of order to place. - For `Limit` and `StopLimit` orders, the `price` field is required. - For `Stop` and `StopLimit` orders, the `stop` field is required.
3890
- * @type {OrderTypeStrict}
3891
- * @memberof ComplexOrderLeg
3778
+ * The account type as provided by the institution.
3779
+ * @type {string}
3780
+ * @memberof InvestmentAccount
3892
3781
  */
3893
- 'order_type': OrderTypeStrict;
3782
+ 'raw_type'?: string | null;
3894
3783
  /**
3895
- * A positive whole number of shares or option contracts. Option OCO peers must use the same quantity.
3896
- * @type {number}
3897
- * @memberof ComplexOrderLeg
3784
+ * Whether the institution reports the account as a cash or margin account, normalized across institutions. - `cash`: A cash account. The account cannot borrow on margin. - `margin`: A margin account, including portfolio margin accounts. Some institutions also report retirement accounts with limited margin (for example, trading before funds settle) as margin accounts. - `unknown`: The institution does not report whether the account is cash or margin. **Beta:** only returned for some institutions and partners it has been enabled for. Omitted otherwise.
3785
+ * @type {string}
3786
+ * @memberof InvestmentAccount
3898
3787
  */
3899
- 'units': number;
3788
+ 'cash_or_margin'?: InvestmentAccountCashOrMarginEnum;
3900
3789
  /**
3901
- * The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. Here are the supported values: - `Day` - Day. The order is valid only for the trading day on which it is placed. - `GTC` - Good Til Canceled. The order is valid until it is executed or canceled. - `FOK` - Fill Or Kill. The order must be executed in its entirety immediately or be canceled completely. - `IOC` - Immediate Or Cancel. The order must be executed immediately. Any portion of the order that cannot be filled immediately will be canceled.
3902
- * @type {TimeInForceStrict}
3903
- * @memberof ComplexOrderLeg
3790
+ * Indicates whether the account is a paper (simulated) trading account.
3791
+ * @type {boolean}
3792
+ * @memberof InvestmentAccount
3904
3793
  */
3905
- 'time_in_force': TimeInForceStrict;
3794
+ 'is_paper': boolean;
3906
3795
  /**
3907
- * The limit price. Required when `order_type` is `Limit` or `StopLimit`.
3908
- * @type {number}
3909
- * @memberof ComplexOrderLeg
3796
+ *
3797
+ * @type {InvestmentAccountNetValue}
3798
+ * @memberof InvestmentAccount
3910
3799
  */
3911
- 'price'?: number | null;
3800
+ 'net_value'?: InvestmentAccountNetValue | null;
3801
+ }
3802
+ type InvestmentAccountKindEnum = 'investment';
3803
+ type InvestmentAccountCashOrMarginEnum = 'cash' | 'margin' | 'unknown';
3804
+ //#endregion
3805
+ //#region models/line-of-credit-account-available-credit.d.ts
3806
+ /**
3807
+ * The remaining credit available to spend on the account (credit limit less the current balance). Omitted when no such data is available.
3808
+ * @export
3809
+ * @interface LineOfCreditAccountAvailableCredit
3810
+ */
3811
+ interface LineOfCreditAccountAvailableCredit {
3812
+ [key: string]: any;
3912
3813
  /**
3913
- * The stop trigger price. Required when `order_type` is `Stop` or `StopLimit`.
3814
+ *
3914
3815
  * @type {number}
3915
- * @memberof ComplexOrderLeg
3816
+ * @memberof LineOfCreditAccountAvailableCredit
3916
3817
  */
3917
- 'stop'?: number | null;
3818
+ 'amount'?: number | null;
3819
+ /**
3820
+ *
3821
+ * @type {string}
3822
+ * @memberof LineOfCreditAccountAvailableCredit
3823
+ */
3824
+ 'currency'?: string | null;
3918
3825
  }
3919
- type ComplexOrderLegOrderRoleEnum = 'TRIGGER' | 'CONDITIONAL' | 'PEER';
3920
3826
  //#endregion
3921
- //#region models/complex-order-response.d.ts
3827
+ //#region models/line-of-credit-account-minimum-payment-amount.d.ts
3922
3828
  /**
3923
- * Response returned after successfully placing a complex order. AccountOrderRecord rows for the legs are not created synchronously — they\'re hydrated by the next brokerage sync, and can be queried later using the returned `brokerage_group_order_id`.
3829
+ * The minimum payment due on the account\'s next statement. Omitted when no such data is available.
3924
3830
  * @export
3925
- * @interface ComplexOrderResponse
3831
+ * @interface LineOfCreditAccountMinimumPaymentAmount
3926
3832
  */
3927
- interface ComplexOrderResponse {
3833
+ interface LineOfCreditAccountMinimumPaymentAmount {
3928
3834
  [key: string]: any;
3929
3835
  /**
3930
- * The complex order type that was placed.
3931
- * @type {string}
3932
- * @memberof ComplexOrderResponse
3836
+ *
3837
+ * @type {number}
3838
+ * @memberof LineOfCreditAccountMinimumPaymentAmount
3933
3839
  */
3934
- 'type'?: ComplexOrderResponseTypeEnum;
3840
+ 'amount'?: number | null;
3935
3841
  /**
3936
- * The brokerage-assigned identifier that links all legs of this complex order together. Each leg will eventually appear as a separate AccountOrderRecord sharing this value. May be null if the brokerage does not return a group identifier.
3842
+ *
3937
3843
  * @type {string}
3938
- * @memberof ComplexOrderResponse
3844
+ * @memberof LineOfCreditAccountMinimumPaymentAmount
3939
3845
  */
3940
- 'brokerage_group_order_id'?: string | null;
3846
+ 'currency'?: string | null;
3941
3847
  }
3942
- type ComplexOrderResponseTypeEnum = 'OCO' | 'OTO' | 'OTOCO';
3943
3848
  //#endregion
3944
- //#region models/deposit-account-net-value.d.ts
3849
+ //#region models/line-of-credit-account-net-value.d.ts
3945
3850
  /**
3946
- * Net value of the account -- cash balance for deposit accounts. Shared across all account kinds -- negative for `line_of_credit` accounts, representing money owed. Null when unknown (e.g. a real-time fetch failed and no cached value exists).
3851
+ * Net value of the account -- negative, representing money owed. Shared across all account kinds. Null when unknown (e.g. a real-time fetch failed and no cached value exists).
3947
3852
  * @export
3948
- * @interface DepositAccountNetValue
3853
+ * @interface LineOfCreditAccountNetValue
3949
3854
  */
3950
- interface DepositAccountNetValue {
3855
+ interface LineOfCreditAccountNetValue {
3951
3856
  [key: string]: any;
3952
3857
  /**
3953
3858
  *
3954
3859
  * @type {number}
3955
- * @memberof DepositAccountNetValue
3860
+ * @memberof LineOfCreditAccountNetValue
3956
3861
  */
3957
3862
  'amount'?: number | null;
3958
3863
  /**
3959
3864
  *
3960
3865
  * @type {string}
3961
- * @memberof DepositAccountNetValue
3866
+ * @memberof LineOfCreditAccountNetValue
3962
3867
  */
3963
3868
  'currency'?: string | null;
3964
3869
  }
3965
3870
  //#endregion
3966
- //#region models/deposit-account-sync-status.d.ts
3871
+ //#region models/line-of-credit-account-sync-status.d.ts
3967
3872
  /**
3968
- * Contains status updates for the account sync process between SnapTrade and the institution, used by `DepositAccount` in `Connections_listConnectionAccounts`. Each property is optional -- an institution may not report sync status for every data type. Deposit accounts don\'t place orders or hold positions, so unlike `ConnectionAccountSyncStatus` this type has no `orders` or `positions` field. `balances` is the timestamp of the last successful sync of that data type (null if never synced).
3873
+ * Contains status updates for the account sync process between SnapTrade and the institution, used by `LineOfCreditAccount` in `Connections_listConnectionAccounts`. Each property is optional -- an institution may not report sync status for every data type. Line-of-credit accounts don\'t place orders or hold positions, so like `DepositAccountSyncStatus` this type has no `orders` or `positions` field. `balances` is the timestamp of the last successful sync of that data type (null if never synced).
3969
3874
  * @export
3970
- * @interface DepositAccountSyncStatus
3875
+ * @interface LineOfCreditAccountSyncStatus
3971
3876
  */
3972
- interface DepositAccountSyncStatus {
3877
+ interface LineOfCreditAccountSyncStatus {
3973
3878
  [key: string]: any;
3974
3879
  /**
3975
3880
  *
3976
3881
  * @type {TransactionsStatus}
3977
- * @memberof DepositAccountSyncStatus
3882
+ * @memberof LineOfCreditAccountSyncStatus
3978
3883
  */
3979
3884
  'transactions'?: TransactionsStatus;
3980
3885
  /**
3981
3886
  * Date in ISO 8601 format or null (YYYY-MM-DD HH:MM:SS.mmmmmmTZ)
3982
3887
  * @type {string}
3983
- * @memberof DepositAccountSyncStatus
3888
+ * @memberof LineOfCreditAccountSyncStatus
3984
3889
  */
3985
3890
  'balances'?: string | null;
3986
3891
  }
3987
3892
  //#endregion
3988
- //#region models/deposit-account.d.ts
3893
+ //#region models/line-of-credit-account.d.ts
3989
3894
  /**
3990
- * A deposit account (checking, savings) under a connection.
3895
+ * A line-of-credit account (e.g. a credit card) under a connection.
3991
3896
  * @export
3992
- * @interface DepositAccount
3897
+ * @interface LineOfCreditAccount
3993
3898
  */
3994
- interface DepositAccount {
3899
+ interface LineOfCreditAccount {
3995
3900
  [key: string]: any;
3996
3901
  /**
3997
3902
  * Discriminator for the account kind.
3998
3903
  * @type {string}
3999
- * @memberof DepositAccount
3904
+ * @memberof LineOfCreditAccount
4000
3905
  */
4001
- 'kind': DepositAccountKindEnum;
3906
+ 'kind': LineOfCreditAccountKindEnum;
4002
3907
  /**
4003
3908
  * Unique identifier for the connected institution account. This is the UUID used to reference the account in SnapTrade.
4004
3909
  * @type {string}
4005
- * @memberof DepositAccount
3910
+ * @memberof LineOfCreditAccount
4006
3911
  */
4007
3912
  'id': string;
4008
3913
  /**
4009
3914
  * Unique identifier for the connection (brokerage_authorization_id). This is the UUID used to reference the connection in SnapTrade.
4010
3915
  * @type {string}
4011
- * @memberof DepositAccount
3916
+ * @memberof LineOfCreditAccount
4012
3917
  */
4013
3918
  'connection_id': string;
4014
3919
  /**
4015
3920
  * A display name for the account. Either assigned by the user or by the institution itself.
4016
3921
  * @type {string}
4017
- * @memberof DepositAccount
3922
+ * @memberof LineOfCreditAccount
4018
3923
  */
4019
3924
  'display_name'?: string | null;
4020
3925
  /**
4021
- * The account number assigned by the institution, masked to the last 4 characters (e.g. `****4821`).
3926
+ * The account number assigned by the institution, masked to the last 4 characters (e.g. `****1881`).
4022
3927
  * @type {string}
4023
- * @memberof DepositAccount
3928
+ * @memberof LineOfCreditAccount
4024
3929
  */
4025
3930
  'masked_account_number': string;
4026
3931
  /**
4027
3932
  * A stable and unique account identifier provided by the institution. Will be set to null if not provided. When present, can be used to check if a user has connected the same institution account across multiple connections.
4028
3933
  * @type {string}
4029
- * @memberof DepositAccount
3934
+ * @memberof LineOfCreditAccount
4030
3935
  */
4031
3936
  'institution_account_id'?: string | null;
4032
3937
  /**
4033
3938
  * Unique identifier for the institution that holds the account.
4034
3939
  * @type {string}
4035
- * @memberof DepositAccount
3940
+ * @memberof LineOfCreditAccount
4036
3941
  */
4037
3942
  'institution_id'?: string;
4038
3943
  /**
4039
3944
  * Timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format indicating when the account was opened at the institution. Only populated for institutions that expose this data; `null` for all other institutions.
4040
3945
  * @type {string}
4041
- * @memberof DepositAccount
3946
+ * @memberof LineOfCreditAccount
4042
3947
  */
4043
3948
  'opening_date'?: string | null;
4044
3949
  /**
4045
3950
  *
4046
- * @type {DepositAccountSyncStatus}
4047
- * @memberof DepositAccount
3951
+ * @type {LineOfCreditAccountSyncStatus}
3952
+ * @memberof LineOfCreditAccount
4048
3953
  */
4049
- 'sync_status': DepositAccountSyncStatus;
3954
+ 'sync_status': LineOfCreditAccountSyncStatus;
4050
3955
  /**
4051
3956
  * The account type as provided by the institution.
4052
3957
  * @type {string}
4053
- * @memberof DepositAccount
3958
+ * @memberof LineOfCreditAccount
4054
3959
  */
4055
3960
  'raw_type'?: string | null;
4056
3961
  /**
4057
3962
  *
4058
- * @type {DepositAccountNetValue}
4059
- * @memberof DepositAccount
3963
+ * @type {LineOfCreditAccountNetValue}
3964
+ * @memberof LineOfCreditAccount
4060
3965
  */
4061
- 'net_value'?: DepositAccountNetValue | null;
3966
+ 'net_value'?: LineOfCreditAccountNetValue | null;
3967
+ /**
3968
+ *
3969
+ * @type {LineOfCreditAccountMinimumPaymentAmount}
3970
+ * @memberof LineOfCreditAccount
3971
+ */
3972
+ 'minimum_payment_amount'?: LineOfCreditAccountMinimumPaymentAmount | null;
3973
+ /**
3974
+ *
3975
+ * @type {LineOfCreditAccountAvailableCredit}
3976
+ * @memberof LineOfCreditAccount
3977
+ */
3978
+ 'available_credit'?: LineOfCreditAccountAvailableCredit | null;
3979
+ /**
3980
+ * The date the account\'s next payment is due, in `YYYY-MM-DD` format. Omitted when no such data is available.
3981
+ * @type {string}
3982
+ * @memberof LineOfCreditAccount
3983
+ */
3984
+ 'next_payment_date'?: string | null;
4062
3985
  }
4063
- type DepositAccountKindEnum = 'deposit';
3986
+ type LineOfCreditAccountKindEnum = 'line_of_credit';
4064
3987
  //#endregion
4065
- //#region models/connection-account-sync-status.d.ts
3988
+ //#region models/connection-account.d.ts
4066
3989
  /**
4067
- * Contains status updates for the account sync process between SnapTrade and the institution, used by `InvestmentAccount` in `Connections_listConnectionAccounts`. Each property is optional -- an institution may not report sync status for every data type. `orders`/`positions`/`balances` are the timestamp of the last successful sync of that data type (null if never synced). See `DepositAccountSyncStatus`/`LineOfCreditAccountSyncStatus` for the deposit/line-of-credit counterparts, which omit `orders`/`positions` since those account kinds don\'t place orders or hold positions.
3990
+ * @type ConnectionAccount
3991
+ * A single account under a connection, from the `kind`-discriminated union used by `Connections_listConnectionAccounts` and `AccountInformation_listAllUserAccounts`. Use `kind` to determine which schema is present. `investment`, `deposit`, and `line_of_credit` are implemented today.
4068
3992
  * @export
4069
- * @interface ConnectionAccountSyncStatus
4070
3993
  */
4071
- interface ConnectionAccountSyncStatus {
3994
+ type ConnectionAccount = {
3995
+ kind: 'deposit';
3996
+ } & DepositAccount | {
3997
+ kind: 'investment';
3998
+ } & InvestmentAccount | {
3999
+ kind: 'line_of_credit';
4000
+ } & LineOfCreditAccount;
4001
+ //#endregion
4002
+ //#region models/all-user-accounts-response.d.ts
4003
+ /**
4004
+ * Accounts across all of the user\'s connections.
4005
+ * @export
4006
+ * @interface AllUserAccountsResponse
4007
+ */
4008
+ interface AllUserAccountsResponse {
4072
4009
  [key: string]: any;
4073
4010
  /**
4074
- *
4075
- * @type {TransactionsStatus}
4076
- * @memberof ConnectionAccountSyncStatus
4011
+ * Accounts returned for the request.
4012
+ * @type {Array<ConnectionAccount>}
4013
+ * @memberof AllUserAccountsResponse
4077
4014
  */
4078
- 'transactions'?: TransactionsStatus;
4015
+ 'results': Array<ConnectionAccount>;
4016
+ }
4017
+ //#endregion
4018
+ //#region models/encrypted-response-encrypted-message-data.d.ts
4019
+ /**
4020
+ *
4021
+ * @export
4022
+ * @interface EncryptedResponseEncryptedMessageData
4023
+ */
4024
+ interface EncryptedResponseEncryptedMessageData {
4025
+ [key: string]: any;
4079
4026
  /**
4080
- * Date in ISO 8601 format or null (YYYY-MM-DD HH:MM:SS.mmmmmmTZ)
4027
+ *
4081
4028
  * @type {string}
4082
- * @memberof ConnectionAccountSyncStatus
4029
+ * @memberof EncryptedResponseEncryptedMessageData
4083
4030
  */
4084
- 'orders'?: string | null;
4031
+ 'encryptedMessage'?: string;
4085
4032
  /**
4086
- * Date in ISO 8601 format or null (YYYY-MM-DD HH:MM:SS.mmmmmmTZ)
4033
+ *
4087
4034
  * @type {string}
4088
- * @memberof ConnectionAccountSyncStatus
4035
+ * @memberof EncryptedResponseEncryptedMessageData
4089
4036
  */
4090
- 'positions'?: string | null;
4037
+ 'tag'?: string;
4091
4038
  /**
4092
- * Date in ISO 8601 format or null (YYYY-MM-DD HH:MM:SS.mmmmmmTZ)
4039
+ *
4093
4040
  * @type {string}
4094
- * @memberof ConnectionAccountSyncStatus
4041
+ * @memberof EncryptedResponseEncryptedMessageData
4095
4042
  */
4096
- 'balances'?: string | null;
4043
+ 'nonce'?: string;
4097
4044
  }
4098
4045
  //#endregion
4099
- //#region models/investment-account-net-value.d.ts
4046
+ //#region models/encrypted-response.d.ts
4100
4047
  /**
4101
- * Net value of the account -- total market value for investment accounts. Shared across all account kinds -- negative for `line_of_credit` accounts, representing money owed. Null when unknown (e.g. a real-time fetch failed and no cached value exists).
4048
+ * This response consists of 2 different components that must be decrypted to obtain the decrypted message * Decrypting the encryptedSharedKey The encrypted shared key is a shared key that was randomly generated by SnapTrade and encrypted using the users SSH public key provided when registering the user It is needed to decrypt the message in step 2. To decrypt the shared key, the user should have access to their SSH private key stored locally in their device An example Python code on how to decrypt the shared key is shown below ``` def decrypt_rsa_message(self, encrypted_message): from Crypto.Cipher import PKCS1_OAEP from Crypto.PublicKey import RSA from base64 import b64decode f = open(\'private.pem\', \'r\') private_key = RSA.import_key(f.read()) cipher = PKCS1_OAEP.new(private_key) return cipher.decrypt(b64decode(encrypted_message.encode())).decode() ``` * Decrypting the encryptedMessageData The data meant to be returned by an endpoint can be obtained by decrypting the encrypted message An encrypted message is a message that is encrypted using AES - MODE OCB with the shared key obtained in step one An example code to decrypt the encrypted message is shown below ``` def decrypt_aes_message(self, shared_key, encrypted_message): from Crypto.Cipher import AES from base64 import b64decode encrypted_msg = b64decode(encrypted_message[\"encryptedMessage\"].encode()) tag = b64decode(encrypted_message[\"tag\"].encode()) nonce = b64decode(encrypted_message[\"nonce\"].encode()) cipher = AES.new(shared_key.encode(), AES.MODE_OCB, nonce=nonce) return cipher.decrypt_and_verify(encrypted_msg, tag).decode() ```
4102
4049
  * @export
4103
- * @interface InvestmentAccountNetValue
4050
+ * @interface EncryptedResponse
4104
4051
  */
4105
- interface InvestmentAccountNetValue {
4106
- [key: string]: any;
4052
+ interface EncryptedResponse {
4107
4053
  /**
4108
4054
  *
4109
- * @type {number}
4110
- * @memberof InvestmentAccountNetValue
4055
+ * @type {string}
4056
+ * @memberof EncryptedResponse
4111
4057
  */
4112
- 'amount'?: number | null;
4058
+ 'encryptedSharedKey'?: string;
4113
4059
  /**
4114
4060
  *
4115
- * @type {string}
4116
- * @memberof InvestmentAccountNetValue
4061
+ * @type {EncryptedResponseEncryptedMessageData}
4062
+ * @memberof EncryptedResponse
4117
4063
  */
4118
- 'currency'?: string | null;
4064
+ 'encryptedMessageData'?: EncryptedResponseEncryptedMessageData;
4119
4065
  }
4120
4066
  //#endregion
4121
- //#region models/investment-account.d.ts
4067
+ //#region models/login-redirect-uri.d.ts
4122
4068
  /**
4123
- * An investment account under a connection. `opening_date`, `funding_date`, and `net_value` are real-time or cached depending on the caller\'s plan -- see `Connections_listConnectionAccounts`.
4069
+ * Redirect uri upon successful login
4124
4070
  * @export
4125
- * @interface InvestmentAccount
4071
+ * @interface LoginRedirectURI
4126
4072
  */
4127
- interface InvestmentAccount {
4128
- [key: string]: any;
4073
+ interface LoginRedirectURI {
4129
4074
  /**
4130
- * Discriminator for the account kind.
4075
+ * Connection Portal link to redirect user to connect a brokerage account.
4131
4076
  * @type {string}
4132
- * @memberof InvestmentAccount
4077
+ * @memberof LoginRedirectURI
4133
4078
  */
4134
- 'kind': InvestmentAccountKindEnum;
4079
+ 'redirectURI'?: string;
4135
4080
  /**
4136
- * Unique identifier for the connected institution account. This is the UUID used to reference the account in SnapTrade.
4081
+ * ID to identify the connection portal session.
4137
4082
  * @type {string}
4138
- * @memberof InvestmentAccount
4083
+ * @memberof LoginRedirectURI
4139
4084
  */
4140
- 'id': string;
4085
+ 'sessionId'?: string;
4086
+ }
4087
+ //#endregion
4088
+ //#region models/authentication-login-snap-trade-user200-response.d.ts
4089
+ /**
4090
+ * @type AuthenticationLoginSnapTradeUser200Response
4091
+ * @export
4092
+ */
4093
+ type AuthenticationLoginSnapTradeUser200Response = EncryptedResponse | LoginRedirectURI;
4094
+ //#endregion
4095
+ //#region models/brokerage-authorization-disabled-confirmation.d.ts
4096
+ /**
4097
+ * Confirmation that the connection has been disabled.
4098
+ * @export
4099
+ * @interface BrokerageAuthorizationDisabledConfirmation
4100
+ */
4101
+ interface BrokerageAuthorizationDisabledConfirmation {
4102
+ [key: string]: any;
4141
4103
  /**
4142
- * Unique identifier for the connection (brokerage_authorization_id). This is the UUID used to reference the connection in SnapTrade.
4104
+ * Connection disabled confirmation
4143
4105
  * @type {string}
4144
- * @memberof InvestmentAccount
4106
+ * @memberof BrokerageAuthorizationDisabledConfirmation
4145
4107
  */
4146
- 'connection_id': string;
4108
+ 'detail'?: string;
4109
+ }
4110
+ //#endregion
4111
+ //#region models/brokerage-authorization-refresh-confirmation.d.ts
4112
+ /**
4113
+ * Confirmation that the syncs have been scheduled.
4114
+ * @export
4115
+ * @interface BrokerageAuthorizationRefreshConfirmation
4116
+ */
4117
+ interface BrokerageAuthorizationRefreshConfirmation {
4118
+ [key: string]: any;
4147
4119
  /**
4148
- * A display name for the account. Either assigned by the user or by the institution itself.
4120
+ * Refresh confirmation details
4149
4121
  * @type {string}
4150
- * @memberof InvestmentAccount
4122
+ * @memberof BrokerageAuthorizationRefreshConfirmation
4151
4123
  */
4152
- 'display_name'?: string | null;
4124
+ 'detail'?: string;
4125
+ }
4126
+ //#endregion
4127
+ //#region models/brokerage-authorization-transactions-sync-confirmation.d.ts
4128
+ /**
4129
+ * Confirmation that the transaction syncs have been scheduled.
4130
+ * @export
4131
+ * @interface BrokerageAuthorizationTransactionsSyncConfirmation
4132
+ */
4133
+ interface BrokerageAuthorizationTransactionsSyncConfirmation {
4134
+ [key: string]: any;
4153
4135
  /**
4154
- * The account number assigned by the institution, masked to the last 4 characters (e.g. `****8443`).
4136
+ * Transactions sync confirmation details
4155
4137
  * @type {string}
4156
- * @memberof InvestmentAccount
4138
+ * @memberof BrokerageAuthorizationTransactionsSyncConfirmation
4157
4139
  */
4158
- 'masked_account_number': string;
4140
+ 'detail'?: string;
4141
+ }
4142
+ //#endregion
4143
+ //#region models/brokerage-authorization-type-read-only-brokerage.d.ts
4144
+ /**
4145
+ *
4146
+ * @export
4147
+ * @interface BrokerageAuthorizationTypeReadOnlyBrokerage
4148
+ */
4149
+ interface BrokerageAuthorizationTypeReadOnlyBrokerage {
4150
+ [key: string]: any;
4159
4151
  /**
4160
- * A stable and unique account identifier provided by the institution. Will be set to null if not provided. When present, can be used to check if a user has connected the same institution account across multiple connections.
4152
+ *
4161
4153
  * @type {string}
4162
- * @memberof InvestmentAccount
4154
+ * @memberof BrokerageAuthorizationTypeReadOnlyBrokerage
4163
4155
  */
4164
- 'institution_account_id'?: string | null;
4156
+ 'id'?: string;
4165
4157
  /**
4166
- * Unique identifier for the institution that holds the account.
4158
+ * Full name of the brokerage.
4167
4159
  * @type {string}
4168
- * @memberof InvestmentAccount
4160
+ * @memberof BrokerageAuthorizationTypeReadOnlyBrokerage
4169
4161
  */
4170
- 'institution_id'?: string;
4162
+ 'name'?: string;
4171
4163
  /**
4172
- * Timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format indicating when the account was opened at the institution. Only populated for institutions that expose this data; `null` for all other institutions. See [supported institutions](https://support.snaptrade.com/brokerages) for the full list.
4164
+ * A unique identifier for that brokerage. It is usually the name of the brokerage in capital letters and will never change.
4173
4165
  * @type {string}
4174
- * @memberof InvestmentAccount
4166
+ * @memberof BrokerageAuthorizationTypeReadOnlyBrokerage
4175
4167
  */
4176
- 'opening_date'?: string | null;
4168
+ 'slug'?: string;
4169
+ }
4170
+ //#endregion
4171
+ //#region models/brokerage-authorization-type-read-only.d.ts
4172
+ /**
4173
+ *
4174
+ * @export
4175
+ * @interface BrokerageAuthorizationTypeReadOnly
4176
+ */
4177
+ interface BrokerageAuthorizationTypeReadOnly {
4178
+ [key: string]: any;
4177
4179
  /**
4178
- * Timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format indicating when the account was funded. Only populated for institutions that expose this data; `null` for all other institutions. See [supported institutions](https://support.snaptrade.com/brokerages) for the full list.
4180
+ *
4179
4181
  * @type {string}
4180
- * @memberof InvestmentAccount
4182
+ * @memberof BrokerageAuthorizationTypeReadOnly
4181
4183
  */
4182
- 'funding_date'?: string | null;
4184
+ 'id'?: string;
4183
4185
  /**
4184
4186
  *
4185
- * @type {ConnectionAccountSyncStatus}
4186
- * @memberof InvestmentAccount
4187
- */
4188
- 'sync_status': ConnectionAccountSyncStatus;
4189
- /**
4190
- * The account type as provided by the institution.
4191
4187
  * @type {string}
4192
- * @memberof InvestmentAccount
4188
+ * @memberof BrokerageAuthorizationTypeReadOnly
4193
4189
  */
4194
- 'raw_type'?: string | null;
4190
+ 'type'?: BrokerageAuthorizationTypeReadOnlyTypeEnum;
4195
4191
  /**
4196
- * Whether the institution reports the account as a cash or margin account, normalized across institutions. - `cash`: A cash account. The account cannot borrow on margin. - `margin`: A margin account, including portfolio margin accounts. Some institutions also report retirement accounts with limited margin (for example, trading before funds settle) as margin accounts. - `unknown`: The institution does not report whether the account is cash or margin. **Beta:** only returned for some institutions and partners it has been enabled for. Omitted otherwise.
4192
+ *
4197
4193
  * @type {string}
4198
- * @memberof InvestmentAccount
4199
- */
4200
- 'account_type'?: InvestmentAccountAccountTypeEnum;
4201
- /**
4202
- * Indicates whether the account is a paper (simulated) trading account.
4203
- * @type {boolean}
4204
- * @memberof InvestmentAccount
4194
+ * @memberof BrokerageAuthorizationTypeReadOnly
4205
4195
  */
4206
- 'is_paper': boolean;
4196
+ 'auth_type'?: BrokerageAuthorizationTypeReadOnlyAuthTypeEnum;
4207
4197
  /**
4208
4198
  *
4209
- * @type {InvestmentAccountNetValue}
4210
- * @memberof InvestmentAccount
4199
+ * @type {BrokerageAuthorizationTypeReadOnlyBrokerage}
4200
+ * @memberof BrokerageAuthorizationTypeReadOnly
4211
4201
  */
4212
- 'net_value'?: InvestmentAccountNetValue | null;
4202
+ 'brokerage'?: BrokerageAuthorizationTypeReadOnlyBrokerage;
4213
4203
  }
4214
- type InvestmentAccountKindEnum = 'investment';
4215
- type InvestmentAccountAccountTypeEnum = 'cash' | 'margin' | 'unknown';
4204
+ type BrokerageAuthorizationTypeReadOnlyTypeEnum = 'read' | 'trade';
4205
+ type BrokerageAuthorizationTypeReadOnlyAuthTypeEnum = 'OAUTH' | 'SCRAPE' | 'UNOFFICIAL_API' | 'TOKEN';
4216
4206
  //#endregion
4217
- //#region models/line-of-credit-account-available-credit.d.ts
4207
+ //#region models/brokerage-instrument.d.ts
4218
4208
  /**
4219
- * The remaining credit available to spend on the account (credit limit less the current balance). Omitted when no such data is available.
4209
+ *
4220
4210
  * @export
4221
- * @interface LineOfCreditAccountAvailableCredit
4211
+ * @interface BrokerageInstrument
4222
4212
  */
4223
- interface LineOfCreditAccountAvailableCredit {
4213
+ interface BrokerageInstrument {
4224
4214
  [key: string]: any;
4225
4215
  /**
4226
- *
4227
- * @type {number}
4228
- * @memberof LineOfCreditAccountAvailableCredit
4216
+ * The instrument\'s trading symbol / ticker.
4217
+ * @type {string}
4218
+ * @memberof BrokerageInstrument
4229
4219
  */
4230
- 'amount'?: number | null;
4220
+ 'symbol': string;
4231
4221
  /**
4232
- *
4222
+ * The MIC code of the exchange where the instrument is traded.
4233
4223
  * @type {string}
4234
- * @memberof LineOfCreditAccountAvailableCredit
4224
+ * @memberof BrokerageInstrument
4235
4225
  */
4236
- 'currency'?: string | null;
4237
- }
4238
- //#endregion
4239
- //#region models/line-of-credit-account-minimum-payment-amount.d.ts
4240
- /**
4241
- * The minimum payment due on the account\'s next statement. Omitted when no such data is available.
4242
- * @export
4243
- * @interface LineOfCreditAccountMinimumPaymentAmount
4244
- */
4245
- interface LineOfCreditAccountMinimumPaymentAmount {
4246
- [key: string]: any;
4226
+ 'exchange_mic'?: string | null;
4247
4227
  /**
4248
- *
4249
- * @type {number}
4250
- * @memberof LineOfCreditAccountMinimumPaymentAmount
4228
+ * Whether the instrument is tradeable through the brokerage. `null` if the tradeability is unknown.
4229
+ * @type {boolean}
4230
+ * @memberof BrokerageInstrument
4251
4231
  */
4252
- 'amount'?: number | null;
4232
+ 'tradeable'?: boolean | null;
4253
4233
  /**
4254
- *
4234
+ * Whether the instrument allows fractional units. `null` if the fractionability is unknown.
4235
+ * @type {boolean}
4236
+ * @memberof BrokerageInstrument
4237
+ */
4238
+ 'fractionable'?: boolean | null;
4239
+ /**
4240
+ * The universal symbol ID of the instrument. This is the ID used to reference the instrument in SnapTrade API calls.
4255
4241
  * @type {string}
4256
- * @memberof LineOfCreditAccountMinimumPaymentAmount
4242
+ * @memberof BrokerageInstrument
4257
4243
  */
4258
- 'currency'?: string | null;
4244
+ 'universal_symbol_id'?: string | null;
4259
4245
  }
4260
4246
  //#endregion
4261
- //#region models/line-of-credit-account-net-value.d.ts
4247
+ //#region models/brokerage-instruments-response.d.ts
4262
4248
  /**
4263
- * Net value of the account -- negative, representing money owed. Shared across all account kinds. Null when unknown (e.g. a real-time fetch failed and no cached value exists).
4249
+ *
4264
4250
  * @export
4265
- * @interface LineOfCreditAccountNetValue
4251
+ * @interface BrokerageInstrumentsResponse
4266
4252
  */
4267
- interface LineOfCreditAccountNetValue {
4253
+ interface BrokerageInstrumentsResponse {
4268
4254
  [key: string]: any;
4269
4255
  /**
4270
4256
  *
4271
- * @type {number}
4272
- * @memberof LineOfCreditAccountNetValue
4273
- */
4274
- 'amount'?: number | null;
4275
- /**
4276
- *
4277
- * @type {string}
4278
- * @memberof LineOfCreditAccountNetValue
4257
+ * @type {Array<BrokerageInstrument>}
4258
+ * @memberof BrokerageInstrumentsResponse
4279
4259
  */
4280
- 'currency'?: string | null;
4260
+ 'instruments'?: Array<BrokerageInstrument>;
4281
4261
  }
4282
4262
  //#endregion
4283
- //#region models/line-of-credit-account-sync-status.d.ts
4263
+ //#region models/cancel-order-response.d.ts
4284
4264
  /**
4285
- * Contains status updates for the account sync process between SnapTrade and the institution, used by `LineOfCreditAccount` in `Connections_listConnectionAccounts`. Each property is optional -- an institution may not report sync status for every data type. Line-of-credit accounts don\'t place orders or hold positions, so like `DepositAccountSyncStatus` this type has no `orders` or `positions` field. `balances` is the timestamp of the last successful sync of that data type (null if never synced).
4265
+ *
4286
4266
  * @export
4287
- * @interface LineOfCreditAccountSyncStatus
4267
+ * @interface CancelOrderResponse
4288
4268
  */
4289
- interface LineOfCreditAccountSyncStatus {
4269
+ interface CancelOrderResponse {
4290
4270
  [key: string]: any;
4291
4271
  /**
4292
- *
4293
- * @type {TransactionsStatus}
4294
- * @memberof LineOfCreditAccountSyncStatus
4272
+ * Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.
4273
+ * @type {string}
4274
+ * @memberof CancelOrderResponse
4295
4275
  */
4296
- 'transactions'?: TransactionsStatus;
4276
+ 'brokerage_order_id': string;
4297
4277
  /**
4298
- * Date in ISO 8601 format or null (YYYY-MM-DD HH:MM:SS.mmmmmmTZ)
4299
- * @type {string}
4300
- * @memberof LineOfCreditAccountSyncStatus
4278
+ * The raw response from the brokerage.
4279
+ * @type {{ [key: string]: any; }}
4280
+ * @memberof CancelOrderResponse
4301
4281
  */
4302
- 'balances'?: string | null;
4282
+ 'raw_response'?: {
4283
+ [key: string]: any;
4284
+ } | null;
4303
4285
  }
4304
4286
  //#endregion
4305
- //#region models/line-of-credit-account.d.ts
4287
+ //#region models/child-brokerage-order-ids.d.ts
4306
4288
  /**
4307
- * A line-of-credit account (e.g. a credit card) under a connection.
4289
+ *
4308
4290
  * @export
4309
- * @interface LineOfCreditAccount
4291
+ * @interface ChildBrokerageOrderIDs
4310
4292
  */
4311
- interface LineOfCreditAccount {
4293
+ interface ChildBrokerageOrderIDs {
4312
4294
  [key: string]: any;
4313
4295
  /**
4314
- * Discriminator for the account kind.
4315
- * @type {string}
4316
- * @memberof LineOfCreditAccount
4317
- */
4318
- 'kind': LineOfCreditAccountKindEnum;
4319
- /**
4320
- * Unique identifier for the connected institution account. This is the UUID used to reference the account in SnapTrade.
4321
- * @type {string}
4322
- * @memberof LineOfCreditAccount
4323
- */
4324
- 'id': string;
4325
- /**
4326
- * Unique identifier for the connection (brokerage_authorization_id). This is the UUID used to reference the connection in SnapTrade.
4296
+ * The brokerage order ID for the take profit leg of the bracket order
4327
4297
  * @type {string}
4328
- * @memberof LineOfCreditAccount
4298
+ * @memberof ChildBrokerageOrderIDs
4329
4299
  */
4330
- 'connection_id': string;
4300
+ 'take_profit_order_id'?: string;
4331
4301
  /**
4332
- * A display name for the account. Either assigned by the user or by the institution itself.
4302
+ * The brokerage order ID for the stop loss leg of the bracket order
4333
4303
  * @type {string}
4334
- * @memberof LineOfCreditAccount
4304
+ * @memberof ChildBrokerageOrderIDs
4335
4305
  */
4336
- 'display_name'?: string | null;
4306
+ 'stop_loss_order_id'?: string;
4307
+ }
4308
+ //#endregion
4309
+ //#region models/order-type-strict.d.ts
4310
+ /**
4311
+ * The type of order to place. - For `Limit` and `StopLimit` orders, the `price` field is required. - For `Stop` and `StopLimit` orders, the `stop` field is required.
4312
+ * @export
4313
+ * @enum {string}
4314
+ */
4315
+ type OrderTypeStrict = 'Limit' | 'Market' | 'StopLimit' | 'Stop';
4316
+ //#endregion
4317
+ //#region models/time-in-force-strict.d.ts
4318
+ /**
4319
+ * The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. Here are the supported values: - `Day` - Day. The order is valid only for the trading day on which it is placed. - `GTC` - Good Til Canceled. The order is valid until it is executed or canceled. - `FOK` - Fill Or Kill. The order must be executed in its entirety immediately or be canceled completely. - `IOC` - Immediate Or Cancel. The order must be executed immediately. Any portion of the order that cannot be filled immediately will be canceled.
4320
+ * @export
4321
+ * @enum {string}
4322
+ */
4323
+ type TimeInForceStrict = 'FOK' | 'Day' | 'GTC' | 'IOC';
4324
+ //#endregion
4325
+ //#region models/trading-instrument.d.ts
4326
+ /**
4327
+ *
4328
+ * @export
4329
+ * @interface TradingInstrument
4330
+ */
4331
+ interface TradingInstrument {
4332
+ [key: string]: any;
4337
4333
  /**
4338
- * The account number assigned by the institution, masked to the last 4 characters (e.g. `****1881`).
4334
+ * The instrument\'s trading ticker symbol. This currently supports stock symbols and Options symbols in the 21 character OCC format. For example `AAPL 251114C00240000` represents a call option on AAPL expiring on 2025-11-14 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format)
4339
4335
  * @type {string}
4340
- * @memberof LineOfCreditAccount
4336
+ * @memberof TradingInstrument
4341
4337
  */
4342
- 'masked_account_number': string;
4338
+ 'symbol': string;
4343
4339
  /**
4344
- * A stable and unique account identifier provided by the institution. Will be set to null if not provided. When present, can be used to check if a user has connected the same institution account across multiple connections.
4340
+ * The instrument\'s type
4345
4341
  * @type {string}
4346
- * @memberof LineOfCreditAccount
4342
+ * @memberof TradingInstrument
4347
4343
  */
4348
- 'institution_account_id'?: string | null;
4344
+ 'type': TradingInstrumentTypeEnum;
4345
+ }
4346
+ type TradingInstrumentTypeEnum = 'EQUITY' | 'OPTION' | 'CRYPTOCURRENCY' | 'CRYPTOCURRENCY_PAIR';
4347
+ //#endregion
4348
+ //#region models/complex-order-leg.d.ts
4349
+ /**
4350
+ * A single order within a complex group. For option OCOs, each peer trades one option contract type.
4351
+ * @export
4352
+ * @interface ComplexOrderLeg
4353
+ */
4354
+ interface ComplexOrderLeg {
4355
+ [key: string]: any;
4349
4356
  /**
4350
- * Unique identifier for the institution that holds the account.
4357
+ * The role of this leg within the complex order.
4351
4358
  * @type {string}
4352
- * @memberof LineOfCreditAccount
4359
+ * @memberof ComplexOrderLeg
4353
4360
  */
4354
- 'institution_id'?: string;
4361
+ 'order_role': ComplexOrderLegOrderRoleEnum;
4355
4362
  /**
4356
- * Timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format indicating when the account was opened at the institution. Only populated for institutions that expose this data; `null` for all other institutions.
4357
- * @type {string}
4358
- * @memberof LineOfCreditAccount
4363
+ * The action describes the intent or side of a trade. This is either `BUY` or `SELL` for Equity symbols or `BUY_TO_OPEN`, `BUY_TO_CLOSE`, `SELL_TO_OPEN` or `SELL_TO_CLOSE` for Options.
4364
+ * @type {ActionStrictWithOptions}
4365
+ * @memberof ComplexOrderLeg
4359
4366
  */
4360
- 'opening_date'?: string | null;
4367
+ 'action': ActionStrictWithOptions;
4361
4368
  /**
4362
4369
  *
4363
- * @type {LineOfCreditAccountSyncStatus}
4364
- * @memberof LineOfCreditAccount
4370
+ * @type {TradingInstrument}
4371
+ * @memberof ComplexOrderLeg
4365
4372
  */
4366
- 'sync_status': LineOfCreditAccountSyncStatus;
4373
+ 'instrument': TradingInstrument;
4367
4374
  /**
4368
- * The account type as provided by the institution.
4369
- * @type {string}
4370
- * @memberof LineOfCreditAccount
4375
+ * The type of order to place. - For `Limit` and `StopLimit` orders, the `price` field is required. - For `Stop` and `StopLimit` orders, the `stop` field is required.
4376
+ * @type {OrderTypeStrict}
4377
+ * @memberof ComplexOrderLeg
4371
4378
  */
4372
- 'raw_type'?: string | null;
4379
+ 'order_type': OrderTypeStrict;
4373
4380
  /**
4374
- *
4375
- * @type {LineOfCreditAccountNetValue}
4376
- * @memberof LineOfCreditAccount
4381
+ * A positive whole number of shares or option contracts. Option OCO peers must use the same quantity.
4382
+ * @type {number}
4383
+ * @memberof ComplexOrderLeg
4377
4384
  */
4378
- 'net_value'?: LineOfCreditAccountNetValue | null;
4385
+ 'units': number;
4379
4386
  /**
4380
- *
4381
- * @type {LineOfCreditAccountMinimumPaymentAmount}
4382
- * @memberof LineOfCreditAccount
4387
+ * The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. Here are the supported values: - `Day` - Day. The order is valid only for the trading day on which it is placed. - `GTC` - Good Til Canceled. The order is valid until it is executed or canceled. - `FOK` - Fill Or Kill. The order must be executed in its entirety immediately or be canceled completely. - `IOC` - Immediate Or Cancel. The order must be executed immediately. Any portion of the order that cannot be filled immediately will be canceled.
4388
+ * @type {TimeInForceStrict}
4389
+ * @memberof ComplexOrderLeg
4383
4390
  */
4384
- 'minimum_payment_amount'?: LineOfCreditAccountMinimumPaymentAmount | null;
4391
+ 'time_in_force': TimeInForceStrict;
4385
4392
  /**
4386
- *
4387
- * @type {LineOfCreditAccountAvailableCredit}
4388
- * @memberof LineOfCreditAccount
4393
+ * The limit price. Required when `order_type` is `Limit` or `StopLimit`.
4394
+ * @type {number}
4395
+ * @memberof ComplexOrderLeg
4389
4396
  */
4390
- 'available_credit'?: LineOfCreditAccountAvailableCredit | null;
4397
+ 'price'?: number | null;
4391
4398
  /**
4392
- * The date the account\'s next payment is due, in `YYYY-MM-DD` format. Omitted when no such data is available.
4393
- * @type {string}
4394
- * @memberof LineOfCreditAccount
4399
+ * The stop trigger price. Required when `order_type` is `Stop` or `StopLimit`.
4400
+ * @type {number}
4401
+ * @memberof ComplexOrderLeg
4395
4402
  */
4396
- 'next_payment_date'?: string | null;
4403
+ 'stop'?: number | null;
4397
4404
  }
4398
- type LineOfCreditAccountKindEnum = 'line_of_credit';
4405
+ type ComplexOrderLegOrderRoleEnum = 'TRIGGER' | 'CONDITIONAL' | 'PEER';
4399
4406
  //#endregion
4400
- //#region models/connection-account.d.ts
4407
+ //#region models/complex-order-response.d.ts
4401
4408
  /**
4402
- * @type ConnectionAccount
4403
- * A single account under a connection, from the `kind`-discriminated union used by `Connections_listConnectionAccounts`. Use `kind` to determine which schema is present. `investment`, `deposit`, and `line_of_credit` are implemented today.
4409
+ * Response returned after successfully placing a complex order. AccountOrderRecord rows for the legs are not created synchronously — they\'re hydrated by the next brokerage sync, and can be queried later using the returned `brokerage_group_order_id`.
4404
4410
  * @export
4411
+ * @interface ComplexOrderResponse
4405
4412
  */
4406
- type ConnectionAccount = {
4407
- kind: 'deposit';
4408
- } & DepositAccount | {
4409
- kind: 'investment';
4410
- } & InvestmentAccount | {
4411
- kind: 'line_of_credit';
4412
- } & LineOfCreditAccount;
4413
+ interface ComplexOrderResponse {
4414
+ [key: string]: any;
4415
+ /**
4416
+ * The complex order type that was placed.
4417
+ * @type {string}
4418
+ * @memberof ComplexOrderResponse
4419
+ */
4420
+ 'type'?: ComplexOrderResponseTypeEnum;
4421
+ /**
4422
+ * The brokerage-assigned identifier that links all legs of this complex order together. Each leg will eventually appear as a separate AccountOrderRecord sharing this value. May be null if the brokerage does not return a group identifier.
4423
+ * @type {string}
4424
+ * @memberof ComplexOrderResponse
4425
+ */
4426
+ 'brokerage_group_order_id'?: string | null;
4427
+ }
4428
+ type ComplexOrderResponseTypeEnum = 'OCO' | 'OTO' | 'OTOCO';
4413
4429
  //#endregion
4414
4430
  //#region models/connection-accounts-response.d.ts
4415
4431
  /**
@@ -4882,7 +4898,7 @@ interface Institution {
4882
4898
  */
4883
4899
  'square_logo_url': string | null;
4884
4900
  /**
4885
- * How mature the integration is. - `GENERALLY_AVAILABLE`: fully supported and validated for production use. - `BETA`: production-ready, with ongoing validation and improvements.
4901
+ * How mature the integration is. - `GENERALLY_AVAILABLE`: fully supported and validated for production use. - `BETA`: production-ready, with ongoing validation and improvements. - `ALPHA`: early access with limited validation. Expect issues and incomplete functionality.
4886
4902
  * @type {string}
4887
4903
  * @memberof Institution
4888
4904
  */
@@ -4900,7 +4916,7 @@ interface Institution {
4900
4916
  */
4901
4917
  'connection': InstitutionConnectionNullable | null;
4902
4918
  }
4903
- type InstitutionReleaseStageEnum = 'GENERALLY_AVAILABLE' | 'BETA';
4919
+ type InstitutionReleaseStageEnum = 'GENERALLY_AVAILABLE' | 'BETA' | 'ALPHA';
4904
4920
  type InstitutionRegionsEnum = 'US' | 'CA' | 'EUROPE' | 'AU' | 'IN';
4905
4921
  //#endregion
4906
4922
  //#region models/institution-connection.d.ts
@@ -6906,6 +6922,147 @@ interface SimpleOrderForm {
6906
6922
  type SimpleOrderFormTypeEnum = 'MARKET' | 'LIMIT' | 'STOP_LOSS_MARKET' | 'STOP_LOSS_LIMIT' | 'TAKE_PROFIT_MARKET' | 'TAKE_PROFIT_LIMIT';
6907
6923
  type SimpleOrderFormTimeInForceEnum = 'GTC' | 'FOK' | 'IOC' | 'GTD';
6908
6924
  //#endregion
6925
+ //#region models/simple-trade-instrument.d.ts
6926
+ /**
6927
+ *
6928
+ * @export
6929
+ * @interface SimpleTradeInstrument
6930
+ */
6931
+ interface SimpleTradeInstrument {
6932
+ [key: string]: any;
6933
+ /**
6934
+ *
6935
+ * @type {string}
6936
+ * @memberof SimpleTradeInstrument
6937
+ */
6938
+ 'kind': SimpleTradeInstrumentKindEnum;
6939
+ /**
6940
+ * Equity ticker, OCC equity-option symbol, or exact tastytrade BrokerageInstrument ticker for a future or future option. Future tickers begin with `/`; future-option tickers begin with `./`. Preserve spaces and punctuation. Universal symbol IDs are not accepted.
6941
+ * @type {string}
6942
+ * @memberof SimpleTradeInstrument
6943
+ */
6944
+ 'symbol': string;
6945
+ }
6946
+ type SimpleTradeInstrumentKindEnum = 'equity' | 'option' | 'future' | 'future_option';
6947
+ //#endregion
6948
+ //#region models/simple-trade-leg.d.ts
6949
+ /**
6950
+ *
6951
+ * @export
6952
+ * @interface SimpleTradeLeg
6953
+ */
6954
+ interface SimpleTradeLeg {
6955
+ [key: string]: any;
6956
+ /**
6957
+ *
6958
+ * @type {SimpleTradeInstrument}
6959
+ * @memberof SimpleTradeLeg
6960
+ */
6961
+ 'instrument': SimpleTradeInstrument;
6962
+ /**
6963
+ * Equities and futures require buy or sell. Equity options and future options require buy_to_open, buy_to_close, sell_to_open, or sell_to_close.
6964
+ * @type {string}
6965
+ * @memberof SimpleTradeLeg
6966
+ */
6967
+ 'action': SimpleTradeLegActionEnum;
6968
+ /**
6969
+ * Positive shares or contracts for this leg. Required unless the order is a single-equity market order using notional_value, in which case omit or set to null. Fractional units are supported only for single-equity orders on eligible brokerages; all other legs require whole units. Quantities are absolute units per leg, not strategy ratios.
6970
+ * @type {string}
6971
+ * @memberof SimpleTradeLeg
6972
+ */
6973
+ 'units'?: string;
6974
+ }
6975
+ type SimpleTradeLegActionEnum = 'buy' | 'sell' | 'buy_to_open' | 'buy_to_close' | 'sell_to_open' | 'sell_to_close';
6976
+ //#endregion
6977
+ //#region models/simple-trade-form.d.ts
6978
+ /**
6979
+ *
6980
+ * @export
6981
+ * @interface SimpleTradeForm
6982
+ */
6983
+ interface SimpleTradeForm {
6984
+ /**
6985
+ *
6986
+ * @type {string}
6987
+ * @memberof SimpleTradeForm
6988
+ */
6989
+ 'order_type': SimpleTradeFormOrderTypeEnum;
6990
+ /**
6991
+ * Order duration, subject to brokerage and execution-path support. gtd requires expiry_date and a non-market single-leg equity/option order. Existing single-leg option routing does not support ioc. Futures and multi-leg orders do not support gtd through this endpoint.
6992
+ * @type {string}
6993
+ * @memberof SimpleTradeForm
6994
+ */
6995
+ 'time_in_force': SimpleTradeFormTimeInForceEnum;
6996
+ /**
6997
+ * Legs of one brokerage order. Use equity/option legs or future/future_option legs, without mixing the two families. Brokerage strategy and leg-count limits apply.
6998
+ * @type {Array<SimpleTradeLeg>}
6999
+ * @memberof SimpleTradeForm
7000
+ */
7001
+ 'legs': Array<SimpleTradeLeg>;
7002
+ /**
7003
+ * Required for limit and stop_limit orders, except that multi-leg price_effect even implies zero. Must be omitted or null for market and stop orders. For multi-leg orders this is the net strategy price. Negative prices are accepted only for futures-family orders, subject to brokerage support.
7004
+ * @type {string}
7005
+ * @memberof SimpleTradeForm
7006
+ */
7007
+ 'limit_price'?: string;
7008
+ /**
7009
+ * Required for stop and stop_limit orders. Must be omitted or null for market and limit orders. Must be positive for equity/option orders; futures-family trigger prices are subject to brokerage support.
7010
+ * @type {string}
7011
+ * @memberof SimpleTradeForm
7012
+ */
7013
+ 'stop_price'?: string;
7014
+ /**
7015
+ * Only applicable to multi-leg limit and stop_limit orders. Requirements and supported values depend on the brokerage; tastytrade requires credit or debit. even implies a zero limit_price, which may be omitted and must be zero if supplied. Single-leg price effects are derived from the action.
7016
+ * @type {string}
7017
+ * @memberof SimpleTradeForm
7018
+ */
7019
+ 'price_effect'?: SimpleTradeFormPriceEffectEnum;
7020
+ /**
7021
+ * Optional canonical UUID, forwarded where the existing execution path supports it and for tastytrade futures orders. Requires the existing client-order-ID enablement; when disabled the value is ignored. Brokerage behavior on duplicates varies; SnapTrade does not enforce uniqueness. Tastytrade uses this as external-identifier for correlation and does not deduplicate submissions.
7022
+ * @type {string}
7023
+ * @memberof SimpleTradeForm
7024
+ */
7025
+ 'client_order_id'?: string;
7026
+ /**
7027
+ * ISO 8601 expiry timestamp, required for gtd and invalid with other durations. A missing timezone is treated as UTC. Supported only through existing single-leg Public and Sandbox execution paths.
7028
+ * @type {string}
7029
+ * @memberof SimpleTradeForm
7030
+ */
7031
+ 'expiry_date'?: string | null;
7032
+ /**
7033
+ * Positive order value, supported only for a single-equity market order on eligible brokerages and partners. Mutually exclusive with leg units. Omit or set units to null when supplied.
7034
+ * @type {string}
7035
+ * @memberof SimpleTradeForm
7036
+ */
7037
+ 'notional_value'?: string;
7038
+ /**
7039
+ * extended uses existing single-leg equity/option brokerage support and requires extended-hours enablement. Futures and multi-leg orders only accept regular.
7040
+ * @type {string}
7041
+ * @memberof SimpleTradeForm
7042
+ */
7043
+ 'trading_session'?: SimpleTradeFormTradingSessionEnum;
7044
+ }
7045
+ type SimpleTradeFormOrderTypeEnum = 'limit' | 'market' | 'stop' | 'stop_limit';
7046
+ type SimpleTradeFormTimeInForceEnum = 'day' | 'gtc' | 'gtd' | 'fok' | 'ioc';
7047
+ type SimpleTradeFormPriceEffectEnum = 'credit' | 'debit' | 'even';
7048
+ type SimpleTradeFormTradingSessionEnum = 'regular' | 'extended';
7049
+ //#endregion
7050
+ //#region models/simple-trade-response.d.ts
7051
+ /**
7052
+ *
7053
+ * @export
7054
+ * @interface SimpleTradeResponse
7055
+ */
7056
+ interface SimpleTradeResponse {
7057
+ [key: string]: any;
7058
+ /**
7059
+ * The brokerage-assigned ID of the submitted order.
7060
+ * @type {string}
7061
+ * @memberof SimpleTradeResponse
7062
+ */
7063
+ 'brokerage_order_id': string;
7064
+ }
7065
+ //#endregion
6909
7066
  //#region models/snap-trade-login-user-request-body.d.ts
6910
7067
  /**
6911
7068
  * Data to login a user via SnapTrade Partner
@@ -7676,7 +7833,7 @@ declare const AccountInformationApiAxiosParamCreator: (configuration?: Configura
7676
7833
  */
7677
7834
  getAccountActivities: (accountId: string, startDate?: string | Date, endDate?: string | Date, offset?: number, limit?: number, type?: string, userId?: string, userSecret?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
7678
7835
  /**
7679
- * An experimental endpoint that returns estimated historical total account value for the specified account. Total account value is the sum of the market value of all positions and cash in the account at a given time. This endpoint is experimental, disabled by default, and has a maximum lookback of 1 year. Because the data is dynamically generated, we recommend replacing your dataset with each request as opposed to combining data from multiple requests. Enable this feature for free in the [Add-on page of the Customer Dashboard](https://dashboard.snaptrade.com/add-ons)
7836
+ * An experimental endpoint that returns estimated historical total account value for the specified account. Total account value is the sum of the market value of all positions and cash in the account at a given time. This endpoint is experimental, disabled by default, and has a maximum lookback of 1 year. Because the data is dynamically generated, we recommend replacing your dataset with each request as opposed to combining data from multiple requests. Enable this feature for free in the [Add-on page of the Customer Dashboard](https://dashboard.snaptrade.com/add-ons) The data may contain gaps and is best used for charting account value trends. It should not be relied on as a complete or exact record of historical account values.
7680
7837
  * @summary List historical account total value
7681
7838
  * @param {string} accountId
7682
7839
  * @param {string} [userId]
@@ -7805,7 +7962,7 @@ declare const AccountInformationApiFp: <TAuth extends AuthMode>(configuration?:
7805
7962
  */
7806
7963
  getAccountActivities(...args: AccountInformationApiGetAccountActivitiesArgs<TAuth>): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedUniversalActivity>>;
7807
7964
  /**
7808
- * An experimental endpoint that returns estimated historical total account value for the specified account. Total account value is the sum of the market value of all positions and cash in the account at a given time. This endpoint is experimental, disabled by default, and has a maximum lookback of 1 year. Because the data is dynamically generated, we recommend replacing your dataset with each request as opposed to combining data from multiple requests. Enable this feature for free in the [Add-on page of the Customer Dashboard](https://dashboard.snaptrade.com/add-ons)
7965
+ * An experimental endpoint that returns estimated historical total account value for the specified account. Total account value is the sum of the market value of all positions and cash in the account at a given time. This endpoint is experimental, disabled by default, and has a maximum lookback of 1 year. Because the data is dynamically generated, we recommend replacing your dataset with each request as opposed to combining data from multiple requests. Enable this feature for free in the [Add-on page of the Customer Dashboard](https://dashboard.snaptrade.com/add-ons) The data may contain gaps and is best used for charting account value trends. It should not be relied on as a complete or exact record of historical account values.
7809
7966
  * @summary List historical account total value
7810
7967
  * @param {AccountInformationApiGetAccountBalanceHistoryRequest<TAuth>} requestParameters Request parameters.
7811
7968
  * @param {*} [options] Override http request option.
@@ -7908,7 +8065,7 @@ declare const AccountInformationApiFactory: <TAuth extends AuthMode>(configurati
7908
8065
  */
7909
8066
  getAccountActivities(...args: AccountInformationApiGetAccountActivitiesArgs<TAuth>): AxiosPromise<PaginatedUniversalActivity>;
7910
8067
  /**
7911
- * An experimental endpoint that returns estimated historical total account value for the specified account. Total account value is the sum of the market value of all positions and cash in the account at a given time. This endpoint is experimental, disabled by default, and has a maximum lookback of 1 year. Because the data is dynamically generated, we recommend replacing your dataset with each request as opposed to combining data from multiple requests. Enable this feature for free in the [Add-on page of the Customer Dashboard](https://dashboard.snaptrade.com/add-ons)
8068
+ * An experimental endpoint that returns estimated historical total account value for the specified account. Total account value is the sum of the market value of all positions and cash in the account at a given time. This endpoint is experimental, disabled by default, and has a maximum lookback of 1 year. Because the data is dynamically generated, we recommend replacing your dataset with each request as opposed to combining data from multiple requests. Enable this feature for free in the [Add-on page of the Customer Dashboard](https://dashboard.snaptrade.com/add-ons) The data may contain gaps and is best used for charting account value trends. It should not be relied on as a complete or exact record of historical account values.
7912
8069
  * @summary List historical account total value
7913
8070
  * @param {AccountInformationApiGetAccountBalanceHistoryRequest<TAuth>} requestParameters Request parameters.
7914
8071
  * @param {*} [options] Override http request option.
@@ -8385,7 +8542,7 @@ declare class AccountInformationApiGenerated<TAuth extends AuthMode> extends Bas
8385
8542
  */
8386
8543
  getAccountActivities(...args: AccountInformationApiGetAccountActivitiesArgs<TAuth>): Promise<_$axios.AxiosResponse<PaginatedUniversalActivity, any, {}>>;
8387
8544
  /**
8388
- * An experimental endpoint that returns estimated historical total account value for the specified account. Total account value is the sum of the market value of all positions and cash in the account at a given time. This endpoint is experimental, disabled by default, and has a maximum lookback of 1 year. Because the data is dynamically generated, we recommend replacing your dataset with each request as opposed to combining data from multiple requests. Enable this feature for free in the [Add-on page of the Customer Dashboard](https://dashboard.snaptrade.com/add-ons)
8545
+ * An experimental endpoint that returns estimated historical total account value for the specified account. Total account value is the sum of the market value of all positions and cash in the account at a given time. This endpoint is experimental, disabled by default, and has a maximum lookback of 1 year. Because the data is dynamically generated, we recommend replacing your dataset with each request as opposed to combining data from multiple requests. Enable this feature for free in the [Add-on page of the Customer Dashboard](https://dashboard.snaptrade.com/add-ons) The data may contain gaps and is best used for charting account value trends. It should not be relied on as a complete or exact record of historical account values.
8389
8546
  * @summary List historical account total value
8390
8547
  * @param {AccountInformationApiGetAccountBalanceHistoryRequest<TAuth>} requestParameters Request parameters.
8391
8548
  * @param {*} [options] Override http request option.
@@ -9413,6 +9570,16 @@ declare const ExperimentalEndpointsApiAxiosParamCreator: (configuration?: Config
9413
9570
  * @throws {RequiredError}
9414
9571
  */
9415
9572
  cancelSubscription: (tradeDetectionCancelSubscriptionRequest: TradeDetectionCancelSubscriptionRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
9573
+ /**
9574
+ * Experimental and subject to change without notice. Returns the specified account for the authenticated user, using the `kind`-discriminated account shape. Use the `kind` discriminator to determine the shape of the account, which can be an investment, deposit, or line of credit account. On Pay as you Go / Real-time, this endpoint refreshes the account\'s opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data. If the connection has become disabled, it can no longer access the latest data from the institution, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
9575
+ * @summary Get account details
9576
+ * @param {string} accountId
9577
+ * @param {string} [userId]
9578
+ * @param {string} [userSecret]
9579
+ * @param {*} [options] Override http request option.
9580
+ * @throws {RequiredError}
9581
+ */
9582
+ getAccountDetails: (accountId: string, userId?: string, userSecret?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
9416
9583
  /**
9417
9584
  * Returns the detail of a single order using the brokerage order ID provided as a path parameter. The V2 order response format includes all legs of the order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
9418
9585
  * @summary Get account order detail (V2)
@@ -9447,6 +9614,15 @@ declare const ExperimentalEndpointsApiAxiosParamCreator: (configuration?: Config
9447
9614
  * @throws {RequiredError}
9448
9615
  */
9449
9616
  getUserAccountRecentOrdersV2: (accountId: string, onlyExecuted?: boolean, userId?: string, userSecret?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
9617
+ /**
9618
+ * Experimental and subject to change without notice. Returns all accounts across all connections known to SnapTrade for the authenticated user. The `results` list can contain multiple account kinds in the same response, including investment, deposit, and line of credit accounts. Use the `kind` discriminator to determine the shape for each account. This endpoint returns Daily data regardless of the customer\'s plan. Daily data is cached and refreshed once a day, which makes this endpoint fast and well-suited to listing accounts across all of a user\'s connections in a single call. Exact refresh timing may vary by institution. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/Connections_listConnectionAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
9619
+ * @summary List all user accounts
9620
+ * @param {string} [userId]
9621
+ * @param {string} [userSecret]
9622
+ * @param {*} [options] Override http request option.
9623
+ * @throws {RequiredError}
9624
+ */
9625
+ listAllUserAccounts: (userId?: string, userSecret?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
9450
9626
  /**
9451
9627
  * Returns active Trade Detection subscriptions for your Client ID. Cancelled subscriptions are not returned.
9452
9628
  * @summary List active Trade Detection subscriptions
@@ -9454,6 +9630,17 @@ declare const ExperimentalEndpointsApiAxiosParamCreator: (configuration?: Config
9454
9630
  * @throws {RequiredError}
9455
9631
  */
9456
9632
  listSubscriptions: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
9633
+ /**
9634
+ * **Beta.** Places a single-leg or multi-leg order using a common request format for equities, equity options, futures, and future options. This endpoint is experimental; breaking changes are possible during the experimental phase. Equity and equity-option orders use the existing brokerage trading capabilities. Futures and future options are currently supported only on tastytrade. Order types, time in force, optional fields, and strategy combinations remain subject to brokerage support. See the [brokerage trading support page](https://support.snaptrade.com/brokerages). An order may contain equity/option legs or future/future_option legs, but cannot mix those two families. Equity/option strategies must share the same underlying symbol. Each strategy is submitted as one brokerage order; unsupported strategies are never split into independent orders. Tastytrade supports single-leg outright futures and up to four future-option legs, and does not support multi-leg market orders. All string choices use lower snake_case and are case-sensitive. Symbols retain their native format: equity tickers, OCC equity-option symbols, or the exact tastytrade BrokerageInstrument ticker for futures and future options, including any spaces. A successful response contains only the brokerage order ID. Use the existing order endpoints to retrieve order details.
9635
+ * @summary Place a simple order (beta)
9636
+ * @param {string} accountId The ID of the account to execute the trade on.
9637
+ * @param {SimpleTradeForm} simpleTradeForm
9638
+ * @param {string} [userId]
9639
+ * @param {string} [userSecret]
9640
+ * @param {*} [options] Override http request option.
9641
+ * @throws {RequiredError}
9642
+ */
9643
+ placeSimpleOrder: (accountId: string, simpleTradeForm: SimpleTradeForm, userId?: string, userSecret?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
9457
9644
  };
9458
9645
  /**
9459
9646
  * ExperimentalEndpointsApi - functional programming interface
@@ -9476,6 +9663,14 @@ declare const ExperimentalEndpointsApiFp: <TAuth extends AuthMode>(configuration
9476
9663
  * @throws {RequiredError}
9477
9664
  */
9478
9665
  cancelSubscription(...args: ExperimentalEndpointsApiCancelSubscriptionArgs<TAuth>): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TradeDetectionCancelSubscriptionResponse>>;
9666
+ /**
9667
+ * Experimental and subject to change without notice. Returns the specified account for the authenticated user, using the `kind`-discriminated account shape. Use the `kind` discriminator to determine the shape of the account, which can be an investment, deposit, or line of credit account. On Pay as you Go / Real-time, this endpoint refreshes the account\'s opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data. If the connection has become disabled, it can no longer access the latest data from the institution, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
9668
+ * @summary Get account details
9669
+ * @param {ExperimentalEndpointsApiGetAccountDetailsRequest<TAuth>} requestParameters Request parameters.
9670
+ * @param {*} [options] Override http request option.
9671
+ * @throws {RequiredError}
9672
+ */
9673
+ getAccountDetails(...args: ExperimentalEndpointsApiGetAccountDetailsArgs<TAuth>): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConnectionAccount>>;
9479
9674
  /**
9480
9675
  * Returns the detail of a single order using the brokerage order ID provided as a path parameter. The V2 order response format includes all legs of the order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
9481
9676
  * @summary Get account order detail (V2)
@@ -9500,6 +9695,14 @@ declare const ExperimentalEndpointsApiFp: <TAuth extends AuthMode>(configuration
9500
9695
  * @throws {RequiredError}
9501
9696
  */
9502
9697
  getUserAccountRecentOrdersV2(...args: ExperimentalEndpointsApiGetUserAccountRecentOrdersV2Args<TAuth>): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountOrdersV2Response>>;
9698
+ /**
9699
+ * Experimental and subject to change without notice. Returns all accounts across all connections known to SnapTrade for the authenticated user. The `results` list can contain multiple account kinds in the same response, including investment, deposit, and line of credit accounts. Use the `kind` discriminator to determine the shape for each account. This endpoint returns Daily data regardless of the customer\'s plan. Daily data is cached and refreshed once a day, which makes this endpoint fast and well-suited to listing accounts across all of a user\'s connections in a single call. Exact refresh timing may vary by institution. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/Connections_listConnectionAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
9700
+ * @summary List all user accounts
9701
+ * @param {ExperimentalEndpointsApiListAllUserAccountsRequest<TAuth>} requestParameters Request parameters.
9702
+ * @param {*} [options] Override http request option.
9703
+ * @throws {RequiredError}
9704
+ */
9705
+ listAllUserAccounts(...args: ExperimentalEndpointsApiListAllUserAccountsArgs<TAuth>): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllUserAccountsResponse>>;
9503
9706
  /**
9504
9707
  * Returns active Trade Detection subscriptions for your Client ID. Cancelled subscriptions are not returned.
9505
9708
  * @summary List active Trade Detection subscriptions
@@ -9507,6 +9710,14 @@ declare const ExperimentalEndpointsApiFp: <TAuth extends AuthMode>(configuration
9507
9710
  * @throws {RequiredError}
9508
9711
  */
9509
9712
  listSubscriptions(...args: TAuth["mode"] extends "commercialApiKey" | "personalApiKey" ? [options?: AxiosRequestConfig] : [never]): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TradeDetectionSubscription>>>;
9713
+ /**
9714
+ * **Beta.** Places a single-leg or multi-leg order using a common request format for equities, equity options, futures, and future options. This endpoint is experimental; breaking changes are possible during the experimental phase. Equity and equity-option orders use the existing brokerage trading capabilities. Futures and future options are currently supported only on tastytrade. Order types, time in force, optional fields, and strategy combinations remain subject to brokerage support. See the [brokerage trading support page](https://support.snaptrade.com/brokerages). An order may contain equity/option legs or future/future_option legs, but cannot mix those two families. Equity/option strategies must share the same underlying symbol. Each strategy is submitted as one brokerage order; unsupported strategies are never split into independent orders. Tastytrade supports single-leg outright futures and up to four future-option legs, and does not support multi-leg market orders. All string choices use lower snake_case and are case-sensitive. Symbols retain their native format: equity tickers, OCC equity-option symbols, or the exact tastytrade BrokerageInstrument ticker for futures and future options, including any spaces. A successful response contains only the brokerage order ID. Use the existing order endpoints to retrieve order details.
9715
+ * @summary Place a simple order (beta)
9716
+ * @param {ExperimentalEndpointsApiPlaceSimpleOrderRequest<TAuth>} requestParameters Request parameters.
9717
+ * @param {*} [options] Override http request option.
9718
+ * @throws {RequiredError}
9719
+ */
9720
+ placeSimpleOrder(...args: ExperimentalEndpointsApiPlaceSimpleOrderArgs<TAuth>): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SimpleTradeResponse>>;
9510
9721
  };
9511
9722
  /**
9512
9723
  * ExperimentalEndpointsApi - factory interface
@@ -9529,6 +9740,14 @@ declare const ExperimentalEndpointsApiFactory: <TAuth extends AuthMode>(configur
9529
9740
  * @throws {RequiredError}
9530
9741
  */
9531
9742
  cancelSubscription(...args: ExperimentalEndpointsApiCancelSubscriptionArgs<TAuth>): AxiosPromise<TradeDetectionCancelSubscriptionResponse>;
9743
+ /**
9744
+ * Experimental and subject to change without notice. Returns the specified account for the authenticated user, using the `kind`-discriminated account shape. Use the `kind` discriminator to determine the shape of the account, which can be an investment, deposit, or line of credit account. On Pay as you Go / Real-time, this endpoint refreshes the account\'s opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data. If the connection has become disabled, it can no longer access the latest data from the institution, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
9745
+ * @summary Get account details
9746
+ * @param {ExperimentalEndpointsApiGetAccountDetailsRequest<TAuth>} requestParameters Request parameters.
9747
+ * @param {*} [options] Override http request option.
9748
+ * @throws {RequiredError}
9749
+ */
9750
+ getAccountDetails(...args: ExperimentalEndpointsApiGetAccountDetailsArgs<TAuth>): AxiosPromise<ConnectionAccount>;
9532
9751
  /**
9533
9752
  * Returns the detail of a single order using the brokerage order ID provided as a path parameter. The V2 order response format includes all legs of the order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
9534
9753
  * @summary Get account order detail (V2)
@@ -9553,6 +9772,14 @@ declare const ExperimentalEndpointsApiFactory: <TAuth extends AuthMode>(configur
9553
9772
  * @throws {RequiredError}
9554
9773
  */
9555
9774
  getUserAccountRecentOrdersV2(...args: ExperimentalEndpointsApiGetUserAccountRecentOrdersV2Args<TAuth>): AxiosPromise<AccountOrdersV2Response>;
9775
+ /**
9776
+ * Experimental and subject to change without notice. Returns all accounts across all connections known to SnapTrade for the authenticated user. The `results` list can contain multiple account kinds in the same response, including investment, deposit, and line of credit accounts. Use the `kind` discriminator to determine the shape for each account. This endpoint returns Daily data regardless of the customer\'s plan. Daily data is cached and refreshed once a day, which makes this endpoint fast and well-suited to listing accounts across all of a user\'s connections in a single call. Exact refresh timing may vary by institution. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/Connections_listConnectionAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
9777
+ * @summary List all user accounts
9778
+ * @param {ExperimentalEndpointsApiListAllUserAccountsRequest<TAuth>} requestParameters Request parameters.
9779
+ * @param {*} [options] Override http request option.
9780
+ * @throws {RequiredError}
9781
+ */
9782
+ listAllUserAccounts(...args: ExperimentalEndpointsApiListAllUserAccountsArgs<TAuth>): AxiosPromise<AllUserAccountsResponse>;
9556
9783
  /**
9557
9784
  * Returns active Trade Detection subscriptions for your Client ID. Cancelled subscriptions are not returned.
9558
9785
  * @summary List active Trade Detection subscriptions
@@ -9560,6 +9787,14 @@ declare const ExperimentalEndpointsApiFactory: <TAuth extends AuthMode>(configur
9560
9787
  * @throws {RequiredError}
9561
9788
  */
9562
9789
  listSubscriptions(...args: TAuth["mode"] extends "commercialApiKey" | "personalApiKey" ? [options?: AxiosRequestConfig] : [never]): AxiosPromise<Array<TradeDetectionSubscription>>;
9790
+ /**
9791
+ * **Beta.** Places a single-leg or multi-leg order using a common request format for equities, equity options, futures, and future options. This endpoint is experimental; breaking changes are possible during the experimental phase. Equity and equity-option orders use the existing brokerage trading capabilities. Futures and future options are currently supported only on tastytrade. Order types, time in force, optional fields, and strategy combinations remain subject to brokerage support. See the [brokerage trading support page](https://support.snaptrade.com/brokerages). An order may contain equity/option legs or future/future_option legs, but cannot mix those two families. Equity/option strategies must share the same underlying symbol. Each strategy is submitted as one brokerage order; unsupported strategies are never split into independent orders. Tastytrade supports single-leg outright futures and up to four future-option legs, and does not support multi-leg market orders. All string choices use lower snake_case and are case-sensitive. Symbols retain their native format: equity tickers, OCC equity-option symbols, or the exact tastytrade BrokerageInstrument ticker for futures and future options, including any spaces. A successful response contains only the brokerage order ID. Use the existing order endpoints to retrieve order details.
9792
+ * @summary Place a simple order (beta)
9793
+ * @param {ExperimentalEndpointsApiPlaceSimpleOrderRequest<TAuth>} requestParameters Request parameters.
9794
+ * @param {*} [options] Override http request option.
9795
+ * @throws {RequiredError}
9796
+ */
9797
+ placeSimpleOrder(...args: ExperimentalEndpointsApiPlaceSimpleOrderArgs<TAuth>): AxiosPromise<SimpleTradeResponse>;
9563
9798
  };
9564
9799
  /**
9565
9800
  * Request parameters for addSubscription operation in ExperimentalEndpointsApi.
@@ -9595,6 +9830,33 @@ type ExperimentalEndpointsApiCancelSubscriptionRequestByAuthMode = {
9595
9830
  type ExperimentalEndpointsApiCancelSubscriptionRequest<TAuth extends AuthMode> = ExperimentalEndpointsApiCancelSubscriptionRequestByAuthMode[TAuth["mode"] & keyof ExperimentalEndpointsApiCancelSubscriptionRequestByAuthMode];
9596
9831
  /** Request argument optionality depends on the selected authentication mode. */
9597
9832
  type ExperimentalEndpointsApiCancelSubscriptionArgs<TAuth extends AuthMode> = TAuth["mode"] extends never ? [requestParameters?: ExperimentalEndpointsApiCancelSubscriptionRequest<TAuth>, options?: AxiosRequestConfig] : [requestParameters: ExperimentalEndpointsApiCancelSubscriptionRequest<TAuth>, options?: AxiosRequestConfig];
9833
+ /**
9834
+ * Request parameters for getAccountDetails operation in ExperimentalEndpointsApi.
9835
+ * @export
9836
+ */
9837
+ type ExperimentalEndpointsApiGetAccountDetailsBaseRequest = {
9838
+ /**
9839
+ *
9840
+ * @type {string}
9841
+ * @memberof ExperimentalEndpointsApiGetAccountDetails
9842
+ */
9843
+ readonly accountId: string;
9844
+ };
9845
+ type ExperimentalEndpointsApiGetAccountDetailscommercialApiKeyRequest = ExperimentalEndpointsApiGetAccountDetailsBaseRequest & {
9846
+ readonly userId: string;
9847
+ readonly userSecret: string;
9848
+ };
9849
+ type ExperimentalEndpointsApiGetAccountDetailspersonalApiKeyRequest = ExperimentalEndpointsApiGetAccountDetailsBaseRequest & {
9850
+ readonly userId?: never;
9851
+ readonly userSecret?: never;
9852
+ };
9853
+ type ExperimentalEndpointsApiGetAccountDetailsRequestByAuthMode = {
9854
+ "commercialApiKey": ExperimentalEndpointsApiGetAccountDetailscommercialApiKeyRequest;
9855
+ "personalApiKey": ExperimentalEndpointsApiGetAccountDetailspersonalApiKeyRequest;
9856
+ };
9857
+ type ExperimentalEndpointsApiGetAccountDetailsRequest<TAuth extends AuthMode> = ExperimentalEndpointsApiGetAccountDetailsRequestByAuthMode[TAuth["mode"] & keyof ExperimentalEndpointsApiGetAccountDetailsRequestByAuthMode];
9858
+ /** Request argument optionality depends on the selected authentication mode. */
9859
+ type ExperimentalEndpointsApiGetAccountDetailsArgs<TAuth extends AuthMode> = TAuth["mode"] extends never ? [requestParameters?: ExperimentalEndpointsApiGetAccountDetailsRequest<TAuth>, options?: AxiosRequestConfig] : [requestParameters: ExperimentalEndpointsApiGetAccountDetailsRequest<TAuth>, options?: AxiosRequestConfig];
9598
9860
  /**
9599
9861
  * Request parameters for getUserAccountOrderDetailV2 operation in ExperimentalEndpointsApi.
9600
9862
  * @export
@@ -9700,6 +9962,53 @@ type ExperimentalEndpointsApiGetUserAccountRecentOrdersV2RequestByAuthMode = {
9700
9962
  type ExperimentalEndpointsApiGetUserAccountRecentOrdersV2Request<TAuth extends AuthMode> = ExperimentalEndpointsApiGetUserAccountRecentOrdersV2RequestByAuthMode[TAuth["mode"] & keyof ExperimentalEndpointsApiGetUserAccountRecentOrdersV2RequestByAuthMode];
9701
9963
  /** Request argument optionality depends on the selected authentication mode. */
9702
9964
  type ExperimentalEndpointsApiGetUserAccountRecentOrdersV2Args<TAuth extends AuthMode> = TAuth["mode"] extends never ? [requestParameters?: ExperimentalEndpointsApiGetUserAccountRecentOrdersV2Request<TAuth>, options?: AxiosRequestConfig] : [requestParameters: ExperimentalEndpointsApiGetUserAccountRecentOrdersV2Request<TAuth>, options?: AxiosRequestConfig];
9965
+ /**
9966
+ * Request parameters for listAllUserAccounts operation in ExperimentalEndpointsApi.
9967
+ * @export
9968
+ */
9969
+ type ExperimentalEndpointsApiListAllUserAccountsBaseRequest = {};
9970
+ type ExperimentalEndpointsApiListAllUserAccountscommercialApiKeyRequest = ExperimentalEndpointsApiListAllUserAccountsBaseRequest & {
9971
+ readonly userId: string;
9972
+ readonly userSecret: string;
9973
+ };
9974
+ type ExperimentalEndpointsApiListAllUserAccountspersonalApiKeyRequest = ExperimentalEndpointsApiListAllUserAccountsBaseRequest & {
9975
+ readonly userId?: never;
9976
+ readonly userSecret?: never;
9977
+ };
9978
+ type ExperimentalEndpointsApiListAllUserAccountsRequestByAuthMode = {
9979
+ "commercialApiKey": ExperimentalEndpointsApiListAllUserAccountscommercialApiKeyRequest;
9980
+ "personalApiKey": ExperimentalEndpointsApiListAllUserAccountspersonalApiKeyRequest;
9981
+ };
9982
+ type ExperimentalEndpointsApiListAllUserAccountsRequest<TAuth extends AuthMode> = ExperimentalEndpointsApiListAllUserAccountsRequestByAuthMode[TAuth["mode"] & keyof ExperimentalEndpointsApiListAllUserAccountsRequestByAuthMode];
9983
+ /** Request argument optionality depends on the selected authentication mode. */
9984
+ type ExperimentalEndpointsApiListAllUserAccountsArgs<TAuth extends AuthMode> = TAuth["mode"] extends "personalApiKey" ? [requestParameters?: ExperimentalEndpointsApiListAllUserAccountsRequest<TAuth>, options?: AxiosRequestConfig] : [requestParameters: ExperimentalEndpointsApiListAllUserAccountsRequest<TAuth>, options?: AxiosRequestConfig];
9985
+ /**
9986
+ * Request parameters for placeSimpleOrder operation in ExperimentalEndpointsApi.
9987
+ * @export
9988
+ */
9989
+ type ExperimentalEndpointsApiPlaceSimpleOrderBaseRequest = {
9990
+ /**
9991
+ * The ID of the account to execute the trade on.
9992
+ * @type {string}
9993
+ * @memberof ExperimentalEndpointsApiPlaceSimpleOrder
9994
+ */
9995
+ readonly accountId: string;
9996
+ } & SimpleTradeForm;
9997
+ type ExperimentalEndpointsApiPlaceSimpleOrdercommercialApiKeyRequest = ExperimentalEndpointsApiPlaceSimpleOrderBaseRequest & {
9998
+ readonly userId: string;
9999
+ readonly userSecret: string;
10000
+ };
10001
+ type ExperimentalEndpointsApiPlaceSimpleOrderpersonalApiKeyRequest = ExperimentalEndpointsApiPlaceSimpleOrderBaseRequest & {
10002
+ readonly userId?: never;
10003
+ readonly userSecret?: never;
10004
+ };
10005
+ type ExperimentalEndpointsApiPlaceSimpleOrderRequestByAuthMode = {
10006
+ "commercialApiKey": ExperimentalEndpointsApiPlaceSimpleOrdercommercialApiKeyRequest;
10007
+ "personalApiKey": ExperimentalEndpointsApiPlaceSimpleOrderpersonalApiKeyRequest;
10008
+ };
10009
+ type ExperimentalEndpointsApiPlaceSimpleOrderRequest<TAuth extends AuthMode> = ExperimentalEndpointsApiPlaceSimpleOrderRequestByAuthMode[TAuth["mode"] & keyof ExperimentalEndpointsApiPlaceSimpleOrderRequestByAuthMode];
10010
+ /** Request argument optionality depends on the selected authentication mode. */
10011
+ type ExperimentalEndpointsApiPlaceSimpleOrderArgs<TAuth extends AuthMode> = TAuth["mode"] extends never ? [requestParameters?: ExperimentalEndpointsApiPlaceSimpleOrderRequest<TAuth>, options?: AxiosRequestConfig] : [requestParameters: ExperimentalEndpointsApiPlaceSimpleOrderRequest<TAuth>, options?: AxiosRequestConfig];
9703
10012
  /**
9704
10013
  * ExperimentalEndpointsApiGenerated - object-oriented interface
9705
10014
  * @export
@@ -9725,6 +10034,15 @@ declare class ExperimentalEndpointsApiGenerated<TAuth extends AuthMode> extends
9725
10034
  * @memberof ExperimentalEndpointsApiGenerated
9726
10035
  */
9727
10036
  cancelSubscription(...args: ExperimentalEndpointsApiCancelSubscriptionArgs<TAuth>): Promise<_$axios.AxiosResponse<TradeDetectionCancelSubscriptionResponse, any, {}>>;
10037
+ /**
10038
+ * Experimental and subject to change without notice. Returns the specified account for the authenticated user, using the `kind`-discriminated account shape. Use the `kind` discriminator to determine the shape of the account, which can be an investment, deposit, or line of credit account. On Pay as you Go / Real-time, this endpoint refreshes the account\'s opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data. If the connection has become disabled, it can no longer access the latest data from the institution, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
10039
+ * @summary Get account details
10040
+ * @param {ExperimentalEndpointsApiGetAccountDetailsRequest<TAuth>} requestParameters Request parameters.
10041
+ * @param {*} [options] Override http request option.
10042
+ * @throws {RequiredError}
10043
+ * @memberof ExperimentalEndpointsApiGenerated
10044
+ */
10045
+ getAccountDetails(...args: ExperimentalEndpointsApiGetAccountDetailsArgs<TAuth>): Promise<_$axios.AxiosResponse<ConnectionAccount, any, {}>>;
9728
10046
  /**
9729
10047
  * Returns the detail of a single order using the brokerage order ID provided as a path parameter. The V2 order response format includes all legs of the order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
9730
10048
  * @summary Get account order detail (V2)
@@ -9752,6 +10070,15 @@ declare class ExperimentalEndpointsApiGenerated<TAuth extends AuthMode> extends
9752
10070
  * @memberof ExperimentalEndpointsApiGenerated
9753
10071
  */
9754
10072
  getUserAccountRecentOrdersV2(...args: ExperimentalEndpointsApiGetUserAccountRecentOrdersV2Args<TAuth>): Promise<_$axios.AxiosResponse<AccountOrdersV2Response, any, {}>>;
10073
+ /**
10074
+ * Experimental and subject to change without notice. Returns all accounts across all connections known to SnapTrade for the authenticated user. The `results` list can contain multiple account kinds in the same response, including investment, deposit, and line of credit accounts. Use the `kind` discriminator to determine the shape for each account. This endpoint returns Daily data regardless of the customer\'s plan. Daily data is cached and refreshed once a day, which makes this endpoint fast and well-suited to listing accounts across all of a user\'s connections in a single call. Exact refresh timing may vary by institution. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/Connections_listConnectionAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
10075
+ * @summary List all user accounts
10076
+ * @param {ExperimentalEndpointsApiListAllUserAccountsRequest<TAuth>} requestParameters Request parameters.
10077
+ * @param {*} [options] Override http request option.
10078
+ * @throws {RequiredError}
10079
+ * @memberof ExperimentalEndpointsApiGenerated
10080
+ */
10081
+ listAllUserAccounts(...args: ExperimentalEndpointsApiListAllUserAccountsArgs<TAuth>): Promise<_$axios.AxiosResponse<AllUserAccountsResponse, any, {}>>;
9755
10082
  /**
9756
10083
  * Returns active Trade Detection subscriptions for your Client ID. Cancelled subscriptions are not returned.
9757
10084
  * @summary List active Trade Detection subscriptions
@@ -9760,6 +10087,15 @@ declare class ExperimentalEndpointsApiGenerated<TAuth extends AuthMode> extends
9760
10087
  * @memberof ExperimentalEndpointsApiGenerated
9761
10088
  */
9762
10089
  listSubscriptions(...args: TAuth["mode"] extends "commercialApiKey" | "personalApiKey" ? [options?: AxiosRequestConfig] : [never]): Promise<_$axios.AxiosResponse<TradeDetectionSubscription[], any, {}>>;
10090
+ /**
10091
+ * **Beta.** Places a single-leg or multi-leg order using a common request format for equities, equity options, futures, and future options. This endpoint is experimental; breaking changes are possible during the experimental phase. Equity and equity-option orders use the existing brokerage trading capabilities. Futures and future options are currently supported only on tastytrade. Order types, time in force, optional fields, and strategy combinations remain subject to brokerage support. See the [brokerage trading support page](https://support.snaptrade.com/brokerages). An order may contain equity/option legs or future/future_option legs, but cannot mix those two families. Equity/option strategies must share the same underlying symbol. Each strategy is submitted as one brokerage order; unsupported strategies are never split into independent orders. Tastytrade supports single-leg outright futures and up to four future-option legs, and does not support multi-leg market orders. All string choices use lower snake_case and are case-sensitive. Symbols retain their native format: equity tickers, OCC equity-option symbols, or the exact tastytrade BrokerageInstrument ticker for futures and future options, including any spaces. A successful response contains only the brokerage order ID. Use the existing order endpoints to retrieve order details.
10092
+ * @summary Place a simple order (beta)
10093
+ * @param {ExperimentalEndpointsApiPlaceSimpleOrderRequest<TAuth>} requestParameters Request parameters.
10094
+ * @param {*} [options] Override http request option.
10095
+ * @throws {RequiredError}
10096
+ * @memberof ExperimentalEndpointsApiGenerated
10097
+ */
10098
+ placeSimpleOrder(...args: ExperimentalEndpointsApiPlaceSimpleOrderArgs<TAuth>): Promise<_$axios.AxiosResponse<SimpleTradeResponse, any, {}>>;
9763
10099
  }
9764
10100
  //#endregion
9765
10101
  //#region api/experimental-endpoints-api.d.ts
@@ -11187,4 +11523,4 @@ declare class SnaptradeError extends Error {
11187
11523
  declare function readableStreamToString(stream: ReadableStream): Promise<string>;
11188
11524
  declare function parseIfJson(input: unknown): object | unknown;
11189
11525
  //#endregion
11190
- export { Account, AccountBalance, AccountBalanceTotal, AccountHoldings, AccountHoldingsAccount, AccountInformationApi, AccountInformationApiAxiosParamCreator, AccountInformationApiFactory, AccountInformationApiFp, AccountInformationApiGenerated, AccountInformationApiGetAccountActivitiesArgs, AccountInformationApiGetAccountActivitiesBaseRequest, AccountInformationApiGetAccountActivitiesRequest, AccountInformationApiGetAccountActivitiesRequestByAuthMode, AccountInformationApiGetAccountActivitiescommercialApiKeyRequest, AccountInformationApiGetAccountActivitiespersonalApiKeyRequest, AccountInformationApiGetAccountBalanceHistoryArgs, AccountInformationApiGetAccountBalanceHistoryBaseRequest, AccountInformationApiGetAccountBalanceHistoryRequest, AccountInformationApiGetAccountBalanceHistoryRequestByAuthMode, AccountInformationApiGetAccountBalanceHistorycommercialApiKeyRequest, AccountInformationApiGetAccountBalanceHistorypersonalApiKeyRequest, AccountInformationApiGetAllAccountPositionsArgs, AccountInformationApiGetAllAccountPositionsBaseRequest, AccountInformationApiGetAllAccountPositionsRequest, AccountInformationApiGetAllAccountPositionsRequestByAuthMode, AccountInformationApiGetAllAccountPositionscommercialApiKeyRequest, AccountInformationApiGetAllAccountPositionspersonalApiKeyRequest, AccountInformationApiGetUserAccountBalanceArgs, AccountInformationApiGetUserAccountBalanceBaseRequest, AccountInformationApiGetUserAccountBalanceRequest, AccountInformationApiGetUserAccountBalanceRequestByAuthMode, AccountInformationApiGetUserAccountBalancecommercialApiKeyRequest, AccountInformationApiGetUserAccountBalancepersonalApiKeyRequest, AccountInformationApiGetUserAccountDetailsArgs, AccountInformationApiGetUserAccountDetailsBaseRequest, AccountInformationApiGetUserAccountDetailsRequest, AccountInformationApiGetUserAccountDetailsRequestByAuthMode, AccountInformationApiGetUserAccountDetailscommercialApiKeyRequest, AccountInformationApiGetUserAccountDetailspersonalApiKeyRequest, AccountInformationApiGetUserAccountOrderDetailArgs, AccountInformationApiGetUserAccountOrderDetailBaseRequest, AccountInformationApiGetUserAccountOrderDetailRequest, AccountInformationApiGetUserAccountOrderDetailRequestByAuthMode, AccountInformationApiGetUserAccountOrderDetailcommercialApiKeyRequest, AccountInformationApiGetUserAccountOrderDetailpersonalApiKeyRequest, AccountInformationApiGetUserAccountOrdersArgs, AccountInformationApiGetUserAccountOrdersBaseRequest, AccountInformationApiGetUserAccountOrdersRequest, AccountInformationApiGetUserAccountOrdersRequestByAuthMode, AccountInformationApiGetUserAccountOrderscommercialApiKeyRequest, AccountInformationApiGetUserAccountOrderspersonalApiKeyRequest, AccountInformationApiGetUserAccountRecentOrdersArgs, AccountInformationApiGetUserAccountRecentOrdersBaseRequest, AccountInformationApiGetUserAccountRecentOrdersRequest, AccountInformationApiGetUserAccountRecentOrdersRequestByAuthMode, AccountInformationApiGetUserAccountRecentOrderscommercialApiKeyRequest, AccountInformationApiGetUserAccountRecentOrderspersonalApiKeyRequest, AccountInformationApiGetUserAccountReturnRatesArgs, AccountInformationApiGetUserAccountReturnRatesBaseRequest, AccountInformationApiGetUserAccountReturnRatesRequest, AccountInformationApiGetUserAccountReturnRatesRequestByAuthMode, AccountInformationApiGetUserAccountReturnRatescommercialApiKeyRequest, AccountInformationApiGetUserAccountReturnRatespersonalApiKeyRequest, AccountInformationApiGetUserHoldingsArgs, AccountInformationApiGetUserHoldingsBaseRequest, AccountInformationApiGetUserHoldingsRequest, AccountInformationApiGetUserHoldingsRequestByAuthMode, AccountInformationApiGetUserHoldingscommercialApiKeyRequest, AccountInformationApiGetUserHoldingspersonalApiKeyRequest, AccountInformationApiListUserAccountsArgs, AccountInformationApiListUserAccountsBaseRequest, AccountInformationApiListUserAccountsRequest, AccountInformationApiListUserAccountsRequestByAuthMode, AccountInformationApiListUserAccountscommercialApiKeyRequest, AccountInformationApiListUserAccountspersonalApiKeyRequest, AccountInformationApiUpdateUserAccountArgs, AccountInformationApiUpdateUserAccountBaseRequest, AccountInformationApiUpdateUserAccountRequest, AccountInformationApiUpdateUserAccountRequestByAuthMode, AccountInformationApiUpdateUserAccountcommercialApiKeyRequest, AccountInformationApiUpdateUserAccountpersonalApiKeyRequest, AccountInformationGetUserAccountOrderDetailRequest, AccountOrderRecord, AccountOrderRecordLeg, AccountOrderRecordLegInstrument, AccountOrderRecordNullable, AccountOrderRecordStatus, AccountOrderRecordStatusV2, AccountOrderRecordStatusV2Nullable, AccountOrderRecordV2, AccountOrderRecordV2OrderRole, AccountOrderRecordV2OrderRoleNullable, AccountOrdersV2Response, AccountPosition, AccountSimple, AccountSyncStatus, AccountUniversalActivity, AccountValueHistoryItem, AccountValueHistoryResponse, ActionStrict, ActionStrictWithOptions, AdrInstrument, AllAccountPositionsResponse, AllAccountPositionsResponseDataFreshness, ApiKey, ApiStatusApi, ApiStatusApiAxiosParamCreator, ApiStatusApiFactory, ApiStatusApiFp, ApiStatusApiGenerated, type AuthMode, AuthenticationApi, AuthenticationApiAxiosParamCreator, AuthenticationApiDeleteSnapTradeUserArgs, AuthenticationApiDeleteSnapTradeUserBaseRequest, AuthenticationApiDeleteSnapTradeUserRequest, AuthenticationApiDeleteSnapTradeUserRequestByAuthMode, AuthenticationApiDeleteSnapTradeUsercommercialApiKeyRequest, AuthenticationApiFactory, AuthenticationApiFp, AuthenticationApiGenerated, AuthenticationApiLoginSnapTradeUserArgs, AuthenticationApiLoginSnapTradeUserBaseRequest, AuthenticationApiLoginSnapTradeUserRequest, AuthenticationApiLoginSnapTradeUserRequestByAuthMode, AuthenticationApiLoginSnapTradeUsercommercialApiKeyRequest, AuthenticationApiLoginSnapTradeUserpersonalApiKeyRequest, AuthenticationApiRegisterSnapTradeUserArgs, AuthenticationApiRegisterSnapTradeUserBaseRequest, AuthenticationApiRegisterSnapTradeUserRequest, AuthenticationApiRegisterSnapTradeUserRequestByAuthMode, AuthenticationApiRegisterSnapTradeUsercommercialApiKeyRequest, AuthenticationApiResetSnapTradeUserSecretArgs, AuthenticationApiResetSnapTradeUserSecretBaseRequest, AuthenticationApiResetSnapTradeUserSecretRequest, AuthenticationApiResetSnapTradeUserSecretRequestByAuthMode, AuthenticationApiResetSnapTradeUserSecretcommercialApiKeyRequest, AuthenticationLoginSnapTradeUser200Response, Balance, BalanceCurrency, Brokerage, BrokerageAuthorization, BrokerageAuthorizationDataFreshnessMode, BrokerageAuthorizationDisabledConfirmation, BrokerageAuthorizationRefreshConfirmation, BrokerageAuthorizationTransactionsSyncConfirmation, BrokerageAuthorizationTypeReadOnly, BrokerageAuthorizationTypeReadOnlyBrokerage, BrokerageInstrument, BrokerageInstrumentsResponse, BrokerageType, CancelOrderResponse, CefInstrument, CfdInstrument, ChildBrokerageOrderIDs, ChildBrokerageOrderIDsNullable, CommercialApiKeyAuth, ComplexOrderLeg, ComplexOrderResponse, Configuration, ConfigurationParameters, ConfigurationParametersShared, ConnectionAccount, ConnectionAccountSyncStatus, ConnectionAccountsResponse, ConnectionsApi, ConnectionsApiAxiosParamCreator, ConnectionsApiDeleteConnectionArgs, ConnectionsApiDeleteConnectionBaseRequest, ConnectionsApiDeleteConnectionRequest, ConnectionsApiDeleteConnectionRequestByAuthMode, ConnectionsApiDeleteConnectioncommercialApiKeyRequest, ConnectionsApiDeleteConnectionpersonalApiKeyRequest, ConnectionsApiDetailBrokerageAuthorizationArgs, ConnectionsApiDetailBrokerageAuthorizationBaseRequest, ConnectionsApiDetailBrokerageAuthorizationRequest, ConnectionsApiDetailBrokerageAuthorizationRequestByAuthMode, ConnectionsApiDetailBrokerageAuthorizationcommercialApiKeyRequest, ConnectionsApiDetailBrokerageAuthorizationpersonalApiKeyRequest, ConnectionsApiDisableBrokerageAuthorizationArgs, ConnectionsApiDisableBrokerageAuthorizationBaseRequest, ConnectionsApiDisableBrokerageAuthorizationRequest, ConnectionsApiDisableBrokerageAuthorizationRequestByAuthMode, ConnectionsApiDisableBrokerageAuthorizationcommercialApiKeyRequest, ConnectionsApiDisableBrokerageAuthorizationpersonalApiKeyRequest, ConnectionsApiFactory, ConnectionsApiFp, ConnectionsApiGenerated, ConnectionsApiListBrokerageAuthorizationAccountsArgs, ConnectionsApiListBrokerageAuthorizationAccountsBaseRequest, ConnectionsApiListBrokerageAuthorizationAccountsRequest, ConnectionsApiListBrokerageAuthorizationAccountsRequestByAuthMode, ConnectionsApiListBrokerageAuthorizationAccountscommercialApiKeyRequest, ConnectionsApiListBrokerageAuthorizationAccountspersonalApiKeyRequest, ConnectionsApiListBrokerageAuthorizationsArgs, ConnectionsApiListBrokerageAuthorizationsBaseRequest, ConnectionsApiListBrokerageAuthorizationsRequest, ConnectionsApiListBrokerageAuthorizationsRequestByAuthMode, ConnectionsApiListBrokerageAuthorizationscommercialApiKeyRequest, ConnectionsApiListBrokerageAuthorizationspersonalApiKeyRequest, ConnectionsApiListConnectionAccountsArgs, ConnectionsApiListConnectionAccountsBaseRequest, ConnectionsApiListConnectionAccountsRequest, ConnectionsApiListConnectionAccountsRequestByAuthMode, ConnectionsApiListConnectionAccountscommercialApiKeyRequest, ConnectionsApiListConnectionAccountspersonalApiKeyRequest, ConnectionsApiRefreshBrokerageAuthorizationArgs, ConnectionsApiRefreshBrokerageAuthorizationBaseRequest, ConnectionsApiRefreshBrokerageAuthorizationRequest, ConnectionsApiRefreshBrokerageAuthorizationRequestByAuthMode, ConnectionsApiRefreshBrokerageAuthorizationcommercialApiKeyRequest, ConnectionsApiRefreshBrokerageAuthorizationpersonalApiKeyRequest, ConnectionsApiReturnRatesArgs, ConnectionsApiReturnRatesBaseRequest, ConnectionsApiReturnRatesRequest, ConnectionsApiReturnRatesRequestByAuthMode, ConnectionsApiReturnRatescommercialApiKeyRequest, ConnectionsApiReturnRatespersonalApiKeyRequest, ConnectionsApiSyncBrokerageAuthorizationTransactionsArgs, ConnectionsApiSyncBrokerageAuthorizationTransactionsBaseRequest, ConnectionsApiSyncBrokerageAuthorizationTransactionsRequest, ConnectionsApiSyncBrokerageAuthorizationTransactionsRequestByAuthMode, ConnectionsApiSyncBrokerageAuthorizationTransactionscommercialApiKeyRequest, ConnectionsApiSyncBrokerageAuthorizationTransactionspersonalApiKeyRequest, CryptoInstrument, CryptoOrderForm, CryptoOrderPreview, CryptoOrderPreviewEstimatedFee, CryptoTradingInstrument, CryptocurrencyPair, CryptocurrencyPairQuote, Currency, CurrencyNullable, DeleteConnectionConfirmation, DeleteUserResponse, DepositAccount, DepositAccountNetValue, DepositAccountSyncStatus, DividendAtDate, EncryptedResponse, EncryptedResponseEncryptedMessageData, EtfInstrument, Exchange, ExchangeRatePairs, ExperimentalEndpointsApi, ExperimentalEndpointsApiAddSubscriptionArgs, ExperimentalEndpointsApiAddSubscriptionBaseRequest, ExperimentalEndpointsApiAddSubscriptionRequest, ExperimentalEndpointsApiAddSubscriptionRequestByAuthMode, ExperimentalEndpointsApiAddSubscriptioncommercialApiKeyRequest, ExperimentalEndpointsApiAddSubscriptionpersonalApiKeyRequest, ExperimentalEndpointsApiAxiosParamCreator, ExperimentalEndpointsApiCancelSubscriptionArgs, ExperimentalEndpointsApiCancelSubscriptionBaseRequest, ExperimentalEndpointsApiCancelSubscriptionRequest, ExperimentalEndpointsApiCancelSubscriptionRequestByAuthMode, ExperimentalEndpointsApiCancelSubscriptioncommercialApiKeyRequest, ExperimentalEndpointsApiCancelSubscriptionpersonalApiKeyRequest, ExperimentalEndpointsApiFactory, ExperimentalEndpointsApiFp, ExperimentalEndpointsApiGenerated, ExperimentalEndpointsApiGetUserAccountOrderDetailV2Args, ExperimentalEndpointsApiGetUserAccountOrderDetailV2BaseRequest, ExperimentalEndpointsApiGetUserAccountOrderDetailV2Request, ExperimentalEndpointsApiGetUserAccountOrderDetailV2RequestByAuthMode, ExperimentalEndpointsApiGetUserAccountOrderDetailV2commercialApiKeyRequest, ExperimentalEndpointsApiGetUserAccountOrderDetailV2personalApiKeyRequest, ExperimentalEndpointsApiGetUserAccountOrdersV2Args, ExperimentalEndpointsApiGetUserAccountOrdersV2BaseRequest, ExperimentalEndpointsApiGetUserAccountOrdersV2Request, ExperimentalEndpointsApiGetUserAccountOrdersV2RequestByAuthMode, ExperimentalEndpointsApiGetUserAccountOrdersV2commercialApiKeyRequest, ExperimentalEndpointsApiGetUserAccountOrdersV2personalApiKeyRequest, ExperimentalEndpointsApiGetUserAccountRecentOrdersV2Args, ExperimentalEndpointsApiGetUserAccountRecentOrdersV2BaseRequest, ExperimentalEndpointsApiGetUserAccountRecentOrdersV2Request, ExperimentalEndpointsApiGetUserAccountRecentOrdersV2RequestByAuthMode, ExperimentalEndpointsApiGetUserAccountRecentOrdersV2commercialApiKeyRequest, ExperimentalEndpointsApiGetUserAccountRecentOrdersV2personalApiKeyRequest, FigiInstrument, FigiInstrumentNullable, FutureInstrument, FutureOptionInstrument, HoldingsStatus, Institution, InstitutionConnection, InstitutionConnectionNullable, Instrument, InvestmentAccount, InvestmentAccountNetValue, LineOfCreditAccount, LineOfCreditAccountAvailableCredit, LineOfCreditAccountMinimumPaymentAmount, LineOfCreditAccountNetValue, LineOfCreditAccountSyncStatus, LoginRedirectURI, ManualTrade, ManualTradeAndImpact, ManualTradeBalance, ManualTradeForm, ManualTradeFormBracket, ManualTradeFormComplex, ManualTradeFormWithOptions, ManualTradeImpact, ManualTradePlaceTimeInForceStrict, ManualTradeReplaceForm, ManualTradeSymbol, MlegActionStrict, MlegInstrumentType, MlegLeg, MlegOrderResponse, MlegOrderTypeStrict, MlegPriceEffectStrict, MlegPriceEffectStrictNullable, MlegTradeForm, MlegTradingInstrument, Model400FailedRequestResponse, Model401FailedRequestResponse, Model402BrokerageAuthAlreadyDisabledException, Model402BrokerageAuthDisabledResponse, Model403FailedRequestResponse, Model403FeatureNotEnabledResponse, Model404FailedRequestResponse, Model425FailedRequestResponse, Model429TooManyRequestsResponse, Model500UnexpectedExceptionResponse, Model501NotImplementedResponse, Model503BrokerageRequestResponse, MonthlyDividends, MutualFundInstrument, NetContributions, NetDividend, NotionalValue, NotionalValueNullable, OAuthWebhookBase, OptionBrokerageSymbol, OptionChainInner, OptionChainInnerChainPerRootInner, OptionChainInnerChainPerRootInnerChainPerStrikePriceInner, OptionImpact, OptionInstrument, OptionLeg, OptionQuote, OptionQuoteGreeks, OptionStrategy, OptionStrategyLegsInner, OptionsPosition, OptionsSymbol, OptionsSymbolNullable, OrderTypeStrict, OrderUpdatedResponse, OtherInstrument, PaginatedUniversalActivity, PaginationDetails, PartnerData, PastValue, PerformanceCustom, PersonalApiKeyAuth, Position, PositionCurrency, PositionSymbol, RateOfReturnObject, RateOfReturnResponse, RecentOrdersResponse, ReferenceDataApi, ReferenceDataApiAxiosParamCreator, ReferenceDataApiFactory, ReferenceDataApiFp, ReferenceDataApiGenerated, ReferenceDataApiGetSymbolsArgs, ReferenceDataApiGetSymbolsBaseRequest, ReferenceDataApiGetSymbolsByTickerArgs, ReferenceDataApiGetSymbolsByTickerBaseRequest, ReferenceDataApiGetSymbolsByTickerRequest, ReferenceDataApiGetSymbolsByTickerRequestByAuthMode, ReferenceDataApiGetSymbolsByTickercommercialApiKeyRequest, ReferenceDataApiGetSymbolsByTickerpersonalApiKeyRequest, ReferenceDataApiGetSymbolsRequest, ReferenceDataApiGetSymbolsRequestByAuthMode, ReferenceDataApiGetSymbolscommercialApiKeyRequest, ReferenceDataApiGetSymbolspersonalApiKeyRequest, ReferenceDataApiListAllBrokerageAuthorizationTypeArgs, ReferenceDataApiListAllBrokerageAuthorizationTypeBaseRequest, ReferenceDataApiListAllBrokerageAuthorizationTypeRequest, ReferenceDataApiListAllBrokerageAuthorizationTypeRequestByAuthMode, ReferenceDataApiListAllBrokerageAuthorizationTypecommercialApiKeyRequest, ReferenceDataApiListAllBrokerageAuthorizationTypepersonalApiKeyRequest, ReferenceDataApiListAllBrokerageInstrumentsArgs, ReferenceDataApiListAllBrokerageInstrumentsBaseRequest, ReferenceDataApiListAllBrokerageInstrumentsRequest, ReferenceDataApiListAllBrokerageInstrumentsRequestByAuthMode, ReferenceDataApiListAllBrokerageInstrumentscommercialApiKeyRequest, ReferenceDataApiListAllBrokerageInstrumentspersonalApiKeyRequest, ReferenceDataApiSymbolSearchUserAccountArgs, ReferenceDataApiSymbolSearchUserAccountBaseRequest, ReferenceDataApiSymbolSearchUserAccountRequest, ReferenceDataApiSymbolSearchUserAccountRequestByAuthMode, ReferenceDataApiSymbolSearchUserAccountcommercialApiKeyRequest, ReferenceDataApiSymbolSearchUserAccountpersonalApiKeyRequest, SecurityType, SessionEvent, SimpleOrderForm, SnapTradeHoldingsAccount, SnapTradeHoldingsTotalValue, SnapTradeLoginUserRequestBody, SnapTradeRegisterUserRequestBody, Snaptrade, SnaptradeAuth, SnaptradeError, Status, StockInstrument, StopLoss, StrategyOrderRecord, StrategyQuotes, StrategyQuotesGreek, SubPeriodReturnRate, Symbol, SymbolCurrency, SymbolExchange, SymbolNullable, SymbolQuery, SymbolsQuotesInner, TakeProfit, TaxLot, TimeInForceStrict, TokenizedAssetInstrument, TradeDetectionAddSubscriptionRequest, TradeDetectionCancelSubscriptionRequest, TradeDetectionCancelSubscriptionResponse, TradeDetectionSubscription, TradingApi, TradingApiAxiosParamCreator, TradingApiCancelOrderArgs, TradingApiCancelOrderBaseRequest, TradingApiCancelOrderRequest, TradingApiCancelOrderRequestByAuthMode, TradingApiCancelOrdercommercialApiKeyRequest, TradingApiCancelOrderpersonalApiKeyRequest, TradingApiFactory, TradingApiFp, TradingApiGenerated, TradingApiGetCryptocurrencyPairQuoteArgs, TradingApiGetCryptocurrencyPairQuoteBaseRequest, TradingApiGetCryptocurrencyPairQuoteRequest, TradingApiGetCryptocurrencyPairQuoteRequestByAuthMode, TradingApiGetCryptocurrencyPairQuotecommercialApiKeyRequest, TradingApiGetCryptocurrencyPairQuotepersonalApiKeyRequest, TradingApiGetOptionImpactArgs, TradingApiGetOptionImpactBaseRequest, TradingApiGetOptionImpactRequest, TradingApiGetOptionImpactRequestByAuthMode, TradingApiGetOptionImpactcommercialApiKeyRequest, TradingApiGetOptionImpactpersonalApiKeyRequest, TradingApiGetOrderImpactArgs, TradingApiGetOrderImpactBaseRequest, TradingApiGetOrderImpactRequest, TradingApiGetOrderImpactRequestByAuthMode, TradingApiGetOrderImpactcommercialApiKeyRequest, TradingApiGetOrderImpactpersonalApiKeyRequest, TradingApiGetUserAccountOptionQuotesArgs, TradingApiGetUserAccountOptionQuotesBaseRequest, TradingApiGetUserAccountOptionQuotesRequest, TradingApiGetUserAccountOptionQuotesRequestByAuthMode, TradingApiGetUserAccountOptionQuotescommercialApiKeyRequest, TradingApiGetUserAccountOptionQuotespersonalApiKeyRequest, TradingApiGetUserAccountQuotesArgs, TradingApiGetUserAccountQuotesBaseRequest, TradingApiGetUserAccountQuotesRequest, TradingApiGetUserAccountQuotesRequestByAuthMode, TradingApiGetUserAccountQuotescommercialApiKeyRequest, TradingApiGetUserAccountQuotespersonalApiKeyRequest, TradingApiPlaceComplexOrderArgs, TradingApiPlaceComplexOrderBaseRequest, TradingApiPlaceComplexOrderRequest, TradingApiPlaceComplexOrderRequestByAuthMode, TradingApiPlaceComplexOrdercommercialApiKeyRequest, TradingApiPlaceComplexOrderpersonalApiKeyRequest, TradingApiPlaceCryptoOrderArgs, TradingApiPlaceCryptoOrderBaseRequest, TradingApiPlaceCryptoOrderRequest, TradingApiPlaceCryptoOrderRequestByAuthMode, TradingApiPlaceCryptoOrdercommercialApiKeyRequest, TradingApiPlaceCryptoOrderpersonalApiKeyRequest, TradingApiPlaceForceOrderArgs, TradingApiPlaceForceOrderBaseRequest, TradingApiPlaceForceOrderRequest, TradingApiPlaceForceOrderRequestByAuthMode, TradingApiPlaceForceOrdercommercialApiKeyRequest, TradingApiPlaceForceOrderpersonalApiKeyRequest, TradingApiPlaceMlegOrderArgs, TradingApiPlaceMlegOrderBaseRequest, TradingApiPlaceMlegOrderRequest, TradingApiPlaceMlegOrderRequestByAuthMode, TradingApiPlaceMlegOrdercommercialApiKeyRequest, TradingApiPlaceMlegOrderpersonalApiKeyRequest, TradingApiPlaceOrderArgs, TradingApiPlaceOrderBaseRequest, TradingApiPlaceOrderRequest, TradingApiPlaceOrderRequestByAuthMode, TradingApiPlaceOrdercommercialApiKeyRequest, TradingApiPlaceOrderpersonalApiKeyRequest, TradingApiPreviewCryptoOrderArgs, TradingApiPreviewCryptoOrderBaseRequest, TradingApiPreviewCryptoOrderRequest, TradingApiPreviewCryptoOrderRequestByAuthMode, TradingApiPreviewCryptoOrdercommercialApiKeyRequest, TradingApiPreviewCryptoOrderpersonalApiKeyRequest, TradingApiReplaceOrderArgs, TradingApiReplaceOrderBaseRequest, TradingApiReplaceOrderRequest, TradingApiReplaceOrderRequestByAuthMode, TradingApiReplaceOrdercommercialApiKeyRequest, TradingApiReplaceOrderpersonalApiKeyRequest, TradingApiSearchCryptocurrencyPairInstrumentsArgs, TradingApiSearchCryptocurrencyPairInstrumentsBaseRequest, TradingApiSearchCryptocurrencyPairInstrumentsRequest, TradingApiSearchCryptocurrencyPairInstrumentsRequestByAuthMode, TradingApiSearchCryptocurrencyPairInstrumentscommercialApiKeyRequest, TradingApiSearchCryptocurrencyPairInstrumentspersonalApiKeyRequest, TradingGetUserAccountOptionQuotes410Response, TradingInstrument, TradingSearchCryptocurrencyPairInstruments200Response, TradingSession, TrailingStop, TrailingStopNullable, TransactionsStatus, USExchange, UnderlyingCfdInstrument, UnderlyingOptionInstrument, UnderlyingSymbol, UnderlyingSymbolExchange, UnderlyingSymbolType, UnderlyingTokenizedAssetInstrument, UniversalActivity, UniversalSymbol, UniversalSymbolNullable, UserIDandSecret, ValidatedTradeBody, parseIfJson, readableStreamToString };
11526
+ export { Account, AccountBalance, AccountBalanceTotal, AccountHoldings, AccountHoldingsAccount, AccountInformationApi, AccountInformationApiAxiosParamCreator, AccountInformationApiFactory, AccountInformationApiFp, AccountInformationApiGenerated, AccountInformationApiGetAccountActivitiesArgs, AccountInformationApiGetAccountActivitiesBaseRequest, AccountInformationApiGetAccountActivitiesRequest, AccountInformationApiGetAccountActivitiesRequestByAuthMode, AccountInformationApiGetAccountActivitiescommercialApiKeyRequest, AccountInformationApiGetAccountActivitiespersonalApiKeyRequest, AccountInformationApiGetAccountBalanceHistoryArgs, AccountInformationApiGetAccountBalanceHistoryBaseRequest, AccountInformationApiGetAccountBalanceHistoryRequest, AccountInformationApiGetAccountBalanceHistoryRequestByAuthMode, AccountInformationApiGetAccountBalanceHistorycommercialApiKeyRequest, AccountInformationApiGetAccountBalanceHistorypersonalApiKeyRequest, AccountInformationApiGetAllAccountPositionsArgs, AccountInformationApiGetAllAccountPositionsBaseRequest, AccountInformationApiGetAllAccountPositionsRequest, AccountInformationApiGetAllAccountPositionsRequestByAuthMode, AccountInformationApiGetAllAccountPositionscommercialApiKeyRequest, AccountInformationApiGetAllAccountPositionspersonalApiKeyRequest, AccountInformationApiGetUserAccountBalanceArgs, AccountInformationApiGetUserAccountBalanceBaseRequest, AccountInformationApiGetUserAccountBalanceRequest, AccountInformationApiGetUserAccountBalanceRequestByAuthMode, AccountInformationApiGetUserAccountBalancecommercialApiKeyRequest, AccountInformationApiGetUserAccountBalancepersonalApiKeyRequest, AccountInformationApiGetUserAccountDetailsArgs, AccountInformationApiGetUserAccountDetailsBaseRequest, AccountInformationApiGetUserAccountDetailsRequest, AccountInformationApiGetUserAccountDetailsRequestByAuthMode, AccountInformationApiGetUserAccountDetailscommercialApiKeyRequest, AccountInformationApiGetUserAccountDetailspersonalApiKeyRequest, AccountInformationApiGetUserAccountOrderDetailArgs, AccountInformationApiGetUserAccountOrderDetailBaseRequest, AccountInformationApiGetUserAccountOrderDetailRequest, AccountInformationApiGetUserAccountOrderDetailRequestByAuthMode, AccountInformationApiGetUserAccountOrderDetailcommercialApiKeyRequest, AccountInformationApiGetUserAccountOrderDetailpersonalApiKeyRequest, AccountInformationApiGetUserAccountOrdersArgs, AccountInformationApiGetUserAccountOrdersBaseRequest, AccountInformationApiGetUserAccountOrdersRequest, AccountInformationApiGetUserAccountOrdersRequestByAuthMode, AccountInformationApiGetUserAccountOrderscommercialApiKeyRequest, AccountInformationApiGetUserAccountOrderspersonalApiKeyRequest, AccountInformationApiGetUserAccountRecentOrdersArgs, AccountInformationApiGetUserAccountRecentOrdersBaseRequest, AccountInformationApiGetUserAccountRecentOrdersRequest, AccountInformationApiGetUserAccountRecentOrdersRequestByAuthMode, AccountInformationApiGetUserAccountRecentOrderscommercialApiKeyRequest, AccountInformationApiGetUserAccountRecentOrderspersonalApiKeyRequest, AccountInformationApiGetUserAccountReturnRatesArgs, AccountInformationApiGetUserAccountReturnRatesBaseRequest, AccountInformationApiGetUserAccountReturnRatesRequest, AccountInformationApiGetUserAccountReturnRatesRequestByAuthMode, AccountInformationApiGetUserAccountReturnRatescommercialApiKeyRequest, AccountInformationApiGetUserAccountReturnRatespersonalApiKeyRequest, AccountInformationApiGetUserHoldingsArgs, AccountInformationApiGetUserHoldingsBaseRequest, AccountInformationApiGetUserHoldingsRequest, AccountInformationApiGetUserHoldingsRequestByAuthMode, AccountInformationApiGetUserHoldingscommercialApiKeyRequest, AccountInformationApiGetUserHoldingspersonalApiKeyRequest, AccountInformationApiListUserAccountsArgs, AccountInformationApiListUserAccountsBaseRequest, AccountInformationApiListUserAccountsRequest, AccountInformationApiListUserAccountsRequestByAuthMode, AccountInformationApiListUserAccountscommercialApiKeyRequest, AccountInformationApiListUserAccountspersonalApiKeyRequest, AccountInformationApiUpdateUserAccountArgs, AccountInformationApiUpdateUserAccountBaseRequest, AccountInformationApiUpdateUserAccountRequest, AccountInformationApiUpdateUserAccountRequestByAuthMode, AccountInformationApiUpdateUserAccountcommercialApiKeyRequest, AccountInformationApiUpdateUserAccountpersonalApiKeyRequest, AccountInformationGetUserAccountOrderDetailRequest, AccountOrderRecord, AccountOrderRecordLeg, AccountOrderRecordLegInstrument, AccountOrderRecordNullable, AccountOrderRecordStatus, AccountOrderRecordStatusV2, AccountOrderRecordStatusV2Nullable, AccountOrderRecordV2, AccountOrderRecordV2OrderRole, AccountOrderRecordV2OrderRoleNullable, AccountOrdersV2Response, AccountPosition, AccountSimple, AccountSyncStatus, AccountUniversalActivity, AccountValueHistoryItem, AccountValueHistoryResponse, ActionStrict, ActionStrictWithOptions, AdrInstrument, AllAccountPositionsResponse, AllAccountPositionsResponseDataFreshness, AllUserAccountsResponse, ApiKey, ApiStatusApi, ApiStatusApiAxiosParamCreator, ApiStatusApiFactory, ApiStatusApiFp, ApiStatusApiGenerated, type AuthMode, AuthenticationApi, AuthenticationApiAxiosParamCreator, AuthenticationApiDeleteSnapTradeUserArgs, AuthenticationApiDeleteSnapTradeUserBaseRequest, AuthenticationApiDeleteSnapTradeUserRequest, AuthenticationApiDeleteSnapTradeUserRequestByAuthMode, AuthenticationApiDeleteSnapTradeUsercommercialApiKeyRequest, AuthenticationApiFactory, AuthenticationApiFp, AuthenticationApiGenerated, AuthenticationApiLoginSnapTradeUserArgs, AuthenticationApiLoginSnapTradeUserBaseRequest, AuthenticationApiLoginSnapTradeUserRequest, AuthenticationApiLoginSnapTradeUserRequestByAuthMode, AuthenticationApiLoginSnapTradeUsercommercialApiKeyRequest, AuthenticationApiLoginSnapTradeUserpersonalApiKeyRequest, AuthenticationApiRegisterSnapTradeUserArgs, AuthenticationApiRegisterSnapTradeUserBaseRequest, AuthenticationApiRegisterSnapTradeUserRequest, AuthenticationApiRegisterSnapTradeUserRequestByAuthMode, AuthenticationApiRegisterSnapTradeUsercommercialApiKeyRequest, AuthenticationApiResetSnapTradeUserSecretArgs, AuthenticationApiResetSnapTradeUserSecretBaseRequest, AuthenticationApiResetSnapTradeUserSecretRequest, AuthenticationApiResetSnapTradeUserSecretRequestByAuthMode, AuthenticationApiResetSnapTradeUserSecretcommercialApiKeyRequest, AuthenticationLoginSnapTradeUser200Response, Balance, BalanceCurrency, Brokerage, BrokerageAuthorization, BrokerageAuthorizationDataFreshnessMode, BrokerageAuthorizationDisabledConfirmation, BrokerageAuthorizationRefreshConfirmation, BrokerageAuthorizationTransactionsSyncConfirmation, BrokerageAuthorizationTypeReadOnly, BrokerageAuthorizationTypeReadOnlyBrokerage, BrokerageInstrument, BrokerageInstrumentsResponse, BrokerageType, CancelOrderResponse, CefInstrument, CfdInstrument, ChildBrokerageOrderIDs, ChildBrokerageOrderIDsNullable, CommercialApiKeyAuth, ComplexOrderLeg, ComplexOrderResponse, Configuration, ConfigurationParameters, ConfigurationParametersShared, ConnectionAccount, ConnectionAccountSyncStatus, ConnectionAccountsResponse, ConnectionsApi, ConnectionsApiAxiosParamCreator, ConnectionsApiDeleteConnectionArgs, ConnectionsApiDeleteConnectionBaseRequest, ConnectionsApiDeleteConnectionRequest, ConnectionsApiDeleteConnectionRequestByAuthMode, ConnectionsApiDeleteConnectioncommercialApiKeyRequest, ConnectionsApiDeleteConnectionpersonalApiKeyRequest, ConnectionsApiDetailBrokerageAuthorizationArgs, ConnectionsApiDetailBrokerageAuthorizationBaseRequest, ConnectionsApiDetailBrokerageAuthorizationRequest, ConnectionsApiDetailBrokerageAuthorizationRequestByAuthMode, ConnectionsApiDetailBrokerageAuthorizationcommercialApiKeyRequest, ConnectionsApiDetailBrokerageAuthorizationpersonalApiKeyRequest, ConnectionsApiDisableBrokerageAuthorizationArgs, ConnectionsApiDisableBrokerageAuthorizationBaseRequest, ConnectionsApiDisableBrokerageAuthorizationRequest, ConnectionsApiDisableBrokerageAuthorizationRequestByAuthMode, ConnectionsApiDisableBrokerageAuthorizationcommercialApiKeyRequest, ConnectionsApiDisableBrokerageAuthorizationpersonalApiKeyRequest, ConnectionsApiFactory, ConnectionsApiFp, ConnectionsApiGenerated, ConnectionsApiListBrokerageAuthorizationAccountsArgs, ConnectionsApiListBrokerageAuthorizationAccountsBaseRequest, ConnectionsApiListBrokerageAuthorizationAccountsRequest, ConnectionsApiListBrokerageAuthorizationAccountsRequestByAuthMode, ConnectionsApiListBrokerageAuthorizationAccountscommercialApiKeyRequest, ConnectionsApiListBrokerageAuthorizationAccountspersonalApiKeyRequest, ConnectionsApiListBrokerageAuthorizationsArgs, ConnectionsApiListBrokerageAuthorizationsBaseRequest, ConnectionsApiListBrokerageAuthorizationsRequest, ConnectionsApiListBrokerageAuthorizationsRequestByAuthMode, ConnectionsApiListBrokerageAuthorizationscommercialApiKeyRequest, ConnectionsApiListBrokerageAuthorizationspersonalApiKeyRequest, ConnectionsApiListConnectionAccountsArgs, ConnectionsApiListConnectionAccountsBaseRequest, ConnectionsApiListConnectionAccountsRequest, ConnectionsApiListConnectionAccountsRequestByAuthMode, ConnectionsApiListConnectionAccountscommercialApiKeyRequest, ConnectionsApiListConnectionAccountspersonalApiKeyRequest, ConnectionsApiRefreshBrokerageAuthorizationArgs, ConnectionsApiRefreshBrokerageAuthorizationBaseRequest, ConnectionsApiRefreshBrokerageAuthorizationRequest, ConnectionsApiRefreshBrokerageAuthorizationRequestByAuthMode, ConnectionsApiRefreshBrokerageAuthorizationcommercialApiKeyRequest, ConnectionsApiRefreshBrokerageAuthorizationpersonalApiKeyRequest, ConnectionsApiReturnRatesArgs, ConnectionsApiReturnRatesBaseRequest, ConnectionsApiReturnRatesRequest, ConnectionsApiReturnRatesRequestByAuthMode, ConnectionsApiReturnRatescommercialApiKeyRequest, ConnectionsApiReturnRatespersonalApiKeyRequest, ConnectionsApiSyncBrokerageAuthorizationTransactionsArgs, ConnectionsApiSyncBrokerageAuthorizationTransactionsBaseRequest, ConnectionsApiSyncBrokerageAuthorizationTransactionsRequest, ConnectionsApiSyncBrokerageAuthorizationTransactionsRequestByAuthMode, ConnectionsApiSyncBrokerageAuthorizationTransactionscommercialApiKeyRequest, ConnectionsApiSyncBrokerageAuthorizationTransactionspersonalApiKeyRequest, CryptoInstrument, CryptoOrderForm, CryptoOrderPreview, CryptoOrderPreviewEstimatedFee, CryptoTradingInstrument, CryptocurrencyPair, CryptocurrencyPairQuote, Currency, CurrencyNullable, DeleteConnectionConfirmation, DeleteUserResponse, DepositAccount, DepositAccountNetValue, DepositAccountSyncStatus, DividendAtDate, EncryptedResponse, EncryptedResponseEncryptedMessageData, EtfInstrument, Exchange, ExchangeRatePairs, ExperimentalEndpointsApi, ExperimentalEndpointsApiAddSubscriptionArgs, ExperimentalEndpointsApiAddSubscriptionBaseRequest, ExperimentalEndpointsApiAddSubscriptionRequest, ExperimentalEndpointsApiAddSubscriptionRequestByAuthMode, ExperimentalEndpointsApiAddSubscriptioncommercialApiKeyRequest, ExperimentalEndpointsApiAddSubscriptionpersonalApiKeyRequest, ExperimentalEndpointsApiAxiosParamCreator, ExperimentalEndpointsApiCancelSubscriptionArgs, ExperimentalEndpointsApiCancelSubscriptionBaseRequest, ExperimentalEndpointsApiCancelSubscriptionRequest, ExperimentalEndpointsApiCancelSubscriptionRequestByAuthMode, ExperimentalEndpointsApiCancelSubscriptioncommercialApiKeyRequest, ExperimentalEndpointsApiCancelSubscriptionpersonalApiKeyRequest, ExperimentalEndpointsApiFactory, ExperimentalEndpointsApiFp, ExperimentalEndpointsApiGenerated, ExperimentalEndpointsApiGetAccountDetailsArgs, ExperimentalEndpointsApiGetAccountDetailsBaseRequest, ExperimentalEndpointsApiGetAccountDetailsRequest, ExperimentalEndpointsApiGetAccountDetailsRequestByAuthMode, ExperimentalEndpointsApiGetAccountDetailscommercialApiKeyRequest, ExperimentalEndpointsApiGetAccountDetailspersonalApiKeyRequest, ExperimentalEndpointsApiGetUserAccountOrderDetailV2Args, ExperimentalEndpointsApiGetUserAccountOrderDetailV2BaseRequest, ExperimentalEndpointsApiGetUserAccountOrderDetailV2Request, ExperimentalEndpointsApiGetUserAccountOrderDetailV2RequestByAuthMode, ExperimentalEndpointsApiGetUserAccountOrderDetailV2commercialApiKeyRequest, ExperimentalEndpointsApiGetUserAccountOrderDetailV2personalApiKeyRequest, ExperimentalEndpointsApiGetUserAccountOrdersV2Args, ExperimentalEndpointsApiGetUserAccountOrdersV2BaseRequest, ExperimentalEndpointsApiGetUserAccountOrdersV2Request, ExperimentalEndpointsApiGetUserAccountOrdersV2RequestByAuthMode, ExperimentalEndpointsApiGetUserAccountOrdersV2commercialApiKeyRequest, ExperimentalEndpointsApiGetUserAccountOrdersV2personalApiKeyRequest, ExperimentalEndpointsApiGetUserAccountRecentOrdersV2Args, ExperimentalEndpointsApiGetUserAccountRecentOrdersV2BaseRequest, ExperimentalEndpointsApiGetUserAccountRecentOrdersV2Request, ExperimentalEndpointsApiGetUserAccountRecentOrdersV2RequestByAuthMode, ExperimentalEndpointsApiGetUserAccountRecentOrdersV2commercialApiKeyRequest, ExperimentalEndpointsApiGetUserAccountRecentOrdersV2personalApiKeyRequest, ExperimentalEndpointsApiListAllUserAccountsArgs, ExperimentalEndpointsApiListAllUserAccountsBaseRequest, ExperimentalEndpointsApiListAllUserAccountsRequest, ExperimentalEndpointsApiListAllUserAccountsRequestByAuthMode, ExperimentalEndpointsApiListAllUserAccountscommercialApiKeyRequest, ExperimentalEndpointsApiListAllUserAccountspersonalApiKeyRequest, ExperimentalEndpointsApiPlaceSimpleOrderArgs, ExperimentalEndpointsApiPlaceSimpleOrderBaseRequest, ExperimentalEndpointsApiPlaceSimpleOrderRequest, ExperimentalEndpointsApiPlaceSimpleOrderRequestByAuthMode, ExperimentalEndpointsApiPlaceSimpleOrdercommercialApiKeyRequest, ExperimentalEndpointsApiPlaceSimpleOrderpersonalApiKeyRequest, FigiInstrument, FigiInstrumentNullable, FutureInstrument, FutureOptionInstrument, HoldingsStatus, Institution, InstitutionConnection, InstitutionConnectionNullable, Instrument, InvestmentAccount, InvestmentAccountNetValue, LineOfCreditAccount, LineOfCreditAccountAvailableCredit, LineOfCreditAccountMinimumPaymentAmount, LineOfCreditAccountNetValue, LineOfCreditAccountSyncStatus, LoginRedirectURI, ManualTrade, ManualTradeAndImpact, ManualTradeBalance, ManualTradeForm, ManualTradeFormBracket, ManualTradeFormComplex, ManualTradeFormWithOptions, ManualTradeImpact, ManualTradePlaceTimeInForceStrict, ManualTradeReplaceForm, ManualTradeSymbol, MlegActionStrict, MlegInstrumentType, MlegLeg, MlegOrderResponse, MlegOrderTypeStrict, MlegPriceEffectStrict, MlegPriceEffectStrictNullable, MlegTradeForm, MlegTradingInstrument, Model400FailedRequestResponse, Model401FailedRequestResponse, Model402BrokerageAuthAlreadyDisabledException, Model402BrokerageAuthDisabledResponse, Model403FailedRequestResponse, Model403FeatureNotEnabledResponse, Model404FailedRequestResponse, Model425FailedRequestResponse, Model429TooManyRequestsResponse, Model500UnexpectedExceptionResponse, Model501NotImplementedResponse, Model503BrokerageRequestResponse, MonthlyDividends, MutualFundInstrument, NetContributions, NetDividend, NotionalValue, NotionalValueNullable, OAuthWebhookBase, OptionBrokerageSymbol, OptionChainInner, OptionChainInnerChainPerRootInner, OptionChainInnerChainPerRootInnerChainPerStrikePriceInner, OptionImpact, OptionInstrument, OptionLeg, OptionQuote, OptionQuoteGreeks, OptionStrategy, OptionStrategyLegsInner, OptionsPosition, OptionsSymbol, OptionsSymbolNullable, OrderTypeStrict, OrderUpdatedResponse, OtherInstrument, PaginatedUniversalActivity, PaginationDetails, PartnerData, PastValue, PerformanceCustom, PersonalApiKeyAuth, Position, PositionCurrency, PositionSymbol, RateOfReturnObject, RateOfReturnResponse, RecentOrdersResponse, ReferenceDataApi, ReferenceDataApiAxiosParamCreator, ReferenceDataApiFactory, ReferenceDataApiFp, ReferenceDataApiGenerated, ReferenceDataApiGetSymbolsArgs, ReferenceDataApiGetSymbolsBaseRequest, ReferenceDataApiGetSymbolsByTickerArgs, ReferenceDataApiGetSymbolsByTickerBaseRequest, ReferenceDataApiGetSymbolsByTickerRequest, ReferenceDataApiGetSymbolsByTickerRequestByAuthMode, ReferenceDataApiGetSymbolsByTickercommercialApiKeyRequest, ReferenceDataApiGetSymbolsByTickerpersonalApiKeyRequest, ReferenceDataApiGetSymbolsRequest, ReferenceDataApiGetSymbolsRequestByAuthMode, ReferenceDataApiGetSymbolscommercialApiKeyRequest, ReferenceDataApiGetSymbolspersonalApiKeyRequest, ReferenceDataApiListAllBrokerageAuthorizationTypeArgs, ReferenceDataApiListAllBrokerageAuthorizationTypeBaseRequest, ReferenceDataApiListAllBrokerageAuthorizationTypeRequest, ReferenceDataApiListAllBrokerageAuthorizationTypeRequestByAuthMode, ReferenceDataApiListAllBrokerageAuthorizationTypecommercialApiKeyRequest, ReferenceDataApiListAllBrokerageAuthorizationTypepersonalApiKeyRequest, ReferenceDataApiListAllBrokerageInstrumentsArgs, ReferenceDataApiListAllBrokerageInstrumentsBaseRequest, ReferenceDataApiListAllBrokerageInstrumentsRequest, ReferenceDataApiListAllBrokerageInstrumentsRequestByAuthMode, ReferenceDataApiListAllBrokerageInstrumentscommercialApiKeyRequest, ReferenceDataApiListAllBrokerageInstrumentspersonalApiKeyRequest, ReferenceDataApiSymbolSearchUserAccountArgs, ReferenceDataApiSymbolSearchUserAccountBaseRequest, ReferenceDataApiSymbolSearchUserAccountRequest, ReferenceDataApiSymbolSearchUserAccountRequestByAuthMode, ReferenceDataApiSymbolSearchUserAccountcommercialApiKeyRequest, ReferenceDataApiSymbolSearchUserAccountpersonalApiKeyRequest, SecurityType, SessionEvent, SimpleOrderForm, SimpleTradeForm, SimpleTradeInstrument, SimpleTradeLeg, SimpleTradeResponse, SnapTradeHoldingsAccount, SnapTradeHoldingsTotalValue, SnapTradeLoginUserRequestBody, SnapTradeRegisterUserRequestBody, Snaptrade, SnaptradeAuth, SnaptradeError, Status, StockInstrument, StopLoss, StrategyOrderRecord, StrategyQuotes, StrategyQuotesGreek, SubPeriodReturnRate, Symbol, SymbolCurrency, SymbolExchange, SymbolNullable, SymbolQuery, SymbolsQuotesInner, TakeProfit, TaxLot, TimeInForceStrict, TokenizedAssetInstrument, TradeDetectionAddSubscriptionRequest, TradeDetectionCancelSubscriptionRequest, TradeDetectionCancelSubscriptionResponse, TradeDetectionSubscription, TradingApi, TradingApiAxiosParamCreator, TradingApiCancelOrderArgs, TradingApiCancelOrderBaseRequest, TradingApiCancelOrderRequest, TradingApiCancelOrderRequestByAuthMode, TradingApiCancelOrdercommercialApiKeyRequest, TradingApiCancelOrderpersonalApiKeyRequest, TradingApiFactory, TradingApiFp, TradingApiGenerated, TradingApiGetCryptocurrencyPairQuoteArgs, TradingApiGetCryptocurrencyPairQuoteBaseRequest, TradingApiGetCryptocurrencyPairQuoteRequest, TradingApiGetCryptocurrencyPairQuoteRequestByAuthMode, TradingApiGetCryptocurrencyPairQuotecommercialApiKeyRequest, TradingApiGetCryptocurrencyPairQuotepersonalApiKeyRequest, TradingApiGetOptionImpactArgs, TradingApiGetOptionImpactBaseRequest, TradingApiGetOptionImpactRequest, TradingApiGetOptionImpactRequestByAuthMode, TradingApiGetOptionImpactcommercialApiKeyRequest, TradingApiGetOptionImpactpersonalApiKeyRequest, TradingApiGetOrderImpactArgs, TradingApiGetOrderImpactBaseRequest, TradingApiGetOrderImpactRequest, TradingApiGetOrderImpactRequestByAuthMode, TradingApiGetOrderImpactcommercialApiKeyRequest, TradingApiGetOrderImpactpersonalApiKeyRequest, TradingApiGetUserAccountOptionQuotesArgs, TradingApiGetUserAccountOptionQuotesBaseRequest, TradingApiGetUserAccountOptionQuotesRequest, TradingApiGetUserAccountOptionQuotesRequestByAuthMode, TradingApiGetUserAccountOptionQuotescommercialApiKeyRequest, TradingApiGetUserAccountOptionQuotespersonalApiKeyRequest, TradingApiGetUserAccountQuotesArgs, TradingApiGetUserAccountQuotesBaseRequest, TradingApiGetUserAccountQuotesRequest, TradingApiGetUserAccountQuotesRequestByAuthMode, TradingApiGetUserAccountQuotescommercialApiKeyRequest, TradingApiGetUserAccountQuotespersonalApiKeyRequest, TradingApiPlaceComplexOrderArgs, TradingApiPlaceComplexOrderBaseRequest, TradingApiPlaceComplexOrderRequest, TradingApiPlaceComplexOrderRequestByAuthMode, TradingApiPlaceComplexOrdercommercialApiKeyRequest, TradingApiPlaceComplexOrderpersonalApiKeyRequest, TradingApiPlaceCryptoOrderArgs, TradingApiPlaceCryptoOrderBaseRequest, TradingApiPlaceCryptoOrderRequest, TradingApiPlaceCryptoOrderRequestByAuthMode, TradingApiPlaceCryptoOrdercommercialApiKeyRequest, TradingApiPlaceCryptoOrderpersonalApiKeyRequest, TradingApiPlaceForceOrderArgs, TradingApiPlaceForceOrderBaseRequest, TradingApiPlaceForceOrderRequest, TradingApiPlaceForceOrderRequestByAuthMode, TradingApiPlaceForceOrdercommercialApiKeyRequest, TradingApiPlaceForceOrderpersonalApiKeyRequest, TradingApiPlaceMlegOrderArgs, TradingApiPlaceMlegOrderBaseRequest, TradingApiPlaceMlegOrderRequest, TradingApiPlaceMlegOrderRequestByAuthMode, TradingApiPlaceMlegOrdercommercialApiKeyRequest, TradingApiPlaceMlegOrderpersonalApiKeyRequest, TradingApiPlaceOrderArgs, TradingApiPlaceOrderBaseRequest, TradingApiPlaceOrderRequest, TradingApiPlaceOrderRequestByAuthMode, TradingApiPlaceOrdercommercialApiKeyRequest, TradingApiPlaceOrderpersonalApiKeyRequest, TradingApiPreviewCryptoOrderArgs, TradingApiPreviewCryptoOrderBaseRequest, TradingApiPreviewCryptoOrderRequest, TradingApiPreviewCryptoOrderRequestByAuthMode, TradingApiPreviewCryptoOrdercommercialApiKeyRequest, TradingApiPreviewCryptoOrderpersonalApiKeyRequest, TradingApiReplaceOrderArgs, TradingApiReplaceOrderBaseRequest, TradingApiReplaceOrderRequest, TradingApiReplaceOrderRequestByAuthMode, TradingApiReplaceOrdercommercialApiKeyRequest, TradingApiReplaceOrderpersonalApiKeyRequest, TradingApiSearchCryptocurrencyPairInstrumentsArgs, TradingApiSearchCryptocurrencyPairInstrumentsBaseRequest, TradingApiSearchCryptocurrencyPairInstrumentsRequest, TradingApiSearchCryptocurrencyPairInstrumentsRequestByAuthMode, TradingApiSearchCryptocurrencyPairInstrumentscommercialApiKeyRequest, TradingApiSearchCryptocurrencyPairInstrumentspersonalApiKeyRequest, TradingGetUserAccountOptionQuotes410Response, TradingInstrument, TradingSearchCryptocurrencyPairInstruments200Response, TradingSession, TrailingStop, TrailingStopNullable, TransactionsStatus, USExchange, UnderlyingCfdInstrument, UnderlyingOptionInstrument, UnderlyingSymbol, UnderlyingSymbolExchange, UnderlyingSymbolType, UnderlyingTokenizedAssetInstrument, UniversalActivity, UniversalSymbol, UniversalSymbolNullable, UserIDandSecret, ValidatedTradeBody, parseIfJson, readableStreamToString };