snaptrade-python-sdk 13.1.4__py3-none-any.whl → 13.2.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. snaptrade_client/__init__.py +3 -2
  2. snaptrade_client/api_client.py +1 -1
  3. snaptrade_client/auth.py +13 -0
  4. snaptrade_client/client.py +4 -0
  5. snaptrade_client/client.pyi +16 -0
  6. snaptrade_client/configuration.py +20 -2
  7. snaptrade_client/model/account.py +5 -0
  8. snaptrade_client/model/account.pyi +5 -0
  9. snaptrade_client/model/annuity_account.py +3 -4
  10. snaptrade_client/model/annuity_account.pyi +3 -4
  11. snaptrade_client/model/annuity_account_sync_status.py +2 -2
  12. snaptrade_client/model/annuity_account_sync_status.pyi +2 -2
  13. snaptrade_client/model/connection_account.py +5 -1
  14. snaptrade_client/model/connection_account.pyi +5 -1
  15. snaptrade_client/model/mortgage_account.py +350 -0
  16. snaptrade_client/model/mortgage_account.pyi +344 -0
  17. snaptrade_client/model/mortgage_account_net_value.py +130 -0
  18. snaptrade_client/model/mortgage_account_net_value.pyi +130 -0
  19. snaptrade_client/model/mortgage_account_sync_status.py +99 -0
  20. snaptrade_client/model/mortgage_account_sync_status.pyi +99 -0
  21. snaptrade_client/models/__init__.py +3 -0
  22. snaptrade_client/oauth_device.py +160 -0
  23. snaptrade_client/paths/accounts/get.py +7 -2
  24. snaptrade_client/paths/accounts/get.pyi +21 -0
  25. snaptrade_client/paths/accounts_account_id/get.py +7 -2
  26. snaptrade_client/paths/accounts_account_id/get.pyi +25 -0
  27. snaptrade_client/paths/accounts_account_id/put.py +5 -0
  28. snaptrade_client/paths/accounts_account_id/put.pyi +25 -0
  29. snaptrade_client/paths/accounts_account_id_activities/get.py +5 -0
  30. snaptrade_client/paths/accounts_account_id_activities/get.pyi +35 -0
  31. snaptrade_client/paths/accounts_account_id_balance_history/get.py +5 -0
  32. snaptrade_client/paths/accounts_account_id_balance_history/get.pyi +25 -0
  33. snaptrade_client/paths/accounts_account_id_balances/get.py +5 -0
  34. snaptrade_client/paths/accounts_account_id_balances/get.pyi +25 -0
  35. snaptrade_client/paths/accounts_account_id_details/get.py +7 -2
  36. snaptrade_client/paths/accounts_account_id_details/get.pyi +25 -0
  37. snaptrade_client/paths/accounts_account_id_holdings/get.py +5 -0
  38. snaptrade_client/paths/accounts_account_id_holdings/get.pyi +25 -0
  39. snaptrade_client/paths/accounts_account_id_orders/get.py +5 -0
  40. snaptrade_client/paths/accounts_account_id_orders/get.pyi +29 -0
  41. snaptrade_client/paths/accounts_account_id_orders_details/post.py +5 -0
  42. snaptrade_client/paths/accounts_account_id_orders_details/post.pyi +27 -0
  43. snaptrade_client/paths/accounts_account_id_orders_details_v2_brokerage_order_id/get.py +5 -0
  44. snaptrade_client/paths/accounts_account_id_orders_details_v2_brokerage_order_id/get.pyi +27 -0
  45. snaptrade_client/paths/accounts_account_id_orders_v2/get.py +5 -0
  46. snaptrade_client/paths/accounts_account_id_orders_v2/get.pyi +29 -0
  47. snaptrade_client/paths/accounts_account_id_positions_all/get.py +5 -0
  48. snaptrade_client/paths/accounts_account_id_positions_all/get.pyi +25 -0
  49. snaptrade_client/paths/accounts_account_id_quotes/get.py +5 -0
  50. snaptrade_client/paths/accounts_account_id_quotes/get.pyi +29 -0
  51. snaptrade_client/paths/accounts_account_id_recent_orders/get.py +5 -0
  52. snaptrade_client/paths/accounts_account_id_recent_orders/get.pyi +27 -0
  53. snaptrade_client/paths/accounts_account_id_recent_orders_v2/get.py +5 -0
  54. snaptrade_client/paths/accounts_account_id_recent_orders_v2/get.pyi +27 -0
  55. snaptrade_client/paths/accounts_account_id_symbols/post.py +5 -0
  56. snaptrade_client/paths/accounts_account_id_symbols/post.pyi +27 -0
  57. snaptrade_client/paths/accounts_account_id_trading_cancel/post.py +5 -0
  58. snaptrade_client/paths/accounts_account_id_trading_cancel/post.pyi +27 -0
  59. snaptrade_client/paths/accounts_account_id_trading_complex/post.py +5 -0
  60. snaptrade_client/paths/accounts_account_id_trading_complex/post.pyi +31 -0
  61. snaptrade_client/paths/accounts_account_id_trading_crypto/post.py +5 -0
  62. snaptrade_client/paths/accounts_account_id_trading_crypto/post.pyi +43 -0
  63. snaptrade_client/paths/accounts_account_id_trading_crypto_preview/post.py +5 -0
  64. snaptrade_client/paths/accounts_account_id_trading_crypto_preview/post.pyi +43 -0
  65. snaptrade_client/paths/accounts_account_id_trading_instruments_cryptocurrency_pairs/get.py +5 -0
  66. snaptrade_client/paths/accounts_account_id_trading_instruments_cryptocurrency_pairs/get.pyi +29 -0
  67. snaptrade_client/paths/accounts_account_id_trading_instruments_cryptocurrency_pairs_instrument_symbol_quote/get.py +5 -0
  68. snaptrade_client/paths/accounts_account_id_trading_instruments_cryptocurrency_pairs_instrument_symbol_quote/get.pyi +27 -0
  69. snaptrade_client/paths/accounts_account_id_trading_options/post.py +5 -0
  70. snaptrade_client/paths/accounts_account_id_trading_options/post.pyi +37 -0
  71. snaptrade_client/paths/accounts_account_id_trading_options_impact/post.py +5 -0
  72. snaptrade_client/paths/accounts_account_id_trading_options_impact/post.pyi +37 -0
  73. snaptrade_client/paths/accounts_account_id_trading_replace/post.py +5 -0
  74. snaptrade_client/paths/accounts_account_id_trading_replace/post.pyi +41 -0
  75. snaptrade_client/paths/accounts_account_id_trading_simple/post.py +5 -0
  76. snaptrade_client/paths/accounts_account_id_trading_simple/post.pyi +45 -0
  77. snaptrade_client/paths/accounts_all/get.py +7 -2
  78. snaptrade_client/paths/accounts_all/get.pyi +21 -0
  79. snaptrade_client/paths/authorizations/get.py +5 -0
  80. snaptrade_client/paths/authorizations/get.pyi +21 -0
  81. snaptrade_client/paths/authorizations_authorization_id/get.py +5 -0
  82. snaptrade_client/paths/authorizations_authorization_id/get.pyi +25 -0
  83. snaptrade_client/paths/authorizations_authorization_id_accounts/get.py +5 -0
  84. snaptrade_client/paths/authorizations_authorization_id_accounts/get.pyi +25 -0
  85. snaptrade_client/paths/authorizations_authorization_id_disable/post.py +5 -0
  86. snaptrade_client/paths/authorizations_authorization_id_disable/post.pyi +25 -0
  87. snaptrade_client/paths/authorizations_authorization_id_refresh/post.py +5 -0
  88. snaptrade_client/paths/authorizations_authorization_id_refresh/post.pyi +25 -0
  89. snaptrade_client/paths/authorizations_authorization_id_transactions_sync/post.py +5 -0
  90. snaptrade_client/paths/authorizations_authorization_id_transactions_sync/post.pyi +25 -0
  91. snaptrade_client/paths/brokerages/get.py +5 -0
  92. snaptrade_client/paths/brokerages/get.pyi +13 -0
  93. snaptrade_client/paths/brokerages_slug_instruments/get.py +5 -0
  94. snaptrade_client/paths/brokerages_slug_instruments/get.pyi +17 -0
  95. snaptrade_client/paths/connections_connection_id_accounts/get.py +7 -2
  96. snaptrade_client/paths/connections_connection_id_accounts/get.pyi +25 -0
  97. snaptrade_client/paths/exchanges/get.py +5 -0
  98. snaptrade_client/paths/exchanges/get.pyi +13 -0
  99. snaptrade_client/paths/snap_trade_login/post.py +5 -0
  100. snaptrade_client/paths/snap_trade_login/post.pyi +39 -0
  101. snaptrade_client/paths/snap_trade_partners/get.py +5 -0
  102. snaptrade_client/paths/snap_trade_partners/get.pyi +13 -0
  103. snaptrade_client/paths/symbols/post.py +5 -0
  104. snaptrade_client/paths/symbols/post.pyi +15 -0
  105. snaptrade_client/paths/symbols_query/get.py +5 -0
  106. snaptrade_client/paths/symbols_query/get.pyi +17 -0
  107. snaptrade_client/paths/trade_impact/post.py +5 -0
  108. snaptrade_client/paths/trade_impact/post.pyi +39 -0
  109. snaptrade_client/paths/trade_place/post.py +5 -0
  110. snaptrade_client/paths/trade_place/post.pyi +47 -0
  111. snaptrade_client/paths/trade_trade_id/post.py +5 -0
  112. snaptrade_client/paths/trade_trade_id/post.pyi +27 -0
  113. snaptrade_client/request_after_hook.py +2 -1
  114. snaptrade_client/type/account.py +2 -2
  115. snaptrade_client/type/connection_account.py +2 -1
  116. snaptrade_client/type/mortgage_account.py +59 -0
  117. snaptrade_client/type/mortgage_account_net_value.py +28 -0
  118. snaptrade_client/type/mortgage_account_sync_status.py +30 -0
  119. {snaptrade_python_sdk-13.1.4.dist-info → snaptrade_python_sdk-13.2.0.dist-info}/METADATA +673 -15
  120. {snaptrade_python_sdk-13.1.4.dist-info → snaptrade_python_sdk-13.2.0.dist-info}/RECORD +122 -112
  121. {snaptrade_python_sdk-13.1.4.dist-info → snaptrade_python_sdk-13.2.0.dist-info}/LICENSE +0 -0
  122. {snaptrade_python_sdk-13.1.4.dist-info → snaptrade_python_sdk-13.2.0.dist-info}/WHEEL +0 -0
