snaptrade-python-sdk 11.0.136__py3-none-any.whl → 11.0.137__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/trading_instrument.py +5 -0
- snaptrade_client/model/trading_instrument.pyi +4 -0
- snaptrade_client/paths/accounts_account_id_trading_bracket/post.py +2 -2
- snaptrade_client/paths/accounts_account_id_trading_bracket/post.pyi +2 -2
- snaptrade_client/type/trading_instrument.py +1 -1
- {snaptrade_python_sdk-11.0.136.dist-info → snaptrade_python_sdk-11.0.137.dist-info}/METADATA +3 -3
- {snaptrade_python_sdk-11.0.136.dist-info → snaptrade_python_sdk-11.0.137.dist-info}/RECORD +12 -12
- {snaptrade_python_sdk-11.0.136.dist-info → snaptrade_python_sdk-11.0.137.dist-info}/LICENSE +0 -0
- {snaptrade_python_sdk-11.0.136.dist-info → snaptrade_python_sdk-11.0.137.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.137/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.137".\
|
|
442
442
|
format(env=sys.platform, pyversion=sys.version)
|
|
443
443
|
|
|
444
444
|
def get_host_settings(self):
|
|
@@ -51,6 +51,7 @@ class TradingInstrument(
|
|
|
51
51
|
class MetaOapg:
|
|
52
52
|
enum_value_to_name = {
|
|
53
53
|
"EQUITY": "EQUITY",
|
|
54
|
+
"OPTION": "OPTION",
|
|
54
55
|
"CRYPTOCURRENCY": "CRYPTOCURRENCY",
|
|
55
56
|
"CRYPTOCURRENCY_PAIR": "CRYPTOCURRENCY_PAIR",
|
|
56
57
|
}
|
|
@@ -59,6 +60,10 @@ class TradingInstrument(
|
|
|
59
60
|
def EQUITY(cls):
|
|
60
61
|
return cls("EQUITY")
|
|
61
62
|
|
|
63
|
+
@schemas.classproperty
|
|
64
|
+
def OPTION(cls):
|
|
65
|
+
return cls("OPTION")
|
|
66
|
+
|
|
62
67
|
@schemas.classproperty
|
|
63
68
|
def CRYPTOCURRENCY(cls):
|
|
64
69
|
return cls("CRYPTOCURRENCY")
|
|
@@ -294,7 +294,7 @@ class BaseApi(api_client.Api):
|
|
|
294
294
|
AsyncGeneratorResponse,
|
|
295
295
|
]:
|
|
296
296
|
"""
|
|
297
|
-
Place bracket
|
|
297
|
+
Place bracket order
|
|
298
298
|
:param skip_deserialization: If true then api_response.response will be set but
|
|
299
299
|
api_response.body and api_response.headers will not be deserialized into schema
|
|
300
300
|
class instances
|
|
@@ -440,7 +440,7 @@ class BaseApi(api_client.Api):
|
|
|
440
440
|
api_client.ApiResponseWithoutDeserialization,
|
|
441
441
|
]:
|
|
442
442
|
"""
|
|
443
|
-
Place bracket
|
|
443
|
+
Place bracket order
|
|
444
444
|
:param skip_deserialization: If true then api_response.response will be set but
|
|
445
445
|
api_response.body and api_response.headers will not be deserialized into schema
|
|
446
446
|
class instances
|
|
@@ -281,7 +281,7 @@ class BaseApi(api_client.Api):
|
|
|
281
281
|
AsyncGeneratorResponse,
|
|
282
282
|
]:
|
|
283
283
|
"""
|
|
284
|
-
Place bracket
|
|
284
|
+
Place bracket order
|
|
285
285
|
:param skip_deserialization: If true then api_response.response will be set but
|
|
286
286
|
api_response.body and api_response.headers will not be deserialized into schema
|
|
287
287
|
class instances
|
|
@@ -427,7 +427,7 @@ class BaseApi(api_client.Api):
|
|
|
427
427
|
api_client.ApiResponseWithoutDeserialization,
|
|
428
428
|
]:
|
|
429
429
|
"""
|
|
430
|
-
Place bracket
|
|
430
|
+
Place bracket order
|
|
431
431
|
:param skip_deserialization: If true then api_response.response will be set but
|
|
432
432
|
api_response.body and api_response.headers will not be deserialized into schema
|
|
433
433
|
class instances
|
|
@@ -17,7 +17,7 @@ from typing_extensions import TypedDict, Literal, TYPE_CHECKING
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class RequiredTradingInstrument(TypedDict):
|
|
20
|
-
# The instrument's trading ticker symbol
|
|
20
|
+
# The instrument's trading ticker symbol. This currently supports stock symbols and Options symbols in the 21 character OCC format. For example `AAPL 131124C00240000` represents a call option on AAPL expiring on 2024-11-13 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format)
|
|
21
21
|
symbol: str
|
|
22
22
|
|
|
23
23
|
# The instrument's type
|
{snaptrade_python_sdk-11.0.136.dist-info → snaptrade_python_sdk-11.0.137.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.137
|
|
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.137)
|
|
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.137
|
|
113
113
|
```
|
|
114
114
|
|
|
115
115
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
snaptrade_client/__init__.py,sha256=
|
|
2
|
-
snaptrade_client/api_client.py,sha256
|
|
1
|
+
snaptrade_client/__init__.py,sha256=Ziqq73w-PwrXab0nXgB8igzW5XrB-kwhexgFhKj2i0M,820
|
|
2
|
+
snaptrade_client/api_client.py,sha256=-25QYNaVgAxegY9UqJVi7msRwByN2pUt3maa5Rh-ISw,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=VOw9sx_QUkG2uVlaNjUaz3YhYIfZn5fcUrI__fDPmcI,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
|
|
@@ -391,8 +391,8 @@ snaptrade_client/model/time_in_force_strict.py,sha256=6mFx9KI5VMKCcMcusBZow9-wj8
|
|
|
391
391
|
snaptrade_client/model/time_in_force_strict.pyi,sha256=UvOCluVAviGtar4hKBoDBRlpiPn40sKhW4w6uSzXcZo,1625
|
|
392
392
|
snaptrade_client/model/trade_id.py,sha256=cbEaNeZ_8WW53ZCJFJVNM0CAh6veUNkwGqzUQBFoG8E,598
|
|
393
393
|
snaptrade_client/model/trade_id.pyi,sha256=cbEaNeZ_8WW53ZCJFJVNM0CAh6veUNkwGqzUQBFoG8E,598
|
|
394
|
-
snaptrade_client/model/trading_instrument.py,sha256=
|
|
395
|
-
snaptrade_client/model/trading_instrument.pyi,sha256=
|
|
394
|
+
snaptrade_client/model/trading_instrument.py,sha256=wEjNKB3IKUIECCLXABt5x2tp0GNOlijcAnAs5Ym_lTg,4021
|
|
395
|
+
snaptrade_client/model/trading_instrument.pyi,sha256=i0tAB4jo6TWozRUUksjuAtHIHqza1V2jSW9UxlMYmfY,3680
|
|
396
396
|
snaptrade_client/model/transactions_status.py,sha256=tyGuPY9gq2rHu26Twg3PSvyBEOEW4BEV0UDreQj0OlM,6840
|
|
397
397
|
snaptrade_client/model/transactions_status.pyi,sha256=tyGuPY9gq2rHu26Twg3PSvyBEOEW4BEV0UDreQj0OlM,6840
|
|
398
398
|
snaptrade_client/model/underlying_symbol.py,sha256=z-wwtN1bCGTk4_qIOnZM0WZAZhQqNfEdUC6-Sx_P-co,15766
|
|
@@ -472,8 +472,8 @@ snaptrade_client/paths/accounts_account_id_symbols/__init__.py,sha256=W4appqLUjn
|
|
|
472
472
|
snaptrade_client/paths/accounts_account_id_symbols/post.py,sha256=lY_qckOwveAIspofejARKiQI4R4M-eA_sMrS1qgtIqE,22211
|
|
473
473
|
snaptrade_client/paths/accounts_account_id_symbols/post.pyi,sha256=7BOOwzqpCb39oCxp_ZKSVpQx1fQjkwBpWGyjptFM1C0,22009
|
|
474
474
|
snaptrade_client/paths/accounts_account_id_trading_bracket/__init__.py,sha256=QBPAt6nOa154uffyl5sircs20NaIQEyV_d3ZBDGFIDo,361
|
|
475
|
-
snaptrade_client/paths/accounts_account_id_trading_bracket/post.py,sha256=
|
|
476
|
-
snaptrade_client/paths/accounts_account_id_trading_bracket/post.pyi,sha256=
|
|
475
|
+
snaptrade_client/paths/accounts_account_id_trading_bracket/post.py,sha256=ZN21XiREm9MA5iA_5l4bC8n2hU5fOA4I9DYtancEE18,28030
|
|
476
|
+
snaptrade_client/paths/accounts_account_id_trading_bracket/post.pyi,sha256=Va8t8rWomEB07Mflk3eSQ3yz1SY7xIdx1-Zti-kuxtw,27776
|
|
477
477
|
snaptrade_client/paths/accounts_account_id_trading_cancel/__init__.py,sha256=MJxSaVr3G9c_q18MFEhXT13t8kAeMsXQvpmfukC4T-8,359
|
|
478
478
|
snaptrade_client/paths/accounts_account_id_trading_cancel/post.py,sha256=Ph-TuHSR34RGCPMDn31AcQ1OmaVjUhOuVa9AO5mV8r0,23404
|
|
479
479
|
snaptrade_client/paths/accounts_account_id_trading_cancel/post.pyi,sha256=BLAyPyOErz9_q0ggtkiIGY2q6hLwyg2V83VKcXLO_84,23180
|
|
@@ -746,7 +746,7 @@ snaptrade_client/type/time.py,sha256=8wOcPUj4gua_yXsX_ywzTW7rVXSOh7zY-x-BSiQfiaY
|
|
|
746
746
|
snaptrade_client/type/time_in_force.py,sha256=KNosd1xbe4B8AFAZFi0P68wPreUz9w8W0gZWGvKeDEM,389
|
|
747
747
|
snaptrade_client/type/time_in_force_strict.py,sha256=opH8YGpacD-5SD11dF_fpESJ1TERnbnkLvlKjs-dYQY,427
|
|
748
748
|
snaptrade_client/type/trade_id.py,sha256=4iIIlK2A4Shut27nLvw6HRPv6BXGDHNJ5Xer84K9i8s,385
|
|
749
|
-
snaptrade_client/type/trading_instrument.py,sha256=
|
|
749
|
+
snaptrade_client/type/trading_instrument.py,sha256=SiJ4-of50dQuHccuZA5iozAR7rMjicxpTe8wqTt-BAU,994
|
|
750
750
|
snaptrade_client/type/transactions_status.py,sha256=W-SlpGb9dhxOBY7d2KNSi1H1sDw4oAUX7c0kYuA-GsM,1199
|
|
751
751
|
snaptrade_client/type/underlying_symbol.py,sha256=lne2ye556eJXKZxpureuSKd4Ebd4KrhWN8RmySjzkX0,2526
|
|
752
752
|
snaptrade_client/type/units.py,sha256=5Oy2dds7WXh0CpBEQYR5dFfSPUqmX0hQQWK79DPQCZA,385
|
|
@@ -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.137.dist-info/LICENSE,sha256=W_1kcxEzOnZXIYJ1GVUipbmUu6dNLt-Pc-OI55h3k-A,1081
|
|
767
|
+
snaptrade_python_sdk-11.0.137.dist-info/METADATA,sha256=snw4I07uiv4SRCRDIgqaJhRsinKHksedSTn-jKlYyz0,93499
|
|
768
|
+
snaptrade_python_sdk-11.0.137.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
769
|
+
snaptrade_python_sdk-11.0.137.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|