snaptrade-python-sdk 11.0.128__py3-none-any.whl → 11.0.130__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/mleg_price_effect_strict.py +2 -17
- snaptrade_client/model/mleg_price_effect_strict.pyi +2 -25
- snaptrade_client/model/mleg_price_effect_strict_nullable.py +1 -1
- snaptrade_client/model/mleg_price_effect_strict_nullable.pyi +1 -1
- snaptrade_client/model/snap_trade_login_user_request_body.py +5 -0
- snaptrade_client/model/snap_trade_login_user_request_body.pyi +4 -0
- snaptrade_client/operation_parameter_map.py +1 -1
- snaptrade_client/paths/accounts_account_id_orders_details/post.py +21 -21
- snaptrade_client/paths/accounts_account_id_orders_details/post.pyi +21 -21
- snaptrade_client/type/snap_trade_login_user_request_body.py +1 -1
- {snaptrade_python_sdk-11.0.128.dist-info → snaptrade_python_sdk-11.0.130.dist-info}/METADATA +6 -6
- {snaptrade_python_sdk-11.0.128.dist-info → snaptrade_python_sdk-11.0.130.dist-info}/RECORD +17 -17
- {snaptrade_python_sdk-11.0.128.dist-info → snaptrade_python_sdk-11.0.130.dist-info}/LICENSE +0 -0
- {snaptrade_python_sdk-11.0.128.dist-info → snaptrade_python_sdk-11.0.130.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.130/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.130".\
|
|
442
442
|
format(env=sys.platform, pyversion=sys.version)
|
|
443
443
|
|
|
444
444
|
def get_host_settings(self):
|
|
@@ -26,15 +26,12 @@ from snaptrade_client import schemas # noqa: F401
|
|
|
26
26
|
|
|
27
27
|
class MlegPriceEffectStrict(
|
|
28
28
|
schemas.EnumBase,
|
|
29
|
-
schemas.
|
|
30
|
-
schemas.NoneBase,
|
|
31
|
-
schemas.Schema,
|
|
32
|
-
schemas.NoneStrMixin
|
|
29
|
+
schemas.StrSchema
|
|
33
30
|
):
|
|
34
31
|
"""
|
|
35
32
|
This class is auto generated by Konfig (https://konfigthis.com)
|
|
36
33
|
|
|
37
|
-
The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders
|
|
34
|
+
The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders
|
|
38
35
|
"""
|
|
39
36
|
|
|
40
37
|
|
|
@@ -56,15 +53,3 @@ class MlegPriceEffectStrict(
|
|
|
56
53
|
@schemas.classproperty
|
|
57
54
|
def EVEN(cls):
|
|
58
55
|
return cls("EVEN")
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
def __new__(
|
|
62
|
-
cls,
|
|
63
|
-
*args: typing.Union[None, str, ],
|
|
64
|
-
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
65
|
-
) -> 'MlegPriceEffectStrict':
|
|
66
|
-
return super().__new__(
|
|
67
|
-
cls,
|
|
68
|
-
*args,
|
|
69
|
-
_configuration=_configuration,
|
|
70
|
-
)
|
|
@@ -26,24 +26,13 @@ from snaptrade_client import schemas # noqa: F401
|
|
|
26
26
|
|
|
27
27
|
class MlegPriceEffectStrict(
|
|
28
28
|
schemas.EnumBase,
|
|
29
|
-
schemas.
|
|
30
|
-
schemas.NoneBase,
|
|
31
|
-
schemas.Schema,
|
|
32
|
-
schemas.NoneStrMixin
|
|
29
|
+
schemas.StrSchema
|
|
33
30
|
):
|
|
34
31
|
"""
|
|
35
32
|
This class is auto generated by Konfig (https://konfigthis.com)
|
|
36
33
|
|
|
37
|
-
The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders
|
|
34
|
+
The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders
|
|
38
35
|
"""
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
class MetaOapg:
|
|
42
|
-
enum_value_to_name = {
|
|
43
|
-
"CREDIT": "CREDIT",
|
|
44
|
-
"DEBIT": "DEBIT",
|
|
45
|
-
"EVEN": "EVEN",
|
|
46
|
-
}
|
|
47
36
|
|
|
48
37
|
@schemas.classproperty
|
|
49
38
|
def CREDIT(cls):
|
|
@@ -56,15 +45,3 @@ class MlegPriceEffectStrict(
|
|
|
56
45
|
@schemas.classproperty
|
|
57
46
|
def EVEN(cls):
|
|
58
47
|
return cls("EVEN")
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
def __new__(
|
|
62
|
-
cls,
|
|
63
|
-
*args: typing.Union[None, str, ],
|
|
64
|
-
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
65
|
-
) -> 'MlegPriceEffectStrict':
|
|
66
|
-
return super().__new__(
|
|
67
|
-
cls,
|
|
68
|
-
*args,
|
|
69
|
-
_configuration=_configuration,
|
|
70
|
-
)
|
|
@@ -34,7 +34,7 @@ class MlegPriceEffectStrictNullable(
|
|
|
34
34
|
"""
|
|
35
35
|
This class is auto generated by Konfig (https://konfigthis.com)
|
|
36
36
|
|
|
37
|
-
The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders
|
|
37
|
+
The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders
|
|
38
38
|
"""
|
|
39
39
|
|
|
40
40
|
|
|
@@ -34,7 +34,7 @@ class MlegPriceEffectStrictNullable(
|
|
|
34
34
|
"""
|
|
35
35
|
This class is auto generated by Konfig (https://konfigthis.com)
|
|
36
36
|
|
|
37
|
-
The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders
|
|
37
|
+
The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders
|
|
38
38
|
"""
|
|
39
39
|
|
|
40
40
|
|
|
@@ -53,6 +53,7 @@ class SnapTradeLoginUserRequestBody(
|
|
|
53
53
|
enum_value_to_name = {
|
|
54
54
|
"read": "READ",
|
|
55
55
|
"trade": "TRADE",
|
|
56
|
+
"trade-if-available": "TRADEIFAVAILABLE",
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
@schemas.classproperty
|
|
@@ -62,6 +63,10 @@ class SnapTradeLoginUserRequestBody(
|
|
|
62
63
|
@schemas.classproperty
|
|
63
64
|
def TRADE(cls):
|
|
64
65
|
return cls("trade")
|
|
66
|
+
|
|
67
|
+
@schemas.classproperty
|
|
68
|
+
def TRADEIFAVAILABLE(cls):
|
|
69
|
+
return cls("trade-if-available")
|
|
65
70
|
|
|
66
71
|
|
|
67
72
|
class connectionPortalVersion(
|
|
@@ -116,49 +116,49 @@ class SchemaForRequestBodyApplicationJson(
|
|
|
116
116
|
|
|
117
117
|
class MetaOapg:
|
|
118
118
|
required = {
|
|
119
|
-
"
|
|
119
|
+
"brokerage_order_id",
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
class properties:
|
|
123
|
-
|
|
123
|
+
brokerage_order_id = schemas.StrSchema
|
|
124
124
|
__annotations__ = {
|
|
125
|
-
"
|
|
125
|
+
"brokerage_order_id": brokerage_order_id,
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
|
|
128
|
+
brokerage_order_id: MetaOapg.properties.brokerage_order_id
|
|
129
129
|
|
|
130
130
|
@typing.overload
|
|
131
|
-
def __getitem__(self, name: typing_extensions.Literal["
|
|
131
|
+
def __getitem__(self, name: typing_extensions.Literal["brokerage_order_id"]) -> MetaOapg.properties.brokerage_order_id: ...
|
|
132
132
|
|
|
133
133
|
@typing.overload
|
|
134
134
|
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
|
|
135
135
|
|
|
136
|
-
def __getitem__(self, name: typing.Union[typing_extensions.Literal["
|
|
136
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["brokerage_order_id", ], str]):
|
|
137
137
|
# dict_instance[name] accessor
|
|
138
138
|
return super().__getitem__(name)
|
|
139
139
|
|
|
140
140
|
|
|
141
141
|
@typing.overload
|
|
142
|
-
def get_item_oapg(self, name: typing_extensions.Literal["
|
|
142
|
+
def get_item_oapg(self, name: typing_extensions.Literal["brokerage_order_id"]) -> MetaOapg.properties.brokerage_order_id: ...
|
|
143
143
|
|
|
144
144
|
@typing.overload
|
|
145
145
|
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
|
|
146
146
|
|
|
147
|
-
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["
|
|
147
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["brokerage_order_id", ], str]):
|
|
148
148
|
return super().get_item_oapg(name)
|
|
149
149
|
|
|
150
150
|
|
|
151
151
|
def __new__(
|
|
152
152
|
cls,
|
|
153
153
|
*args: typing.Union[dict, frozendict.frozendict, ],
|
|
154
|
-
|
|
154
|
+
brokerage_order_id: typing.Union[MetaOapg.properties.brokerage_order_id, str, ],
|
|
155
155
|
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
156
156
|
**kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
|
|
157
157
|
) -> 'SchemaForRequestBodyApplicationJson':
|
|
158
158
|
return super().__new__(
|
|
159
159
|
cls,
|
|
160
160
|
*args,
|
|
161
|
-
|
|
161
|
+
brokerage_order_id=brokerage_order_id,
|
|
162
162
|
_configuration=_configuration,
|
|
163
163
|
**kwargs,
|
|
164
164
|
)
|
|
@@ -276,7 +276,7 @@ class BaseApi(api_client.Api):
|
|
|
276
276
|
def _get_user_account_order_detail_mapped_args(
|
|
277
277
|
self,
|
|
278
278
|
body: typing.Optional[typing.Any] = None,
|
|
279
|
-
|
|
279
|
+
brokerage_order_id: typing.Optional[str] = None,
|
|
280
280
|
account_id: typing.Optional[str] = None,
|
|
281
281
|
user_id: typing.Optional[str] = None,
|
|
282
282
|
user_secret: typing.Optional[str] = None,
|
|
@@ -287,8 +287,8 @@ class BaseApi(api_client.Api):
|
|
|
287
287
|
_query_params = {}
|
|
288
288
|
_path_params = {}
|
|
289
289
|
_body = {}
|
|
290
|
-
if
|
|
291
|
-
_body["
|
|
290
|
+
if brokerage_order_id is not None:
|
|
291
|
+
_body["brokerage_order_id"] = brokerage_order_id
|
|
292
292
|
args.body = body if body is not None else _body
|
|
293
293
|
if user_id is not None:
|
|
294
294
|
_query_params["userId"] = user_id
|
|
@@ -569,7 +569,7 @@ class GetUserAccountOrderDetail(BaseApi):
|
|
|
569
569
|
async def aget_user_account_order_detail(
|
|
570
570
|
self,
|
|
571
571
|
body: typing.Optional[typing.Any] = None,
|
|
572
|
-
|
|
572
|
+
brokerage_order_id: typing.Optional[str] = None,
|
|
573
573
|
account_id: typing.Optional[str] = None,
|
|
574
574
|
user_id: typing.Optional[str] = None,
|
|
575
575
|
user_secret: typing.Optional[str] = None,
|
|
@@ -585,7 +585,7 @@ class GetUserAccountOrderDetail(BaseApi):
|
|
|
585
585
|
body=body,
|
|
586
586
|
query_params=query_params,
|
|
587
587
|
path_params=path_params,
|
|
588
|
-
|
|
588
|
+
brokerage_order_id=brokerage_order_id,
|
|
589
589
|
account_id=account_id,
|
|
590
590
|
user_id=user_id,
|
|
591
591
|
user_secret=user_secret,
|
|
@@ -600,7 +600,7 @@ class GetUserAccountOrderDetail(BaseApi):
|
|
|
600
600
|
def get_user_account_order_detail(
|
|
601
601
|
self,
|
|
602
602
|
body: typing.Optional[typing.Any] = None,
|
|
603
|
-
|
|
603
|
+
brokerage_order_id: typing.Optional[str] = None,
|
|
604
604
|
account_id: typing.Optional[str] = None,
|
|
605
605
|
user_id: typing.Optional[str] = None,
|
|
606
606
|
user_secret: typing.Optional[str] = None,
|
|
@@ -615,7 +615,7 @@ class GetUserAccountOrderDetail(BaseApi):
|
|
|
615
615
|
body=body,
|
|
616
616
|
query_params=query_params,
|
|
617
617
|
path_params=path_params,
|
|
618
|
-
|
|
618
|
+
brokerage_order_id=brokerage_order_id,
|
|
619
619
|
account_id=account_id,
|
|
620
620
|
user_id=user_id,
|
|
621
621
|
user_secret=user_secret,
|
|
@@ -632,7 +632,7 @@ class ApiForpost(BaseApi):
|
|
|
632
632
|
async def apost(
|
|
633
633
|
self,
|
|
634
634
|
body: typing.Optional[typing.Any] = None,
|
|
635
|
-
|
|
635
|
+
brokerage_order_id: typing.Optional[str] = None,
|
|
636
636
|
account_id: typing.Optional[str] = None,
|
|
637
637
|
user_id: typing.Optional[str] = None,
|
|
638
638
|
user_secret: typing.Optional[str] = None,
|
|
@@ -648,7 +648,7 @@ class ApiForpost(BaseApi):
|
|
|
648
648
|
body=body,
|
|
649
649
|
query_params=query_params,
|
|
650
650
|
path_params=path_params,
|
|
651
|
-
|
|
651
|
+
brokerage_order_id=brokerage_order_id,
|
|
652
652
|
account_id=account_id,
|
|
653
653
|
user_id=user_id,
|
|
654
654
|
user_secret=user_secret,
|
|
@@ -663,7 +663,7 @@ class ApiForpost(BaseApi):
|
|
|
663
663
|
def post(
|
|
664
664
|
self,
|
|
665
665
|
body: typing.Optional[typing.Any] = None,
|
|
666
|
-
|
|
666
|
+
brokerage_order_id: typing.Optional[str] = None,
|
|
667
667
|
account_id: typing.Optional[str] = None,
|
|
668
668
|
user_id: typing.Optional[str] = None,
|
|
669
669
|
user_secret: typing.Optional[str] = None,
|
|
@@ -678,7 +678,7 @@ class ApiForpost(BaseApi):
|
|
|
678
678
|
body=body,
|
|
679
679
|
query_params=query_params,
|
|
680
680
|
path_params=path_params,
|
|
681
|
-
|
|
681
|
+
brokerage_order_id=brokerage_order_id,
|
|
682
682
|
account_id=account_id,
|
|
683
683
|
user_id=user_id,
|
|
684
684
|
user_secret=user_secret,
|
|
@@ -114,49 +114,49 @@ class SchemaForRequestBodyApplicationJson(
|
|
|
114
114
|
|
|
115
115
|
class MetaOapg:
|
|
116
116
|
required = {
|
|
117
|
-
"
|
|
117
|
+
"brokerage_order_id",
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
class properties:
|
|
121
|
-
|
|
121
|
+
brokerage_order_id = schemas.StrSchema
|
|
122
122
|
__annotations__ = {
|
|
123
|
-
"
|
|
123
|
+
"brokerage_order_id": brokerage_order_id,
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
|
|
126
|
+
brokerage_order_id: MetaOapg.properties.brokerage_order_id
|
|
127
127
|
|
|
128
128
|
@typing.overload
|
|
129
|
-
def __getitem__(self, name: typing_extensions.Literal["
|
|
129
|
+
def __getitem__(self, name: typing_extensions.Literal["brokerage_order_id"]) -> MetaOapg.properties.brokerage_order_id: ...
|
|
130
130
|
|
|
131
131
|
@typing.overload
|
|
132
132
|
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
|
|
133
133
|
|
|
134
|
-
def __getitem__(self, name: typing.Union[typing_extensions.Literal["
|
|
134
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["brokerage_order_id", ], str]):
|
|
135
135
|
# dict_instance[name] accessor
|
|
136
136
|
return super().__getitem__(name)
|
|
137
137
|
|
|
138
138
|
|
|
139
139
|
@typing.overload
|
|
140
|
-
def get_item_oapg(self, name: typing_extensions.Literal["
|
|
140
|
+
def get_item_oapg(self, name: typing_extensions.Literal["brokerage_order_id"]) -> MetaOapg.properties.brokerage_order_id: ...
|
|
141
141
|
|
|
142
142
|
@typing.overload
|
|
143
143
|
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
|
|
144
144
|
|
|
145
|
-
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["
|
|
145
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["brokerage_order_id", ], str]):
|
|
146
146
|
return super().get_item_oapg(name)
|
|
147
147
|
|
|
148
148
|
|
|
149
149
|
def __new__(
|
|
150
150
|
cls,
|
|
151
151
|
*args: typing.Union[dict, frozendict.frozendict, ],
|
|
152
|
-
|
|
152
|
+
brokerage_order_id: typing.Union[MetaOapg.properties.brokerage_order_id, str, ],
|
|
153
153
|
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
154
154
|
**kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
|
|
155
155
|
) -> 'SchemaForRequestBodyApplicationJson':
|
|
156
156
|
return super().__new__(
|
|
157
157
|
cls,
|
|
158
158
|
*args,
|
|
159
|
-
|
|
159
|
+
brokerage_order_id=brokerage_order_id,
|
|
160
160
|
_configuration=_configuration,
|
|
161
161
|
**kwargs,
|
|
162
162
|
)
|
|
@@ -263,7 +263,7 @@ class BaseApi(api_client.Api):
|
|
|
263
263
|
def _get_user_account_order_detail_mapped_args(
|
|
264
264
|
self,
|
|
265
265
|
body: typing.Optional[typing.Any] = None,
|
|
266
|
-
|
|
266
|
+
brokerage_order_id: typing.Optional[str] = None,
|
|
267
267
|
account_id: typing.Optional[str] = None,
|
|
268
268
|
user_id: typing.Optional[str] = None,
|
|
269
269
|
user_secret: typing.Optional[str] = None,
|
|
@@ -274,8 +274,8 @@ class BaseApi(api_client.Api):
|
|
|
274
274
|
_query_params = {}
|
|
275
275
|
_path_params = {}
|
|
276
276
|
_body = {}
|
|
277
|
-
if
|
|
278
|
-
_body["
|
|
277
|
+
if brokerage_order_id is not None:
|
|
278
|
+
_body["brokerage_order_id"] = brokerage_order_id
|
|
279
279
|
args.body = body if body is not None else _body
|
|
280
280
|
if user_id is not None:
|
|
281
281
|
_query_params["userId"] = user_id
|
|
@@ -556,7 +556,7 @@ class GetUserAccountOrderDetail(BaseApi):
|
|
|
556
556
|
async def aget_user_account_order_detail(
|
|
557
557
|
self,
|
|
558
558
|
body: typing.Optional[typing.Any] = None,
|
|
559
|
-
|
|
559
|
+
brokerage_order_id: typing.Optional[str] = None,
|
|
560
560
|
account_id: typing.Optional[str] = None,
|
|
561
561
|
user_id: typing.Optional[str] = None,
|
|
562
562
|
user_secret: typing.Optional[str] = None,
|
|
@@ -572,7 +572,7 @@ class GetUserAccountOrderDetail(BaseApi):
|
|
|
572
572
|
body=body,
|
|
573
573
|
query_params=query_params,
|
|
574
574
|
path_params=path_params,
|
|
575
|
-
|
|
575
|
+
brokerage_order_id=brokerage_order_id,
|
|
576
576
|
account_id=account_id,
|
|
577
577
|
user_id=user_id,
|
|
578
578
|
user_secret=user_secret,
|
|
@@ -587,7 +587,7 @@ class GetUserAccountOrderDetail(BaseApi):
|
|
|
587
587
|
def get_user_account_order_detail(
|
|
588
588
|
self,
|
|
589
589
|
body: typing.Optional[typing.Any] = None,
|
|
590
|
-
|
|
590
|
+
brokerage_order_id: typing.Optional[str] = None,
|
|
591
591
|
account_id: typing.Optional[str] = None,
|
|
592
592
|
user_id: typing.Optional[str] = None,
|
|
593
593
|
user_secret: typing.Optional[str] = None,
|
|
@@ -602,7 +602,7 @@ class GetUserAccountOrderDetail(BaseApi):
|
|
|
602
602
|
body=body,
|
|
603
603
|
query_params=query_params,
|
|
604
604
|
path_params=path_params,
|
|
605
|
-
|
|
605
|
+
brokerage_order_id=brokerage_order_id,
|
|
606
606
|
account_id=account_id,
|
|
607
607
|
user_id=user_id,
|
|
608
608
|
user_secret=user_secret,
|
|
@@ -619,7 +619,7 @@ class ApiForpost(BaseApi):
|
|
|
619
619
|
async def apost(
|
|
620
620
|
self,
|
|
621
621
|
body: typing.Optional[typing.Any] = None,
|
|
622
|
-
|
|
622
|
+
brokerage_order_id: typing.Optional[str] = None,
|
|
623
623
|
account_id: typing.Optional[str] = None,
|
|
624
624
|
user_id: typing.Optional[str] = None,
|
|
625
625
|
user_secret: typing.Optional[str] = None,
|
|
@@ -635,7 +635,7 @@ class ApiForpost(BaseApi):
|
|
|
635
635
|
body=body,
|
|
636
636
|
query_params=query_params,
|
|
637
637
|
path_params=path_params,
|
|
638
|
-
|
|
638
|
+
brokerage_order_id=brokerage_order_id,
|
|
639
639
|
account_id=account_id,
|
|
640
640
|
user_id=user_id,
|
|
641
641
|
user_secret=user_secret,
|
|
@@ -650,7 +650,7 @@ class ApiForpost(BaseApi):
|
|
|
650
650
|
def post(
|
|
651
651
|
self,
|
|
652
652
|
body: typing.Optional[typing.Any] = None,
|
|
653
|
-
|
|
653
|
+
brokerage_order_id: typing.Optional[str] = None,
|
|
654
654
|
account_id: typing.Optional[str] = None,
|
|
655
655
|
user_id: typing.Optional[str] = None,
|
|
656
656
|
user_secret: typing.Optional[str] = None,
|
|
@@ -665,7 +665,7 @@ class ApiForpost(BaseApi):
|
|
|
665
665
|
body=body,
|
|
666
666
|
query_params=query_params,
|
|
667
667
|
path_params=path_params,
|
|
668
|
-
|
|
668
|
+
brokerage_order_id=brokerage_order_id,
|
|
669
669
|
account_id=account_id,
|
|
670
670
|
user_id=user_id,
|
|
671
671
|
user_secret=user_secret,
|
|
@@ -32,7 +32,7 @@ class OptionalSnapTradeLoginUserRequestBody(TypedDict, total=False):
|
|
|
32
32
|
# The UUID of the brokerage connection to be reconnected. This parameter should be left empty unless you are reconnecting a disabled connection. See the [guide on fixing broken connections](/docs/fix-broken-connections) for more information.
|
|
33
33
|
reconnect: str
|
|
34
34
|
|
|
35
|
-
#
|
|
35
|
+
# Determines connection permissions (default: read) - `read`: Data access only. - `trade`: Data and trading access. - `trade-if-available`: Attempts to establish a trading connection if the brokerage supports it, otherwise falls back to read-only access automatically.
|
|
36
36
|
connectionType: str
|
|
37
37
|
|
|
38
38
|
# Sets the connection portal version to render. Currently only v4 is supported and is the default. All other versions are deprecated and will automatically be set to v4.
|
{snaptrade_python_sdk-11.0.128.dist-info → snaptrade_python_sdk-11.0.130.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.130
|
|
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.130)
|
|
34
34
|
[](https://github.com/passiv/snaptrade-sdks/tree/master/sdks/python#readme)
|
|
35
35
|
[](https://snaptrade.com/)
|
|
36
36
|
|
|
@@ -109,7 +109,7 @@ Python >=3.8
|
|
|
109
109
|
## Installation<a id="installation"></a>
|
|
110
110
|
|
|
111
111
|
```sh
|
|
112
|
-
pip install snaptrade-python-sdk==11.0.
|
|
112
|
+
pip install snaptrade-python-sdk==11.0.130
|
|
113
113
|
```
|
|
114
114
|
|
|
115
115
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -413,7 +413,7 @@ This endpoint only returns orders placed through SnapTrade. In other words, orde
|
|
|
413
413
|
```python
|
|
414
414
|
get_user_account_order_detail_response = (
|
|
415
415
|
snaptrade.account_information.get_user_account_order_detail(
|
|
416
|
-
|
|
416
|
+
brokerage_order_id="66a033fa-da74-4fcf-b527-feefdec9257e",
|
|
417
417
|
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
418
418
|
user_id="snaptrade-user-123",
|
|
419
419
|
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
@@ -423,7 +423,7 @@ get_user_account_order_detail_response = (
|
|
|
423
423
|
|
|
424
424
|
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
|
425
425
|
|
|
426
|
-
#####
|
|
426
|
+
##### brokerage_order_id: `str`<a id="brokerage_order_id-str"></a>
|
|
427
427
|
|
|
428
428
|
Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.
|
|
429
429
|
|
|
@@ -844,7 +844,7 @@ The UUID of the brokerage connection to be reconnected. This parameter should be
|
|
|
844
844
|
|
|
845
845
|
##### connection_type: `str`<a id="connection_type-str"></a>
|
|
846
846
|
|
|
847
|
-
|
|
847
|
+
Determines connection permissions (default: read) - `read`: Data access only. - `trade`: Data and trading access. - `trade-if-available`: Attempts to establish a trading connection if the brokerage supports it, otherwise falls back to read-only access automatically.
|
|
848
848
|
|
|
849
849
|
##### connection_portal_version: `str`<a id="connection_portal_version-str"></a>
|
|
850
850
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
snaptrade_client/__init__.py,sha256=
|
|
2
|
-
snaptrade_client/api_client.py,sha256=
|
|
1
|
+
snaptrade_client/__init__.py,sha256=UBCLEzp923b19gOJGtvF8eLjuG6xjvtEur0WtC7r1I8,820
|
|
2
|
+
snaptrade_client/api_client.py,sha256=zlo-qaboeoU4arzMlQSAHGhAk6sQHbP_JUCOoqgsLLc,73975
|
|
3
3
|
snaptrade_client/api_response.py,sha256=mZn18p_TNr6OY0HXTZW5InL9iXfqsJWstYGeGD-euPA,663
|
|
4
4
|
snaptrade_client/apis/__init__.py,sha256=RTosXhMn41tMsKPUjIy-VK-_efOWzhkKiuGggJ3A6E0,214
|
|
5
5
|
snaptrade_client/apis/path_to_api.py,sha256=4kldxcVXHcyd6XM8UFe7zlFSHj02tf9s3TFXDZwfEHY,12312
|
|
@@ -77,7 +77,7 @@ snaptrade_client/apis/tags/transactions_and_reporting_api_generated.py,sha256=Tw
|
|
|
77
77
|
snaptrade_client/client.py,sha256=goDwWRv9909OPXDnGGYst_mr53bg6RUs4PwIvnrl_kE,2116
|
|
78
78
|
snaptrade_client/client.pyi,sha256=goDwWRv9909OPXDnGGYst_mr53bg6RUs4PwIvnrl_kE,2116
|
|
79
79
|
snaptrade_client/client_custom.py,sha256=Jx9ulCzelMFlESjzVFQSjBlYcH4dWxSJJWZDMPLyetM,745
|
|
80
|
-
snaptrade_client/configuration.py,sha256=
|
|
80
|
+
snaptrade_client/configuration.py,sha256=PjrSWP7-tWAC5RiVPvDsrM19A0TKt72ufKCaqS5Qaso,19262
|
|
81
81
|
snaptrade_client/exceptions.py,sha256=X0apI_sgQpGpa-qIqPUClReCdHAxeSuA6GW0YH_RsWg,7771
|
|
82
82
|
snaptrade_client/exceptions_base.py,sha256=LAQkaC5C61-SdBLfyMjb0K7AYJkWVuLmg2uCvHa71FM,2274
|
|
83
83
|
snaptrade_client/model/__init__.py,sha256=ayi2MIzcf0eAIsY13ToiNplV9tW-pMBFrC0I9yckGM8,350
|
|
@@ -239,10 +239,10 @@ snaptrade_client/model/mleg_order_response.py,sha256=yRcsAUCW-Oj_HDC89V1pKlPD38p
|
|
|
239
239
|
snaptrade_client/model/mleg_order_response.pyi,sha256=yRcsAUCW-Oj_HDC89V1pKlPD38p8obdgU-tQ0cUqCGY,4230
|
|
240
240
|
snaptrade_client/model/mleg_order_type_strict.py,sha256=rT7CaWvf7mqS58A6yuUm0BEIfzF_RmrlH5qvTY4FqD0,1353
|
|
241
241
|
snaptrade_client/model/mleg_order_type_strict.pyi,sha256=l1oBrGrwMC1yRTxa2W5_bCSqoNdZwITqeN5gZhYAbZk,1126
|
|
242
|
-
snaptrade_client/model/mleg_price_effect_strict.py,sha256=
|
|
243
|
-
snaptrade_client/model/mleg_price_effect_strict.pyi,sha256=
|
|
244
|
-
snaptrade_client/model/mleg_price_effect_strict_nullable.py,sha256
|
|
245
|
-
snaptrade_client/model/mleg_price_effect_strict_nullable.pyi,sha256
|
|
242
|
+
snaptrade_client/model/mleg_price_effect_strict.py,sha256=fMMLYln8Y4CTOBNTnIOU2hVVLpv2BnvMmVizMyieFdA,1191
|
|
243
|
+
snaptrade_client/model/mleg_price_effect_strict.pyi,sha256=Yn7Fee9_NBxmbJJXG9d9tp4CZAOHFXvnZRgLwcmh0Vg,1038
|
|
244
|
+
snaptrade_client/model/mleg_price_effect_strict_nullable.py,sha256=5Hg4lykSdcVPmke10KR2oWYDxgikfbIGoNZlvNBFX4Q,1573
|
|
245
|
+
snaptrade_client/model/mleg_price_effect_strict_nullable.pyi,sha256=5Hg4lykSdcVPmke10KR2oWYDxgikfbIGoNZlvNBFX4Q,1573
|
|
246
246
|
snaptrade_client/model/mleg_trade_form.py,sha256=ZGJXdwlFRWuwu83PYK7Nrl-5s6dzyBklq1I-9mSwIYc,8056
|
|
247
247
|
snaptrade_client/model/mleg_trade_form.pyi,sha256=ZGJXdwlFRWuwu83PYK7Nrl-5s6dzyBklq1I-9mSwIYc,8056
|
|
248
248
|
snaptrade_client/model/mleg_trading_instrument.py,sha256=kmRuihu0UqhyqlZ6SvGLKDQ32X5L_vlTmE2_27VZnuw,3302
|
|
@@ -353,8 +353,8 @@ snaptrade_client/model/snap_trade_holdings_account_meta.py,sha256=a7gTJqkuclua7L
|
|
|
353
353
|
snaptrade_client/model/snap_trade_holdings_account_meta.pyi,sha256=a7gTJqkuclua7LrqJsRo7QtvFwszTuh7QQyc-Ny2NfM,1668
|
|
354
354
|
snaptrade_client/model/snap_trade_holdings_total_value.py,sha256=bQ1KVz-yWVs9Z4jdrmX_z2c7CJLcO6Y9zL4RO4BDn-I,4972
|
|
355
355
|
snaptrade_client/model/snap_trade_holdings_total_value.pyi,sha256=bQ1KVz-yWVs9Z4jdrmX_z2c7CJLcO6Y9zL4RO4BDn-I,4972
|
|
356
|
-
snaptrade_client/model/snap_trade_login_user_request_body.py,sha256=
|
|
357
|
-
snaptrade_client/model/snap_trade_login_user_request_body.pyi,sha256=
|
|
356
|
+
snaptrade_client/model/snap_trade_login_user_request_body.py,sha256=LXOjeObRXtRaLNyFynqAz9DF0TWwTnL8HQpTF-UBgPc,7030
|
|
357
|
+
snaptrade_client/model/snap_trade_login_user_request_body.pyi,sha256=uYgBn6nSzbt-AOs2j5v-ZMivfoxkEVMs5b50bCABV-4,6528
|
|
358
358
|
snaptrade_client/model/snap_trade_register_user_request_body.py,sha256=dE4FNlnhJ5rFt-p2OXn3KX_e_RoeCbdfhUpozfMyo5A,2483
|
|
359
359
|
snaptrade_client/model/snap_trade_register_user_request_body.pyi,sha256=dE4FNlnhJ5rFt-p2OXn3KX_e_RoeCbdfhUpozfMyo5A,2483
|
|
360
360
|
snaptrade_client/model/status.py,sha256=JYOXSzF4Qo2EgPcdrZtKKkepgsTAtJ3IGLHEGNgxISY,3639
|
|
@@ -422,7 +422,7 @@ snaptrade_client/model/user_secret.pyi,sha256=7xf__S566WtTq7VthmdVtrCBIfgpnYWYqE
|
|
|
422
422
|
snaptrade_client/model/validated_trade_body.py,sha256=NkTel1ulgSjBd6K7vur6puEbfrg3u1vdmtUKArOu8ws,3085
|
|
423
423
|
snaptrade_client/model/validated_trade_body.pyi,sha256=NkTel1ulgSjBd6K7vur6puEbfrg3u1vdmtUKArOu8ws,3085
|
|
424
424
|
snaptrade_client/models/__init__.py,sha256=nEO5bHCM19h-AQp0rl6XNHrTZ4Aw4ffqVOPRYOPOr_I,13312
|
|
425
|
-
snaptrade_client/operation_parameter_map.py,sha256=
|
|
425
|
+
snaptrade_client/operation_parameter_map.py,sha256=m-YFdrXWc_d13EXZA6G_84JWKqxPcKrMvGTbl-q0O4o,18239
|
|
426
426
|
snaptrade_client/paths/__init__.py,sha256=_AIs8vbi_zgRHbgZ2k64V6waRP3RiZuyL4nRaZbpLMY,3519
|
|
427
427
|
snaptrade_client/paths/accounts/__init__.py,sha256=_Bqi6B13A-kgd0AOpqmcE1vTxJDfoz-r3Hwf-AmwW6A,307
|
|
428
428
|
snaptrade_client/paths/accounts/get.py,sha256=MDE_4VCylBroYDkMQe9II1qCGf6gTTDGCShFyGLXf00,16463
|
|
@@ -454,8 +454,8 @@ snaptrade_client/paths/accounts_account_id_orders_cancel/__init__.py,sha256=UIeH
|
|
|
454
454
|
snaptrade_client/paths/accounts_account_id_orders_cancel/post.py,sha256=PipHEDsFEytBeeXn5ydOnD5bCTHcDfW5EWmaRuuWQyQ,24559
|
|
455
455
|
snaptrade_client/paths/accounts_account_id_orders_cancel/post.pyi,sha256=r1JJmy3TEKzeu7WAXPGP5RocDF6dDwFScC_-ffesP9E,24335
|
|
456
456
|
snaptrade_client/paths/accounts_account_id_orders_details/__init__.py,sha256=6PWLMs5Y6WxEM5h99FQSSpvq7Btg4dfrgMkWk3mhBYo,359
|
|
457
|
-
snaptrade_client/paths/accounts_account_id_orders_details/post.py,sha256=
|
|
458
|
-
snaptrade_client/paths/accounts_account_id_orders_details/post.pyi,sha256=
|
|
457
|
+
snaptrade_client/paths/accounts_account_id_orders_details/post.py,sha256=Nylan_T2L-cbh4ApYgNOEmVbZGyrYGJG4pWHp1v6WGc,25450
|
|
458
|
+
snaptrade_client/paths/accounts_account_id_orders_details/post.pyi,sha256=biP_HRTDLYWjQISfaZ68I5GLke9z3IwxYTPehzp9TMM,25196
|
|
459
459
|
snaptrade_client/paths/accounts_account_id_positions/__init__.py,sha256=UB-B0t2OnlP8QvI9ptBNhqYsywmYsFZz9G8NJkVZBTM,349
|
|
460
460
|
snaptrade_client/paths/accounts_account_id_positions/get.py,sha256=mT1qThSd9z8ggJa0uXGdWA_N8cs0NH_ijLRsPIVnuWY,20204
|
|
461
461
|
snaptrade_client/paths/accounts_account_id_positions/get.pyi,sha256=wHZruGOsjMfVd6GW3qB8jPhMQNfr2dP4TbB71taNUVk,20002
|
|
@@ -727,7 +727,7 @@ snaptrade_client/type/simple_order_form.py,sha256=o8jhnyAQI_PDWAsgtXhwI-5lxnEJrF
|
|
|
727
727
|
snaptrade_client/type/snap_trade_holdings_account.py,sha256=2CELHwFK5R3S6IEdQR-0L4yz5MHlnXuX8-HFOgWTJ0U,1098
|
|
728
728
|
snaptrade_client/type/snap_trade_holdings_account_meta.py,sha256=d8lARJi8F4ppNZzEkyoGVetlmLlp-cv8gxY7Qph1LmA,407
|
|
729
729
|
snaptrade_client/type/snap_trade_holdings_total_value.py,sha256=tqQxn5TxkCYhZmCEtQc9uuLkKOyeXQKTNNMY23xQN3I,830
|
|
730
|
-
snaptrade_client/type/snap_trade_login_user_request_body.py,sha256=
|
|
730
|
+
snaptrade_client/type/snap_trade_login_user_request_body.py,sha256=nk7rLst2BsE3aroHCM5IIiEaUkZ_zZ-dFYI1I83c7JI,2295
|
|
731
731
|
snaptrade_client/type/snap_trade_register_user_request_body.py,sha256=1Qdcaxref9GaOOxhzIL67jyH9B1atAmOK41_RQHRrGU,908
|
|
732
732
|
snaptrade_client/type/status.py,sha256=S_dlmtpGIrLQ330OrWw4ORsWl4_1PJglTFdari1ftG0,571
|
|
733
733
|
snaptrade_client/type/stop_loss.py,sha256=dmH0Tnf94hktMLYicdno1GW7jp3MiriQQ9sJlhDd2cM,585
|
|
@@ -763,7 +763,7 @@ snaptrade_client/type/user_secret.py,sha256=pKCVhqf1rROHwa6tvoyA5OAKXCBAmNDvIQCf
|
|
|
763
763
|
snaptrade_client/type/validated_trade_body.py,sha256=ZIPBQWii_a-9zHaBCJ6bQtmL1_I7AG0zwuvkY-ZQ6R4,890
|
|
764
764
|
snaptrade_client/type_util.py,sha256=JIrMYgJzd4IJ8Ne2vqcahlPA9dVmphL9sn8gwccCB4Y,563
|
|
765
765
|
snaptrade_client/validation_metadata.py,sha256=VTN5y-NudHXok1X468J4PnGze_tGEAcs1v3gsXmcrb0,3172
|
|
766
|
-
snaptrade_python_sdk-11.0.
|
|
767
|
-
snaptrade_python_sdk-11.0.
|
|
768
|
-
snaptrade_python_sdk-11.0.
|
|
769
|
-
snaptrade_python_sdk-11.0.
|
|
766
|
+
snaptrade_python_sdk-11.0.130.dist-info/LICENSE,sha256=W_1kcxEzOnZXIYJ1GVUipbmUu6dNLt-Pc-OI55h3k-A,1081
|
|
767
|
+
snaptrade_python_sdk-11.0.130.dist-info/METADATA,sha256=fiyzXO1CBytTLUgTtv6vQTt_D_X6MdhbdxHeRcSqW00,93123
|
|
768
|
+
snaptrade_python_sdk-11.0.130.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
769
|
+
snaptrade_python_sdk-11.0.130.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|