@@ -12,14 +12,15 @@
12
12
  Created by: https://snaptrade.com/
13
13
  """
14
14
 
15
- __version__ = "13.1.4"
15
+ __version__ = "13.2.0"
16
16
 
17
17
  # import ApiClient
18
18
  from snaptrade_client.api_client import ApiClient
19
19
 
20
20
  # import Configuration
21
21
  from snaptrade_client.configuration import Configuration
22
- from snaptrade_client.auth import SnapTradeAuth, AuthMode, CommercialApiKeyAuth, PersonalApiKeyAuth
22
+ from snaptrade_client.auth import SnapTradeAuth, AuthMode, CommercialApiKeyAuth, PersonalApiKeyAuth, OAuthAuth
23
+ from snaptrade_client.oauth_device import SnapTradeOAuthDevice, SnapTradeDeviceAuthorization, SnapTradeDeviceTokens, SnapTradeOAuthDeviceError
23
24
 
24
25
  # import exceptions
25
26
  from snaptrade_client.exceptions import OpenApiException
@@ -1175,7 +1175,7 @@ class ApiClient(typing.Generic[TAuth]):
1175
1175
  self.default_headers[header_name] = header_value
1176
1176
  self.cookie = cookie
1177
1177
  # Set default User-Agent.
1178
- self.user_agent = 'Konfig/13.1.4/python'
1178
+ self.user_agent = 'Konfig/13.2.0/python'
1179
1179
 
1180
1180
  def __enter__(self):
1181
1181
  return self
snaptrade_client/auth.py CHANGED
@@ -28,6 +28,10 @@ class PersonalApiKeyAuth(AuthMode):
28
28
  pass
29
29
 
30
30
 
31
+ class OAuthAuth(AuthMode):
32
+ pass
33
+
34
+
31
35
  class SnapTradeAuth:
32
36
  def __init__(self):
33
37
  raise RuntimeError("SnapTradeAuth should not be instantiated")
@@ -48,3 +52,12 @@ class SnapTradeAuth:
48
52
  client_id=client_id
49
53
  )
50
54
 
55
+ @staticmethod
56
+ def oauth(access_token: typing.Optional[str] = None) -> OAuthAuth:
57
+ if not isinstance(access_token, str) or not access_token.strip():
58
+ raise ValueError("access_token must be a nonempty string.")
59
+ return OAuthAuth(
60
+ "oauth",
61
+ access_token=access_token
62
+ )
63
+
@@ -38,6 +38,7 @@ class SnapTrade(ClientCustom, typing.Generic[TAuth]):
38
38
  auth: typing.Optional[TAuth],
39
39
  consumer_key: None = None,
40
40
  client_id: None = None,
41
+ access_token: None = None,
41
42
  **kwargs,
42
43
  ):
43
44
  """Create a client.
