snaptrade-python-sdk 11.0.154__py3-none-any.whl → 11.0.155__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/position.py +38 -2
- snaptrade_client/model/position.pyi +38 -2
- snaptrade_client/model/tax_lot.py +247 -0
- snaptrade_client/model/tax_lot.pyi +247 -0
- snaptrade_client/models/__init__.py +1 -0
- snaptrade_client/type/position.py +4 -0
- snaptrade_client/type/tax_lot.py +42 -0
- {snaptrade_python_sdk-11.0.154.dist-info → snaptrade_python_sdk-11.0.155.dist-info}/LICENSE +1 -1
- {snaptrade_python_sdk-11.0.154.dist-info → snaptrade_python_sdk-11.0.155.dist-info}/METADATA +3 -3
- {snaptrade_python_sdk-11.0.154.dist-info → snaptrade_python_sdk-11.0.155.dist-info}/RECORD +14 -11
- {snaptrade_python_sdk-11.0.154.dist-info → snaptrade_python_sdk-11.0.155.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.155/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.155".\
|
|
442
442
|
format(env=sys.platform, pyversion=sys.version)
|
|
443
443
|
|
|
444
444
|
def get_host_settings(self):
|
|
@@ -197,6 +197,32 @@ class Position(
|
|
|
197
197
|
*args,
|
|
198
198
|
_configuration=_configuration,
|
|
199
199
|
)
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
class tax_lots(
|
|
203
|
+
schemas.ListSchema
|
|
204
|
+
):
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
class MetaOapg:
|
|
208
|
+
|
|
209
|
+
@staticmethod
|
|
210
|
+
def items() -> typing.Type['TaxLot']:
|
|
211
|
+
return TaxLot
|
|
212
|
+
|
|
213
|
+
def __new__(
|
|
214
|
+
cls,
|
|
215
|
+
arg: typing.Union[typing.Tuple['TaxLot'], typing.List['TaxLot']],
|
|
216
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
217
|
+
) -> 'tax_lots':
|
|
218
|
+
return super().__new__(
|
|
219
|
+
cls,
|
|
220
|
+
arg,
|
|
221
|
+
_configuration=_configuration,
|
|
222
|
+
)
|
|
223
|
+
|
|
224
|
+
def __getitem__(self, i: int) -> 'TaxLot':
|
|
225
|
+
return super().__getitem__(i)
|
|
200
226
|
__annotations__ = {
|
|
201
227
|
"symbol": symbol,
|
|
202
228
|
"units": units,
|
|
@@ -206,6 +232,7 @@ class Position(
|
|
|
206
232
|
"fractional_units": fractional_units,
|
|
207
233
|
"currency": currency,
|
|
208
234
|
"cash_equivalent": cash_equivalent,
|
|
235
|
+
"tax_lots": tax_lots,
|
|
209
236
|
}
|
|
210
237
|
additional_properties = schemas.AnyTypeSchema
|
|
211
238
|
|
|
@@ -233,10 +260,13 @@ class Position(
|
|
|
233
260
|
@typing.overload
|
|
234
261
|
def __getitem__(self, name: typing_extensions.Literal["cash_equivalent"]) -> MetaOapg.properties.cash_equivalent: ...
|
|
235
262
|
|
|
263
|
+
@typing.overload
|
|
264
|
+
def __getitem__(self, name: typing_extensions.Literal["tax_lots"]) -> MetaOapg.properties.tax_lots: ...
|
|
265
|
+
|
|
236
266
|
@typing.overload
|
|
237
267
|
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
|
238
268
|
|
|
239
|
-
def __getitem__(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["units"], typing_extensions.Literal["price"], typing_extensions.Literal["open_pnl"], typing_extensions.Literal["average_purchase_price"], typing_extensions.Literal["fractional_units"], typing_extensions.Literal["currency"], typing_extensions.Literal["cash_equivalent"], str, ]):
|
|
269
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["units"], typing_extensions.Literal["price"], typing_extensions.Literal["open_pnl"], typing_extensions.Literal["average_purchase_price"], typing_extensions.Literal["fractional_units"], typing_extensions.Literal["currency"], typing_extensions.Literal["cash_equivalent"], typing_extensions.Literal["tax_lots"], str, ]):
|
|
240
270
|
# dict_instance[name] accessor
|
|
241
271
|
return super().__getitem__(name)
|
|
242
272
|
|
|
@@ -264,10 +294,13 @@ class Position(
|
|
|
264
294
|
@typing.overload
|
|
265
295
|
def get_item_oapg(self, name: typing_extensions.Literal["cash_equivalent"]) -> typing.Union[MetaOapg.properties.cash_equivalent, schemas.Unset]: ...
|
|
266
296
|
|
|
297
|
+
@typing.overload
|
|
298
|
+
def get_item_oapg(self, name: typing_extensions.Literal["tax_lots"]) -> typing.Union[MetaOapg.properties.tax_lots, schemas.Unset]: ...
|
|
299
|
+
|
|
267
300
|
@typing.overload
|
|
268
301
|
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
|
269
302
|
|
|
270
|
-
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["units"], typing_extensions.Literal["price"], typing_extensions.Literal["open_pnl"], typing_extensions.Literal["average_purchase_price"], typing_extensions.Literal["fractional_units"], typing_extensions.Literal["currency"], typing_extensions.Literal["cash_equivalent"], str, ]):
|
|
303
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["units"], typing_extensions.Literal["price"], typing_extensions.Literal["open_pnl"], typing_extensions.Literal["average_purchase_price"], typing_extensions.Literal["fractional_units"], typing_extensions.Literal["currency"], typing_extensions.Literal["cash_equivalent"], typing_extensions.Literal["tax_lots"], str, ]):
|
|
271
304
|
return super().get_item_oapg(name)
|
|
272
305
|
|
|
273
306
|
def __new__(
|
|
@@ -281,6 +314,7 @@ class Position(
|
|
|
281
314
|
fractional_units: typing.Union[MetaOapg.properties.fractional_units, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset,
|
|
282
315
|
currency: typing.Union[MetaOapg.properties.currency, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset,
|
|
283
316
|
cash_equivalent: typing.Union[MetaOapg.properties.cash_equivalent, None, bool, schemas.Unset] = schemas.unset,
|
|
317
|
+
tax_lots: typing.Union[MetaOapg.properties.tax_lots, list, tuple, schemas.Unset] = schemas.unset,
|
|
284
318
|
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
285
319
|
**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, ],
|
|
286
320
|
) -> 'Position':
|
|
@@ -295,9 +329,11 @@ class Position(
|
|
|
295
329
|
fractional_units=fractional_units,
|
|
296
330
|
currency=currency,
|
|
297
331
|
cash_equivalent=cash_equivalent,
|
|
332
|
+
tax_lots=tax_lots,
|
|
298
333
|
_configuration=_configuration,
|
|
299
334
|
**kwargs,
|
|
300
335
|
)
|
|
301
336
|
|
|
302
337
|
from snaptrade_client.model.currency import Currency
|
|
303
338
|
from snaptrade_client.model.position_symbol import PositionSymbol
|
|
339
|
+
from snaptrade_client.model.tax_lot import TaxLot
|
|
@@ -197,6 +197,32 @@ class Position(
|
|
|
197
197
|
*args,
|
|
198
198
|
_configuration=_configuration,
|
|
199
199
|
)
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
class tax_lots(
|
|
203
|
+
schemas.ListSchema
|
|
204
|
+
):
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
class MetaOapg:
|
|
208
|
+
|
|
209
|
+
@staticmethod
|
|
210
|
+
def items() -> typing.Type['TaxLot']:
|
|
211
|
+
return TaxLot
|
|
212
|
+
|
|
213
|
+
def __new__(
|
|
214
|
+
cls,
|
|
215
|
+
arg: typing.Union[typing.Tuple['TaxLot'], typing.List['TaxLot']],
|
|
216
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
217
|
+
) -> 'tax_lots':
|
|
218
|
+
return super().__new__(
|
|
219
|
+
cls,
|
|
220
|
+
arg,
|
|
221
|
+
_configuration=_configuration,
|
|
222
|
+
)
|
|
223
|
+
|
|
224
|
+
def __getitem__(self, i: int) -> 'TaxLot':
|
|
225
|
+
return super().__getitem__(i)
|
|
200
226
|
__annotations__ = {
|
|
201
227
|
"symbol": symbol,
|
|
202
228
|
"units": units,
|
|
@@ -206,6 +232,7 @@ class Position(
|
|
|
206
232
|
"fractional_units": fractional_units,
|
|
207
233
|
"currency": currency,
|
|
208
234
|
"cash_equivalent": cash_equivalent,
|
|
235
|
+
"tax_lots": tax_lots,
|
|
209
236
|
}
|
|
210
237
|
additional_properties = schemas.AnyTypeSchema
|
|
211
238
|
|
|
@@ -233,10 +260,13 @@ class Position(
|
|
|
233
260
|
@typing.overload
|
|
234
261
|
def __getitem__(self, name: typing_extensions.Literal["cash_equivalent"]) -> MetaOapg.properties.cash_equivalent: ...
|
|
235
262
|
|
|
263
|
+
@typing.overload
|
|
264
|
+
def __getitem__(self, name: typing_extensions.Literal["tax_lots"]) -> MetaOapg.properties.tax_lots: ...
|
|
265
|
+
|
|
236
266
|
@typing.overload
|
|
237
267
|
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
|
238
268
|
|
|
239
|
-
def __getitem__(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["units"], typing_extensions.Literal["price"], typing_extensions.Literal["open_pnl"], typing_extensions.Literal["average_purchase_price"], typing_extensions.Literal["fractional_units"], typing_extensions.Literal["currency"], typing_extensions.Literal["cash_equivalent"], str, ]):
|
|
269
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["units"], typing_extensions.Literal["price"], typing_extensions.Literal["open_pnl"], typing_extensions.Literal["average_purchase_price"], typing_extensions.Literal["fractional_units"], typing_extensions.Literal["currency"], typing_extensions.Literal["cash_equivalent"], typing_extensions.Literal["tax_lots"], str, ]):
|
|
240
270
|
# dict_instance[name] accessor
|
|
241
271
|
return super().__getitem__(name)
|
|
242
272
|
|
|
@@ -264,10 +294,13 @@ class Position(
|
|
|
264
294
|
@typing.overload
|
|
265
295
|
def get_item_oapg(self, name: typing_extensions.Literal["cash_equivalent"]) -> typing.Union[MetaOapg.properties.cash_equivalent, schemas.Unset]: ...
|
|
266
296
|
|
|
297
|
+
@typing.overload
|
|
298
|
+
def get_item_oapg(self, name: typing_extensions.Literal["tax_lots"]) -> typing.Union[MetaOapg.properties.tax_lots, schemas.Unset]: ...
|
|
299
|
+
|
|
267
300
|
@typing.overload
|
|
268
301
|
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
|
269
302
|
|
|
270
|
-
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["units"], typing_extensions.Literal["price"], typing_extensions.Literal["open_pnl"], typing_extensions.Literal["average_purchase_price"], typing_extensions.Literal["fractional_units"], typing_extensions.Literal["currency"], typing_extensions.Literal["cash_equivalent"], str, ]):
|
|
303
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["units"], typing_extensions.Literal["price"], typing_extensions.Literal["open_pnl"], typing_extensions.Literal["average_purchase_price"], typing_extensions.Literal["fractional_units"], typing_extensions.Literal["currency"], typing_extensions.Literal["cash_equivalent"], typing_extensions.Literal["tax_lots"], str, ]):
|
|
271
304
|
return super().get_item_oapg(name)
|
|
272
305
|
|
|
273
306
|
def __new__(
|
|
@@ -281,6 +314,7 @@ class Position(
|
|
|
281
314
|
fractional_units: typing.Union[MetaOapg.properties.fractional_units, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset,
|
|
282
315
|
currency: typing.Union[MetaOapg.properties.currency, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset,
|
|
283
316
|
cash_equivalent: typing.Union[MetaOapg.properties.cash_equivalent, None, bool, schemas.Unset] = schemas.unset,
|
|
317
|
+
tax_lots: typing.Union[MetaOapg.properties.tax_lots, list, tuple, schemas.Unset] = schemas.unset,
|
|
284
318
|
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
285
319
|
**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, ],
|
|
286
320
|
) -> 'Position':
|
|
@@ -295,9 +329,11 @@ class Position(
|
|
|
295
329
|
fractional_units=fractional_units,
|
|
296
330
|
currency=currency,
|
|
297
331
|
cash_equivalent=cash_equivalent,
|
|
332
|
+
tax_lots=tax_lots,
|
|
298
333
|
_configuration=_configuration,
|
|
299
334
|
**kwargs,
|
|
300
335
|
)
|
|
301
336
|
|
|
302
337
|
from snaptrade_client.model.currency import Currency
|
|
303
338
|
from snaptrade_client.model.position_symbol import PositionSymbol
|
|
339
|
+
from snaptrade_client.model.tax_lot import TaxLot
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import date, datetime # noqa: F401
|
|
14
|
+
import decimal # noqa: F401
|
|
15
|
+
import functools # noqa: F401
|
|
16
|
+
import io # noqa: F401
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import typing # noqa: F401
|
|
19
|
+
import typing_extensions # noqa: F401
|
|
20
|
+
import uuid # noqa: F401
|
|
21
|
+
|
|
22
|
+
import frozendict # noqa: F401
|
|
23
|
+
|
|
24
|
+
from snaptrade_client import schemas # noqa: F401
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class TaxLot(
|
|
28
|
+
schemas.DictSchema
|
|
29
|
+
):
|
|
30
|
+
"""
|
|
31
|
+
This class is auto generated by Konfig (https://konfigthis.com)
|
|
32
|
+
|
|
33
|
+
Describes a single tax lot for a position.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class MetaOapg:
|
|
38
|
+
|
|
39
|
+
class properties:
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class original_purchase_date(
|
|
43
|
+
schemas.DateTimeBase,
|
|
44
|
+
schemas.StrBase,
|
|
45
|
+
schemas.NoneBase,
|
|
46
|
+
schemas.Schema,
|
|
47
|
+
schemas.NoneStrMixin
|
|
48
|
+
):
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class MetaOapg:
|
|
52
|
+
format = 'date-time'
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def __new__(
|
|
56
|
+
cls,
|
|
57
|
+
*args: typing.Union[None, str, datetime, ],
|
|
58
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
59
|
+
) -> 'original_purchase_date':
|
|
60
|
+
return super().__new__(
|
|
61
|
+
cls,
|
|
62
|
+
*args,
|
|
63
|
+
_configuration=_configuration,
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
class quantity(
|
|
68
|
+
schemas.StrBase,
|
|
69
|
+
schemas.NoneBase,
|
|
70
|
+
schemas.Schema,
|
|
71
|
+
schemas.NoneStrMixin
|
|
72
|
+
):
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
def __new__(
|
|
76
|
+
cls,
|
|
77
|
+
*args: typing.Union[None, str, ],
|
|
78
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
79
|
+
) -> 'quantity':
|
|
80
|
+
return super().__new__(
|
|
81
|
+
cls,
|
|
82
|
+
*args,
|
|
83
|
+
_configuration=_configuration,
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
class purchased_price(
|
|
88
|
+
schemas.StrBase,
|
|
89
|
+
schemas.NoneBase,
|
|
90
|
+
schemas.Schema,
|
|
91
|
+
schemas.NoneStrMixin
|
|
92
|
+
):
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
def __new__(
|
|
96
|
+
cls,
|
|
97
|
+
*args: typing.Union[None, str, ],
|
|
98
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
99
|
+
) -> 'purchased_price':
|
|
100
|
+
return super().__new__(
|
|
101
|
+
cls,
|
|
102
|
+
*args,
|
|
103
|
+
_configuration=_configuration,
|
|
104
|
+
)
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
class cost_basis(
|
|
108
|
+
schemas.StrBase,
|
|
109
|
+
schemas.NoneBase,
|
|
110
|
+
schemas.Schema,
|
|
111
|
+
schemas.NoneStrMixin
|
|
112
|
+
):
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
def __new__(
|
|
116
|
+
cls,
|
|
117
|
+
*args: typing.Union[None, str, ],
|
|
118
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
119
|
+
) -> 'cost_basis':
|
|
120
|
+
return super().__new__(
|
|
121
|
+
cls,
|
|
122
|
+
*args,
|
|
123
|
+
_configuration=_configuration,
|
|
124
|
+
)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
class current_value(
|
|
128
|
+
schemas.StrBase,
|
|
129
|
+
schemas.NoneBase,
|
|
130
|
+
schemas.Schema,
|
|
131
|
+
schemas.NoneStrMixin
|
|
132
|
+
):
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
def __new__(
|
|
136
|
+
cls,
|
|
137
|
+
*args: typing.Union[None, str, ],
|
|
138
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
139
|
+
) -> 'current_value':
|
|
140
|
+
return super().__new__(
|
|
141
|
+
cls,
|
|
142
|
+
*args,
|
|
143
|
+
_configuration=_configuration,
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
class position_type(
|
|
148
|
+
schemas.StrBase,
|
|
149
|
+
schemas.NoneBase,
|
|
150
|
+
schemas.Schema,
|
|
151
|
+
schemas.NoneStrMixin
|
|
152
|
+
):
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
def __new__(
|
|
156
|
+
cls,
|
|
157
|
+
*args: typing.Union[None, str, ],
|
|
158
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
159
|
+
) -> 'position_type':
|
|
160
|
+
return super().__new__(
|
|
161
|
+
cls,
|
|
162
|
+
*args,
|
|
163
|
+
_configuration=_configuration,
|
|
164
|
+
)
|
|
165
|
+
__annotations__ = {
|
|
166
|
+
"original_purchase_date": original_purchase_date,
|
|
167
|
+
"quantity": quantity,
|
|
168
|
+
"purchased_price": purchased_price,
|
|
169
|
+
"cost_basis": cost_basis,
|
|
170
|
+
"current_value": current_value,
|
|
171
|
+
"position_type": position_type,
|
|
172
|
+
}
|
|
173
|
+
additional_properties = schemas.AnyTypeSchema
|
|
174
|
+
|
|
175
|
+
@typing.overload
|
|
176
|
+
def __getitem__(self, name: typing_extensions.Literal["original_purchase_date"]) -> MetaOapg.properties.original_purchase_date: ...
|
|
177
|
+
|
|
178
|
+
@typing.overload
|
|
179
|
+
def __getitem__(self, name: typing_extensions.Literal["quantity"]) -> MetaOapg.properties.quantity: ...
|
|
180
|
+
|
|
181
|
+
@typing.overload
|
|
182
|
+
def __getitem__(self, name: typing_extensions.Literal["purchased_price"]) -> MetaOapg.properties.purchased_price: ...
|
|
183
|
+
|
|
184
|
+
@typing.overload
|
|
185
|
+
def __getitem__(self, name: typing_extensions.Literal["cost_basis"]) -> MetaOapg.properties.cost_basis: ...
|
|
186
|
+
|
|
187
|
+
@typing.overload
|
|
188
|
+
def __getitem__(self, name: typing_extensions.Literal["current_value"]) -> MetaOapg.properties.current_value: ...
|
|
189
|
+
|
|
190
|
+
@typing.overload
|
|
191
|
+
def __getitem__(self, name: typing_extensions.Literal["position_type"]) -> MetaOapg.properties.position_type: ...
|
|
192
|
+
|
|
193
|
+
@typing.overload
|
|
194
|
+
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
|
195
|
+
|
|
196
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["original_purchase_date"], typing_extensions.Literal["quantity"], typing_extensions.Literal["purchased_price"], typing_extensions.Literal["cost_basis"], typing_extensions.Literal["current_value"], typing_extensions.Literal["position_type"], str, ]):
|
|
197
|
+
# dict_instance[name] accessor
|
|
198
|
+
return super().__getitem__(name)
|
|
199
|
+
|
|
200
|
+
@typing.overload
|
|
201
|
+
def get_item_oapg(self, name: typing_extensions.Literal["original_purchase_date"]) -> typing.Union[MetaOapg.properties.original_purchase_date, schemas.Unset]: ...
|
|
202
|
+
|
|
203
|
+
@typing.overload
|
|
204
|
+
def get_item_oapg(self, name: typing_extensions.Literal["quantity"]) -> typing.Union[MetaOapg.properties.quantity, schemas.Unset]: ...
|
|
205
|
+
|
|
206
|
+
@typing.overload
|
|
207
|
+
def get_item_oapg(self, name: typing_extensions.Literal["purchased_price"]) -> typing.Union[MetaOapg.properties.purchased_price, schemas.Unset]: ...
|
|
208
|
+
|
|
209
|
+
@typing.overload
|
|
210
|
+
def get_item_oapg(self, name: typing_extensions.Literal["cost_basis"]) -> typing.Union[MetaOapg.properties.cost_basis, schemas.Unset]: ...
|
|
211
|
+
|
|
212
|
+
@typing.overload
|
|
213
|
+
def get_item_oapg(self, name: typing_extensions.Literal["current_value"]) -> typing.Union[MetaOapg.properties.current_value, schemas.Unset]: ...
|
|
214
|
+
|
|
215
|
+
@typing.overload
|
|
216
|
+
def get_item_oapg(self, name: typing_extensions.Literal["position_type"]) -> typing.Union[MetaOapg.properties.position_type, schemas.Unset]: ...
|
|
217
|
+
|
|
218
|
+
@typing.overload
|
|
219
|
+
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
|
220
|
+
|
|
221
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["original_purchase_date"], typing_extensions.Literal["quantity"], typing_extensions.Literal["purchased_price"], typing_extensions.Literal["cost_basis"], typing_extensions.Literal["current_value"], typing_extensions.Literal["position_type"], str, ]):
|
|
222
|
+
return super().get_item_oapg(name)
|
|
223
|
+
|
|
224
|
+
def __new__(
|
|
225
|
+
cls,
|
|
226
|
+
*args: typing.Union[dict, frozendict.frozendict, ],
|
|
227
|
+
original_purchase_date: typing.Union[MetaOapg.properties.original_purchase_date, None, str, datetime, schemas.Unset] = schemas.unset,
|
|
228
|
+
quantity: typing.Union[MetaOapg.properties.quantity, None, str, schemas.Unset] = schemas.unset,
|
|
229
|
+
purchased_price: typing.Union[MetaOapg.properties.purchased_price, None, str, schemas.Unset] = schemas.unset,
|
|
230
|
+
cost_basis: typing.Union[MetaOapg.properties.cost_basis, None, str, schemas.Unset] = schemas.unset,
|
|
231
|
+
current_value: typing.Union[MetaOapg.properties.current_value, None, str, schemas.Unset] = schemas.unset,
|
|
232
|
+
position_type: typing.Union[MetaOapg.properties.position_type, None, str, schemas.Unset] = schemas.unset,
|
|
233
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
234
|
+
**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, ],
|
|
235
|
+
) -> 'TaxLot':
|
|
236
|
+
return super().__new__(
|
|
237
|
+
cls,
|
|
238
|
+
*args,
|
|
239
|
+
original_purchase_date=original_purchase_date,
|
|
240
|
+
quantity=quantity,
|
|
241
|
+
purchased_price=purchased_price,
|
|
242
|
+
cost_basis=cost_basis,
|
|
243
|
+
current_value=current_value,
|
|
244
|
+
position_type=position_type,
|
|
245
|
+
_configuration=_configuration,
|
|
246
|
+
**kwargs,
|
|
247
|
+
)
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import date, datetime # noqa: F401
|
|
14
|
+
import decimal # noqa: F401
|
|
15
|
+
import functools # noqa: F401
|
|
16
|
+
import io # noqa: F401
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import typing # noqa: F401
|
|
19
|
+
import typing_extensions # noqa: F401
|
|
20
|
+
import uuid # noqa: F401
|
|
21
|
+
|
|
22
|
+
import frozendict # noqa: F401
|
|
23
|
+
|
|
24
|
+
from snaptrade_client import schemas # noqa: F401
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class TaxLot(
|
|
28
|
+
schemas.DictSchema
|
|
29
|
+
):
|
|
30
|
+
"""
|
|
31
|
+
This class is auto generated by Konfig (https://konfigthis.com)
|
|
32
|
+
|
|
33
|
+
Describes a single tax lot for a position.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class MetaOapg:
|
|
38
|
+
|
|
39
|
+
class properties:
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class original_purchase_date(
|
|
43
|
+
schemas.DateTimeBase,
|
|
44
|
+
schemas.StrBase,
|
|
45
|
+
schemas.NoneBase,
|
|
46
|
+
schemas.Schema,
|
|
47
|
+
schemas.NoneStrMixin
|
|
48
|
+
):
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class MetaOapg:
|
|
52
|
+
format = 'date-time'
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def __new__(
|
|
56
|
+
cls,
|
|
57
|
+
*args: typing.Union[None, str, datetime, ],
|
|
58
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
59
|
+
) -> 'original_purchase_date':
|
|
60
|
+
return super().__new__(
|
|
61
|
+
cls,
|
|
62
|
+
*args,
|
|
63
|
+
_configuration=_configuration,
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
class quantity(
|
|
68
|
+
schemas.StrBase,
|
|
69
|
+
schemas.NoneBase,
|
|
70
|
+
schemas.Schema,
|
|
71
|
+
schemas.NoneStrMixin
|
|
72
|
+
):
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
def __new__(
|
|
76
|
+
cls,
|
|
77
|
+
*args: typing.Union[None, str, ],
|
|
78
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
79
|
+
) -> 'quantity':
|
|
80
|
+
return super().__new__(
|
|
81
|
+
cls,
|
|
82
|
+
*args,
|
|
83
|
+
_configuration=_configuration,
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
class purchased_price(
|
|
88
|
+
schemas.StrBase,
|
|
89
|
+
schemas.NoneBase,
|
|
90
|
+
schemas.Schema,
|
|
91
|
+
schemas.NoneStrMixin
|
|
92
|
+
):
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
def __new__(
|
|
96
|
+
cls,
|
|
97
|
+
*args: typing.Union[None, str, ],
|
|
98
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
99
|
+
) -> 'purchased_price':
|
|
100
|
+
return super().__new__(
|
|
101
|
+
cls,
|
|
102
|
+
*args,
|
|
103
|
+
_configuration=_configuration,
|
|
104
|
+
)
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
class cost_basis(
|
|
108
|
+
schemas.StrBase,
|
|
109
|
+
schemas.NoneBase,
|
|
110
|
+
schemas.Schema,
|
|
111
|
+
schemas.NoneStrMixin
|
|
112
|
+
):
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
def __new__(
|
|
116
|
+
cls,
|
|
117
|
+
*args: typing.Union[None, str, ],
|
|
118
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
119
|
+
) -> 'cost_basis':
|
|
120
|
+
return super().__new__(
|
|
121
|
+
cls,
|
|
122
|
+
*args,
|
|
123
|
+
_configuration=_configuration,
|
|
124
|
+
)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
class current_value(
|
|
128
|
+
schemas.StrBase,
|
|
129
|
+
schemas.NoneBase,
|
|
130
|
+
schemas.Schema,
|
|
131
|
+
schemas.NoneStrMixin
|
|
132
|
+
):
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
def __new__(
|
|
136
|
+
cls,
|
|
137
|
+
*args: typing.Union[None, str, ],
|
|
138
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
139
|
+
) -> 'current_value':
|
|
140
|
+
return super().__new__(
|
|
141
|
+
cls,
|
|
142
|
+
*args,
|
|
143
|
+
_configuration=_configuration,
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
class position_type(
|
|
148
|
+
schemas.StrBase,
|
|
149
|
+
schemas.NoneBase,
|
|
150
|
+
schemas.Schema,
|
|
151
|
+
schemas.NoneStrMixin
|
|
152
|
+
):
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
def __new__(
|
|
156
|
+
cls,
|
|
157
|
+
*args: typing.Union[None, str, ],
|
|
158
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
159
|
+
) -> 'position_type':
|
|
160
|
+
return super().__new__(
|
|
161
|
+
cls,
|
|
162
|
+
*args,
|
|
163
|
+
_configuration=_configuration,
|
|
164
|
+
)
|
|
165
|
+
__annotations__ = {
|
|
166
|
+
"original_purchase_date": original_purchase_date,
|
|
167
|
+
"quantity": quantity,
|
|
168
|
+
"purchased_price": purchased_price,
|
|
169
|
+
"cost_basis": cost_basis,
|
|
170
|
+
"current_value": current_value,
|
|
171
|
+
"position_type": position_type,
|
|
172
|
+
}
|
|
173
|
+
additional_properties = schemas.AnyTypeSchema
|
|
174
|
+
|
|
175
|
+
@typing.overload
|
|
176
|
+
def __getitem__(self, name: typing_extensions.Literal["original_purchase_date"]) -> MetaOapg.properties.original_purchase_date: ...
|
|
177
|
+
|
|
178
|
+
@typing.overload
|
|
179
|
+
def __getitem__(self, name: typing_extensions.Literal["quantity"]) -> MetaOapg.properties.quantity: ...
|
|
180
|
+
|
|
181
|
+
@typing.overload
|
|
182
|
+
def __getitem__(self, name: typing_extensions.Literal["purchased_price"]) -> MetaOapg.properties.purchased_price: ...
|
|
183
|
+
|
|
184
|
+
@typing.overload
|
|
185
|
+
def __getitem__(self, name: typing_extensions.Literal["cost_basis"]) -> MetaOapg.properties.cost_basis: ...
|
|
186
|
+
|
|
187
|
+
@typing.overload
|
|
188
|
+
def __getitem__(self, name: typing_extensions.Literal["current_value"]) -> MetaOapg.properties.current_value: ...
|
|
189
|
+
|
|
190
|
+
@typing.overload
|
|
191
|
+
def __getitem__(self, name: typing_extensions.Literal["position_type"]) -> MetaOapg.properties.position_type: ...
|
|
192
|
+
|
|
193
|
+
@typing.overload
|
|
194
|
+
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
|
195
|
+
|
|
196
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["original_purchase_date"], typing_extensions.Literal["quantity"], typing_extensions.Literal["purchased_price"], typing_extensions.Literal["cost_basis"], typing_extensions.Literal["current_value"], typing_extensions.Literal["position_type"], str, ]):
|
|
197
|
+
# dict_instance[name] accessor
|
|
198
|
+
return super().__getitem__(name)
|
|
199
|
+
|
|
200
|
+
@typing.overload
|
|
201
|
+
def get_item_oapg(self, name: typing_extensions.Literal["original_purchase_date"]) -> typing.Union[MetaOapg.properties.original_purchase_date, schemas.Unset]: ...
|
|
202
|
+
|
|
203
|
+
@typing.overload
|
|
204
|
+
def get_item_oapg(self, name: typing_extensions.Literal["quantity"]) -> typing.Union[MetaOapg.properties.quantity, schemas.Unset]: ...
|
|
205
|
+
|
|
206
|
+
@typing.overload
|
|
207
|
+
def get_item_oapg(self, name: typing_extensions.Literal["purchased_price"]) -> typing.Union[MetaOapg.properties.purchased_price, schemas.Unset]: ...
|
|
208
|
+
|
|
209
|
+
@typing.overload
|
|
210
|
+
def get_item_oapg(self, name: typing_extensions.Literal["cost_basis"]) -> typing.Union[MetaOapg.properties.cost_basis, schemas.Unset]: ...
|
|
211
|
+
|
|
212
|
+
@typing.overload
|
|
213
|
+
def get_item_oapg(self, name: typing_extensions.Literal["current_value"]) -> typing.Union[MetaOapg.properties.current_value, schemas.Unset]: ...
|
|
214
|
+
|
|
215
|
+
@typing.overload
|
|
216
|
+
def get_item_oapg(self, name: typing_extensions.Literal["position_type"]) -> typing.Union[MetaOapg.properties.position_type, schemas.Unset]: ...
|
|
217
|
+
|
|
218
|
+
@typing.overload
|
|
219
|
+
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
|
220
|
+
|
|
221
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["original_purchase_date"], typing_extensions.Literal["quantity"], typing_extensions.Literal["purchased_price"], typing_extensions.Literal["cost_basis"], typing_extensions.Literal["current_value"], typing_extensions.Literal["position_type"], str, ]):
|
|
222
|
+
return super().get_item_oapg(name)
|
|
223
|
+
|
|
224
|
+
def __new__(
|
|
225
|
+
cls,
|
|
226
|
+
*args: typing.Union[dict, frozendict.frozendict, ],
|
|
227
|
+
original_purchase_date: typing.Union[MetaOapg.properties.original_purchase_date, None, str, datetime, schemas.Unset] = schemas.unset,
|
|
228
|
+
quantity: typing.Union[MetaOapg.properties.quantity, None, str, schemas.Unset] = schemas.unset,
|
|
229
|
+
purchased_price: typing.Union[MetaOapg.properties.purchased_price, None, str, schemas.Unset] = schemas.unset,
|
|
230
|
+
cost_basis: typing.Union[MetaOapg.properties.cost_basis, None, str, schemas.Unset] = schemas.unset,
|
|
231
|
+
current_value: typing.Union[MetaOapg.properties.current_value, None, str, schemas.Unset] = schemas.unset,
|
|
232
|
+
position_type: typing.Union[MetaOapg.properties.position_type, None, str, schemas.Unset] = schemas.unset,
|
|
233
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
234
|
+
**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, ],
|
|
235
|
+
) -> 'TaxLot':
|
|
236
|
+
return super().__new__(
|
|
237
|
+
cls,
|
|
238
|
+
*args,
|
|
239
|
+
original_purchase_date=original_purchase_date,
|
|
240
|
+
quantity=quantity,
|
|
241
|
+
purchased_price=purchased_price,
|
|
242
|
+
cost_basis=cost_basis,
|
|
243
|
+
current_value=current_value,
|
|
244
|
+
position_type=position_type,
|
|
245
|
+
_configuration=_configuration,
|
|
246
|
+
**kwargs,
|
|
247
|
+
)
|
|
@@ -171,6 +171,7 @@ from snaptrade_client.model.symbols_quotes import SymbolsQuotes
|
|
|
171
171
|
from snaptrade_client.model.sync_status_date import SyncStatusDate
|
|
172
172
|
from snaptrade_client.model.sync_status_date_nullable import SyncStatusDateNullable
|
|
173
173
|
from snaptrade_client.model.take_profit import TakeProfit
|
|
174
|
+
from snaptrade_client.model.tax_lot import TaxLot
|
|
174
175
|
from snaptrade_client.model.time import Time
|
|
175
176
|
from snaptrade_client.model.time_in_force import TimeInForce
|
|
176
177
|
from snaptrade_client.model.time_in_force_strict import TimeInForceStrict
|
|
@@ -17,6 +17,7 @@ from typing_extensions import TypedDict, Literal, TYPE_CHECKING
|
|
|
17
17
|
|
|
18
18
|
from snaptrade_client.type.currency import Currency
|
|
19
19
|
from snaptrade_client.type.position_symbol import PositionSymbol
|
|
20
|
+
from snaptrade_client.type.tax_lot import TaxLot
|
|
20
21
|
|
|
21
22
|
class RequiredPosition(TypedDict):
|
|
22
23
|
pass
|
|
@@ -46,5 +47,8 @@ class OptionalPosition(TypedDict, total=False):
|
|
|
46
47
|
# If the position is a cash equivalent (usually a money market fund) that is also counted in account cash balance and buying power
|
|
47
48
|
cash_equivalent: typing.Optional[bool]
|
|
48
49
|
|
|
50
|
+
# List of tax lots for the given position (disabled by default, contact support if needed)
|
|
51
|
+
tax_lots: typing.List[TaxLot]
|
|
52
|
+
|
|
49
53
|
class Position(RequiredPosition, OptionalPosition):
|
|
50
54
|
pass
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import datetime, date
|
|
14
|
+
import typing
|
|
15
|
+
from enum import Enum
|
|
16
|
+
from typing_extensions import TypedDict, Literal, TYPE_CHECKING
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class RequiredTaxLot(TypedDict):
|
|
20
|
+
pass
|
|
21
|
+
|
|
22
|
+
class OptionalTaxLot(TypedDict, total=False):
|
|
23
|
+
# The date and time of the purchase.
|
|
24
|
+
original_purchase_date: typing.Optional[datetime]
|
|
25
|
+
|
|
26
|
+
# The number of shares in the tax lot. This can be fractional or integer units.
|
|
27
|
+
quantity: typing.Optional[str]
|
|
28
|
+
|
|
29
|
+
# The purchase price per share for the tax lot.
|
|
30
|
+
purchased_price: typing.Optional[str]
|
|
31
|
+
|
|
32
|
+
# The cost basis of the entire lot.
|
|
33
|
+
cost_basis: typing.Optional[str]
|
|
34
|
+
|
|
35
|
+
# The current market value of the entire lot.
|
|
36
|
+
current_value: typing.Optional[str]
|
|
37
|
+
|
|
38
|
+
# The type of position for the tax lot (e.g., LONG, SHORT).
|
|
39
|
+
position_type: typing.Optional[str]
|
|
40
|
+
|
|
41
|
+
class TaxLot(RequiredTaxLot, OptionalTaxLot):
|
|
42
|
+
pass
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright (c)
|
|
1
|
+
Copyright (c) 2026- Konfig, Inc. (https://konfigthis.com)
|
|
2
2
|
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
4
|
|
{snaptrade_python_sdk-11.0.154.dist-info → snaptrade_python_sdk-11.0.155.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.155
|
|
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.155)
|
|
34
34
|
[](https://github.com/passiv/snaptrade-sdks/tree/master/sdks/python#readme)
|
|
35
35
|
[](https://snaptrade.com/)
|
|
36
36
|
|
|
@@ -111,7 +111,7 @@ Python >=3.8
|
|
|
111
111
|
## Installation<a id="installation"></a>
|
|
112
112
|
|
|
113
113
|
```sh
|
|
114
|
-
pip install snaptrade-python-sdk==11.0.
|
|
114
|
+
pip install snaptrade-python-sdk==11.0.155
|
|
115
115
|
```
|
|
116
116
|
|
|
117
117
|
## 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=HnB_W5FgLbeS0ElAevuCwMYvcJO6YT4PAw-6jwDLbGU,820
|
|
2
|
+
snaptrade_client/api_client.py,sha256=RhNfxPMSwtQZj9j0Rf8O0UA2Jck_td_8Vu3XRuaSkEo,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=U2W6P3ea6gIUTB16bJ16y4fIBuaOF_TqUyGmuFF6STM,12851
|
|
@@ -81,7 +81,7 @@ snaptrade_client/apis/tags/transactions_and_reporting_api_generated.py,sha256=Tw
|
|
|
81
81
|
snaptrade_client/client.py,sha256=p-1j4DS7DHuwClS8Kh4VHbTFB7jf-DMpkrh5PcCmYTg,2308
|
|
82
82
|
snaptrade_client/client.pyi,sha256=p-1j4DS7DHuwClS8Kh4VHbTFB7jf-DMpkrh5PcCmYTg,2308
|
|
83
83
|
snaptrade_client/client_custom.py,sha256=Jx9ulCzelMFlESjzVFQSjBlYcH4dWxSJJWZDMPLyetM,745
|
|
84
|
-
snaptrade_client/configuration.py,sha256=
|
|
84
|
+
snaptrade_client/configuration.py,sha256=_bEGcEgfYZ17lI9K-ZL9v-6im92zpsedjP01t46DPL0,19262
|
|
85
85
|
snaptrade_client/exceptions.py,sha256=X0apI_sgQpGpa-qIqPUClReCdHAxeSuA6GW0YH_RsWg,7771
|
|
86
86
|
snaptrade_client/exceptions_base.py,sha256=LAQkaC5C61-SdBLfyMjb0K7AYJkWVuLmg2uCvHa71FM,2274
|
|
87
87
|
snaptrade_client/model/__init__.py,sha256=ayi2MIzcf0eAIsY13ToiNplV9tW-pMBFrC0I9yckGM8,350
|
|
@@ -345,8 +345,8 @@ snaptrade_client/model/performance_custom_bad_tickers.py,sha256=Bsr6upKbMwdnN7Sy
|
|
|
345
345
|
snaptrade_client/model/performance_custom_bad_tickers.pyi,sha256=Bsr6upKbMwdnN7SyfjxrLDlqUTizgUaywXggDRjMths,1870
|
|
346
346
|
snaptrade_client/model/portfolio_group_id.py,sha256=5RE_TEWeQAZeHqctwrMSqt8pCtgph_t9uJQKVAS7Ed0,607
|
|
347
347
|
snaptrade_client/model/portfolio_group_id.pyi,sha256=5RE_TEWeQAZeHqctwrMSqt8pCtgph_t9uJQKVAS7Ed0,607
|
|
348
|
-
snaptrade_client/model/position.py,sha256=
|
|
349
|
-
snaptrade_client/model/position.pyi,sha256=
|
|
348
|
+
snaptrade_client/model/position.py,sha256=dC345laO7-Tej1nbWgJ-0j0lA66RhAXcO4dc3xFbLeQ,14315
|
|
349
|
+
snaptrade_client/model/position.pyi,sha256=dC345laO7-Tej1nbWgJ-0j0lA66RhAXcO4dc3xFbLeQ,14315
|
|
350
350
|
snaptrade_client/model/position_symbol.py,sha256=kopDWLHnN4pnCTlrDz9dMAeQm2s6E8C-AG5ESO7uCPU,6509
|
|
351
351
|
snaptrade_client/model/position_symbol.pyi,sha256=kopDWLHnN4pnCTlrDz9dMAeQm2s6E8C-AG5ESO7uCPU,6509
|
|
352
352
|
snaptrade_client/model/price.py,sha256=Se7jPRmTBfPyAMztvI-fBc6fNZaEHENFFY6xgqz6Gkg,1120
|
|
@@ -405,6 +405,8 @@ snaptrade_client/model/sync_status_date_nullable.py,sha256=Efcqzw8S9hTFICjB8a1PS
|
|
|
405
405
|
snaptrade_client/model/sync_status_date_nullable.pyi,sha256=Efcqzw8S9hTFICjB8a1PS2QovsQ7zD-0jlJQBBUsMUM,1190
|
|
406
406
|
snaptrade_client/model/take_profit.py,sha256=eXjtbawnZuQ1V8FRbqig53AyCFJ0D5Btn8ePtkk7qfs,2549
|
|
407
407
|
snaptrade_client/model/take_profit.pyi,sha256=eXjtbawnZuQ1V8FRbqig53AyCFJ0D5Btn8ePtkk7qfs,2549
|
|
408
|
+
snaptrade_client/model/tax_lot.py,sha256=hvSJBNILXi21Lkc_x0uyA2Ut-c3yWbowgWmg0CdX3kU,9655
|
|
409
|
+
snaptrade_client/model/tax_lot.pyi,sha256=hvSJBNILXi21Lkc_x0uyA2Ut-c3yWbowgWmg0CdX3kU,9655
|
|
408
410
|
snaptrade_client/model/time.py,sha256=58s0Oa7JJlLggclsNgVf7ZaWEjf2-3Ok1PeE-yJPEJI,594
|
|
409
411
|
snaptrade_client/model/time.pyi,sha256=58s0Oa7JJlLggclsNgVf7ZaWEjf2-3Ok1PeE-yJPEJI,594
|
|
410
412
|
snaptrade_client/model/time_in_force.py,sha256=xC86IP-JT8OoOkSpV6I3CKY92hDj8faHDUoxTCWsrk8,601
|
|
@@ -445,7 +447,7 @@ snaptrade_client/model/user_secret.py,sha256=7xf__S566WtTq7VthmdVtrCBIfgpnYWYqE9
|
|
|
445
447
|
snaptrade_client/model/user_secret.pyi,sha256=7xf__S566WtTq7VthmdVtrCBIfgpnYWYqE9cmz9vBMc,600
|
|
446
448
|
snaptrade_client/model/validated_trade_body.py,sha256=NkTel1ulgSjBd6K7vur6puEbfrg3u1vdmtUKArOu8ws,3085
|
|
447
449
|
snaptrade_client/model/validated_trade_body.pyi,sha256=NkTel1ulgSjBd6K7vur6puEbfrg3u1vdmtUKArOu8ws,3085
|
|
448
|
-
snaptrade_client/models/__init__.py,sha256=
|
|
450
|
+
snaptrade_client/models/__init__.py,sha256=LYhX90J0EoL66K0NyZeVU5Za5Rc3K6w59Aca2HbGyNs,14234
|
|
449
451
|
snaptrade_client/operation_parameter_map.py,sha256=A-CnmImTxEal5nbbqP49BHGYYSm3_RjjW8iCe8fSQMM,19137
|
|
450
452
|
snaptrade_client/paths/__init__.py,sha256=O5AyZd3nQk5HAoQSp2mwdtnBGBmnOhYS6m3JBRk244c,3672
|
|
451
453
|
snaptrade_client/paths/accounts/__init__.py,sha256=_Bqi6B13A-kgd0AOpqmcE1vTxJDfoz-r3Hwf-AmwW6A,307
|
|
@@ -751,7 +753,7 @@ snaptrade_client/type/past_value.py,sha256=mMP6TYBvtwl2937LFv_G0H3S_uXNAy1LPnRlq
|
|
|
751
753
|
snaptrade_client/type/performance_custom.py,sha256=QGx0GPYVrgGYo-bLVnijaak7ZGB-ti-1HSuEbjkAMi4,2665
|
|
752
754
|
snaptrade_client/type/performance_custom_bad_tickers.py,sha256=dkXUonxrer2IAKCdZ2XJCRZmuN5Pz8QlpKLqB7Ze7I4,435
|
|
753
755
|
snaptrade_client/type/portfolio_group_id.py,sha256=5J6sEjGjzmAWd48oyxW-zUC5t0EI4Ehz_d0htMJ93X4,394
|
|
754
|
-
snaptrade_client/type/position.py,sha256=
|
|
756
|
+
snaptrade_client/type/position.py,sha256=IITkTwe4M4ndJsrJrky_pomWUPw1Re8FlGBdkwZSZbY,2550
|
|
755
757
|
snaptrade_client/type/position_symbol.py,sha256=DyBMR4TVpC9Dljr46iI2h39LOlnk3xBtgrZ_Cpi8yck,1704
|
|
756
758
|
snaptrade_client/type/price.py,sha256=bg4ITnU07qZjLdWjYI4FhYYpGb9sVgKnzuuox5MTKy4,385
|
|
757
759
|
snaptrade_client/type/rate_of_return_object.py,sha256=tOi03aj61p009q97yx9d1q6q4VgYYLdlT0_f24dsBhg,876
|
|
@@ -781,6 +783,7 @@ snaptrade_client/type/symbols_quotes.py,sha256=KA4y57qqiYsPcRQ9Xp7s4EVddsV9pQ-1Z
|
|
|
781
783
|
snaptrade_client/type/sync_status_date.py,sha256=b6yY2GmVbcECDsE9jOHVqZqNi6y28ipA1oJKJfnJGdU,393
|
|
782
784
|
snaptrade_client/type/sync_status_date_nullable.py,sha256=KH3WkBmJScMq5dBYbww9fQ8OTNYHHycLl9gobp-5lGw,401
|
|
783
785
|
snaptrade_client/type/take_profit.py,sha256=4GJKe-16bqrR7kulS7fgOgB8qpI7YwABhHwJk2pLvhI,557
|
|
786
|
+
snaptrade_client/type/tax_lot.py,sha256=9UizR72j38X_F1xMAGsDSlK73JuCbgnDWu_PnCUc5Xw,1100
|
|
784
787
|
snaptrade_client/type/time.py,sha256=8wOcPUj4gua_yXsX_ywzTW7rVXSOh7zY-x-BSiQfiaY,382
|
|
785
788
|
snaptrade_client/type/time_in_force.py,sha256=KNosd1xbe4B8AFAZFi0P68wPreUz9w8W0gZWGvKeDEM,389
|
|
786
789
|
snaptrade_client/type/time_in_force_strict.py,sha256=opH8YGpacD-5SD11dF_fpESJ1TERnbnkLvlKjs-dYQY,427
|
|
@@ -803,7 +806,7 @@ snaptrade_client/type/user_secret.py,sha256=pKCVhqf1rROHwa6tvoyA5OAKXCBAmNDvIQCf
|
|
|
803
806
|
snaptrade_client/type/validated_trade_body.py,sha256=ZIPBQWii_a-9zHaBCJ6bQtmL1_I7AG0zwuvkY-ZQ6R4,890
|
|
804
807
|
snaptrade_client/type_util.py,sha256=JIrMYgJzd4IJ8Ne2vqcahlPA9dVmphL9sn8gwccCB4Y,563
|
|
805
808
|
snaptrade_client/validation_metadata.py,sha256=VTN5y-NudHXok1X468J4PnGze_tGEAcs1v3gsXmcrb0,3172
|
|
806
|
-
snaptrade_python_sdk-11.0.
|
|
807
|
-
snaptrade_python_sdk-11.0.
|
|
808
|
-
snaptrade_python_sdk-11.0.
|
|
809
|
-
snaptrade_python_sdk-11.0.
|
|
809
|
+
snaptrade_python_sdk-11.0.155.dist-info/LICENSE,sha256=GxvPdqYTCDLPwtMD70oHKcnAL8Os4eOjPVhERWpJ5Cs,1081
|
|
810
|
+
snaptrade_python_sdk-11.0.155.dist-info/METADATA,sha256=xMfM5uEXn5-3YGCO5XIqXXtZW6n9VL6wXo3KPRQEAZY,100782
|
|
811
|
+
snaptrade_python_sdk-11.0.155.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
812
|
+
snaptrade_python_sdk-11.0.155.dist-info/RECORD,,
|
|
File without changes
|