snaptrade-python-sdk 11.0.101__py3-none-any.whl → 11.0.103__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.
- snaptrade_client/__init__.py +1 -1
- snaptrade_client/api_client.py +1 -1
- snaptrade_client/configuration.py +1 -1
- snaptrade_client/model/account.py +47 -2
- snaptrade_client/model/account.pyi +47 -2
- snaptrade_client/model/brokerage_authorization.py +12 -2
- snaptrade_client/model/brokerage_authorization.pyi +12 -2
- snaptrade_client/type/account.py +3 -0
- snaptrade_client/type/brokerage_authorization.py +3 -0
- {snaptrade_python_sdk-11.0.101.dist-info → snaptrade_python_sdk-11.0.103.dist-info}/METADATA +3 -3
- {snaptrade_python_sdk-11.0.101.dist-info → snaptrade_python_sdk-11.0.103.dist-info}/RECORD +13 -13
- {snaptrade_python_sdk-11.0.101.dist-info → snaptrade_python_sdk-11.0.103.dist-info}/LICENSE +0 -0
- {snaptrade_python_sdk-11.0.101.dist-info → snaptrade_python_sdk-11.0.103.dist-info}/WHEEL +0 -0
snaptrade_client/__init__.py
CHANGED
snaptrade_client/api_client.py
CHANGED
|
@@ -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.
|
|
1158
|
+
self.user_agent = 'Konfig/11.0.103/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.
|
|
441
|
+
"SDK Package Version: 11.0.103".\
|
|
442
442
|
format(env=sys.platform, pyversion=sys.version)
|
|
443
443
|
|
|
444
444
|
def get_host_settings(self):
|
|
@@ -118,6 +118,42 @@ class Account(
|
|
|
118
118
|
return AccountBalance
|
|
119
119
|
|
|
120
120
|
|
|
121
|
+
class status(
|
|
122
|
+
schemas.EnumBase,
|
|
123
|
+
schemas.StrBase,
|
|
124
|
+
schemas.NoneBase,
|
|
125
|
+
schemas.Schema,
|
|
126
|
+
schemas.NoneStrMixin
|
|
127
|
+
):
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
class MetaOapg:
|
|
131
|
+
enum_value_to_name = {
|
|
132
|
+
"open": "OPEN",
|
|
133
|
+
"closed": "CLOSED",
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@schemas.classproperty
|
|
137
|
+
def OPEN(cls):
|
|
138
|
+
return cls("open")
|
|
139
|
+
|
|
140
|
+
@schemas.classproperty
|
|
141
|
+
def CLOSED(cls):
|
|
142
|
+
return cls("closed")
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
def __new__(
|
|
146
|
+
cls,
|
|
147
|
+
*args: typing.Union[None, str, ],
|
|
148
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
149
|
+
) -> 'status':
|
|
150
|
+
return super().__new__(
|
|
151
|
+
cls,
|
|
152
|
+
*args,
|
|
153
|
+
_configuration=_configuration,
|
|
154
|
+
)
|
|
155
|
+
|
|
156
|
+
|
|
121
157
|
class raw_type(
|
|
122
158
|
schemas.StrBase,
|
|
123
159
|
schemas.NoneBase,
|
|
@@ -154,6 +190,7 @@ class Account(
|
|
|
154
190
|
"created_date": created_date,
|
|
155
191
|
"sync_status": sync_status,
|
|
156
192
|
"balance": balance,
|
|
193
|
+
"status": status,
|
|
157
194
|
"raw_type": raw_type,
|
|
158
195
|
"meta": meta,
|
|
159
196
|
"portfolio_group": portfolio_group,
|
|
@@ -194,6 +231,9 @@ class Account(
|
|
|
194
231
|
@typing.overload
|
|
195
232
|
def __getitem__(self, name: typing_extensions.Literal["institution_name"]) -> MetaOapg.properties.institution_name: ...
|
|
196
233
|
|
|
234
|
+
@typing.overload
|
|
235
|
+
def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ...
|
|
236
|
+
|
|
197
237
|
@typing.overload
|
|
198
238
|
def __getitem__(self, name: typing_extensions.Literal["raw_type"]) -> MetaOapg.properties.raw_type: ...
|
|
199
239
|
|
|
@@ -209,7 +249,7 @@ class Account(
|
|
|
209
249
|
@typing.overload
|
|
210
250
|
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
|
211
251
|
|
|
212
|
-
def __getitem__(self, name: typing.Union[typing_extensions.Literal["number"], typing_extensions.Literal["balance"], typing_extensions.Literal["brokerage_authorization"], typing_extensions.Literal["name"], typing_extensions.Literal["sync_status"], typing_extensions.Literal["created_date"], typing_extensions.Literal["id"], typing_extensions.Literal["institution_name"], typing_extensions.Literal["raw_type"], typing_extensions.Literal["meta"], typing_extensions.Literal["portfolio_group"], typing_extensions.Literal["cash_restrictions"], str, ]):
|
|
252
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["number"], typing_extensions.Literal["balance"], typing_extensions.Literal["brokerage_authorization"], typing_extensions.Literal["name"], typing_extensions.Literal["sync_status"], typing_extensions.Literal["created_date"], typing_extensions.Literal["id"], typing_extensions.Literal["institution_name"], typing_extensions.Literal["status"], typing_extensions.Literal["raw_type"], typing_extensions.Literal["meta"], typing_extensions.Literal["portfolio_group"], typing_extensions.Literal["cash_restrictions"], str, ]):
|
|
213
253
|
# dict_instance[name] accessor
|
|
214
254
|
return super().__getitem__(name)
|
|
215
255
|
|
|
@@ -237,6 +277,9 @@ class Account(
|
|
|
237
277
|
@typing.overload
|
|
238
278
|
def get_item_oapg(self, name: typing_extensions.Literal["institution_name"]) -> MetaOapg.properties.institution_name: ...
|
|
239
279
|
|
|
280
|
+
@typing.overload
|
|
281
|
+
def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ...
|
|
282
|
+
|
|
240
283
|
@typing.overload
|
|
241
284
|
def get_item_oapg(self, name: typing_extensions.Literal["raw_type"]) -> typing.Union[MetaOapg.properties.raw_type, schemas.Unset]: ...
|
|
242
285
|
|
|
@@ -252,7 +295,7 @@ class Account(
|
|
|
252
295
|
@typing.overload
|
|
253
296
|
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
|
254
297
|
|
|
255
|
-
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["number"], typing_extensions.Literal["balance"], typing_extensions.Literal["brokerage_authorization"], typing_extensions.Literal["name"], typing_extensions.Literal["sync_status"], typing_extensions.Literal["created_date"], typing_extensions.Literal["id"], typing_extensions.Literal["institution_name"], typing_extensions.Literal["raw_type"], typing_extensions.Literal["meta"], typing_extensions.Literal["portfolio_group"], typing_extensions.Literal["cash_restrictions"], str, ]):
|
|
298
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["number"], typing_extensions.Literal["balance"], typing_extensions.Literal["brokerage_authorization"], typing_extensions.Literal["name"], typing_extensions.Literal["sync_status"], typing_extensions.Literal["created_date"], typing_extensions.Literal["id"], typing_extensions.Literal["institution_name"], typing_extensions.Literal["status"], typing_extensions.Literal["raw_type"], typing_extensions.Literal["meta"], typing_extensions.Literal["portfolio_group"], typing_extensions.Literal["cash_restrictions"], str, ]):
|
|
256
299
|
return super().get_item_oapg(name)
|
|
257
300
|
|
|
258
301
|
def __new__(
|
|
@@ -266,6 +309,7 @@ class Account(
|
|
|
266
309
|
created_date: typing.Union[MetaOapg.properties.created_date, str, datetime, ],
|
|
267
310
|
id: typing.Union[MetaOapg.properties.id, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
|
268
311
|
institution_name: typing.Union[MetaOapg.properties.institution_name, str, ],
|
|
312
|
+
status: typing.Union[MetaOapg.properties.status, None, str, schemas.Unset] = schemas.unset,
|
|
269
313
|
raw_type: typing.Union[MetaOapg.properties.raw_type, None, str, schemas.Unset] = schemas.unset,
|
|
270
314
|
meta: typing.Union['AccountMeta', schemas.Unset] = schemas.unset,
|
|
271
315
|
portfolio_group: typing.Union[MetaOapg.properties.portfolio_group, str, uuid.UUID, schemas.Unset] = schemas.unset,
|
|
@@ -284,6 +328,7 @@ class Account(
|
|
|
284
328
|
created_date=created_date,
|
|
285
329
|
id=id,
|
|
286
330
|
institution_name=institution_name,
|
|
331
|
+
status=status,
|
|
287
332
|
raw_type=raw_type,
|
|
288
333
|
meta=meta,
|
|
289
334
|
portfolio_group=portfolio_group,
|
|
@@ -118,6 +118,42 @@ class Account(
|
|
|
118
118
|
return AccountBalance
|
|
119
119
|
|
|
120
120
|
|
|
121
|
+
class status(
|
|
122
|
+
schemas.EnumBase,
|
|
123
|
+
schemas.StrBase,
|
|
124
|
+
schemas.NoneBase,
|
|
125
|
+
schemas.Schema,
|
|
126
|
+
schemas.NoneStrMixin
|
|
127
|
+
):
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
class MetaOapg:
|
|
131
|
+
enum_value_to_name = {
|
|
132
|
+
"open": "OPEN",
|
|
133
|
+
"closed": "CLOSED",
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@schemas.classproperty
|
|
137
|
+
def OPEN(cls):
|
|
138
|
+
return cls("open")
|
|
139
|
+
|
|
140
|
+
@schemas.classproperty
|
|
141
|
+
def CLOSED(cls):
|
|
142
|
+
return cls("closed")
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
def __new__(
|
|
146
|
+
cls,
|
|
147
|
+
*args: typing.Union[None, str, ],
|
|
148
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
149
|
+
) -> 'status':
|
|
150
|
+
return super().__new__(
|
|
151
|
+
cls,
|
|
152
|
+
*args,
|
|
153
|
+
_configuration=_configuration,
|
|
154
|
+
)
|
|
155
|
+
|
|
156
|
+
|
|
121
157
|
class raw_type(
|
|
122
158
|
schemas.StrBase,
|
|
123
159
|
schemas.NoneBase,
|
|
@@ -154,6 +190,7 @@ class Account(
|
|
|
154
190
|
"created_date": created_date,
|
|
155
191
|
"sync_status": sync_status,
|
|
156
192
|
"balance": balance,
|
|
193
|
+
"status": status,
|
|
157
194
|
"raw_type": raw_type,
|
|
158
195
|
"meta": meta,
|
|
159
196
|
"portfolio_group": portfolio_group,
|
|
@@ -194,6 +231,9 @@ class Account(
|
|
|
194
231
|
@typing.overload
|
|
195
232
|
def __getitem__(self, name: typing_extensions.Literal["institution_name"]) -> MetaOapg.properties.institution_name: ...
|
|
196
233
|
|
|
234
|
+
@typing.overload
|
|
235
|
+
def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ...
|
|
236
|
+
|
|
197
237
|
@typing.overload
|
|
198
238
|
def __getitem__(self, name: typing_extensions.Literal["raw_type"]) -> MetaOapg.properties.raw_type: ...
|
|
199
239
|
|
|
@@ -209,7 +249,7 @@ class Account(
|
|
|
209
249
|
@typing.overload
|
|
210
250
|
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
|
211
251
|
|
|
212
|
-
def __getitem__(self, name: typing.Union[typing_extensions.Literal["number"], typing_extensions.Literal["balance"], typing_extensions.Literal["brokerage_authorization"], typing_extensions.Literal["name"], typing_extensions.Literal["sync_status"], typing_extensions.Literal["created_date"], typing_extensions.Literal["id"], typing_extensions.Literal["institution_name"], typing_extensions.Literal["raw_type"], typing_extensions.Literal["meta"], typing_extensions.Literal["portfolio_group"], typing_extensions.Literal["cash_restrictions"], str, ]):
|
|
252
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["number"], typing_extensions.Literal["balance"], typing_extensions.Literal["brokerage_authorization"], typing_extensions.Literal["name"], typing_extensions.Literal["sync_status"], typing_extensions.Literal["created_date"], typing_extensions.Literal["id"], typing_extensions.Literal["institution_name"], typing_extensions.Literal["status"], typing_extensions.Literal["raw_type"], typing_extensions.Literal["meta"], typing_extensions.Literal["portfolio_group"], typing_extensions.Literal["cash_restrictions"], str, ]):
|
|
213
253
|
# dict_instance[name] accessor
|
|
214
254
|
return super().__getitem__(name)
|
|
215
255
|
|
|
@@ -237,6 +277,9 @@ class Account(
|
|
|
237
277
|
@typing.overload
|
|
238
278
|
def get_item_oapg(self, name: typing_extensions.Literal["institution_name"]) -> MetaOapg.properties.institution_name: ...
|
|
239
279
|
|
|
280
|
+
@typing.overload
|
|
281
|
+
def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ...
|
|
282
|
+
|
|
240
283
|
@typing.overload
|
|
241
284
|
def get_item_oapg(self, name: typing_extensions.Literal["raw_type"]) -> typing.Union[MetaOapg.properties.raw_type, schemas.Unset]: ...
|
|
242
285
|
|
|
@@ -252,7 +295,7 @@ class Account(
|
|
|
252
295
|
@typing.overload
|
|
253
296
|
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
|
254
297
|
|
|
255
|
-
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["number"], typing_extensions.Literal["balance"], typing_extensions.Literal["brokerage_authorization"], typing_extensions.Literal["name"], typing_extensions.Literal["sync_status"], typing_extensions.Literal["created_date"], typing_extensions.Literal["id"], typing_extensions.Literal["institution_name"], typing_extensions.Literal["raw_type"], typing_extensions.Literal["meta"], typing_extensions.Literal["portfolio_group"], typing_extensions.Literal["cash_restrictions"], str, ]):
|
|
298
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["number"], typing_extensions.Literal["balance"], typing_extensions.Literal["brokerage_authorization"], typing_extensions.Literal["name"], typing_extensions.Literal["sync_status"], typing_extensions.Literal["created_date"], typing_extensions.Literal["id"], typing_extensions.Literal["institution_name"], typing_extensions.Literal["status"], typing_extensions.Literal["raw_type"], typing_extensions.Literal["meta"], typing_extensions.Literal["portfolio_group"], typing_extensions.Literal["cash_restrictions"], str, ]):
|
|
256
299
|
return super().get_item_oapg(name)
|
|
257
300
|
|
|
258
301
|
def __new__(
|
|
@@ -266,6 +309,7 @@ class Account(
|
|
|
266
309
|
created_date: typing.Union[MetaOapg.properties.created_date, str, datetime, ],
|
|
267
310
|
id: typing.Union[MetaOapg.properties.id, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
|
268
311
|
institution_name: typing.Union[MetaOapg.properties.institution_name, str, ],
|
|
312
|
+
status: typing.Union[MetaOapg.properties.status, None, str, schemas.Unset] = schemas.unset,
|
|
269
313
|
raw_type: typing.Union[MetaOapg.properties.raw_type, None, str, schemas.Unset] = schemas.unset,
|
|
270
314
|
meta: typing.Union['AccountMeta', schemas.Unset] = schemas.unset,
|
|
271
315
|
portfolio_group: typing.Union[MetaOapg.properties.portfolio_group, str, uuid.UUID, schemas.Unset] = schemas.unset,
|
|
@@ -284,6 +328,7 @@ class Account(
|
|
|
284
328
|
created_date=created_date,
|
|
285
329
|
id=id,
|
|
286
330
|
institution_name=institution_name,
|
|
331
|
+
status=status,
|
|
287
332
|
raw_type=raw_type,
|
|
288
333
|
meta=meta,
|
|
289
334
|
portfolio_group=portfolio_group,
|
|
@@ -81,6 +81,7 @@ SnapTrade performs de-duping on connections for a given user. If the user has an
|
|
|
81
81
|
def meta() -> typing.Type['BrokerageAuthorizationMeta']:
|
|
82
82
|
return BrokerageAuthorizationMeta
|
|
83
83
|
updated_date = schemas.DateTimeSchema
|
|
84
|
+
is_eligible_for_payout = schemas.BoolSchema
|
|
84
85
|
__annotations__ = {
|
|
85
86
|
"id": id,
|
|
86
87
|
"created_date": created_date,
|
|
@@ -91,6 +92,7 @@ SnapTrade performs de-duping on connections for a given user. If the user has an
|
|
|
91
92
|
"disabled_date": disabled_date,
|
|
92
93
|
"meta": meta,
|
|
93
94
|
"updated_date": updated_date,
|
|
95
|
+
"is_eligible_for_payout": is_eligible_for_payout,
|
|
94
96
|
}
|
|
95
97
|
additional_properties = schemas.AnyTypeSchema
|
|
96
98
|
|
|
@@ -121,10 +123,13 @@ SnapTrade performs de-duping on connections for a given user. If the user has an
|
|
|
121
123
|
@typing.overload
|
|
122
124
|
def __getitem__(self, name: typing_extensions.Literal["updated_date"]) -> MetaOapg.properties.updated_date: ...
|
|
123
125
|
|
|
126
|
+
@typing.overload
|
|
127
|
+
def __getitem__(self, name: typing_extensions.Literal["is_eligible_for_payout"]) -> MetaOapg.properties.is_eligible_for_payout: ...
|
|
128
|
+
|
|
124
129
|
@typing.overload
|
|
125
130
|
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
|
126
131
|
|
|
127
|
-
def __getitem__(self, name: typing.Union[typing_extensions.Literal["id"], typing_extensions.Literal["created_date"], typing_extensions.Literal["brokerage"], typing_extensions.Literal["name"], typing_extensions.Literal["type"], typing_extensions.Literal["disabled"], typing_extensions.Literal["disabled_date"], typing_extensions.Literal["meta"], typing_extensions.Literal["updated_date"], str, ]):
|
|
132
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["id"], typing_extensions.Literal["created_date"], typing_extensions.Literal["brokerage"], typing_extensions.Literal["name"], typing_extensions.Literal["type"], typing_extensions.Literal["disabled"], typing_extensions.Literal["disabled_date"], typing_extensions.Literal["meta"], typing_extensions.Literal["updated_date"], typing_extensions.Literal["is_eligible_for_payout"], str, ]):
|
|
128
133
|
# dict_instance[name] accessor
|
|
129
134
|
return super().__getitem__(name)
|
|
130
135
|
|
|
@@ -155,10 +160,13 @@ SnapTrade performs de-duping on connections for a given user. If the user has an
|
|
|
155
160
|
@typing.overload
|
|
156
161
|
def get_item_oapg(self, name: typing_extensions.Literal["updated_date"]) -> typing.Union[MetaOapg.properties.updated_date, schemas.Unset]: ...
|
|
157
162
|
|
|
163
|
+
@typing.overload
|
|
164
|
+
def get_item_oapg(self, name: typing_extensions.Literal["is_eligible_for_payout"]) -> typing.Union[MetaOapg.properties.is_eligible_for_payout, schemas.Unset]: ...
|
|
165
|
+
|
|
158
166
|
@typing.overload
|
|
159
167
|
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
|
160
168
|
|
|
161
|
-
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id"], typing_extensions.Literal["created_date"], typing_extensions.Literal["brokerage"], typing_extensions.Literal["name"], typing_extensions.Literal["type"], typing_extensions.Literal["disabled"], typing_extensions.Literal["disabled_date"], typing_extensions.Literal["meta"], typing_extensions.Literal["updated_date"], str, ]):
|
|
169
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id"], typing_extensions.Literal["created_date"], typing_extensions.Literal["brokerage"], typing_extensions.Literal["name"], typing_extensions.Literal["type"], typing_extensions.Literal["disabled"], typing_extensions.Literal["disabled_date"], typing_extensions.Literal["meta"], typing_extensions.Literal["updated_date"], typing_extensions.Literal["is_eligible_for_payout"], str, ]):
|
|
162
170
|
return super().get_item_oapg(name)
|
|
163
171
|
|
|
164
172
|
def __new__(
|
|
@@ -173,6 +181,7 @@ SnapTrade performs de-duping on connections for a given user. If the user has an
|
|
|
173
181
|
disabled_date: typing.Union[MetaOapg.properties.disabled_date, None, str, datetime, schemas.Unset] = schemas.unset,
|
|
174
182
|
meta: typing.Union['BrokerageAuthorizationMeta', schemas.Unset] = schemas.unset,
|
|
175
183
|
updated_date: typing.Union[MetaOapg.properties.updated_date, str, datetime, schemas.Unset] = schemas.unset,
|
|
184
|
+
is_eligible_for_payout: typing.Union[MetaOapg.properties.is_eligible_for_payout, bool, schemas.Unset] = schemas.unset,
|
|
176
185
|
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
177
186
|
**kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
|
178
187
|
) -> 'BrokerageAuthorization':
|
|
@@ -188,6 +197,7 @@ SnapTrade performs de-duping on connections for a given user. If the user has an
|
|
|
188
197
|
disabled_date=disabled_date,
|
|
189
198
|
meta=meta,
|
|
190
199
|
updated_date=updated_date,
|
|
200
|
+
is_eligible_for_payout=is_eligible_for_payout,
|
|
191
201
|
_configuration=_configuration,
|
|
192
202
|
**kwargs,
|
|
193
203
|
)
|
|
@@ -81,6 +81,7 @@ SnapTrade performs de-duping on connections for a given user. If the user has an
|
|
|
81
81
|
def meta() -> typing.Type['BrokerageAuthorizationMeta']:
|
|
82
82
|
return BrokerageAuthorizationMeta
|
|
83
83
|
updated_date = schemas.DateTimeSchema
|
|
84
|
+
is_eligible_for_payout = schemas.BoolSchema
|
|
84
85
|
__annotations__ = {
|
|
85
86
|
"id": id,
|
|
86
87
|
"created_date": created_date,
|
|
@@ -91,6 +92,7 @@ SnapTrade performs de-duping on connections for a given user. If the user has an
|
|
|
91
92
|
"disabled_date": disabled_date,
|
|
92
93
|
"meta": meta,
|
|
93
94
|
"updated_date": updated_date,
|
|
95
|
+
"is_eligible_for_payout": is_eligible_for_payout,
|
|
94
96
|
}
|
|
95
97
|
additional_properties = schemas.AnyTypeSchema
|
|
96
98
|
|
|
@@ -121,10 +123,13 @@ SnapTrade performs de-duping on connections for a given user. If the user has an
|
|
|
121
123
|
@typing.overload
|
|
122
124
|
def __getitem__(self, name: typing_extensions.Literal["updated_date"]) -> MetaOapg.properties.updated_date: ...
|
|
123
125
|
|
|
126
|
+
@typing.overload
|
|
127
|
+
def __getitem__(self, name: typing_extensions.Literal["is_eligible_for_payout"]) -> MetaOapg.properties.is_eligible_for_payout: ...
|
|
128
|
+
|
|
124
129
|
@typing.overload
|
|
125
130
|
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
|
126
131
|
|
|
127
|
-
def __getitem__(self, name: typing.Union[typing_extensions.Literal["id"], typing_extensions.Literal["created_date"], typing_extensions.Literal["brokerage"], typing_extensions.Literal["name"], typing_extensions.Literal["type"], typing_extensions.Literal["disabled"], typing_extensions.Literal["disabled_date"], typing_extensions.Literal["meta"], typing_extensions.Literal["updated_date"], str, ]):
|
|
132
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["id"], typing_extensions.Literal["created_date"], typing_extensions.Literal["brokerage"], typing_extensions.Literal["name"], typing_extensions.Literal["type"], typing_extensions.Literal["disabled"], typing_extensions.Literal["disabled_date"], typing_extensions.Literal["meta"], typing_extensions.Literal["updated_date"], typing_extensions.Literal["is_eligible_for_payout"], str, ]):
|
|
128
133
|
# dict_instance[name] accessor
|
|
129
134
|
return super().__getitem__(name)
|
|
130
135
|
|
|
@@ -155,10 +160,13 @@ SnapTrade performs de-duping on connections for a given user. If the user has an
|
|
|
155
160
|
@typing.overload
|
|
156
161
|
def get_item_oapg(self, name: typing_extensions.Literal["updated_date"]) -> typing.Union[MetaOapg.properties.updated_date, schemas.Unset]: ...
|
|
157
162
|
|
|
163
|
+
@typing.overload
|
|
164
|
+
def get_item_oapg(self, name: typing_extensions.Literal["is_eligible_for_payout"]) -> typing.Union[MetaOapg.properties.is_eligible_for_payout, schemas.Unset]: ...
|
|
165
|
+
|
|
158
166
|
@typing.overload
|
|
159
167
|
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
|
160
168
|
|
|
161
|
-
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id"], typing_extensions.Literal["created_date"], typing_extensions.Literal["brokerage"], typing_extensions.Literal["name"], typing_extensions.Literal["type"], typing_extensions.Literal["disabled"], typing_extensions.Literal["disabled_date"], typing_extensions.Literal["meta"], typing_extensions.Literal["updated_date"], str, ]):
|
|
169
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id"], typing_extensions.Literal["created_date"], typing_extensions.Literal["brokerage"], typing_extensions.Literal["name"], typing_extensions.Literal["type"], typing_extensions.Literal["disabled"], typing_extensions.Literal["disabled_date"], typing_extensions.Literal["meta"], typing_extensions.Literal["updated_date"], typing_extensions.Literal["is_eligible_for_payout"], str, ]):
|
|
162
170
|
return super().get_item_oapg(name)
|
|
163
171
|
|
|
164
172
|
def __new__(
|
|
@@ -173,6 +181,7 @@ SnapTrade performs de-duping on connections for a given user. If the user has an
|
|
|
173
181
|
disabled_date: typing.Union[MetaOapg.properties.disabled_date, None, str, datetime, schemas.Unset] = schemas.unset,
|
|
174
182
|
meta: typing.Union['BrokerageAuthorizationMeta', schemas.Unset] = schemas.unset,
|
|
175
183
|
updated_date: typing.Union[MetaOapg.properties.updated_date, str, datetime, schemas.Unset] = schemas.unset,
|
|
184
|
+
is_eligible_for_payout: typing.Union[MetaOapg.properties.is_eligible_for_payout, bool, schemas.Unset] = schemas.unset,
|
|
176
185
|
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
177
186
|
**kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
|
178
187
|
) -> 'BrokerageAuthorization':
|
|
@@ -188,6 +197,7 @@ SnapTrade performs de-duping on connections for a given user. If the user has an
|
|
|
188
197
|
disabled_date=disabled_date,
|
|
189
198
|
meta=meta,
|
|
190
199
|
updated_date=updated_date,
|
|
200
|
+
is_eligible_for_payout=is_eligible_for_payout,
|
|
191
201
|
_configuration=_configuration,
|
|
192
202
|
**kwargs,
|
|
193
203
|
)
|
snaptrade_client/type/account.py
CHANGED
|
@@ -45,6 +45,9 @@ class RequiredAccount(TypedDict):
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
class OptionalAccount(TypedDict, total=False):
|
|
48
|
+
# The current status of the account. Can be either \"open\", \"closed\", or null if the status is unknown or not provided by the brokerage.
|
|
49
|
+
status: typing.Optional[str]
|
|
50
|
+
|
|
48
51
|
# The account type as provided by the brokerage
|
|
49
52
|
raw_type: typing.Optional[str]
|
|
50
53
|
|
|
@@ -49,5 +49,8 @@ class OptionalBrokerageAuthorization(TypedDict, total=False):
|
|
|
49
49
|
# Timestamp of when the connection was last updated in SnapTrade. This field is deprecated. Please let us know if you have a valid use case for this field.
|
|
50
50
|
updated_date: datetime
|
|
51
51
|
|
|
52
|
+
# Whether the connection is eligible for a payout.
|
|
53
|
+
is_eligible_for_payout: bool
|
|
54
|
+
|
|
52
55
|
class BrokerageAuthorization(RequiredBrokerageAuthorization, OptionalBrokerageAuthorization):
|
|
53
56
|
pass
|
{snaptrade_python_sdk-11.0.101.dist-info → snaptrade_python_sdk-11.0.103.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: snaptrade-python-sdk
|
|
3
|
-
Version: 11.0.
|
|
3
|
+
Version: 11.0.103
|
|
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
|
-
[](https://pypi.org/project/snaptrade-python-sdk/11.0.103)
|
|
34
34
|
[](https://github.com/passiv/snaptrade-sdks/tree/master/sdks/python#readme)
|
|
35
35
|
[](https://snaptrade.com/)
|
|
36
36
|
|
|
@@ -110,7 +110,7 @@ Python >=3.8
|
|
|
110
110
|
## Installation<a id="installation"></a>
|
|
111
111
|
|
|
112
112
|
```sh
|
|
113
|
-
pip install snaptrade-python-sdk==11.0.
|
|
113
|
+
pip install snaptrade-python-sdk==11.0.103
|
|
114
114
|
```
|
|
115
115
|
|
|
116
116
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
snaptrade_client/__init__.py,sha256=
|
|
2
|
-
snaptrade_client/api_client.py,sha256=
|
|
1
|
+
snaptrade_client/__init__.py,sha256=zb0IrM3Ogm1JDBUr3hP5He3gwVJ59dFiPazucPXwjCY,820
|
|
2
|
+
snaptrade_client/api_client.py,sha256=0qUHYV_YVaGFNFVp4zqjQoUvbaFxe8m9AzYb-g2nrFY,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=fDtFd8AqFO8oDYvdEAFTO9PrVL_qMSjlch1YRVeidlk,13189
|
|
@@ -78,12 +78,12 @@ snaptrade_client/apis/tags/transactions_and_reporting_api_generated.py,sha256=Tw
|
|
|
78
78
|
snaptrade_client/client.py,sha256=goDwWRv9909OPXDnGGYst_mr53bg6RUs4PwIvnrl_kE,2116
|
|
79
79
|
snaptrade_client/client.pyi,sha256=goDwWRv9909OPXDnGGYst_mr53bg6RUs4PwIvnrl_kE,2116
|
|
80
80
|
snaptrade_client/client_custom.py,sha256=Jx9ulCzelMFlESjzVFQSjBlYcH4dWxSJJWZDMPLyetM,745
|
|
81
|
-
snaptrade_client/configuration.py,sha256=
|
|
81
|
+
snaptrade_client/configuration.py,sha256=gFrRu_9cnQd3wgi8HiMu8wy9hnlv4zlmxWMGGKpleWg,19262
|
|
82
82
|
snaptrade_client/exceptions.py,sha256=X0apI_sgQpGpa-qIqPUClReCdHAxeSuA6GW0YH_RsWg,7771
|
|
83
83
|
snaptrade_client/exceptions_base.py,sha256=LAQkaC5C61-SdBLfyMjb0K7AYJkWVuLmg2uCvHa71FM,2274
|
|
84
84
|
snaptrade_client/model/__init__.py,sha256=ayi2MIzcf0eAIsY13ToiNplV9tW-pMBFrC0I9yckGM8,350
|
|
85
|
-
snaptrade_client/model/account.py,sha256=
|
|
86
|
-
snaptrade_client/model/account.pyi,sha256=
|
|
85
|
+
snaptrade_client/model/account.py,sha256=hnzGQSJiHWjv9l9BwLSTLhFoRiThGlWpZlXsEfIYbUg,14708
|
|
86
|
+
snaptrade_client/model/account.pyi,sha256=hnzGQSJiHWjv9l9BwLSTLhFoRiThGlWpZlXsEfIYbUg,14708
|
|
87
87
|
snaptrade_client/model/account_balance.py,sha256=ymF9edctposRKBwnaXBx1M-8n41Rcx7sF5A3keZ_LfI,5726
|
|
88
88
|
snaptrade_client/model/account_balance.pyi,sha256=ymF9edctposRKBwnaXBx1M-8n41Rcx7sF5A3keZ_LfI,5726
|
|
89
89
|
snaptrade_client/model/account_cash_restrictions.py,sha256=k23jFvKGgT18Vpw_uUfUyzcTFRdKA9fVyWxQzxXhcQk,1281
|
|
@@ -122,8 +122,8 @@ snaptrade_client/model/brokerage_auth_id.py,sha256=SyHzXB7VoYByRMfDfqlxfbeCNd9E8
|
|
|
122
122
|
snaptrade_client/model/brokerage_auth_id.pyi,sha256=SyHzXB7VoYByRMfDfqlxfbeCNd9E8wgYjMLqB1ftzqU,606
|
|
123
123
|
snaptrade_client/model/brokerage_auth_ids.py,sha256=RS4_cl7prRUrxYp8MqUI6qhmXML46TFZgyq3ZwkG000,606
|
|
124
124
|
snaptrade_client/model/brokerage_auth_ids.pyi,sha256=RS4_cl7prRUrxYp8MqUI6qhmXML46TFZgyq3ZwkG000,606
|
|
125
|
-
snaptrade_client/model/brokerage_authorization.py,sha256=
|
|
126
|
-
snaptrade_client/model/brokerage_authorization.pyi,sha256=
|
|
125
|
+
snaptrade_client/model/brokerage_authorization.py,sha256=CisdWMtMWolYIXR8tubqTnsPHsJxct8yfL1dZiGHEnM,9563
|
|
126
|
+
snaptrade_client/model/brokerage_authorization.pyi,sha256=CisdWMtMWolYIXR8tubqTnsPHsJxct8yfL1dZiGHEnM,9563
|
|
127
127
|
snaptrade_client/model/brokerage_authorization_disabled_confirmation.py,sha256=yKbRlI3QvGqgBp6BTGAJMqcv-sm5Fb2tpP85lzPXF9A,2560
|
|
128
128
|
snaptrade_client/model/brokerage_authorization_disabled_confirmation.pyi,sha256=yKbRlI3QvGqgBp6BTGAJMqcv-sm5Fb2tpP85lzPXF9A,2560
|
|
129
129
|
snaptrade_client/model/brokerage_authorization_meta.py,sha256=zjFAwACUwgsdEcbw6F17pajR4FafVQOfkl0RtCei0Hw,1868
|
|
@@ -577,7 +577,7 @@ snaptrade_client/request_before_url_hook.py,sha256=BDDHBJ5nxDTEYvlXEBmxU2OJFoh--
|
|
|
577
577
|
snaptrade_client/rest.py,sha256=lfRDJY_itGJnSc441cmmDhIqS7AtpK-YvP5TPuQBpgY,11033
|
|
578
578
|
snaptrade_client/schemas.py,sha256=PDgpxzIO5UZUoUbsY5lB9qpKu7av8n3HB5c-cEX2L0E,96080
|
|
579
579
|
snaptrade_client/type/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
580
|
-
snaptrade_client/type/account.py,sha256=
|
|
580
|
+
snaptrade_client/type/account.py,sha256=mHOZCwkhR5rJrkMrxEq00ASUqXiff0abcPTL48a_er0,2548
|
|
581
581
|
snaptrade_client/type/account_balance.py,sha256=LMZTMiyn8wh1HqrDol68hqtlm_arHZppF2-ZQAzLIj0,832
|
|
582
582
|
snaptrade_client/type/account_cash_restrictions.py,sha256=tDIaP1SJ810Ca0XFESrl5WOMU_0RN7spfddQ8oBtmT8,414
|
|
583
583
|
snaptrade_client/type/account_holdings.py,sha256=kyntdmzWVjP3BgLz2aGKwcGI2xp7q7v0ktdMygKiYmg,1079
|
|
@@ -597,7 +597,7 @@ snaptrade_client/type/balance.py,sha256=E3uLbXAZBLu5f8Zoy3d2_CIweg8vqUHddXO1sGQ-
|
|
|
597
597
|
snaptrade_client/type/brokerage.py,sha256=hf2lpZ7w7Ldh8f46DIY5KGZqHGPB7N1cKB-q0xLFuvQ,2489
|
|
598
598
|
snaptrade_client/type/brokerage_auth_id.py,sha256=rD0I5Srxu-mx6PfUb7RPR8xw7e3p6nn1tsmv04qH1VM,393
|
|
599
599
|
snaptrade_client/type/brokerage_auth_ids.py,sha256=GE_hI6avo_qDCQdvrXYFlxHOfnRUZK_WyKFzA1cQtWQ,394
|
|
600
|
-
snaptrade_client/type/brokerage_authorization.py,sha256=
|
|
600
|
+
snaptrade_client/type/brokerage_authorization.py,sha256=6t4cZam-mlNIZAb3BemRHuDjNG_iQou8MviVBIFCDWk,2419
|
|
601
601
|
snaptrade_client/type/brokerage_authorization_disabled_confirmation.py,sha256=3lQscQHxQFUDDNlY74ZkyBeZNjt16FzQhhUAhmfv-RQ,751
|
|
602
602
|
snaptrade_client/type/brokerage_authorization_meta.py,sha256=xHbLabbBewM04-hyAXksCqjdZa8UnRercfpEHZkPPcA,405
|
|
603
603
|
snaptrade_client/type/brokerage_authorization_refresh_confirmation.py,sha256=NqOb50HZ3MwiFMpU9APeF1xk_vCabUyPZyK1vpJPMwA,742
|
|
@@ -740,7 +740,7 @@ snaptrade_client/type/user_secret.py,sha256=pKCVhqf1rROHwa6tvoyA5OAKXCBAmNDvIQCf
|
|
|
740
740
|
snaptrade_client/type/validated_trade_body.py,sha256=ZIPBQWii_a-9zHaBCJ6bQtmL1_I7AG0zwuvkY-ZQ6R4,890
|
|
741
741
|
snaptrade_client/type_util.py,sha256=JIrMYgJzd4IJ8Ne2vqcahlPA9dVmphL9sn8gwccCB4Y,563
|
|
742
742
|
snaptrade_client/validation_metadata.py,sha256=VTN5y-NudHXok1X468J4PnGze_tGEAcs1v3gsXmcrb0,3172
|
|
743
|
-
snaptrade_python_sdk-11.0.
|
|
744
|
-
snaptrade_python_sdk-11.0.
|
|
745
|
-
snaptrade_python_sdk-11.0.
|
|
746
|
-
snaptrade_python_sdk-11.0.
|
|
743
|
+
snaptrade_python_sdk-11.0.103.dist-info/LICENSE,sha256=W_1kcxEzOnZXIYJ1GVUipbmUu6dNLt-Pc-OI55h3k-A,1081
|
|
744
|
+
snaptrade_python_sdk-11.0.103.dist-info/METADATA,sha256=7Vvc5XCJnqSwSEq0okUOQijqNxYLFDTKUyHjZ2mdfEs,94449
|
|
745
|
+
snaptrade_python_sdk-11.0.103.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
746
|
+
snaptrade_python_sdk-11.0.103.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|