@@ -45,11 +46,14 @@ class SnapTrade(ClientCustom, typing.Generic[TAuth]):
45
46
  Authentication credentials must be provided through ``auth``.
46
47
  :param consumer_key: Unsupported. Pass this credential through ``auth``.
47
48
  :param client_id: Unsupported. Pass this credential through ``auth``.
49
+ :param access_token: Unsupported. Pass this credential through ``auth``.
48
50
  """
49
51
  if consumer_key is not None:
50
52
  raise TypeError("consumer_key must be passed through 'auth'")
51
53
  if client_id is not None:
52
54
  raise TypeError("client_id must be passed through 'auth'")
55
+ if access_token is not None:
56
+ raise TypeError("access_token must be passed through 'auth'")
53
57
  if len(kwargs) > 0 or configuration is None:
54
58
  configuration = Configuration(auth=auth, **kwargs)
55
59
  super().__init__(configuration)
@@ -13,6 +13,7 @@ import typing
13
13
  from snaptrade_client.auth import AuthMode
14
14
  from snaptrade_client.auth import CommercialApiKeyAuth
15
15
  from snaptrade_client.auth import PersonalApiKeyAuth
16
+ from snaptrade_client.auth import OAuthAuth
16
17
  from snaptrade_client.configuration import Configuration
17
18
  from snaptrade_client.apis.tags.account_information_api import AccountInformationApi
18
19
  from snaptrade_client.apis.tags.api_status_api import APIStatusApi
@@ -36,6 +37,7 @@ class SnapTrade(ClientCustom, typing.Generic[TAuth]):
36
37
  auth: CommercialApiKeyAuth,
37
38
  consumer_key: None = None,
38
39
  client_id: None = None,
40
+ access_token: None = None,
39
41
  **kwargs: typing.Any,
40
42
  ) -> None: ...
41
43
  @typing.overload
@@ -46,6 +48,18 @@ class SnapTrade(ClientCustom, typing.Generic[TAuth]):
46
48
  auth: PersonalApiKeyAuth,
47
49
  consumer_key: None = None,
48
50
  client_id: None = None,
51
+ access_token: None = None,
52
+ **kwargs: typing.Any,
53
+ ) -> None: ...
54
+ @typing.overload
55
+ def __init__(
56
+ self: "SnapTrade[OAuthAuth]",
57
+ configuration: None = None,
58
+ *,
59
+ auth: OAuthAuth,
60
+ consumer_key: None = None,
61
+ client_id: None = None,
62
+ access_token: None = None,
49
63
  **kwargs: typing.Any,
50
64
  ) -> None: ...
51
65
  @typing.overload
@@ -56,6 +70,7 @@ class SnapTrade(ClientCustom, typing.Generic[TAuth]):
56
70
  auth: None,
57
71
  consumer_key: None = None,
58
72
  client_id: None = None,
73
+ access_token: None = None,
59
74
  **kwargs: typing.Any,
60
75
  ) -> None: ...
61
76
  def __init__(
@@ -65,6 +80,7 @@ class SnapTrade(ClientCustom, typing.Generic[TAuth]):
65
80
  auth: typing.Optional[TAuth],
66
81
  consumer_key: None = None,
67
82
  client_id: None = None,
83
+ access_token: None = None,
68
84
  **kwargs: typing.Any,
69
85
  ) -> None:
70
86
  ...
@@ -114,6 +114,7 @@ conf = snaptrade_client.Configuration(
114
114
  def __init__(self, host=None,
115
115
  auth: typing.Optional[TAuth] = None,
116
116
  api_key=None, api_key_prefix=None,
117
+ access_token=None,
117
118
  username=None, password=None,
118
119
  discard_unknown_keys=False,
119
120
  client_id=None,
@@ -154,6 +155,9 @@ conf = snaptrade_client.Configuration(
154
155
  client_id = getattr(auth, "client_id")
155
156
  if getattr(auth, "consumer_key", None) is not None:
156
157
  self.consumer_key = getattr(auth, "consumer_key")
158
+ if self.auth_mode == "oauth":
159
+ if getattr(auth, "access_token", None) is not None:
160
+ access_token = getattr(auth, "access_token")
157
161
  self.server_variables = server_variables or {}
158
162
  self.server_operation_variables = server_operation_variables or {}
159
163
  """Default server variables
