snaptrade-python-sdk 13.1.1__py3-none-any.whl → 13.1.2__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/instrument.py +4 -0
- snaptrade_client/model/instrument.pyi +4 -0
- snaptrade_client/model/preferred_stock_instrument.py +236 -0
- snaptrade_client/model/preferred_stock_instrument.pyi +230 -0
- snaptrade_client/model/underlying_cfd_instrument.py +4 -0
- snaptrade_client/model/underlying_cfd_instrument.pyi +4 -0
- snaptrade_client/model/underlying_option_instrument.py +4 -0
- snaptrade_client/model/underlying_option_instrument.pyi +4 -0
- snaptrade_client/models/__init__.py +1 -0
- snaptrade_client/paths/accounts_account_id_positions_all/get.py +2 -2
- snaptrade_client/type/account_position.py +1 -1
- snaptrade_client/type/instrument.py +2 -1
- snaptrade_client/type/preferred_stock_instrument.py +47 -0
- snaptrade_client/type/underlying_cfd_instrument.py +2 -1
- snaptrade_client/type/underlying_option_instrument.py +2 -1
- {snaptrade_python_sdk-13.1.1.dist-info → snaptrade_python_sdk-13.1.2.dist-info}/METADATA +5 -5
- {snaptrade_python_sdk-13.1.1.dist-info → snaptrade_python_sdk-13.1.2.dist-info}/RECORD +22 -19
- {snaptrade_python_sdk-13.1.1.dist-info → snaptrade_python_sdk-13.1.2.dist-info}/LICENSE +0 -0
- {snaptrade_python_sdk-13.1.1.dist-info → snaptrade_python_sdk-13.1.2.dist-info}/WHEEL +0 -0
snaptrade_client/__init__.py
CHANGED
snaptrade_client/api_client.py
CHANGED
|
@@ -1175,7 +1175,7 @@ class ApiClient(typing.Generic[TAuth]):
|
|
|
1175
1175
|
self.default_headers[header_name] = header_value
|
|
1176
1176
|
self.cookie = cookie
|
|
1177
1177
|
# Set default User-Agent.
|
|
1178
|
-
self.user_agent = 'Konfig/13.1.
|
|
1178
|
+
self.user_agent = 'Konfig/13.1.2/python'
|
|
1179
1179
|
|
|
1180
1180
|
def __enter__(self):
|
|
1181
1181
|
return self
|
|
@@ -519,7 +519,7 @@ conf = snaptrade_client.Configuration(
|
|
|
519
519
|
"OS: {env}\n"\
|
|
520
520
|
"Python Version: {pyversion}\n"\
|
|
521
521
|
"Version of the API: 1.0.0\n"\
|
|
522
|
-
"SDK Package Version: 13.1.
|
|
522
|
+
"SDK Package Version: 13.1.2".\
|
|
523
523
|
format(env=sys.platform, pyversion=sys.version)
|
|
524
524
|
|
|
525
525
|
def get_host_settings(self):
|
|
@@ -51,6 +51,7 @@ class Instrument(
|
|
|
51
51
|
'MutualFundInstrument': MutualFundInstrument,
|
|
52
52
|
'OptionInstrument': OptionInstrument,
|
|
53
53
|
'OtherInstrument': OtherInstrument,
|
|
54
|
+
'PreferredStockInstrument': PreferredStockInstrument,
|
|
54
55
|
'StockInstrument': StockInstrument,
|
|
55
56
|
'TokenizedAssetInstrument': TokenizedAssetInstrument,
|
|
56
57
|
'adr': AdrInstrument,
|
|
@@ -65,6 +66,7 @@ class Instrument(
|
|
|
65
66
|
'mutualfund': MutualFundInstrument,
|
|
66
67
|
'option': OptionInstrument,
|
|
67
68
|
'other': OtherInstrument,
|
|
69
|
+
'preferred_stock': PreferredStockInstrument,
|
|
68
70
|
'stock': StockInstrument,
|
|
69
71
|
'tokenized_asset': TokenizedAssetInstrument,
|
|
70
72
|
}
|
|
@@ -94,6 +96,7 @@ class Instrument(
|
|
|
94
96
|
TokenizedAssetInstrument,
|
|
95
97
|
OtherInstrument,
|
|
96
98
|
CashInstrument,
|
|
99
|
+
PreferredStockInstrument,
|
|
97
100
|
]
|
|
98
101
|
|
|
99
102
|
|
|
@@ -121,5 +124,6 @@ from snaptrade_client.model.future_option_instrument import FutureOptionInstrume
|
|
|
121
124
|
from snaptrade_client.model.mutual_fund_instrument import MutualFundInstrument
|
|
122
125
|
from snaptrade_client.model.option_instrument import OptionInstrument
|
|
123
126
|
from snaptrade_client.model.other_instrument import OtherInstrument
|
|
127
|
+
from snaptrade_client.model.preferred_stock_instrument import PreferredStockInstrument
|
|
124
128
|
from snaptrade_client.model.stock_instrument import StockInstrument
|
|
125
129
|
from snaptrade_client.model.tokenized_asset_instrument import TokenizedAssetInstrument
|
|
@@ -51,6 +51,7 @@ class Instrument(
|
|
|
51
51
|
'MutualFundInstrument': MutualFundInstrument,
|
|
52
52
|
'OptionInstrument': OptionInstrument,
|
|
53
53
|
'OtherInstrument': OtherInstrument,
|
|
54
|
+
'PreferredStockInstrument': PreferredStockInstrument,
|
|
54
55
|
'StockInstrument': StockInstrument,
|
|
55
56
|
'TokenizedAssetInstrument': TokenizedAssetInstrument,
|
|
56
57
|
'adr': AdrInstrument,
|
|
@@ -65,6 +66,7 @@ class Instrument(
|
|
|
65
66
|
'mutualfund': MutualFundInstrument,
|
|
66
67
|
'option': OptionInstrument,
|
|
67
68
|
'other': OtherInstrument,
|
|
69
|
+
'preferred_stock': PreferredStockInstrument,
|
|
68
70
|
'stock': StockInstrument,
|
|
69
71
|
'tokenized_asset': TokenizedAssetInstrument,
|
|
70
72
|
}
|
|
@@ -94,6 +96,7 @@ class Instrument(
|
|
|
94
96
|
TokenizedAssetInstrument,
|
|
95
97
|
OtherInstrument,
|
|
96
98
|
CashInstrument,
|
|
99
|
+
PreferredStockInstrument,
|
|
97
100
|
]
|
|
98
101
|
|
|
99
102
|
|
|
@@ -121,5 +124,6 @@ from snaptrade_client.model.future_option_instrument import FutureOptionInstrume
|
|
|
121
124
|
from snaptrade_client.model.mutual_fund_instrument import MutualFundInstrument
|
|
122
125
|
from snaptrade_client.model.option_instrument import OptionInstrument
|
|
123
126
|
from snaptrade_client.model.other_instrument import OtherInstrument
|
|
127
|
+
from snaptrade_client.model.preferred_stock_instrument import PreferredStockInstrument
|
|
124
128
|
from snaptrade_client.model.stock_instrument import StockInstrument
|
|
125
129
|
from snaptrade_client.model.tokenized_asset_instrument import TokenizedAssetInstrument
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
|
|
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 PreferredStockInstrument(
|
|
28
|
+
schemas.DictSchema
|
|
29
|
+
):
|
|
30
|
+
"""
|
|
31
|
+
This class is auto generated by Konfig (https://konfigthis.com)
|
|
32
|
+
|
|
33
|
+
Security instrument metadata for preferred stock positions. Preferred shares were previously returned with kind `other`.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class MetaOapg:
|
|
38
|
+
required = {
|
|
39
|
+
"symbol",
|
|
40
|
+
"kind",
|
|
41
|
+
"raw_symbol",
|
|
42
|
+
"id",
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
class properties:
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class kind(
|
|
49
|
+
schemas.EnumBase,
|
|
50
|
+
schemas.StrSchema
|
|
51
|
+
):
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
class MetaOapg:
|
|
55
|
+
enum_value_to_name = {
|
|
56
|
+
"preferred_stock": "PREFERRED_STOCK",
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@schemas.classproperty
|
|
60
|
+
def PREFERRED_STOCK(cls):
|
|
61
|
+
return cls("preferred_stock")
|
|
62
|
+
id = schemas.UUIDSchema
|
|
63
|
+
symbol = schemas.StrSchema
|
|
64
|
+
raw_symbol = schemas.StrSchema
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
class description(
|
|
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
|
+
) -> 'description':
|
|
80
|
+
return super().__new__(
|
|
81
|
+
cls,
|
|
82
|
+
*args,
|
|
83
|
+
_configuration=_configuration,
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
class currency(
|
|
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
|
+
) -> 'currency':
|
|
100
|
+
return super().__new__(
|
|
101
|
+
cls,
|
|
102
|
+
*args,
|
|
103
|
+
_configuration=_configuration,
|
|
104
|
+
)
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
class exchange(
|
|
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
|
+
) -> 'exchange':
|
|
120
|
+
return super().__new__(
|
|
121
|
+
cls,
|
|
122
|
+
*args,
|
|
123
|
+
_configuration=_configuration,
|
|
124
|
+
)
|
|
125
|
+
|
|
126
|
+
@staticmethod
|
|
127
|
+
def figi_instrument() -> typing.Type['FigiInstrumentNullable']:
|
|
128
|
+
return FigiInstrumentNullable
|
|
129
|
+
__annotations__ = {
|
|
130
|
+
"kind": kind,
|
|
131
|
+
"id": id,
|
|
132
|
+
"symbol": symbol,
|
|
133
|
+
"raw_symbol": raw_symbol,
|
|
134
|
+
"description": description,
|
|
135
|
+
"currency": currency,
|
|
136
|
+
"exchange": exchange,
|
|
137
|
+
"figi_instrument": figi_instrument,
|
|
138
|
+
}
|
|
139
|
+
additional_properties = schemas.AnyTypeSchema
|
|
140
|
+
|
|
141
|
+
symbol: MetaOapg.properties.symbol
|
|
142
|
+
kind: MetaOapg.properties.kind
|
|
143
|
+
raw_symbol: MetaOapg.properties.raw_symbol
|
|
144
|
+
id: MetaOapg.properties.id
|
|
145
|
+
|
|
146
|
+
@typing.overload
|
|
147
|
+
def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ...
|
|
148
|
+
|
|
149
|
+
@typing.overload
|
|
150
|
+
def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ...
|
|
151
|
+
|
|
152
|
+
@typing.overload
|
|
153
|
+
def __getitem__(self, name: typing_extensions.Literal["raw_symbol"]) -> MetaOapg.properties.raw_symbol: ...
|
|
154
|
+
|
|
155
|
+
@typing.overload
|
|
156
|
+
def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
|
|
157
|
+
|
|
158
|
+
@typing.overload
|
|
159
|
+
def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ...
|
|
160
|
+
|
|
161
|
+
@typing.overload
|
|
162
|
+
def __getitem__(self, name: typing_extensions.Literal["currency"]) -> MetaOapg.properties.currency: ...
|
|
163
|
+
|
|
164
|
+
@typing.overload
|
|
165
|
+
def __getitem__(self, name: typing_extensions.Literal["exchange"]) -> MetaOapg.properties.exchange: ...
|
|
166
|
+
|
|
167
|
+
@typing.overload
|
|
168
|
+
def __getitem__(self, name: typing_extensions.Literal["figi_instrument"]) -> 'FigiInstrumentNullable': ...
|
|
169
|
+
|
|
170
|
+
@typing.overload
|
|
171
|
+
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
|
172
|
+
|
|
173
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["kind"], typing_extensions.Literal["raw_symbol"], typing_extensions.Literal["id"], typing_extensions.Literal["description"], typing_extensions.Literal["currency"], typing_extensions.Literal["exchange"], typing_extensions.Literal["figi_instrument"], str, ]):
|
|
174
|
+
# dict_instance[name] accessor
|
|
175
|
+
return super().__getitem__(name)
|
|
176
|
+
|
|
177
|
+
@typing.overload
|
|
178
|
+
def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ...
|
|
179
|
+
|
|
180
|
+
@typing.overload
|
|
181
|
+
def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ...
|
|
182
|
+
|
|
183
|
+
@typing.overload
|
|
184
|
+
def get_item_oapg(self, name: typing_extensions.Literal["raw_symbol"]) -> MetaOapg.properties.raw_symbol: ...
|
|
185
|
+
|
|
186
|
+
@typing.overload
|
|
187
|
+
def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
|
|
188
|
+
|
|
189
|
+
@typing.overload
|
|
190
|
+
def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ...
|
|
191
|
+
|
|
192
|
+
@typing.overload
|
|
193
|
+
def get_item_oapg(self, name: typing_extensions.Literal["currency"]) -> typing.Union[MetaOapg.properties.currency, schemas.Unset]: ...
|
|
194
|
+
|
|
195
|
+
@typing.overload
|
|
196
|
+
def get_item_oapg(self, name: typing_extensions.Literal["exchange"]) -> typing.Union[MetaOapg.properties.exchange, schemas.Unset]: ...
|
|
197
|
+
|
|
198
|
+
@typing.overload
|
|
199
|
+
def get_item_oapg(self, name: typing_extensions.Literal["figi_instrument"]) -> typing.Union['FigiInstrumentNullable', schemas.Unset]: ...
|
|
200
|
+
|
|
201
|
+
@typing.overload
|
|
202
|
+
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
|
203
|
+
|
|
204
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["kind"], typing_extensions.Literal["raw_symbol"], typing_extensions.Literal["id"], typing_extensions.Literal["description"], typing_extensions.Literal["currency"], typing_extensions.Literal["exchange"], typing_extensions.Literal["figi_instrument"], str, ]):
|
|
205
|
+
return super().get_item_oapg(name)
|
|
206
|
+
|
|
207
|
+
def __new__(
|
|
208
|
+
cls,
|
|
209
|
+
*args: typing.Union[dict, frozendict.frozendict, ],
|
|
210
|
+
symbol: typing.Union[MetaOapg.properties.symbol, str, ],
|
|
211
|
+
kind: typing.Union[MetaOapg.properties.kind, str, ],
|
|
212
|
+
raw_symbol: typing.Union[MetaOapg.properties.raw_symbol, str, ],
|
|
213
|
+
id: typing.Union[MetaOapg.properties.id, str, uuid.UUID, ],
|
|
214
|
+
description: typing.Union[MetaOapg.properties.description, None, str, schemas.Unset] = schemas.unset,
|
|
215
|
+
currency: typing.Union[MetaOapg.properties.currency, None, str, schemas.Unset] = schemas.unset,
|
|
216
|
+
exchange: typing.Union[MetaOapg.properties.exchange, None, str, schemas.Unset] = schemas.unset,
|
|
217
|
+
figi_instrument: typing.Union['FigiInstrumentNullable', schemas.Unset] = schemas.unset,
|
|
218
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
219
|
+
**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, ],
|
|
220
|
+
) -> 'PreferredStockInstrument':
|
|
221
|
+
return super().__new__(
|
|
222
|
+
cls,
|
|
223
|
+
*args,
|
|
224
|
+
symbol=symbol,
|
|
225
|
+
kind=kind,
|
|
226
|
+
raw_symbol=raw_symbol,
|
|
227
|
+
id=id,
|
|
228
|
+
description=description,
|
|
229
|
+
currency=currency,
|
|
230
|
+
exchange=exchange,
|
|
231
|
+
figi_instrument=figi_instrument,
|
|
232
|
+
_configuration=_configuration,
|
|
233
|
+
**kwargs,
|
|
234
|
+
)
|
|
235
|
+
|
|
236
|
+
from snaptrade_client.model.figi_instrument_nullable import FigiInstrumentNullable
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
|
|
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 PreferredStockInstrument(
|
|
28
|
+
schemas.DictSchema
|
|
29
|
+
):
|
|
30
|
+
"""
|
|
31
|
+
This class is auto generated by Konfig (https://konfigthis.com)
|
|
32
|
+
|
|
33
|
+
Security instrument metadata for preferred stock positions. Preferred shares were previously returned with kind `other`.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class MetaOapg:
|
|
38
|
+
required = {
|
|
39
|
+
"symbol",
|
|
40
|
+
"kind",
|
|
41
|
+
"raw_symbol",
|
|
42
|
+
"id",
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
class properties:
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class kind(
|
|
49
|
+
schemas.EnumBase,
|
|
50
|
+
schemas.StrSchema
|
|
51
|
+
):
|
|
52
|
+
|
|
53
|
+
@schemas.classproperty
|
|
54
|
+
def PREFERRED_STOCK(cls):
|
|
55
|
+
return cls("preferred_stock")
|
|
56
|
+
id = schemas.UUIDSchema
|
|
57
|
+
symbol = schemas.StrSchema
|
|
58
|
+
raw_symbol = schemas.StrSchema
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
class description(
|
|
62
|
+
schemas.StrBase,
|
|
63
|
+
schemas.NoneBase,
|
|
64
|
+
schemas.Schema,
|
|
65
|
+
schemas.NoneStrMixin
|
|
66
|
+
):
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def __new__(
|
|
70
|
+
cls,
|
|
71
|
+
*args: typing.Union[None, str, ],
|
|
72
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
73
|
+
) -> 'description':
|
|
74
|
+
return super().__new__(
|
|
75
|
+
cls,
|
|
76
|
+
*args,
|
|
77
|
+
_configuration=_configuration,
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
class currency(
|
|
82
|
+
schemas.StrBase,
|
|
83
|
+
schemas.NoneBase,
|
|
84
|
+
schemas.Schema,
|
|
85
|
+
schemas.NoneStrMixin
|
|
86
|
+
):
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def __new__(
|
|
90
|
+
cls,
|
|
91
|
+
*args: typing.Union[None, str, ],
|
|
92
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
93
|
+
) -> 'currency':
|
|
94
|
+
return super().__new__(
|
|
95
|
+
cls,
|
|
96
|
+
*args,
|
|
97
|
+
_configuration=_configuration,
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
class exchange(
|
|
102
|
+
schemas.StrBase,
|
|
103
|
+
schemas.NoneBase,
|
|
104
|
+
schemas.Schema,
|
|
105
|
+
schemas.NoneStrMixin
|
|
106
|
+
):
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
def __new__(
|
|
110
|
+
cls,
|
|
111
|
+
*args: typing.Union[None, str, ],
|
|
112
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
113
|
+
) -> 'exchange':
|
|
114
|
+
return super().__new__(
|
|
115
|
+
cls,
|
|
116
|
+
*args,
|
|
117
|
+
_configuration=_configuration,
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
@staticmethod
|
|
121
|
+
def figi_instrument() -> typing.Type['FigiInstrumentNullable']:
|
|
122
|
+
return FigiInstrumentNullable
|
|
123
|
+
__annotations__ = {
|
|
124
|
+
"kind": kind,
|
|
125
|
+
"id": id,
|
|
126
|
+
"symbol": symbol,
|
|
127
|
+
"raw_symbol": raw_symbol,
|
|
128
|
+
"description": description,
|
|
129
|
+
"currency": currency,
|
|
130
|
+
"exchange": exchange,
|
|
131
|
+
"figi_instrument": figi_instrument,
|
|
132
|
+
}
|
|
133
|
+
additional_properties = schemas.AnyTypeSchema
|
|
134
|
+
|
|
135
|
+
symbol: MetaOapg.properties.symbol
|
|
136
|
+
kind: MetaOapg.properties.kind
|
|
137
|
+
raw_symbol: MetaOapg.properties.raw_symbol
|
|
138
|
+
id: MetaOapg.properties.id
|
|
139
|
+
|
|
140
|
+
@typing.overload
|
|
141
|
+
def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ...
|
|
142
|
+
|
|
143
|
+
@typing.overload
|
|
144
|
+
def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ...
|
|
145
|
+
|
|
146
|
+
@typing.overload
|
|
147
|
+
def __getitem__(self, name: typing_extensions.Literal["raw_symbol"]) -> MetaOapg.properties.raw_symbol: ...
|
|
148
|
+
|
|
149
|
+
@typing.overload
|
|
150
|
+
def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
|
|
151
|
+
|
|
152
|
+
@typing.overload
|
|
153
|
+
def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ...
|
|
154
|
+
|
|
155
|
+
@typing.overload
|
|
156
|
+
def __getitem__(self, name: typing_extensions.Literal["currency"]) -> MetaOapg.properties.currency: ...
|
|
157
|
+
|
|
158
|
+
@typing.overload
|
|
159
|
+
def __getitem__(self, name: typing_extensions.Literal["exchange"]) -> MetaOapg.properties.exchange: ...
|
|
160
|
+
|
|
161
|
+
@typing.overload
|
|
162
|
+
def __getitem__(self, name: typing_extensions.Literal["figi_instrument"]) -> 'FigiInstrumentNullable': ...
|
|
163
|
+
|
|
164
|
+
@typing.overload
|
|
165
|
+
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
|
166
|
+
|
|
167
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["kind"], typing_extensions.Literal["raw_symbol"], typing_extensions.Literal["id"], typing_extensions.Literal["description"], typing_extensions.Literal["currency"], typing_extensions.Literal["exchange"], typing_extensions.Literal["figi_instrument"], str, ]):
|
|
168
|
+
# dict_instance[name] accessor
|
|
169
|
+
return super().__getitem__(name)
|
|
170
|
+
|
|
171
|
+
@typing.overload
|
|
172
|
+
def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ...
|
|
173
|
+
|
|
174
|
+
@typing.overload
|
|
175
|
+
def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ...
|
|
176
|
+
|
|
177
|
+
@typing.overload
|
|
178
|
+
def get_item_oapg(self, name: typing_extensions.Literal["raw_symbol"]) -> MetaOapg.properties.raw_symbol: ...
|
|
179
|
+
|
|
180
|
+
@typing.overload
|
|
181
|
+
def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
|
|
182
|
+
|
|
183
|
+
@typing.overload
|
|
184
|
+
def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ...
|
|
185
|
+
|
|
186
|
+
@typing.overload
|
|
187
|
+
def get_item_oapg(self, name: typing_extensions.Literal["currency"]) -> typing.Union[MetaOapg.properties.currency, schemas.Unset]: ...
|
|
188
|
+
|
|
189
|
+
@typing.overload
|
|
190
|
+
def get_item_oapg(self, name: typing_extensions.Literal["exchange"]) -> typing.Union[MetaOapg.properties.exchange, schemas.Unset]: ...
|
|
191
|
+
|
|
192
|
+
@typing.overload
|
|
193
|
+
def get_item_oapg(self, name: typing_extensions.Literal["figi_instrument"]) -> typing.Union['FigiInstrumentNullable', schemas.Unset]: ...
|
|
194
|
+
|
|
195
|
+
@typing.overload
|
|
196
|
+
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
|
197
|
+
|
|
198
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["kind"], typing_extensions.Literal["raw_symbol"], typing_extensions.Literal["id"], typing_extensions.Literal["description"], typing_extensions.Literal["currency"], typing_extensions.Literal["exchange"], typing_extensions.Literal["figi_instrument"], str, ]):
|
|
199
|
+
return super().get_item_oapg(name)
|
|
200
|
+
|
|
201
|
+
def __new__(
|
|
202
|
+
cls,
|
|
203
|
+
*args: typing.Union[dict, frozendict.frozendict, ],
|
|
204
|
+
symbol: typing.Union[MetaOapg.properties.symbol, str, ],
|
|
205
|
+
kind: typing.Union[MetaOapg.properties.kind, str, ],
|
|
206
|
+
raw_symbol: typing.Union[MetaOapg.properties.raw_symbol, str, ],
|
|
207
|
+
id: typing.Union[MetaOapg.properties.id, str, uuid.UUID, ],
|
|
208
|
+
description: typing.Union[MetaOapg.properties.description, None, str, schemas.Unset] = schemas.unset,
|
|
209
|
+
currency: typing.Union[MetaOapg.properties.currency, None, str, schemas.Unset] = schemas.unset,
|
|
210
|
+
exchange: typing.Union[MetaOapg.properties.exchange, None, str, schemas.Unset] = schemas.unset,
|
|
211
|
+
figi_instrument: typing.Union['FigiInstrumentNullable', schemas.Unset] = schemas.unset,
|
|
212
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
213
|
+
**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, ],
|
|
214
|
+
) -> 'PreferredStockInstrument':
|
|
215
|
+
return super().__new__(
|
|
216
|
+
cls,
|
|
217
|
+
*args,
|
|
218
|
+
symbol=symbol,
|
|
219
|
+
kind=kind,
|
|
220
|
+
raw_symbol=raw_symbol,
|
|
221
|
+
id=id,
|
|
222
|
+
description=description,
|
|
223
|
+
currency=currency,
|
|
224
|
+
exchange=exchange,
|
|
225
|
+
figi_instrument=figi_instrument,
|
|
226
|
+
_configuration=_configuration,
|
|
227
|
+
**kwargs,
|
|
228
|
+
)
|
|
229
|
+
|
|
230
|
+
from snaptrade_client.model.figi_instrument_nullable import FigiInstrumentNullable
|
|
@@ -46,6 +46,7 @@ class UnderlyingCfdInstrument(
|
|
|
46
46
|
'EtfInstrument': EtfInstrument,
|
|
47
47
|
'MutualFundInstrument': MutualFundInstrument,
|
|
48
48
|
'OtherInstrument': OtherInstrument,
|
|
49
|
+
'PreferredStockInstrument': PreferredStockInstrument,
|
|
49
50
|
'StockInstrument': StockInstrument,
|
|
50
51
|
'adr': AdrInstrument,
|
|
51
52
|
'bond': OtherInstrument,
|
|
@@ -54,6 +55,7 @@ class UnderlyingCfdInstrument(
|
|
|
54
55
|
'etf': EtfInstrument,
|
|
55
56
|
'mutualfund': MutualFundInstrument,
|
|
56
57
|
'other': OtherInstrument,
|
|
58
|
+
'preferred_stock': PreferredStockInstrument,
|
|
57
59
|
'stock': StockInstrument,
|
|
58
60
|
}
|
|
59
61
|
}
|
|
@@ -76,6 +78,7 @@ class UnderlyingCfdInstrument(
|
|
|
76
78
|
CefInstrument,
|
|
77
79
|
AdrInstrument,
|
|
78
80
|
OtherInstrument,
|
|
81
|
+
PreferredStockInstrument,
|
|
79
82
|
]
|
|
80
83
|
|
|
81
84
|
|
|
@@ -98,4 +101,5 @@ from snaptrade_client.model.crypto_instrument import CryptoInstrument
|
|
|
98
101
|
from snaptrade_client.model.etf_instrument import EtfInstrument
|
|
99
102
|
from snaptrade_client.model.mutual_fund_instrument import MutualFundInstrument
|
|
100
103
|
from snaptrade_client.model.other_instrument import OtherInstrument
|
|
104
|
+
from snaptrade_client.model.preferred_stock_instrument import PreferredStockInstrument
|
|
101
105
|
from snaptrade_client.model.stock_instrument import StockInstrument
|
|
@@ -46,6 +46,7 @@ class UnderlyingCfdInstrument(
|
|
|
46
46
|
'EtfInstrument': EtfInstrument,
|
|
47
47
|
'MutualFundInstrument': MutualFundInstrument,
|
|
48
48
|
'OtherInstrument': OtherInstrument,
|
|
49
|
+
'PreferredStockInstrument': PreferredStockInstrument,
|
|
49
50
|
'StockInstrument': StockInstrument,
|
|
50
51
|
'adr': AdrInstrument,
|
|
51
52
|
'bond': OtherInstrument,
|
|
@@ -54,6 +55,7 @@ class UnderlyingCfdInstrument(
|
|
|
54
55
|
'etf': EtfInstrument,
|
|
55
56
|
'mutualfund': MutualFundInstrument,
|
|
56
57
|
'other': OtherInstrument,
|
|
58
|
+
'preferred_stock': PreferredStockInstrument,
|
|
57
59
|
'stock': StockInstrument,
|
|
58
60
|
}
|
|
59
61
|
}
|
|
@@ -76,6 +78,7 @@ class UnderlyingCfdInstrument(
|
|
|
76
78
|
CefInstrument,
|
|
77
79
|
AdrInstrument,
|
|
78
80
|
OtherInstrument,
|
|
81
|
+
PreferredStockInstrument,
|
|
79
82
|
]
|
|
80
83
|
|
|
81
84
|
|
|
@@ -98,4 +101,5 @@ from snaptrade_client.model.crypto_instrument import CryptoInstrument
|
|
|
98
101
|
from snaptrade_client.model.etf_instrument import EtfInstrument
|
|
99
102
|
from snaptrade_client.model.mutual_fund_instrument import MutualFundInstrument
|
|
100
103
|
from snaptrade_client.model.other_instrument import OtherInstrument
|
|
104
|
+
from snaptrade_client.model.preferred_stock_instrument import PreferredStockInstrument
|
|
101
105
|
from snaptrade_client.model.stock_instrument import StockInstrument
|
|
@@ -46,6 +46,7 @@ class UnderlyingOptionInstrument(
|
|
|
46
46
|
'EtfInstrument': EtfInstrument,
|
|
47
47
|
'MutualFundInstrument': MutualFundInstrument,
|
|
48
48
|
'OtherInstrument': OtherInstrument,
|
|
49
|
+
'PreferredStockInstrument': PreferredStockInstrument,
|
|
49
50
|
'StockInstrument': StockInstrument,
|
|
50
51
|
'adr': AdrInstrument,
|
|
51
52
|
'bond': OtherInstrument,
|
|
@@ -54,6 +55,7 @@ class UnderlyingOptionInstrument(
|
|
|
54
55
|
'etf': EtfInstrument,
|
|
55
56
|
'mutualfund': MutualFundInstrument,
|
|
56
57
|
'other': OtherInstrument,
|
|
58
|
+
'preferred_stock': PreferredStockInstrument,
|
|
57
59
|
'stock': StockInstrument,
|
|
58
60
|
}
|
|
59
61
|
}
|
|
@@ -76,6 +78,7 @@ class UnderlyingOptionInstrument(
|
|
|
76
78
|
CefInstrument,
|
|
77
79
|
AdrInstrument,
|
|
78
80
|
OtherInstrument,
|
|
81
|
+
PreferredStockInstrument,
|
|
79
82
|
]
|
|
80
83
|
|
|
81
84
|
|
|
@@ -98,4 +101,5 @@ from snaptrade_client.model.crypto_instrument import CryptoInstrument
|
|
|
98
101
|
from snaptrade_client.model.etf_instrument import EtfInstrument
|
|
99
102
|
from snaptrade_client.model.mutual_fund_instrument import MutualFundInstrument
|
|
100
103
|
from snaptrade_client.model.other_instrument import OtherInstrument
|
|
104
|
+
from snaptrade_client.model.preferred_stock_instrument import PreferredStockInstrument
|
|
101
105
|
from snaptrade_client.model.stock_instrument import StockInstrument
|
|
@@ -46,6 +46,7 @@ class UnderlyingOptionInstrument(
|
|
|
46
46
|
'EtfInstrument': EtfInstrument,
|
|
47
47
|
'MutualFundInstrument': MutualFundInstrument,
|
|
48
48
|
'OtherInstrument': OtherInstrument,
|
|
49
|
+
'PreferredStockInstrument': PreferredStockInstrument,
|
|
49
50
|
'StockInstrument': StockInstrument,
|
|
50
51
|
'adr': AdrInstrument,
|
|
51
52
|
'bond': OtherInstrument,
|
|
@@ -54,6 +55,7 @@ class UnderlyingOptionInstrument(
|
|
|
54
55
|
'etf': EtfInstrument,
|
|
55
56
|
'mutualfund': MutualFundInstrument,
|
|
56
57
|
'other': OtherInstrument,
|
|
58
|
+
'preferred_stock': PreferredStockInstrument,
|
|
57
59
|
'stock': StockInstrument,
|
|
58
60
|
}
|
|
59
61
|
}
|
|
@@ -76,6 +78,7 @@ class UnderlyingOptionInstrument(
|
|
|
76
78
|
CefInstrument,
|
|
77
79
|
AdrInstrument,
|
|
78
80
|
OtherInstrument,
|
|
81
|
+
PreferredStockInstrument,
|
|
79
82
|
]
|
|
80
83
|
|
|
81
84
|
|
|
@@ -98,4 +101,5 @@ from snaptrade_client.model.crypto_instrument import CryptoInstrument
|
|
|
98
101
|
from snaptrade_client.model.etf_instrument import EtfInstrument
|
|
99
102
|
from snaptrade_client.model.mutual_fund_instrument import MutualFundInstrument
|
|
100
103
|
from snaptrade_client.model.other_instrument import OtherInstrument
|
|
104
|
+
from snaptrade_client.model.preferred_stock_instrument import PreferredStockInstrument
|
|
101
105
|
from snaptrade_client.model.stock_instrument import StockInstrument
|
|
@@ -225,6 +225,7 @@ from snaptrade_client.model.performance_custom_bad_tickers import PerformanceCus
|
|
|
225
225
|
from snaptrade_client.model.portfolio_group_id import PortfolioGroupID
|
|
226
226
|
from snaptrade_client.model.position import Position
|
|
227
227
|
from snaptrade_client.model.position_symbol import PositionSymbol
|
|
228
|
+
from snaptrade_client.model.preferred_stock_instrument import PreferredStockInstrument
|
|
228
229
|
from snaptrade_client.model.price import Price
|
|
229
230
|
from snaptrade_client.model.priced_in_instrument import PricedInInstrument
|
|
230
231
|
from snaptrade_client.model.priced_in_instrument_nullable import PricedInInstrumentNullable
|
|
@@ -597,7 +597,7 @@ class GetAllAccountPositions(BaseApi, typing.Generic[TAuth]):
|
|
|
597
597
|
ApiResponseForDefault,
|
|
598
598
|
api_client.ApiResponseWithoutDeserialization,
|
|
599
599
|
]:
|
|
600
|
-
""" Returns a list of all positions in the specified account. The `results` list can contain multiple instrument types in the same response, including stocks, ADRs, ETFs, mutual funds, closed-end funds, bonds, crypto, futures, option positions, future option positions, CFD positions, and tokenized asset positions. Use the `instrument.kind` discriminator to determine the schema for each position's `instrument`. **Beta:** future option positions (`instrument.kind: future_option`) are in beta. They are currently returned only for tastytrade and Interactive Brokers connections, and only for partners they have been enabled for — please contact the SnapTrade team to enable them. The `FutureOptionInstrument` schema may change. Positions counted in account cash balance or buying power include `cash_equivalent: true`. Security positions (`stock`, `adr`, `etf`, `mutualfund`, `cef`, `crypto`, `bond`, and `other`) may include `tax_lots` when tax lot data is enabled for the account; derivative, CFD, tokenized asset, and cash positions never do. To see which institutions support tax lot data, please see our [supported institutions doc](https://support.snaptrade.com/brokerages). 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. """
|
|
600
|
+
""" Returns a list of all positions in the specified account. The `results` list can contain multiple instrument types in the same response, including stocks, preferred stocks, ADRs, ETFs, mutual funds, closed-end funds, bonds, crypto, futures, option positions, future option positions, CFD positions, and tokenized asset positions. Use the `instrument.kind` discriminator to determine the schema for each position's `instrument`. **Beta:** future option positions (`instrument.kind: future_option`) are in beta. They are currently returned only for tastytrade and Interactive Brokers connections, and only for partners they have been enabled for — please contact the SnapTrade team to enable them. The `FutureOptionInstrument` schema may change. Positions counted in account cash balance or buying power include `cash_equivalent: true`. Security positions (`stock`, `preferred_stock`, `adr`, `etf`, `mutualfund`, `cef`, `crypto`, `bond`, and `other`) may include `tax_lots` when tax lot data is enabled for the account; derivative, CFD, tokenized asset, and cash positions never do. To see which institutions support tax lot data, please see our [supported institutions doc](https://support.snaptrade.com/brokerages). 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. """
|
|
601
601
|
args = self._get_all_account_positions_mapped_args(
|
|
602
602
|
path_params=path_params,
|
|
603
603
|
account_id=account_id,
|
|
@@ -656,7 +656,7 @@ class ApiForget(BaseApi, typing.Generic[TAuth]):
|
|
|
656
656
|
ApiResponseForDefault,
|
|
657
657
|
api_client.ApiResponseWithoutDeserialization,
|
|
658
658
|
]:
|
|
659
|
-
""" Returns a list of all positions in the specified account. The `results` list can contain multiple instrument types in the same response, including stocks, ADRs, ETFs, mutual funds, closed-end funds, bonds, crypto, futures, option positions, future option positions, CFD positions, and tokenized asset positions. Use the `instrument.kind` discriminator to determine the schema for each position's `instrument`. **Beta:** future option positions (`instrument.kind: future_option`) are in beta. They are currently returned only for tastytrade and Interactive Brokers connections, and only for partners they have been enabled for — please contact the SnapTrade team to enable them. The `FutureOptionInstrument` schema may change. Positions counted in account cash balance or buying power include `cash_equivalent: true`. Security positions (`stock`, `adr`, `etf`, `mutualfund`, `cef`, `crypto`, `bond`, and `other`) may include `tax_lots` when tax lot data is enabled for the account; derivative, CFD, tokenized asset, and cash positions never do. To see which institutions support tax lot data, please see our [supported institutions doc](https://support.snaptrade.com/brokerages). 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. """
|
|
659
|
+
""" Returns a list of all positions in the specified account. The `results` list can contain multiple instrument types in the same response, including stocks, preferred stocks, ADRs, ETFs, mutual funds, closed-end funds, bonds, crypto, futures, option positions, future option positions, CFD positions, and tokenized asset positions. Use the `instrument.kind` discriminator to determine the schema for each position's `instrument`. **Beta:** future option positions (`instrument.kind: future_option`) are in beta. They are currently returned only for tastytrade and Interactive Brokers connections, and only for partners they have been enabled for — please contact the SnapTrade team to enable them. The `FutureOptionInstrument` schema may change. Positions counted in account cash balance or buying power include `cash_equivalent: true`. Security positions (`stock`, `preferred_stock`, `adr`, `etf`, `mutualfund`, `cef`, `crypto`, `bond`, and `other`) may include `tax_lots` when tax lot data is enabled for the account; derivative, CFD, tokenized asset, and cash positions never do. To see which institutions support tax lot data, please see our [supported institutions doc](https://support.snaptrade.com/brokerages). 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. """
|
|
660
660
|
args = self._get_all_account_positions_mapped_args(
|
|
661
661
|
path_params=path_params,
|
|
662
662
|
account_id=account_id,
|
|
@@ -38,7 +38,7 @@ class OptionalAccountPosition(TypedDict, total=False):
|
|
|
38
38
|
# Present for mutual fund positions and for other instrument kinds when true. A true value means the position is also counted in cash balance or buying power.
|
|
39
39
|
cash_equivalent: bool
|
|
40
40
|
|
|
41
|
-
# List of tax lots for the given position. Disabled by default; enable via the Customer Dashboard Add-ons page. When enabled, this field is included for security positions (`stock`, `adr`, `etf`, `mutualfund`, `cef`, `crypto`, `bond`, and `other`). For these positions, an empty list means no tax lot data is available. Availability varies by brokerage and position. This field is omitted for options, futures, future options, CFDs, tokenized assets, and cash, or when the feature is disabled.
|
|
41
|
+
# List of tax lots for the given position. Disabled by default; enable via the Customer Dashboard Add-ons page. When enabled, this field is included for security positions (`stock`, `preferred_stock`, `adr`, `etf`, `mutualfund`, `cef`, `crypto`, `bond`, and `other`). For these positions, an empty list means no tax lot data is available. Availability varies by brokerage and position. This field is omitted for options, futures, future options, CFDs, tokenized assets, and cash, or when the feature is disabled.
|
|
42
42
|
tax_lots: typing.List[TaxLot]
|
|
43
43
|
|
|
44
44
|
class AccountPosition(RequiredAccountPosition, OptionalAccountPosition):
|
|
@@ -26,7 +26,8 @@ from snaptrade_client.type.future_option_instrument import FutureOptionInstrumen
|
|
|
26
26
|
from snaptrade_client.type.mutual_fund_instrument import MutualFundInstrument
|
|
27
27
|
from snaptrade_client.type.option_instrument import OptionInstrument
|
|
28
28
|
from snaptrade_client.type.other_instrument import OtherInstrument
|
|
29
|
+
from snaptrade_client.type.preferred_stock_instrument import PreferredStockInstrument
|
|
29
30
|
from snaptrade_client.type.stock_instrument import StockInstrument
|
|
30
31
|
from snaptrade_client.type.tokenized_asset_instrument import TokenizedAssetInstrument
|
|
31
32
|
|
|
32
|
-
Instrument = typing.Union[StockInstrument,OptionInstrument,CryptoInstrument,FutureInstrument,FutureOptionInstrument,EtfInstrument,MutualFundInstrument,CefInstrument,AdrInstrument,CfdInstrument,TokenizedAssetInstrument,OtherInstrument,CashInstrument]
|
|
33
|
+
Instrument = typing.Union[StockInstrument,OptionInstrument,CryptoInstrument,FutureInstrument,FutureOptionInstrument,EtfInstrument,MutualFundInstrument,CefInstrument,AdrInstrument,CfdInstrument,TokenizedAssetInstrument,OtherInstrument,CashInstrument,PreferredStockInstrument]
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
|
|
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
|
+
from snaptrade_client.type.figi_instrument_nullable import FigiInstrumentNullable
|
|
19
|
+
|
|
20
|
+
class RequiredPreferredStockInstrument(TypedDict):
|
|
21
|
+
# Type of security instrument.
|
|
22
|
+
kind: Literal["preferred_stock"]
|
|
23
|
+
|
|
24
|
+
# Unique identifier for the instrument.
|
|
25
|
+
id: str
|
|
26
|
+
|
|
27
|
+
# The formatted trading symbol for the security.
|
|
28
|
+
symbol: str
|
|
29
|
+
|
|
30
|
+
# The raw symbol without any exchange suffix.
|
|
31
|
+
raw_symbol: str
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class OptionalPreferredStockInstrument(TypedDict, total=False):
|
|
35
|
+
# Human-readable description of the security.
|
|
36
|
+
description: typing.Optional[str]
|
|
37
|
+
|
|
38
|
+
# ISO-4217 currency code for the security listing.
|
|
39
|
+
currency: typing.Optional[str]
|
|
40
|
+
|
|
41
|
+
# Exchange MIC code or exchange code for the security.
|
|
42
|
+
exchange: typing.Optional[str]
|
|
43
|
+
|
|
44
|
+
figi_instrument: typing.Optional[FigiInstrumentNullable]
|
|
45
|
+
|
|
46
|
+
class PreferredStockInstrument(RequiredPreferredStockInstrument, OptionalPreferredStockInstrument):
|
|
47
|
+
pass
|
|
@@ -21,6 +21,7 @@ from snaptrade_client.type.crypto_instrument import CryptoInstrument
|
|
|
21
21
|
from snaptrade_client.type.etf_instrument import EtfInstrument
|
|
22
22
|
from snaptrade_client.type.mutual_fund_instrument import MutualFundInstrument
|
|
23
23
|
from snaptrade_client.type.other_instrument import OtherInstrument
|
|
24
|
+
from snaptrade_client.type.preferred_stock_instrument import PreferredStockInstrument
|
|
24
25
|
from snaptrade_client.type.stock_instrument import StockInstrument
|
|
25
26
|
|
|
26
|
-
UnderlyingCfdInstrument = typing.Union[StockInstrument,CryptoInstrument,EtfInstrument,MutualFundInstrument,CefInstrument,AdrInstrument,OtherInstrument]
|
|
27
|
+
UnderlyingCfdInstrument = typing.Union[StockInstrument,CryptoInstrument,EtfInstrument,MutualFundInstrument,CefInstrument,AdrInstrument,OtherInstrument,PreferredStockInstrument]
|
|
@@ -21,6 +21,7 @@ from snaptrade_client.type.crypto_instrument import CryptoInstrument
|
|
|
21
21
|
from snaptrade_client.type.etf_instrument import EtfInstrument
|
|
22
22
|
from snaptrade_client.type.mutual_fund_instrument import MutualFundInstrument
|
|
23
23
|
from snaptrade_client.type.other_instrument import OtherInstrument
|
|
24
|
+
from snaptrade_client.type.preferred_stock_instrument import PreferredStockInstrument
|
|
24
25
|
from snaptrade_client.type.stock_instrument import StockInstrument
|
|
25
26
|
|
|
26
|
-
UnderlyingOptionInstrument = typing.Union[StockInstrument,CryptoInstrument,EtfInstrument,MutualFundInstrument,CefInstrument,AdrInstrument,OtherInstrument]
|
|
27
|
+
UnderlyingOptionInstrument = typing.Union[StockInstrument,CryptoInstrument,EtfInstrument,MutualFundInstrument,CefInstrument,AdrInstrument,OtherInstrument,PreferredStockInstrument]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: snaptrade-python-sdk
|
|
3
|
-
Version: 13.1.
|
|
3
|
+
Version: 13.1.2
|
|
4
4
|
Summary: Client for SnapTrade
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: SnapTrade
|
|
@@ -87,7 +87,7 @@ See https://docs.snaptrade.com/docs/ratelimiting.
|
|
|
87
87
|
|
|
88
88
|
|
|
89
89
|
|
|
90
|
-
[](https://pypi.org/project/snaptrade-python-sdk/13.1.2)
|
|
91
91
|
[](https://github.com/passiv/snaptrade-sdks/tree/master/sdks/python#readme)
|
|
92
92
|
[](https://snaptrade.com/)
|
|
93
93
|
|
|
@@ -179,7 +179,7 @@ Python >=3.8
|
|
|
179
179
|
## Installation<a id="installation"></a>
|
|
180
180
|
|
|
181
181
|
```sh
|
|
182
|
-
pip install snaptrade-python-sdk==13.1.
|
|
182
|
+
pip install snaptrade-python-sdk==13.1.2
|
|
183
183
|
```
|
|
184
184
|
|
|
185
185
|
## Authentication<a id="authentication"></a>
|
|
@@ -619,11 +619,11 @@ The client identifies the user in this mode. Do not pass `user_id` `user_secret`
|
|
|
619
619
|
|
|
620
620
|
Returns a list of all positions in the specified account.
|
|
621
621
|
|
|
622
|
-
The `results` list can contain multiple instrument types in the same response, including stocks, ADRs, ETFs, mutual funds, closed-end funds, bonds, crypto, futures, option positions, future option positions, CFD positions, and tokenized asset positions. Use the `instrument.kind` discriminator to determine the schema for each position's `instrument`.
|
|
622
|
+
The `results` list can contain multiple instrument types in the same response, including stocks, preferred stocks, ADRs, ETFs, mutual funds, closed-end funds, bonds, crypto, futures, option positions, future option positions, CFD positions, and tokenized asset positions. Use the `instrument.kind` discriminator to determine the schema for each position's `instrument`.
|
|
623
623
|
|
|
624
624
|
**Beta:** future option positions (`instrument.kind: future_option`) are in beta. They are currently returned only for tastytrade and Interactive Brokers connections, and only for partners they have been enabled for — please contact the SnapTrade team to enable them. The `FutureOptionInstrument` schema may change.
|
|
625
625
|
|
|
626
|
-
Positions counted in account cash balance or buying power include `cash_equivalent: true`. Security positions (`stock`, `adr`, `etf`, `mutualfund`, `cef`, `crypto`, `bond`, and `other`) may include `tax_lots` when tax lot data is enabled for the account; derivative, CFD, tokenized asset, and cash positions never do. To see which institutions support tax lot data, please see our [supported institutions doc](https://support.snaptrade.com/brokerages).
|
|
626
|
+
Positions counted in account cash balance or buying power include `cash_equivalent: true`. Security positions (`stock`, `preferred_stock`, `adr`, `etf`, `mutualfund`, `cef`, `crypto`, `bond`, and `other`) may include `tax_lots` when tax lot data is enabled for the account; derivative, CFD, tokenized asset, and cash positions never do. To see which institutions support tax lot data, please see our [supported institutions doc](https://support.snaptrade.com/brokerages).
|
|
627
627
|
|
|
628
628
|
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.
|
|
629
629
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
snaptrade_client/__init__.py,sha256=
|
|
2
|
-
snaptrade_client/api_client.py,sha256=
|
|
1
|
+
snaptrade_client/__init__.py,sha256=zfehoRPUuiVLcadE6CK-0er7WVL31QAYCDZjm092Vro,4104
|
|
2
|
+
snaptrade_client/api_client.py,sha256=VRT_L4dRF55rPPDowZomg-x2LisafN_MpqpDopo2gaE,78308
|
|
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=O-9NG1wqi_xMgOZeFfBreErWnNBhd4t1BnFromOQSf0,15555
|
|
@@ -87,7 +87,7 @@ snaptrade_client/auth.py,sha256=K0Ha_rrEQmqhyss-W15e14EX7R4lXxNuwIvhTbBFd0c,4428
|
|
|
87
87
|
snaptrade_client/client.py,sha256=-oGctm7tqysXXG9f6iOZJc0O7_ftQgbTspTpFQVbNgI,6134
|
|
88
88
|
snaptrade_client/client.pyi,sha256=Ac61coHF047SZOfGog4shB7g1enclZzYE3AMbYQ5V6o,5874
|
|
89
89
|
snaptrade_client/client_custom.py,sha256=hNQMRFrY_KWEOCgf36fsZBs3sBU2SQtnZin8dAEVyYo,3931
|
|
90
|
-
snaptrade_client/configuration.py,sha256=
|
|
90
|
+
snaptrade_client/configuration.py,sha256=Rn_lQwZgI153wuv8HiSRknv3M0qnAey_zzpG0A_Wslc,25814
|
|
91
91
|
snaptrade_client/exceptions.py,sha256=pRlZiy1hSulcXfTCqqBU5Jys0hRBkxljOiv212M_yeo,10957
|
|
92
92
|
snaptrade_client/exceptions_base.py,sha256=LAQkaC5C61-SdBLfyMjb0K7AYJkWVuLmg2uCvHa71FM,2274
|
|
93
93
|
snaptrade_client/model/__init__.py,sha256=ayi2MIzcf0eAIsY13ToiNplV9tW-pMBFrC0I9yckGM8,350
|
|
@@ -345,8 +345,8 @@ snaptrade_client/model/institution_connection_scopes.py,sha256=Yh1zRfCMEthDJCkFN
|
|
|
345
345
|
snaptrade_client/model/institution_connection_scopes.pyi,sha256=qV7V-KZkhVRvSpSMxiCvYkf7G6QYkHKE4tH9BSZHD2M,4884
|
|
346
346
|
snaptrade_client/model/institution_regions.py,sha256=sTC2uLNAh1g-BER0mK_9k1C9zb1r0khwqYxiTu5pCUE,5388
|
|
347
347
|
snaptrade_client/model/institution_regions.pyi,sha256=bl_6NJSW2uDbw760ymPdTdfmymIStr_UkK8C9YlUp50,5117
|
|
348
|
-
snaptrade_client/model/instrument.py,sha256=
|
|
349
|
-
snaptrade_client/model/instrument.pyi,sha256=
|
|
348
|
+
snaptrade_client/model/instrument.py,sha256=GHX3p05GCLBuHCockG533U7KpIYfijWxECTcRn_Zp70,8412
|
|
349
|
+
snaptrade_client/model/instrument.pyi,sha256=GHX3p05GCLBuHCockG533U7KpIYfijWxECTcRn_Zp70,8412
|
|
350
350
|
snaptrade_client/model/investment_account.py,sha256=ipmAZbMKXv3RYdu9OITylF_WNnBwVqJaNh9RR0cNM98,21833
|
|
351
351
|
snaptrade_client/model/investment_account.pyi,sha256=KCUoIhzzAHkMp8CqDb_m1anV0it0mAVvnsEvvzJtrYg,21405
|
|
352
352
|
snaptrade_client/model/investment_account_net_value.py,sha256=4N6yU6Q0D2ARsC4ePKsl6OWOA8csKV4r8XMVOcQU55w,7830
|
|
@@ -519,6 +519,8 @@ snaptrade_client/model/position.py,sha256=skYZjUIpP7HrwtQ_iBvEmX0B3b7iq5yU7QTO7M
|
|
|
519
519
|
snaptrade_client/model/position.pyi,sha256=skYZjUIpP7HrwtQ_iBvEmX0B3b7iq5yU7QTO7MPNl24,17501
|
|
520
520
|
snaptrade_client/model/position_symbol.py,sha256=hqGJfwat_xGrgWsjV2U9Eu74pubyUnz1JAMLWuwkyjY,9695
|
|
521
521
|
snaptrade_client/model/position_symbol.pyi,sha256=hqGJfwat_xGrgWsjV2U9Eu74pubyUnz1JAMLWuwkyjY,9695
|
|
522
|
+
snaptrade_client/model/preferred_stock_instrument.py,sha256=H1-RpMxtczoyCXcoCCLDkIeISg37y600zOB5mkPlD0s,12344
|
|
523
|
+
snaptrade_client/model/preferred_stock_instrument.pyi,sha256=qLFbtr19_aq4XqRsx4lMXzxxyoDD00pj57JymLkwP3w,12159
|
|
522
524
|
snaptrade_client/model/price.py,sha256=yzk5e9-H89kr1vq-44p0ynBX9JPlEj0ksRa9NgSx-Q8,4306
|
|
523
525
|
snaptrade_client/model/price.pyi,sha256=yzk5e9-H89kr1vq-44p0ynBX9JPlEj0ksRa9NgSx-Q8,4306
|
|
524
526
|
snaptrade_client/model/priced_in_instrument.py,sha256=wF8AZKged3I6lDavXMcTqex1pwmJylRR2Q8JDaktKxI,5781
|
|
@@ -625,10 +627,10 @@ snaptrade_client/model/trailing_stop_order_type.py,sha256=DuMX5lQzpIObKeYt6pZqtT
|
|
|
625
627
|
snaptrade_client/model/trailing_stop_order_type.pyi,sha256=WhUPG_FiskhO6KGWPg1yJl9GTNXpGVgneNUvjNZOxQw,7917
|
|
626
628
|
snaptrade_client/model/transactions_status.py,sha256=TCcFv6bvDMJc5olXH6d_GpgaRLoBqhXoE2spctqNT8c,8158
|
|
627
629
|
snaptrade_client/model/transactions_status.pyi,sha256=TCcFv6bvDMJc5olXH6d_GpgaRLoBqhXoE2spctqNT8c,8158
|
|
628
|
-
snaptrade_client/model/underlying_cfd_instrument.py,sha256=
|
|
629
|
-
snaptrade_client/model/underlying_cfd_instrument.pyi,sha256=
|
|
630
|
-
snaptrade_client/model/underlying_option_instrument.py,sha256=
|
|
631
|
-
snaptrade_client/model/underlying_option_instrument.pyi,sha256=
|
|
630
|
+
snaptrade_client/model/underlying_cfd_instrument.py,sha256=RcU2e1vhGF5byZqzT3dCPse1nWyWMfSURUJpeYbSsj4,7079
|
|
631
|
+
snaptrade_client/model/underlying_cfd_instrument.pyi,sha256=RcU2e1vhGF5byZqzT3dCPse1nWyWMfSURUJpeYbSsj4,7079
|
|
632
|
+
snaptrade_client/model/underlying_option_instrument.py,sha256=aJVWhxL78sBG0A6vS4WxWZ_pYVCfAYXwC6aWIIbxst0,7070
|
|
633
|
+
snaptrade_client/model/underlying_option_instrument.pyi,sha256=aJVWhxL78sBG0A6vS4WxWZ_pYVCfAYXwC6aWIIbxst0,7070
|
|
632
634
|
snaptrade_client/model/underlying_symbol.py,sha256=_p1hPE-eXfkDioD6gqcnfDsgbiI9QY4EFNyzmEEIw5k,18952
|
|
633
635
|
snaptrade_client/model/underlying_symbol.pyi,sha256=_p1hPE-eXfkDioD6gqcnfDsgbiI9QY4EFNyzmEEIw5k,18952
|
|
634
636
|
snaptrade_client/model/underlying_tokenized_asset_instrument.py,sha256=p0ctMswe4GxwtIbxgoMg9PwxlsdGZlO1U_KV04tmqsI,5756
|
|
@@ -659,7 +661,7 @@ snaptrade_client/model/user_secret.py,sha256=BiF8M99Os_WXMHiGaivayDrU53MNuyr2ZjF
|
|
|
659
661
|
snaptrade_client/model/user_secret.pyi,sha256=BiF8M99Os_WXMHiGaivayDrU53MNuyr2ZjFq7dOYgA8,3786
|
|
660
662
|
snaptrade_client/model/validated_trade_body.py,sha256=KOObe8mGtKr29bjV0l7cdiqKJQn3E22WqNIfHG-1Kig,6271
|
|
661
663
|
snaptrade_client/model/validated_trade_body.pyi,sha256=KOObe8mGtKr29bjV0l7cdiqKJQn3E22WqNIfHG-1Kig,6271
|
|
662
|
-
snaptrade_client/models/__init__.py,sha256=
|
|
664
|
+
snaptrade_client/models/__init__.py,sha256=PeeZNHP6LK9MvkS7VixV5MsenwR1w-XuwYwnVXBKtoo,23093
|
|
663
665
|
snaptrade_client/operation_parameter_map.py,sha256=PrE5HueqiFnZbtajk5P2iP9Zi7j3U1I4zKNZjNW060I,15870
|
|
664
666
|
snaptrade_client/paths/__init__.py,sha256=0KBTczaFlcsepmG_W9xi3T1H1cda7Bp03KzBwQHx0DA,4494
|
|
665
667
|
snaptrade_client/paths/accounts/__init__.py,sha256=_Bqi6B13A-kgd0AOpqmcE1vTxJDfoz-r3Hwf-AmwW6A,307
|
|
@@ -704,7 +706,7 @@ snaptrade_client/paths/accounts_account_id_orders_v2/__init__.py,sha256=bLxvW4Bv
|
|
|
704
706
|
snaptrade_client/paths/accounts_account_id_orders_v2/get.py,sha256=PQ7pvpwKYEfSBYBnyXqN3BjARabZmPwG__yORLKnn4g,32218
|
|
705
707
|
snaptrade_client/paths/accounts_account_id_orders_v2/get.pyi,sha256=lNZXU4OhS-A5_pexGEybQsUZW9xW1Z3MdFb2Gb42c6Y,6207
|
|
706
708
|
snaptrade_client/paths/accounts_account_id_positions_all/__init__.py,sha256=FlxB1-Ly7XTVzmsfrFf9uzv9z5pZ958-S0c5NvjIGzk,357
|
|
707
|
-
snaptrade_client/paths/accounts_account_id_positions_all/get.py,sha256=
|
|
709
|
+
snaptrade_client/paths/accounts_account_id_positions_all/get.py,sha256=AWVUFtdFZHx-94yszZ1Idof9o8BO_vBxGCHOl9ONLB4,30578
|
|
708
710
|
snaptrade_client/paths/accounts_account_id_positions_all/get.pyi,sha256=7wAGOBRdZMH8Kjv7Y0qpsDjj0HKw8hM0hYJ2gPUUVxg,5857
|
|
709
711
|
snaptrade_client/paths/accounts_account_id_quotes/__init__.py,sha256=_EWd0irMSNiZtx_chO_X9TCy_WWzFQoySf3yLEkAh2I,343
|
|
710
712
|
snaptrade_client/paths/accounts_account_id_quotes/get.py,sha256=_caeWe7RmXwiEcXLN6VqCMvJ-75KOIiF2D3i2d9Frdg,30941
|
|
@@ -885,7 +887,7 @@ snaptrade_client/type/account_order_record_v2.py,sha256=FxJNhhgD4XEjPjmWTICBMrUA
|
|
|
885
887
|
snaptrade_client/type/account_order_record_v2_order_role.py,sha256=o7NnHDaq91Ztl1FXgcn49w3gB7iSK0MLWR8JR7qbH68,3631
|
|
886
888
|
snaptrade_client/type/account_order_record_v2_order_role_nullable.py,sha256=SEGibNPxof8Zk69AJSClX_R7tsjqJxf2Wi9dKp3V_nQ,3639
|
|
887
889
|
snaptrade_client/type/account_orders_v2_response.py,sha256=MFBFTYflDPPM-GRPKamp2xmOkD13LOq69Vy5cVB0_mM,3959
|
|
888
|
-
snaptrade_client/type/account_position.py,sha256=
|
|
890
|
+
snaptrade_client/type/account_position.py,sha256=ASQkr3NAlvfx8itY9WQYHXXIkJcrAwrS1Xr1CZ1i6WE,5334
|
|
889
891
|
snaptrade_client/type/account_simple.py,sha256=KjSSOn5v6QkiSHTPdDPa-BtIcJrzlFpaNW82v9ydGf8,4595
|
|
890
892
|
snaptrade_client/type/account_sync_status.py,sha256=SRDcV9Oc5kSorODmW2rB0IRijmhVLsa-hWAAaVeia48,3962
|
|
891
893
|
snaptrade_client/type/account_universal_activity.py,sha256=hbnNrVUI0u8ZFBtUkgdS-EhzVFCixdM56lq-XKPMi88,8759
|
|
@@ -984,7 +986,7 @@ snaptrade_client/type/institution_connection_methods.py,sha256=DIUeURbxOD34-ektG
|
|
|
984
986
|
snaptrade_client/type/institution_connection_nullable.py,sha256=qtS2XZIfmQymcuviide43ZZm9HKQ--_r6hJg7ZMmXZM,4086
|
|
985
987
|
snaptrade_client/type/institution_connection_scopes.py,sha256=GgxSu84V5kxM9UMdI5PsMiIdmOLRebpGWTQcjrwFMAs,3604
|
|
986
988
|
snaptrade_client/type/institution_regions.py,sha256=6DagArvWlMG_9_qa-p4NI2M2Ck9PGqpabMZl9gbnRmw,3612
|
|
987
|
-
snaptrade_client/type/instrument.py,sha256=
|
|
989
|
+
snaptrade_client/type/instrument.py,sha256=u-nha_FJlCN_iY0fxM_d2qIXmViY0_ebmcahcMKtS14,4822
|
|
988
990
|
snaptrade_client/type/investment_account.py,sha256=rVzpb1p0v6TiP2wzBg8TGXbTtF1vAFQ42P4j4Jqex90,6876
|
|
989
991
|
snaptrade_client/type/investment_account_net_value.py,sha256=DBKOtK_0pkVbAyBv0vdbTvbl5hQyiUpsmlu9fr78jrw,3887
|
|
990
992
|
snaptrade_client/type/limit_order_type.py,sha256=If5Ws2ai29NKwLTLtN9BuVZKc7IncXx_CECQS2ZYg6c,3876
|
|
@@ -1071,6 +1073,7 @@ snaptrade_client/type/performance_custom_bad_tickers.py,sha256=WHLiPeUbl74D99zF4
|
|
|
1071
1073
|
snaptrade_client/type/portfolio_group_id.py,sha256=b2agv1092ANB3Og7T1Y_DQcXp9dvwRm9TX66V-HphbY,3580
|
|
1072
1074
|
snaptrade_client/type/position.py,sha256=4h0d14hTP07H-VN7Ojbr9DSiFGJ6-1c7-KcK-vGiyOc,5914
|
|
1073
1075
|
snaptrade_client/type/position_symbol.py,sha256=ypbltqqwEuM3r5R5ps9XR0X96v10RfzBm7QwOFC1GTo,4893
|
|
1076
|
+
snaptrade_client/type/preferred_stock_instrument.py,sha256=1IfxUrPcq7u7Uh9mrEROGXpNspSLHyD1zulUPvYv5mg,4472
|
|
1074
1077
|
snaptrade_client/type/price.py,sha256=NA9VByUgx9wzwYfkKB_EGNFO29MXk6-lyiQrqXFvJKw,3571
|
|
1075
1078
|
snaptrade_client/type/priced_in_instrument.py,sha256=W7aBsu2W3pPPyaNk2-XATOzwJeo6m_8bCnhuEpTHkXk,3758
|
|
1076
1079
|
snaptrade_client/type/priced_in_instrument_nullable.py,sha256=cR1Jfyr6mWRi9oGAyQGlFHHipLg_4oBz1BDakyCxWFU,3766
|
|
@@ -1124,8 +1127,8 @@ snaptrade_client/type/trailing_stop_limit_order_type.py,sha256=b9ZNBo-7xmmDEJClc
|
|
|
1124
1127
|
snaptrade_client/type/trailing_stop_nullable.py,sha256=GgCQPjloHZDFr45DOZz-po9HbtdRRkxtf-dc_f2K0fs,4240
|
|
1125
1128
|
snaptrade_client/type/trailing_stop_order_type.py,sha256=fJCiTf9JhH2Us62m_weypnolTEzwJKeZgq1uW8v25HU,3991
|
|
1126
1129
|
snaptrade_client/type/transactions_status.py,sha256=_qAnP0KR9Kpv6E37VV_oFnN0aN2JxNUG4JTDsThyplw,4149
|
|
1127
|
-
snaptrade_client/type/underlying_cfd_instrument.py,sha256=
|
|
1128
|
-
snaptrade_client/type/underlying_option_instrument.py,sha256=
|
|
1130
|
+
snaptrade_client/type/underlying_cfd_instrument.py,sha256=TQtV5FluGokH975LpDC6zQvUE2XIDhEyGj2Luuwjy2A,4290
|
|
1131
|
+
snaptrade_client/type/underlying_option_instrument.py,sha256=7omOJlzZZvFJI6hPyPNVPaDiaSEgdBRgi2M-CyEI0WQ,4293
|
|
1129
1132
|
snaptrade_client/type/underlying_symbol.py,sha256=gVWCLjhTNcVQMItS27jvr68kmdvfRkcWsX-YZ78D5CY,5713
|
|
1130
1133
|
snaptrade_client/type/underlying_tokenized_asset_instrument.py,sha256=ZVUs2EXOfq0Y17UQwOt-2KssrrXcITyh1dHPCIpcIgI,3768
|
|
1131
1134
|
snaptrade_client/type/units.py,sha256=_LBGl_6WFm2lEtfY01WH_VtSs1K0NvmBwaseDeBhe3I,3571
|
|
@@ -1143,7 +1146,7 @@ snaptrade_client/type/user_secret.py,sha256=B6gpY5ECG6fV4aCV7XH9TK9uW9UsZYZlng56
|
|
|
1143
1146
|
snaptrade_client/type/validated_trade_body.py,sha256=3d5fH-7GtjtWxBTBDyjK2RSmoFcMQpr7Sv6MXgCfKQc,4076
|
|
1144
1147
|
snaptrade_client/type_util.py,sha256=y93VO77G7QTwguvfc3HnevIWtLat__tNZXfpSCSxHoU,3749
|
|
1145
1148
|
snaptrade_client/validation_metadata.py,sha256=VTN5y-NudHXok1X468J4PnGze_tGEAcs1v3gsXmcrb0,3172
|
|
1146
|
-
snaptrade_python_sdk-13.1.
|
|
1147
|
-
snaptrade_python_sdk-13.1.
|
|
1148
|
-
snaptrade_python_sdk-13.1.
|
|
1149
|
-
snaptrade_python_sdk-13.1.
|
|
1149
|
+
snaptrade_python_sdk-13.1.2.dist-info/LICENSE,sha256=GxvPdqYTCDLPwtMD70oHKcnAL8Os4eOjPVhERWpJ5Cs,1081
|
|
1150
|
+
snaptrade_python_sdk-13.1.2.dist-info/METADATA,sha256=3Tiw1pGdDWff7smQIjYg2e8INDUBsqwdx5k6OJkCZGU,182908
|
|
1151
|
+
snaptrade_python_sdk-13.1.2.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
1152
|
+
snaptrade_python_sdk-13.1.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|