snaptrade-python-sdk 11.0.142__py3-none-any.whl → 11.0.143__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- snaptrade_client/__init__.py +1 -1
- snaptrade_client/api_client.py +1 -1
- snaptrade_client/configuration.py +1 -1
- snaptrade_client/model/account_order_record_status.py +18 -0
- snaptrade_client/model/account_order_record_status.pyi +18 -0
- snaptrade_client/type/account_universal_activity.py +1 -1
- {snaptrade_python_sdk-11.0.142.dist-info → snaptrade_python_sdk-11.0.143.dist-info}/METADATA +4 -4
- {snaptrade_python_sdk-11.0.142.dist-info → snaptrade_python_sdk-11.0.143.dist-info}/RECORD +10 -10
- {snaptrade_python_sdk-11.0.142.dist-info → snaptrade_python_sdk-11.0.143.dist-info}/LICENSE +0 -0
- {snaptrade_python_sdk-11.0.142.dist-info → snaptrade_python_sdk-11.0.143.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.143/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.143".\
|
|
442
442
|
format(env=sys.platform, pyversion=sys.version)
|
|
443
443
|
|
|
444
444
|
def get_host_settings(self):
|
|
@@ -32,6 +32,24 @@ class AccountOrderRecordStatus(
|
|
|
32
32
|
This class is auto generated by Konfig (https://konfigthis.com)
|
|
33
33
|
|
|
34
34
|
Indicates the status of an order. SnapTrade does a best effort to map brokerage statuses to statuses in this enum.
|
|
35
|
+
Possible values include:
|
|
36
|
+
- NONE
|
|
37
|
+
- PENDING
|
|
38
|
+
- ACCEPTED
|
|
39
|
+
- FAILED
|
|
40
|
+
- REJECTED
|
|
41
|
+
- CANCELED
|
|
42
|
+
- PARTIAL_CANCELED
|
|
43
|
+
- CANCEL_PENDING
|
|
44
|
+
- EXECUTED
|
|
45
|
+
- PARTIAL
|
|
46
|
+
- REPLACE_PENDING
|
|
47
|
+
- REPLACED
|
|
48
|
+
- EXPIRED
|
|
49
|
+
- QUEUED
|
|
50
|
+
- TRIGGERED
|
|
51
|
+
- ACTIVATED
|
|
52
|
+
|
|
35
53
|
"""
|
|
36
54
|
|
|
37
55
|
|
|
@@ -32,6 +32,24 @@ class AccountOrderRecordStatus(
|
|
|
32
32
|
This class is auto generated by Konfig (https://konfigthis.com)
|
|
33
33
|
|
|
34
34
|
Indicates the status of an order. SnapTrade does a best effort to map brokerage statuses to statuses in this enum.
|
|
35
|
+
Possible values include:
|
|
36
|
+
- NONE
|
|
37
|
+
- PENDING
|
|
38
|
+
- ACCEPTED
|
|
39
|
+
- FAILED
|
|
40
|
+
- REJECTED
|
|
41
|
+
- CANCELED
|
|
42
|
+
- PARTIAL_CANCELED
|
|
43
|
+
- CANCEL_PENDING
|
|
44
|
+
- EXECUTED
|
|
45
|
+
- PARTIAL
|
|
46
|
+
- REPLACE_PENDING
|
|
47
|
+
- REPLACED
|
|
48
|
+
- EXPIRED
|
|
49
|
+
- QUEUED
|
|
50
|
+
- TRIGGERED
|
|
51
|
+
- ACTIVATED
|
|
52
|
+
|
|
35
53
|
"""
|
|
36
54
|
|
|
37
55
|
@schemas.classproperty
|
|
@@ -42,7 +42,7 @@ class OptionalAccountUniversalActivity(TypedDict, total=False):
|
|
|
42
42
|
# The currency in which the transaction `price` and `amount` is denominated.
|
|
43
43
|
currency: Currency
|
|
44
44
|
|
|
45
|
-
# A string representing the type of transaction. SnapTrade does a best effort to categorize the brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `
|
|
45
|
+
# A string representing the type of transaction. SnapTrade does a best effort to categorize the brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX`` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
|
|
46
46
|
type: str
|
|
47
47
|
|
|
48
48
|
# If an option `BUY` or `SELL` transaction, this further specifies the type of action. The possible values are: - BUY_TO_OPEN - BUY_TO_CLOSE - SELL_TO_OPEN - SELL_TO_CLOSE
|
{snaptrade_python_sdk-11.0.142.dist-info → snaptrade_python_sdk-11.0.143.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.143
|
|
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.143)
|
|
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.143
|
|
113
113
|
```
|
|
114
114
|
|
|
115
115
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -268,7 +268,7 @@ An integer that specifies the maximum number of transactions to return. Default
|
|
|
268
268
|
|
|
269
269
|
##### type: `str`<a id="type-str"></a>
|
|
270
270
|
|
|
271
|
-
Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another
|
|
271
|
+
Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX`` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
|
|
272
272
|
|
|
273
273
|
#### 🔄 Return<a id="🔄-return"></a>
|
|
274
274
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
snaptrade_client/__init__.py,sha256=
|
|
2
|
-
snaptrade_client/api_client.py,sha256=
|
|
1
|
+
snaptrade_client/__init__.py,sha256=x536cQGVkkQssRRKy9YOVomx_CGD3uRMJV6d9s557e8,820
|
|
2
|
+
snaptrade_client/api_client.py,sha256=fUNXSyOgWrBjSFylLYcPsyXWl_Hy-kQOxi4ad7LPKoY,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=nN1PuECmU913mnhqS4PDMXSeP8yYzVM2U_zSsjVST-Q,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
|
|
@@ -99,8 +99,8 @@ snaptrade_client/model/account_meta.py,sha256=DinCJws8L_EvoyL0TaZ3mxqmF7WHP8qdgj
|
|
|
99
99
|
snaptrade_client/model/account_meta.pyi,sha256=DinCJws8L_EvoyL0TaZ3mxqmF7WHP8qdgjmQpMMuyVM,1877
|
|
100
100
|
snaptrade_client/model/account_order_record.py,sha256=8iJAzCQm73UqoVmMr3bNlc1cMzk4_S90qAIbs4ZnBWA,31710
|
|
101
101
|
snaptrade_client/model/account_order_record.pyi,sha256=8iJAzCQm73UqoVmMr3bNlc1cMzk4_S90qAIbs4ZnBWA,31710
|
|
102
|
-
snaptrade_client/model/account_order_record_status.py,sha256=
|
|
103
|
-
snaptrade_client/model/account_order_record_status.pyi,sha256=
|
|
102
|
+
snaptrade_client/model/account_order_record_status.py,sha256=TaZl_CIulyjOpUj6qfl5e1lVZincJOkqyhyEvDlzbwU,3727
|
|
103
|
+
snaptrade_client/model/account_order_record_status.pyi,sha256=9DRPTVdVxnRZtLu4fFHr7hC-KAREWyXomZz-m6XG8jc,2882
|
|
104
104
|
snaptrade_client/model/account_simple.py,sha256=wn9QxG5mIsGTRA10XWCJGUsJ8x_CUyYFRcP2DzVUMyE,4291
|
|
105
105
|
snaptrade_client/model/account_simple.pyi,sha256=wn9QxG5mIsGTRA10XWCJGUsJ8x_CUyYFRcP2DzVUMyE,4291
|
|
106
106
|
snaptrade_client/model/account_sync_status.py,sha256=YGFS1jThbDrDQu7HemWOWDNR9Y9zytv-MS5PLe7I0g8,3438
|
|
@@ -605,7 +605,7 @@ snaptrade_client/type/account_order_record.py,sha256=fR62IbSHjdeZBXnWMUhqk400fLy
|
|
|
605
605
|
snaptrade_client/type/account_order_record_status.py,sha256=7UCcPLIE_QVcBm488PfbuIwnQFetCu7wANTmsrg_NMg,677
|
|
606
606
|
snaptrade_client/type/account_simple.py,sha256=4vmKftyvxG72FXtiS0wG4IK81rfBvjcFcGO0j1NVvDo,1133
|
|
607
607
|
snaptrade_client/type/account_sync_status.py,sha256=i85qixRiLAFDJo0sYiSATocIuPv-ZEgwPkZaiMjKD58,776
|
|
608
|
-
snaptrade_client/type/account_universal_activity.py,sha256=
|
|
608
|
+
snaptrade_client/type/account_universal_activity.py,sha256=D0u1v5AyhYmCv8Fxo15bra7kKO7C3NF0CWmPoqzpYLk,4966
|
|
609
609
|
snaptrade_client/type/action.py,sha256=BzULR2JGyYNDNh6nVrwt3TFY0t-sJHAcudzC0UFxio4,384
|
|
610
610
|
snaptrade_client/type/action_strict.py,sha256=9My8RBJY53S5Ou7fqF8n_yOw0exE02uCqQ1kz45dwUg,409
|
|
611
611
|
snaptrade_client/type/action_strict_with_options.py,sha256=Rz_Mp9hZrod2wr2fc6sqg0vIQM-uBtJ3n_3CycUOMpY,484
|
|
@@ -766,7 +766,7 @@ snaptrade_client/type/user_secret.py,sha256=pKCVhqf1rROHwa6tvoyA5OAKXCBAmNDvIQCf
|
|
|
766
766
|
snaptrade_client/type/validated_trade_body.py,sha256=ZIPBQWii_a-9zHaBCJ6bQtmL1_I7AG0zwuvkY-ZQ6R4,890
|
|
767
767
|
snaptrade_client/type_util.py,sha256=JIrMYgJzd4IJ8Ne2vqcahlPA9dVmphL9sn8gwccCB4Y,563
|
|
768
768
|
snaptrade_client/validation_metadata.py,sha256=VTN5y-NudHXok1X468J4PnGze_tGEAcs1v3gsXmcrb0,3172
|
|
769
|
-
snaptrade_python_sdk-11.0.
|
|
770
|
-
snaptrade_python_sdk-11.0.
|
|
771
|
-
snaptrade_python_sdk-11.0.
|
|
772
|
-
snaptrade_python_sdk-11.0.
|
|
769
|
+
snaptrade_python_sdk-11.0.143.dist-info/LICENSE,sha256=W_1kcxEzOnZXIYJ1GVUipbmUu6dNLt-Pc-OI55h3k-A,1081
|
|
770
|
+
snaptrade_python_sdk-11.0.143.dist-info/METADATA,sha256=bTAjU2K2PLf_S4bDDDoj5oiY1wj0c4MtJxGLNtnll9w,95525
|
|
771
|
+
snaptrade_python_sdk-11.0.143.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
772
|
+
snaptrade_python_sdk-11.0.143.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|