@@ -192,6 +196,9 @@ conf = snaptrade_client.Configuration(
192
196
  self.refresh_api_key_hook = None
193
197
  """function hook to refresh API key if expired
194
198
  """
199
+ self.access_token = access_token
200
+ """Token for HTTP Basic Bearer Authentication
201
+ """
195
202
  self.username = username
196
203
  """Username for HTTP basic authentication
197
204
  """
@@ -426,6 +433,13 @@ conf = snaptrade_client.Configuration(
426
433
  :return: The Auth Settings information dict.
427
434
  """
428
435
  auth = {}
436
+ if self.access_token is not None:
437
+ auth['OAuthBearer'] = {
438
+ 'type': 'bearer',
439
+ 'in': 'header',
440
+ 'key': 'Authorization',
441
+ 'value': 'Bearer ' + self.access_token
442
+ }
429
443
  if 'PartnerClientId' in self.api_key:
430
444
  auth['PartnerClientId'] = {
431
445
  'type': 'api_key',
@@ -508,7 +522,11 @@ conf = snaptrade_client.Configuration(
508
522
  return fallback_auth_settings
509
523
  if self.auth_mode is None:
510
524
  return fallback_auth_settings
511
- return auth_modes.get(self.auth_mode, [])
525
+ if self.auth_mode not in auth_modes:
526
+ raise ClientConfigurationError(
527
+ "This operation does not support the selected auth mode: %s" % self.auth_mode
528
+ )
529
+ return auth_modes[self.auth_mode]
512
530
 
513
531
  def to_debug_report(self):
514
532
  """Gets the essential information for debugging.
@@ -519,7 +537,7 @@ conf = snaptrade_client.Configuration(
519
537
  "OS: {env}\n"\
520
538
  "Python Version: {pyversion}\n"\
521
539
  "Version of the API: 1.0.0\n"\
522
- "SDK Package Version: 13.1.4".\
540
+ "SDK Package Version: 13.2.0".\
523
541
  format(env=sys.platform, pyversion=sys.version)
524
542
 
525
543
  def get_host_settings(self):
@@ -271,6 +271,7 @@ class Account(
271
271
  "DEPOSIT": "DEPOSIT",
272
272
  "LOC": "LOC",
273
273
  "ANNUITY": "ANNUITY",
274
+ "MORTGAGE": "MORTGAGE",
274
275
  }
275
276
 
276
277
  @schemas.classproperty
@@ -288,6 +289,10 @@ class Account(
288
289
  @schemas.classproperty
289
290
  def ANNUITY(cls):
290
291
  return cls("ANNUITY")
292
+
293
+ @schemas.classproperty
294
+ def MORTGAGE(cls):
295
+ return cls("MORTGAGE")
291
296
 
292
297
 
293
298
  def __new__(
@@ -271,6 +271,7 @@ class Account(
271
271
  "DEPOSIT": "DEPOSIT",
272
272
  "LOC": "LOC",
273
273
  "ANNUITY": "ANNUITY",
274
+ "MORTGAGE": "MORTGAGE",
274
275
  }
275
276
 
276
277
  @schemas.classproperty
@@ -288,6 +289,10 @@ class Account(
288
289
  @schemas.classproperty
289
290
  def ANNUITY(cls):
290
291
  return cls("ANNUITY")
292
+
293
+ @schemas.classproperty
294
+ def MORTGAGE(cls):
295
+ return cls("MORTGAGE")
291
296
 
292
297
 
293
298
  def __new__(
@@ -30,10 +30,9 @@ class AnnuityAccount(
30
30
  """
31
31
  This class is auto generated by Konfig (https://konfigthis.com)
32
32
 
33
- An annuity contract account under a connection. Akoya accounts returned in the
34
- `annuityAccount` category use this kind; investment accounts holding annuity
35
- products remain `investment` accounts. `net_value` is the contract's
36
- surrender/cash value (`netPresentValue` from Akoya), not available cash.
33
+ An annuity contract account under a connection. Investment accounts holding
34
+ annuity products remain `investment` accounts. `net_value` is the
35
+ contract's surrender/cash value, not available cash.
37
36
  It is real-time or cached depending on the caller's plan, and always cached
38
37
  on `AccountInformation_listAllUserAccounts`.
39
38
 
@@ -30,10 +30,9 @@ class AnnuityAccount(
30
30
  """
31
31
  This class is auto generated by Konfig (https://konfigthis.com)
32
32
 
33
- An annuity contract account under a connection. Akoya accounts returned in the
34
- `annuityAccount` category use this kind; investment accounts holding annuity
35
- products remain `investment` accounts. `net_value` is the contract's
36
- surrender/cash value (`netPresentValue` from Akoya), not available cash.
33
+ An annuity contract account under a connection. Investment accounts holding
34
+ annuity products remain `investment` accounts. `net_value` is the
35
+ contract's surrender/cash value, not available cash.
37
36
  It is real-time or cached depending on the caller's plan, and always cached
38
37
  on `AccountInformation_listAllUserAccounts`.
39
38
 
@@ -30,8 +30,8 @@ class AnnuityAccountSyncStatus(
30
30
  """
31
31
  This class is auto generated by Konfig (https://konfigthis.com)
32
32
 
33
- Contains sync status for an annuity contract's value. Akoya annuity accounts
34
- do not expose transactions, orders, or positions, so those fields are omitted.
33
+ Contains sync status for an annuity contract's value.
34
+ Transactions, orders, and positions are omitted.
35
35
  `balances` is derived from the last successful holdings sync and is null if
36
36
  never synced. It tracks the contract value, not available cash.
37
37
 
@@ -30,8 +30,8 @@ class AnnuityAccountSyncStatus(
30
30
  """
31
31
  This class is auto generated by Konfig (https://konfigthis.com)
32
32
 
33
- Contains sync status for an annuity contract's value. Akoya annuity accounts
34
- do not expose transactions, orders, or positions, so those fields are omitted.
33
+ Contains sync status for an annuity contract's value.
34
+ Transactions, orders, and positions are omitted.
35
35
  `balances` is derived from the last successful holdings sync and is null if
36
36
  never synced. It tracks the contract value, not available cash.
37
37
 
@@ -35,7 +35,7 @@ used by `Connections_listConnectionAccounts` and
35
35
  `AccountInformation_listAllUserAccounts`. Use `kind` to determine
36
36
  which schema is present.
37
37
 
38
- `investment`, `deposit`, `line_of_credit`, and `annuity` are implemented today.
38
+ `investment`, `deposit`, `line_of_credit`, `annuity`, and `mortgage` are implemented today.
39
39
 
40
40
  """
41
41
 
@@ -50,10 +50,12 @@ which schema is present.
50
50
  'DepositAccount': DepositAccount,
51
51
  'InvestmentAccount': InvestmentAccount,
52
52
  'LineOfCreditAccount': LineOfCreditAccount,
53
+ 'MortgageAccount': MortgageAccount,
53
54
  'annuity': AnnuityAccount,
54
55
  'deposit': DepositAccount,
55
56
  'investment': InvestmentAccount,
56
57
  'line_of_credit': LineOfCreditAccount,
58
+ 'mortgage': MortgageAccount,
57
59
  }
58
60
  }
59
61
 
@@ -72,6 +74,7 @@ which schema is present.
72
74
  DepositAccount,
73
75
  LineOfCreditAccount,
74
76
  AnnuityAccount,
77
+ MortgageAccount,
75
78
  ]
76
79
 
77
80
 
@@ -92,3 +95,4 @@ from snaptrade_client.model.annuity_account import AnnuityAccount
92
95
  from snaptrade_client.model.deposit_account import DepositAccount
93
96
  from snaptrade_client.model.investment_account import InvestmentAccount
94
97
  from snaptrade_client.model.line_of_credit_account import LineOfCreditAccount
98
+ from snaptrade_client.model.mortgage_account import MortgageAccount
@@ -35,7 +35,7 @@ used by `Connections_listConnectionAccounts` and
35
35
  `AccountInformation_listAllUserAccounts`. Use `kind` to determine
36
36
  which schema is present.
37
37
 
38
- `investment`, `deposit`, `line_of_credit`, and `annuity` are implemented today.
38
+ `investment`, `deposit`, `line_of_credit`, `annuity`, and `mortgage` are implemented today.
39
39
 
40
40
  """
41
41
 
@@ -50,10 +50,12 @@ which schema is present.
50
50
  'DepositAccount': DepositAccount,
51
51
  'InvestmentAccount': InvestmentAccount,
52
52
  'LineOfCreditAccount': LineOfCreditAccount,
53
+ 'MortgageAccount': MortgageAccount,
53
54
  'annuity': AnnuityAccount,
54
55
  'deposit': DepositAccount,
55
56
  'investment': InvestmentAccount,
56
57
  'line_of_credit': LineOfCreditAccount,
58
+ 'mortgage': MortgageAccount,
57
59
  }
58
60
  }
59
61
 
@@ -72,6 +74,7 @@ which schema is present.
72
74
  DepositAccount,
73
75
  LineOfCreditAccount,
74
76
  AnnuityAccount,
77
+ MortgageAccount,
75
78
  ]
76
79
 
77
80
 
@@ -92,3 +95,4 @@ from snaptrade_client.model.annuity_account import AnnuityAccount
92
95
  from snaptrade_client.model.deposit_account import DepositAccount
93
96
  from snaptrade_client.model.investment_account import InvestmentAccount
94
97
  from snaptrade_client.model.line_of_credit_account import LineOfCreditAccount
98
+ from snaptrade_client.model.mortgage_account import MortgageAccount