snaptrade-python-sdk 11.0.138__py3-none-any.whl → 11.0.140__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.
@@ -12,7 +12,7 @@
12
12
  Created by: https://snaptrade.com/
13
13
  """
14
14
 
15
- __version__ = "11.0.138"
15
+ __version__ = "11.0.140"
16
16
 
17
17
  # import ApiClient
18
18
  from snaptrade_client.api_client import ApiClient
@@ -1155,7 +1155,7 @@ class ApiClient:
1155
1155
  self.default_headers[header_name] = header_value
1156
1156
  self.cookie = cookie
1157
1157
  # Set default User-Agent.
1158
- self.user_agent = 'Konfig/11.0.138/python'
1158
+ self.user_agent = 'Konfig/11.0.140/python'
1159
1159
 
1160
1160
  def __enter__(self):
1161
1161
  return self
@@ -438,7 +438,7 @@ conf = snaptrade_client.Configuration(
438
438
  "OS: {env}\n"\
439
439
  "Python Version: {pyversion}\n"\
440
440
  "Version of the API: 1.0.0\n"\
441
- "SDK Package Version: 11.0.138".\
441
+ "SDK Package Version: 11.0.140".\
442
442
  format(env=sys.platform, pyversion=sys.version)
443
443
 
444
444
  def get_host_settings(self):
@@ -67,6 +67,7 @@ class SnapTradeLoginUserRequestBody(
67
67
  @schemas.classproperty
68
68
  def TRADEIFAVAILABLE(cls):
69
69
  return cls("trade-if-available")
70
+ showCloseButton = schemas.BoolSchema
70
71
 
71
72
 
72
73
  class connectionPortalVersion(
@@ -99,6 +100,7 @@ class SnapTradeLoginUserRequestBody(
99
100
  "customRedirect": customRedirect,
100
101
  "reconnect": reconnect,
101
102
  "connectionType": connectionType,
103
+ "showCloseButton": showCloseButton,
102
104
  "connectionPortalVersion": connectionPortalVersion,
103
105
  }
104
106
 
@@ -117,13 +119,16 @@ class SnapTradeLoginUserRequestBody(
117
119
  @typing.overload
118
120
  def __getitem__(self, name: typing_extensions.Literal["connectionType"]) -> MetaOapg.properties.connectionType: ...
119
121
 
122
+ @typing.overload
123
+ def __getitem__(self, name: typing_extensions.Literal["showCloseButton"]) -> MetaOapg.properties.showCloseButton: ...
124
+
120
125
  @typing.overload
121
126
  def __getitem__(self, name: typing_extensions.Literal["connectionPortalVersion"]) -> MetaOapg.properties.connectionPortalVersion: ...
122
127
 
123
128
  @typing.overload
124
129
  def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
125
130
 
126
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["broker", "immediateRedirect", "customRedirect", "reconnect", "connectionType", "connectionPortalVersion", ], str]):
131
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["broker", "immediateRedirect", "customRedirect", "reconnect", "connectionType", "showCloseButton", "connectionPortalVersion", ], str]):
127
132
  # dict_instance[name] accessor
128
133
  return super().__getitem__(name)
129
134
 
@@ -143,13 +148,16 @@ class SnapTradeLoginUserRequestBody(
143
148
  @typing.overload
144
149
  def get_item_oapg(self, name: typing_extensions.Literal["connectionType"]) -> typing.Union[MetaOapg.properties.connectionType, schemas.Unset]: ...
145
150
 
151
+ @typing.overload
152
+ def get_item_oapg(self, name: typing_extensions.Literal["showCloseButton"]) -> typing.Union[MetaOapg.properties.showCloseButton, schemas.Unset]: ...
153
+
146
154
  @typing.overload
147
155
  def get_item_oapg(self, name: typing_extensions.Literal["connectionPortalVersion"]) -> typing.Union[MetaOapg.properties.connectionPortalVersion, schemas.Unset]: ...
148
156
 
149
157
  @typing.overload
150
158
  def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
151
159
 
152
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["broker", "immediateRedirect", "customRedirect", "reconnect", "connectionType", "connectionPortalVersion", ], str]):
160
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["broker", "immediateRedirect", "customRedirect", "reconnect", "connectionType", "showCloseButton", "connectionPortalVersion", ], str]):
153
161
  return super().get_item_oapg(name)
154
162
 
155
163
 
@@ -161,6 +169,7 @@ class SnapTradeLoginUserRequestBody(
161
169
  customRedirect: typing.Union[MetaOapg.properties.customRedirect, str, schemas.Unset] = schemas.unset,
162
170
  reconnect: typing.Union[MetaOapg.properties.reconnect, str, schemas.Unset] = schemas.unset,
163
171
  connectionType: typing.Union[MetaOapg.properties.connectionType, str, schemas.Unset] = schemas.unset,
172
+ showCloseButton: typing.Union[MetaOapg.properties.showCloseButton, bool, schemas.Unset] = schemas.unset,
164
173
  connectionPortalVersion: typing.Union[MetaOapg.properties.connectionPortalVersion, str, schemas.Unset] = schemas.unset,
165
174
  _configuration: typing.Optional[schemas.Configuration] = None,
166
175
  **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
@@ -173,6 +182,7 @@ class SnapTradeLoginUserRequestBody(
173
182
  customRedirect=customRedirect,
174
183
  reconnect=reconnect,
175
184
  connectionType=connectionType,
185
+ showCloseButton=showCloseButton,
176
186
  connectionPortalVersion=connectionPortalVersion,
177
187
  _configuration=_configuration,
178
188
  **kwargs,
@@ -59,6 +59,7 @@ class SnapTradeLoginUserRequestBody(
59
59
  @schemas.classproperty
60
60
  def TRADEIFAVAILABLE(cls):
61
61
  return cls("trade-if-available")
62
+ showCloseButton = schemas.BoolSchema
62
63
 
63
64
 
64
65
  class connectionPortalVersion(
@@ -83,6 +84,7 @@ class SnapTradeLoginUserRequestBody(
83
84
  "customRedirect": customRedirect,
84
85
  "reconnect": reconnect,
85
86
  "connectionType": connectionType,
87
+ "showCloseButton": showCloseButton,
86
88
  "connectionPortalVersion": connectionPortalVersion,
87
89
  }
88
90
 
@@ -101,13 +103,16 @@ class SnapTradeLoginUserRequestBody(
101
103
  @typing.overload
102
104
  def __getitem__(self, name: typing_extensions.Literal["connectionType"]) -> MetaOapg.properties.connectionType: ...
103
105
 
106
+ @typing.overload
107
+ def __getitem__(self, name: typing_extensions.Literal["showCloseButton"]) -> MetaOapg.properties.showCloseButton: ...
108
+
104
109
  @typing.overload
105
110
  def __getitem__(self, name: typing_extensions.Literal["connectionPortalVersion"]) -> MetaOapg.properties.connectionPortalVersion: ...
106
111
 
107
112
  @typing.overload
108
113
  def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
109
114
 
110
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["broker", "immediateRedirect", "customRedirect", "reconnect", "connectionType", "connectionPortalVersion", ], str]):
115
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["broker", "immediateRedirect", "customRedirect", "reconnect", "connectionType", "showCloseButton", "connectionPortalVersion", ], str]):
111
116
  # dict_instance[name] accessor
112
117
  return super().__getitem__(name)
113
118
 
@@ -127,13 +132,16 @@ class SnapTradeLoginUserRequestBody(
127
132
  @typing.overload
128
133
  def get_item_oapg(self, name: typing_extensions.Literal["connectionType"]) -> typing.Union[MetaOapg.properties.connectionType, schemas.Unset]: ...
129
134
 
135
+ @typing.overload
136
+ def get_item_oapg(self, name: typing_extensions.Literal["showCloseButton"]) -> typing.Union[MetaOapg.properties.showCloseButton, schemas.Unset]: ...
137
+
130
138
  @typing.overload
131
139
  def get_item_oapg(self, name: typing_extensions.Literal["connectionPortalVersion"]) -> typing.Union[MetaOapg.properties.connectionPortalVersion, schemas.Unset]: ...
132
140
 
133
141
  @typing.overload
134
142
  def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
135
143
 
136
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["broker", "immediateRedirect", "customRedirect", "reconnect", "connectionType", "connectionPortalVersion", ], str]):
144
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["broker", "immediateRedirect", "customRedirect", "reconnect", "connectionType", "showCloseButton", "connectionPortalVersion", ], str]):
137
145
  return super().get_item_oapg(name)
138
146
 
139
147
 
@@ -145,6 +153,7 @@ class SnapTradeLoginUserRequestBody(
145
153
  customRedirect: typing.Union[MetaOapg.properties.customRedirect, str, schemas.Unset] = schemas.unset,
146
154
  reconnect: typing.Union[MetaOapg.properties.reconnect, str, schemas.Unset] = schemas.unset,
147
155
  connectionType: typing.Union[MetaOapg.properties.connectionType, str, schemas.Unset] = schemas.unset,
156
+ showCloseButton: typing.Union[MetaOapg.properties.showCloseButton, bool, schemas.Unset] = schemas.unset,
148
157
  connectionPortalVersion: typing.Union[MetaOapg.properties.connectionPortalVersion, str, schemas.Unset] = schemas.unset,
149
158
  _configuration: typing.Optional[schemas.Configuration] = None,
150
159
  **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
@@ -157,6 +166,7 @@ class SnapTradeLoginUserRequestBody(
157
166
  customRedirect=customRedirect,
158
167
  reconnect=reconnect,
159
168
  connectionType=connectionType,
169
+ showCloseButton=showCloseButton,
160
170
  connectionPortalVersion=connectionPortalVersion,
161
171
  _configuration=_configuration,
162
172
  **kwargs,
@@ -217,6 +217,9 @@ operation_parameter_map = {
217
217
  {
218
218
  'name': 'connectionType'
219
219
  },
220
+ {
221
+ 'name': 'showCloseButton'
222
+ },
220
223
  {
221
224
  'name': 'connectionPortalVersion'
222
225
  },
@@ -513,7 +513,7 @@ class GetUserHoldings(BaseApi):
513
513
  ApiResponseFor200,
514
514
  api_client.ApiResponseWithoutDeserialization,
515
515
  ]:
516
- """ Returns a list of balances, positions, and recent orders for the specified account. The data returned is similar to the data returned over the more fine-grained [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getUserAccountPositions) and [orders](/reference/Account%20Information/AccountInformation_getUserAccountOrders) endpoints. __The finer-grained APIs are preferred. They are easier to work with, faster, and have better error handling than this coarse-grained API.__ The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**. """
516
+ """ Returns a list of balances, positions, and recent orders for the specified account. The data returned is similar to the data returned over the more fine-grained [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getUserAccountPositions) and [orders](/reference/Account%20Information/AccountInformation_getUserAccountOrders) endpoints. __The finer-grained APIs are preferred. They are easier to work with, faster, and have better error handling than this coarse-grained API.__ The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**. If the connection has become disabled, it can no longer access the latest data from the brokerage, 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. """
517
517
  args = self._get_user_holdings_mapped_args(
518
518
  query_params=query_params,
519
519
  path_params=path_params,
@@ -566,7 +566,7 @@ class ApiForget(BaseApi):
566
566
  ApiResponseFor200,
567
567
  api_client.ApiResponseWithoutDeserialization,
568
568
  ]:
569
- """ Returns a list of balances, positions, and recent orders for the specified account. The data returned is similar to the data returned over the more fine-grained [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getUserAccountPositions) and [orders](/reference/Account%20Information/AccountInformation_getUserAccountOrders) endpoints. __The finer-grained APIs are preferred. They are easier to work with, faster, and have better error handling than this coarse-grained API.__ The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**. """
569
+ """ Returns a list of balances, positions, and recent orders for the specified account. The data returned is similar to the data returned over the more fine-grained [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getUserAccountPositions) and [orders](/reference/Account%20Information/AccountInformation_getUserAccountOrders) endpoints. __The finer-grained APIs are preferred. They are easier to work with, faster, and have better error handling than this coarse-grained API.__ The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**. If the connection has become disabled, it can no longer access the latest data from the brokerage, 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. """
570
570
  args = self._get_user_holdings_mapped_args(
571
571
  query_params=query_params,
572
572
  path_params=path_params,
@@ -499,7 +499,7 @@ class GetUserHoldings(BaseApi):
499
499
  ApiResponseFor200,
500
500
  api_client.ApiResponseWithoutDeserialization,
501
501
  ]:
502
- """ Returns a list of balances, positions, and recent orders for the specified account. The data returned is similar to the data returned over the more fine-grained [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getUserAccountPositions) and [orders](/reference/Account%20Information/AccountInformation_getUserAccountOrders) endpoints. __The finer-grained APIs are preferred. They are easier to work with, faster, and have better error handling than this coarse-grained API.__ The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**. """
502
+ """ Returns a list of balances, positions, and recent orders for the specified account. The data returned is similar to the data returned over the more fine-grained [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getUserAccountPositions) and [orders](/reference/Account%20Information/AccountInformation_getUserAccountOrders) endpoints. __The finer-grained APIs are preferred. They are easier to work with, faster, and have better error handling than this coarse-grained API.__ The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**. If the connection has become disabled, it can no longer access the latest data from the brokerage, 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. """
503
503
  args = self._get_user_holdings_mapped_args(
504
504
  query_params=query_params,
505
505
  path_params=path_params,
@@ -552,7 +552,7 @@ class ApiForget(BaseApi):
552
552
  ApiResponseFor200,
553
553
  api_client.ApiResponseWithoutDeserialization,
554
554
  ]:
555
- """ Returns a list of balances, positions, and recent orders for the specified account. The data returned is similar to the data returned over the more fine-grained [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getUserAccountPositions) and [orders](/reference/Account%20Information/AccountInformation_getUserAccountOrders) endpoints. __The finer-grained APIs are preferred. They are easier to work with, faster, and have better error handling than this coarse-grained API.__ The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**. """
555
+ """ Returns a list of balances, positions, and recent orders for the specified account. The data returned is similar to the data returned over the more fine-grained [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getUserAccountPositions) and [orders](/reference/Account%20Information/AccountInformation_getUserAccountOrders) endpoints. __The finer-grained APIs are preferred. They are easier to work with, faster, and have better error handling than this coarse-grained API.__ The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**. If the connection has become disabled, it can no longer access the latest data from the brokerage, 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. """
556
556
  args = self._get_user_holdings_mapped_args(
557
557
  query_params=query_params,
558
558
  path_params=path_params,
@@ -259,6 +259,7 @@ class BaseApi(api_client.Api):
259
259
  custom_redirect: typing.Optional[str] = None,
260
260
  reconnect: typing.Optional[str] = None,
261
261
  connection_type: typing.Optional[str] = None,
262
+ show_close_button: typing.Optional[bool] = None,
262
263
  connection_portal_version: typing.Optional[str] = None,
263
264
  query_params: typing.Optional[dict] = {},
264
265
  ) -> api_client.MappedArgs:
@@ -275,6 +276,8 @@ class BaseApi(api_client.Api):
275
276
  _body["reconnect"] = reconnect
276
277
  if connection_type is not None:
277
278
  _body["connectionType"] = connection_type
279
+ if show_close_button is not None:
280
+ _body["showCloseButton"] = show_close_button
278
281
  if connection_portal_version is not None:
279
282
  _body["connectionPortalVersion"] = connection_portal_version
280
283
  args.body = body if body is not None else _body
@@ -527,6 +530,7 @@ class LoginSnapTradeUser(BaseApi):
527
530
  custom_redirect: typing.Optional[str] = None,
528
531
  reconnect: typing.Optional[str] = None,
529
532
  connection_type: typing.Optional[str] = None,
533
+ show_close_button: typing.Optional[bool] = None,
530
534
  connection_portal_version: typing.Optional[str] = None,
531
535
  query_params: typing.Optional[dict] = {},
532
536
  **kwargs,
@@ -545,6 +549,7 @@ class LoginSnapTradeUser(BaseApi):
545
549
  custom_redirect=custom_redirect,
546
550
  reconnect=reconnect,
547
551
  connection_type=connection_type,
552
+ show_close_button=show_close_button,
548
553
  connection_portal_version=connection_portal_version,
549
554
  )
550
555
  return await self._alogin_snap_trade_user_oapg(
@@ -563,6 +568,7 @@ class LoginSnapTradeUser(BaseApi):
563
568
  custom_redirect: typing.Optional[str] = None,
564
569
  reconnect: typing.Optional[str] = None,
565
570
  connection_type: typing.Optional[str] = None,
571
+ show_close_button: typing.Optional[bool] = None,
566
572
  connection_portal_version: typing.Optional[str] = None,
567
573
  query_params: typing.Optional[dict] = {},
568
574
  ) -> typing.Union[
@@ -580,6 +586,7 @@ class LoginSnapTradeUser(BaseApi):
580
586
  custom_redirect=custom_redirect,
581
587
  reconnect=reconnect,
582
588
  connection_type=connection_type,
589
+ show_close_button=show_close_button,
583
590
  connection_portal_version=connection_portal_version,
584
591
  )
585
592
  return self._login_snap_trade_user_oapg(
@@ -600,6 +607,7 @@ class ApiForpost(BaseApi):
600
607
  custom_redirect: typing.Optional[str] = None,
601
608
  reconnect: typing.Optional[str] = None,
602
609
  connection_type: typing.Optional[str] = None,
610
+ show_close_button: typing.Optional[bool] = None,
603
611
  connection_portal_version: typing.Optional[str] = None,
604
612
  query_params: typing.Optional[dict] = {},
605
613
  **kwargs,
@@ -618,6 +626,7 @@ class ApiForpost(BaseApi):
618
626
  custom_redirect=custom_redirect,
619
627
  reconnect=reconnect,
620
628
  connection_type=connection_type,
629
+ show_close_button=show_close_button,
621
630
  connection_portal_version=connection_portal_version,
622
631
  )
623
632
  return await self._alogin_snap_trade_user_oapg(
@@ -636,6 +645,7 @@ class ApiForpost(BaseApi):
636
645
  custom_redirect: typing.Optional[str] = None,
637
646
  reconnect: typing.Optional[str] = None,
638
647
  connection_type: typing.Optional[str] = None,
648
+ show_close_button: typing.Optional[bool] = None,
639
649
  connection_portal_version: typing.Optional[str] = None,
640
650
  query_params: typing.Optional[dict] = {},
641
651
  ) -> typing.Union[
@@ -653,6 +663,7 @@ class ApiForpost(BaseApi):
653
663
  custom_redirect=custom_redirect,
654
664
  reconnect=reconnect,
655
665
  connection_type=connection_type,
666
+ show_close_button=show_close_button,
656
667
  connection_portal_version=connection_portal_version,
657
668
  )
658
669
  return self._login_snap_trade_user_oapg(
@@ -245,6 +245,7 @@ class BaseApi(api_client.Api):
245
245
  custom_redirect: typing.Optional[str] = None,
246
246
  reconnect: typing.Optional[str] = None,
247
247
  connection_type: typing.Optional[str] = None,
248
+ show_close_button: typing.Optional[bool] = None,
248
249
  connection_portal_version: typing.Optional[str] = None,
249
250
  query_params: typing.Optional[dict] = {},
250
251
  ) -> api_client.MappedArgs:
@@ -261,6 +262,8 @@ class BaseApi(api_client.Api):
261
262
  _body["reconnect"] = reconnect
262
263
  if connection_type is not None:
263
264
  _body["connectionType"] = connection_type
265
+ if show_close_button is not None:
266
+ _body["showCloseButton"] = show_close_button
264
267
  if connection_portal_version is not None:
265
268
  _body["connectionPortalVersion"] = connection_portal_version
266
269
  args.body = body if body is not None else _body
@@ -513,6 +516,7 @@ class LoginSnapTradeUser(BaseApi):
513
516
  custom_redirect: typing.Optional[str] = None,
514
517
  reconnect: typing.Optional[str] = None,
515
518
  connection_type: typing.Optional[str] = None,
519
+ show_close_button: typing.Optional[bool] = None,
516
520
  connection_portal_version: typing.Optional[str] = None,
517
521
  query_params: typing.Optional[dict] = {},
518
522
  **kwargs,
@@ -531,6 +535,7 @@ class LoginSnapTradeUser(BaseApi):
531
535
  custom_redirect=custom_redirect,
532
536
  reconnect=reconnect,
533
537
  connection_type=connection_type,
538
+ show_close_button=show_close_button,
534
539
  connection_portal_version=connection_portal_version,
535
540
  )
536
541
  return await self._alogin_snap_trade_user_oapg(
@@ -549,6 +554,7 @@ class LoginSnapTradeUser(BaseApi):
549
554
  custom_redirect: typing.Optional[str] = None,
550
555
  reconnect: typing.Optional[str] = None,
551
556
  connection_type: typing.Optional[str] = None,
557
+ show_close_button: typing.Optional[bool] = None,
552
558
  connection_portal_version: typing.Optional[str] = None,
553
559
  query_params: typing.Optional[dict] = {},
554
560
  ) -> typing.Union[
@@ -566,6 +572,7 @@ class LoginSnapTradeUser(BaseApi):
566
572
  custom_redirect=custom_redirect,
567
573
  reconnect=reconnect,
568
574
  connection_type=connection_type,
575
+ show_close_button=show_close_button,
569
576
  connection_portal_version=connection_portal_version,
570
577
  )
571
578
  return self._login_snap_trade_user_oapg(
@@ -586,6 +593,7 @@ class ApiForpost(BaseApi):
586
593
  custom_redirect: typing.Optional[str] = None,
587
594
  reconnect: typing.Optional[str] = None,
588
595
  connection_type: typing.Optional[str] = None,
596
+ show_close_button: typing.Optional[bool] = None,
589
597
  connection_portal_version: typing.Optional[str] = None,
590
598
  query_params: typing.Optional[dict] = {},
591
599
  **kwargs,
@@ -604,6 +612,7 @@ class ApiForpost(BaseApi):
604
612
  custom_redirect=custom_redirect,
605
613
  reconnect=reconnect,
606
614
  connection_type=connection_type,
615
+ show_close_button=show_close_button,
607
616
  connection_portal_version=connection_portal_version,
608
617
  )
609
618
  return await self._alogin_snap_trade_user_oapg(
@@ -622,6 +631,7 @@ class ApiForpost(BaseApi):
622
631
  custom_redirect: typing.Optional[str] = None,
623
632
  reconnect: typing.Optional[str] = None,
624
633
  connection_type: typing.Optional[str] = None,
634
+ show_close_button: typing.Optional[bool] = None,
625
635
  connection_portal_version: typing.Optional[str] = None,
626
636
  query_params: typing.Optional[dict] = {},
627
637
  ) -> typing.Union[
@@ -639,6 +649,7 @@ class ApiForpost(BaseApi):
639
649
  custom_redirect=custom_redirect,
640
650
  reconnect=reconnect,
641
651
  connection_type=connection_type,
652
+ show_close_button=show_close_button,
642
653
  connection_portal_version=connection_portal_version,
643
654
  )
644
655
  return self._login_snap_trade_user_oapg(
@@ -35,6 +35,9 @@ class OptionalSnapTradeLoginUserRequestBody(TypedDict, total=False):
35
35
  # Determines connection permissions (default: read) - `read`: Data access only. - `trade`: Data and trading access. - `trade-if-available`: Attempts to establish a trading connection if the brokerage supports it, otherwise falls back to read-only access automatically.
36
36
  connectionType: str
37
37
 
38
+ # Controls whether the close (X) button is displayed in the connection portal. When false, you control closing behavior from your app. Defaults to true.
39
+ showCloseButton: bool
40
+
38
41
  # Sets the connection portal version to render. Currently only v4 is supported and is the default. All other versions are deprecated and will automatically be set to v4.
39
42
  connectionPortalVersion: str
40
43
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: snaptrade-python-sdk
3
- Version: 11.0.138
3
+ Version: 11.0.140
4
4
  Summary: Client for SnapTrade
5
5
  License: MIT
6
6
  Author: SnapTrade
@@ -30,7 +30,7 @@ Description-Content-Type: text/markdown
30
30
  Connect brokerage accounts to your app for live positions and trading
31
31
 
32
32
 
33
- [![PyPI](https://img.shields.io/badge/PyPI-v11.0.138-blue)](https://pypi.org/project/snaptrade-python-sdk/11.0.138)
33
+ [![PyPI](https://img.shields.io/badge/PyPI-v11.0.140-blue)](https://pypi.org/project/snaptrade-python-sdk/11.0.140)
34
34
  [![README.md](https://img.shields.io/badge/README-Click%20Here-green)](https://github.com/passiv/snaptrade-sdks/tree/master/sdks/python#readme)
35
35
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
36
36
 
@@ -109,7 +109,7 @@ Python >=3.8
109
109
  ## Installation<a id="installation"></a>
110
110
 
111
111
  ```sh
112
- pip install snaptrade-python-sdk==11.0.138
112
+ pip install snaptrade-python-sdk==11.0.140
113
113
  ```
114
114
 
115
115
  ## Getting Started<a id="getting-started"></a>
@@ -627,6 +627,8 @@ Returns a list of balances, positions, and recent orders for the specified accou
627
627
 
628
628
  The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for "Cache Expiry Time" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
629
629
 
630
+ If the connection has become disabled, it can no longer access the latest data from the brokerage, 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.
631
+
630
632
 
631
633
  #### 🛠️ Usage<a id="🛠️-usage"></a>
632
634
 
@@ -818,6 +820,7 @@ login_snap_trade_user_response = snaptrade.authentication.login_snap_trade_user(
818
820
  custom_redirect="https://snaptrade.com",
819
821
  reconnect="8b5f262d-4bb9-365d-888a-202bd3b15fa1",
820
822
  connection_type="read",
823
+ show_close_button=True,
821
824
  connection_portal_version="v4",
822
825
  )
823
826
  ```
@@ -848,6 +851,10 @@ The UUID of the brokerage connection to be reconnected. This parameter should be
848
851
 
849
852
  Determines connection permissions (default: read) - `read`: Data access only. - `trade`: Data and trading access. - `trade-if-available`: Attempts to establish a trading connection if the brokerage supports it, otherwise falls back to read-only access automatically.
850
853
 
854
+ ##### show_close_button: `bool`<a id="show_close_button-bool"></a>
855
+
856
+ Controls whether the close (X) button is displayed in the connection portal. When false, you control closing behavior from your app. Defaults to true.
857
+
851
858
  ##### connection_portal_version: `str`<a id="connection_portal_version-str"></a>
852
859
 
853
860
  Sets the connection portal version to render. Currently only v4 is supported and is the default. All other versions are deprecated and will automatically be set to v4.
@@ -1,5 +1,5 @@
1
- snaptrade_client/__init__.py,sha256=VhnIbbVlM0SMhpk3ThjzZpdQqCOl5U8y8zRNyb3Mj_I,820
2
- snaptrade_client/api_client.py,sha256=bqP2RBdqB0cURrThEwxOo7K8rG_IAYrX2kUZ1YpH0lE,73975
1
+ snaptrade_client/__init__.py,sha256=LBXhxrT-dH72qkIJ0tKhVA2TJzXgBwHDSQkYwZjRnZs,820
2
+ snaptrade_client/api_client.py,sha256=ZmgwM_IDMiakY9U7l4JEdKXQYwhqrrZbQZN_JZeK1Y0,73975
3
3
  snaptrade_client/api_response.py,sha256=mZn18p_TNr6OY0HXTZW5InL9iXfqsJWstYGeGD-euPA,663
4
4
  snaptrade_client/apis/__init__.py,sha256=RTosXhMn41tMsKPUjIy-VK-_efOWzhkKiuGggJ3A6E0,214
5
5
  snaptrade_client/apis/path_to_api.py,sha256=4kldxcVXHcyd6XM8UFe7zlFSHj02tf9s3TFXDZwfEHY,12312
@@ -77,7 +77,7 @@ snaptrade_client/apis/tags/transactions_and_reporting_api_generated.py,sha256=Tw
77
77
  snaptrade_client/client.py,sha256=goDwWRv9909OPXDnGGYst_mr53bg6RUs4PwIvnrl_kE,2116
78
78
  snaptrade_client/client.pyi,sha256=goDwWRv9909OPXDnGGYst_mr53bg6RUs4PwIvnrl_kE,2116
79
79
  snaptrade_client/client_custom.py,sha256=Jx9ulCzelMFlESjzVFQSjBlYcH4dWxSJJWZDMPLyetM,745
80
- snaptrade_client/configuration.py,sha256=vso2g1QZP2fO4RzcoyRePZoE4V50VrxvLOeZYJeLin8,19262
80
+ snaptrade_client/configuration.py,sha256=njGgYyjTNiaTy3mS-PU3SiJIgFd_0su6nV1lyJcXIUM,19262
81
81
  snaptrade_client/exceptions.py,sha256=X0apI_sgQpGpa-qIqPUClReCdHAxeSuA6GW0YH_RsWg,7771
82
82
  snaptrade_client/exceptions_base.py,sha256=LAQkaC5C61-SdBLfyMjb0K7AYJkWVuLmg2uCvHa71FM,2274
83
83
  snaptrade_client/model/__init__.py,sha256=ayi2MIzcf0eAIsY13ToiNplV9tW-pMBFrC0I9yckGM8,350
@@ -353,8 +353,8 @@ snaptrade_client/model/snap_trade_holdings_account_meta.py,sha256=a7gTJqkuclua7L
353
353
  snaptrade_client/model/snap_trade_holdings_account_meta.pyi,sha256=a7gTJqkuclua7LrqJsRo7QtvFwszTuh7QQyc-Ny2NfM,1668
354
354
  snaptrade_client/model/snap_trade_holdings_total_value.py,sha256=bQ1KVz-yWVs9Z4jdrmX_z2c7CJLcO6Y9zL4RO4BDn-I,4972
355
355
  snaptrade_client/model/snap_trade_holdings_total_value.pyi,sha256=bQ1KVz-yWVs9Z4jdrmX_z2c7CJLcO6Y9zL4RO4BDn-I,4972
356
- snaptrade_client/model/snap_trade_login_user_request_body.py,sha256=LXOjeObRXtRaLNyFynqAz9DF0TWwTnL8HQpTF-UBgPc,7030
357
- snaptrade_client/model/snap_trade_login_user_request_body.pyi,sha256=uYgBn6nSzbt-AOs2j5v-ZMivfoxkEVMs5b50bCABV-4,6528
356
+ snaptrade_client/model/snap_trade_login_user_request_body.py,sha256=HbvyeTQrh2YP0wPYna_PwtK92ILnLVUOCBl7F1-1EZw,7654
357
+ snaptrade_client/model/snap_trade_login_user_request_body.pyi,sha256=jBHTwwfJqU8DoThDpsv5roQyaO3a3AyrOQmdkk2RIlU,7152
358
358
  snaptrade_client/model/snap_trade_register_user_request_body.py,sha256=dE4FNlnhJ5rFt-p2OXn3KX_e_RoeCbdfhUpozfMyo5A,2483
359
359
  snaptrade_client/model/snap_trade_register_user_request_body.pyi,sha256=dE4FNlnhJ5rFt-p2OXn3KX_e_RoeCbdfhUpozfMyo5A,2483
360
360
  snaptrade_client/model/status.py,sha256=JYOXSzF4Qo2EgPcdrZtKKkepgsTAtJ3IGLHEGNgxISY,3639
@@ -422,7 +422,7 @@ snaptrade_client/model/user_secret.pyi,sha256=7xf__S566WtTq7VthmdVtrCBIfgpnYWYqE
422
422
  snaptrade_client/model/validated_trade_body.py,sha256=NkTel1ulgSjBd6K7vur6puEbfrg3u1vdmtUKArOu8ws,3085
423
423
  snaptrade_client/model/validated_trade_body.pyi,sha256=NkTel1ulgSjBd6K7vur6puEbfrg3u1vdmtUKArOu8ws,3085
424
424
  snaptrade_client/models/__init__.py,sha256=nEO5bHCM19h-AQp0rl6XNHrTZ4Aw4ffqVOPRYOPOr_I,13312
425
- snaptrade_client/operation_parameter_map.py,sha256=PH3QEPjygHO9u-iP05zHSPKSWfAywl74agnkrRWxqHc,18177
425
+ snaptrade_client/operation_parameter_map.py,sha256=p-iVNwHlqDv_eI79qVKbeLNA42cV99k3APNcIOALWoM,18248
426
426
  snaptrade_client/paths/__init__.py,sha256=_AIs8vbi_zgRHbgZ2k64V6waRP3RiZuyL4nRaZbpLMY,3519
427
427
  snaptrade_client/paths/accounts/__init__.py,sha256=_Bqi6B13A-kgd0AOpqmcE1vTxJDfoz-r3Hwf-AmwW6A,307
428
428
  snaptrade_client/paths/accounts/get.py,sha256=MDE_4VCylBroYDkMQe9II1qCGf6gTTDGCShFyGLXf00,16463
@@ -439,8 +439,8 @@ snaptrade_client/paths/accounts_account_id_balances/__init__.py,sha256=LMzd1SUmX
439
439
  snaptrade_client/paths/accounts_account_id_balances/get.py,sha256=Pzt-lRBOgSypDllfVVgwyE8kP2Ipkm5TKEVO1xqCh_A,20372
440
440
  snaptrade_client/paths/accounts_account_id_balances/get.pyi,sha256=pQlaEfeXDY54gB23lr_Yy2ejEdUjcmu-UEXo9HpYv3s,20170
441
441
  snaptrade_client/paths/accounts_account_id_holdings/__init__.py,sha256=EkzRO4nxKZWuVWU5PkA0nQsIcAupunq2k_d_Vnc3X0M,347
442
- snaptrade_client/paths/accounts_account_id_holdings/get.py,sha256=vWl7i6q7QfNg6MTe-f2ru6hUfz8sNeHX0xN7rQpaiuQ,22278
443
- snaptrade_client/paths/accounts_account_id_holdings/get.pyi,sha256=jLqtCn7zB5R-S3PzqsJTkmJGIAjozugdMDKlRotBffQ,21994
442
+ snaptrade_client/paths/accounts_account_id_holdings/get.py,sha256=yUfzDrEEdxc6gn5TRdLmEh3RIqa35unNEGCjmzUhBcc,22782
443
+ snaptrade_client/paths/accounts_account_id_holdings/get.pyi,sha256=-9Fg0sItWlJW3SzAIGWdMBWPmj465zfHjNLiFy3Nf3k,22498
444
444
  snaptrade_client/paths/accounts_account_id_options/__init__.py,sha256=lo1mHnLsrOOIWOjzgIxryXLAXohM1empUmzef0JxjKI,345
445
445
  snaptrade_client/paths/accounts_account_id_options/get.py,sha256=AqhezvFIo6LY5EfOJBrv4ArKT1X5ls5Wq2RLfv-GbVs,20237
446
446
  snaptrade_client/paths/accounts_account_id_options/get.pyi,sha256=ksbiMPjTnYBYSslVmbtslODY48SHGSQmMaWJOd0U6m0,20043
@@ -558,8 +558,8 @@ snaptrade_client/paths/snap_trade_list_users/__init__.py,sha256=AtqSPWdsxdx2dPzg
558
558
  snaptrade_client/paths/snap_trade_list_users/get.py,sha256=wB3n61CDtgsBAdRi-saV_5G-lxsGZngs4lXADW0ad7s,12979
559
559
  snaptrade_client/paths/snap_trade_list_users/get.pyi,sha256=uQXp5QjhL6Uw4f77HyEcRQ33_b-J_nxeboRbCMWPLr0,12725
560
560
  snaptrade_client/paths/snap_trade_login/__init__.py,sha256=xMPF2mn5cUpqqpSTbW-PuGECUh30RJRaov1F6Q08FgI,323
561
- snaptrade_client/paths/snap_trade_login/post.py,sha256=wMMqssd9mTyBdXDjAzSJr3OHSZwr3WZyvqosPNkUTOc,25117
562
- snaptrade_client/paths/snap_trade_login/post.pyi,sha256=2wpwyo-WI2xIBt6UP408J_HrIgXyn8rd39Zn2b5TXRs,24833
561
+ snaptrade_client/paths/snap_trade_login/post.py,sha256=MhWc3jw5cOEVU-Wipm9QL08fKuvVl1ubwHOtddNMYTw,25697
562
+ snaptrade_client/paths/snap_trade_login/post.pyi,sha256=UOqyio2q62siM-qwa5J1cm9U7YnYLakmVaEqkFI9JZI,25413
563
563
  snaptrade_client/paths/snap_trade_partners/__init__.py,sha256=y9qc6VTJMgTOIkChpm8aMmOPQMbKSnt80MInAOswnc8,329
564
564
  snaptrade_client/paths/snap_trade_partners/get.py,sha256=Bwwnwni7bwh1pNTJ_21aGa4DdLZz6VqEcXPJxb22M7c,13261
565
565
  snaptrade_client/paths/snap_trade_partners/get.pyi,sha256=RlLTJFcxkLRJIa3a6eNxjW7d9Occ2Z_T7fCknSc-7Ew,12977
@@ -727,7 +727,7 @@ snaptrade_client/type/simple_order_form.py,sha256=o8jhnyAQI_PDWAsgtXhwI-5lxnEJrF
727
727
  snaptrade_client/type/snap_trade_holdings_account.py,sha256=2CELHwFK5R3S6IEdQR-0L4yz5MHlnXuX8-HFOgWTJ0U,1098
728
728
  snaptrade_client/type/snap_trade_holdings_account_meta.py,sha256=d8lARJi8F4ppNZzEkyoGVetlmLlp-cv8gxY7Qph1LmA,407
729
729
  snaptrade_client/type/snap_trade_holdings_total_value.py,sha256=tqQxn5TxkCYhZmCEtQc9uuLkKOyeXQKTNNMY23xQN3I,830
730
- snaptrade_client/type/snap_trade_login_user_request_body.py,sha256=nk7rLst2BsE3aroHCM5IIiEaUkZ_zZ-dFYI1I83c7JI,2295
730
+ snaptrade_client/type/snap_trade_login_user_request_body.py,sha256=07yv07yEyHOOEWf8VzqPCXUo0WoXSYBxMJnyA6ruP1w,2479
731
731
  snaptrade_client/type/snap_trade_register_user_request_body.py,sha256=1Qdcaxref9GaOOxhzIL67jyH9B1atAmOK41_RQHRrGU,908
732
732
  snaptrade_client/type/status.py,sha256=S_dlmtpGIrLQ330OrWw4ORsWl4_1PJglTFdari1ftG0,571
733
733
  snaptrade_client/type/stop_loss.py,sha256=dmH0Tnf94hktMLYicdno1GW7jp3MiriQQ9sJlhDd2cM,585
@@ -763,7 +763,7 @@ snaptrade_client/type/user_secret.py,sha256=pKCVhqf1rROHwa6tvoyA5OAKXCBAmNDvIQCf
763
763
  snaptrade_client/type/validated_trade_body.py,sha256=ZIPBQWii_a-9zHaBCJ6bQtmL1_I7AG0zwuvkY-ZQ6R4,890
764
764
  snaptrade_client/type_util.py,sha256=JIrMYgJzd4IJ8Ne2vqcahlPA9dVmphL9sn8gwccCB4Y,563
765
765
  snaptrade_client/validation_metadata.py,sha256=VTN5y-NudHXok1X468J4PnGze_tGEAcs1v3gsXmcrb0,3172
766
- snaptrade_python_sdk-11.0.138.dist-info/LICENSE,sha256=W_1kcxEzOnZXIYJ1GVUipbmUu6dNLt-Pc-OI55h3k-A,1081
767
- snaptrade_python_sdk-11.0.138.dist-info/METADATA,sha256=IeBEexd5nxGFCO3Zt0T1Pjos7U8d108k0g_EXqOKMKc,93499
768
- snaptrade_python_sdk-11.0.138.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
769
- snaptrade_python_sdk-11.0.138.dist-info/RECORD,,
766
+ snaptrade_python_sdk-11.0.140.dist-info/LICENSE,sha256=W_1kcxEzOnZXIYJ1GVUipbmUu6dNLt-Pc-OI55h3k-A,1081
767
+ snaptrade_python_sdk-11.0.140.dist-info/METADATA,sha256=OEPuzL6ABn-c2DqeF6Z5LV7k7EWr-0Jo-JfIeB1lW2o,93999
768
+ snaptrade_python_sdk-11.0.140.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
769
+ snaptrade_python_sdk-11.0.140.dist-info/RECORD,,