snaptrade-python-sdk 11.0.113__py3-none-any.whl → 11.0.115__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.
@@ -12,7 +12,7 @@
12
12
  Created by: https://snaptrade.com/
13
13
  """
14
14
 
15
- __version__ = "11.0.113"
15
+ __version__ = "11.0.115"
16
16
 
17
17
  # import ApiClient
18
18
  from snaptrade_client.api_client import ApiClient
@@ -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.113/python'
1158
+ self.user_agent = 'Konfig/11.0.115/python'
1159
1159
 
1160
1160
  def __enter__(self):
1161
1161
  return self
@@ -34,8 +34,8 @@ from snaptrade_client.apis.paths.accounts_account_id_quotes import AccountsAccou
34
34
  from snaptrade_client.apis.paths.trade_impact import TradeImpact
35
35
  from snaptrade_client.apis.paths.trade_trade_id import TradeTradeId
36
36
  from snaptrade_client.apis.paths.trade_place import TradePlace
37
- from snaptrade_client.apis.paths.accounts_account_id_trading_bracket import AccountsAccountIdTradingBracket
38
37
  from snaptrade_client.apis.paths.accounts_account_id_orders_cancel import AccountsAccountIdOrdersCancel
38
+ from snaptrade_client.apis.paths.accounts_account_id_trading_bracket import AccountsAccountIdTradingBracket
39
39
  from snaptrade_client.apis.paths.accounts_account_id_trading_options import AccountsAccountIdTradingOptions
40
40
  from snaptrade_client.apis.paths.accounts_account_id_trading_instruments_cryptocurrency_pairs import AccountsAccountIdTradingInstrumentsCryptocurrencyPairs
41
41
  from snaptrade_client.apis.paths.accounts_account_id_trading_simple_preview import AccountsAccountIdTradingSimplePreview
@@ -91,8 +91,8 @@ PathToApi = typing_extensions.TypedDict(
91
91
  PathValues.TRADE_IMPACT: TradeImpact,
92
92
  PathValues.TRADE_TRADE_ID: TradeTradeId,
93
93
  PathValues.TRADE_PLACE: TradePlace,
94
- PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_BRACKET: AccountsAccountIdTradingBracket,
95
94
  PathValues.ACCOUNTS_ACCOUNT_ID_ORDERS_CANCEL: AccountsAccountIdOrdersCancel,
95
+ PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_BRACKET: AccountsAccountIdTradingBracket,
96
96
  PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_OPTIONS: AccountsAccountIdTradingOptions,
97
97
  PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_INSTRUMENTS_CRYPTOCURRENCY_PAIRS: AccountsAccountIdTradingInstrumentsCryptocurrencyPairs,
98
98
  PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_SIMPLE_PREVIEW: AccountsAccountIdTradingSimplePreview,
@@ -149,8 +149,8 @@ path_to_api = PathToApi(
149
149
  PathValues.TRADE_IMPACT: TradeImpact,
150
150
  PathValues.TRADE_TRADE_ID: TradeTradeId,
151
151
  PathValues.TRADE_PLACE: TradePlace,
152
- PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_BRACKET: AccountsAccountIdTradingBracket,
153
152
  PathValues.ACCOUNTS_ACCOUNT_ID_ORDERS_CANCEL: AccountsAccountIdOrdersCancel,
153
+ PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_BRACKET: AccountsAccountIdTradingBracket,
154
154
  PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_OPTIONS: AccountsAccountIdTradingOptions,
155
155
  PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_INSTRUMENTS_CRYPTOCURRENCY_PAIRS: AccountsAccountIdTradingInstrumentsCryptocurrencyPairs,
156
156
  PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_SIMPLE_PREVIEW: AccountsAccountIdTradingSimplePreview,
@@ -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.113".\
441
+ "SDK Package Version: 11.0.115".\
442
442
  format(env=sys.platform, pyversion=sys.version)
443
443
 
444
444
  def get_host_settings(self):
@@ -25,6 +25,7 @@ from snaptrade_client import schemas # noqa: F401
25
25
 
26
26
 
27
27
  class MlegPriceEffectStrict(
28
+ schemas.EnumBase,
28
29
  schemas.StrBase,
29
30
  schemas.NoneBase,
30
31
  schemas.Schema,
@@ -33,10 +34,30 @@ class MlegPriceEffectStrict(
33
34
  """
34
35
  This class is auto generated by Konfig (https://konfigthis.com)
35
36
 
36
- The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders. Only required for certain brokerages like ETrade. - CREDIT - DEBIT
37
+ The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders. Only required for certain brokerages like ETrade.
37
38
  """
38
39
 
39
40
 
41
+ class MetaOapg:
42
+ enum_value_to_name = {
43
+ "CREDIT": "CREDIT",
44
+ "DEBIT": "DEBIT",
45
+ "EVEN": "EVEN",
46
+ }
47
+
48
+ @schemas.classproperty
49
+ def CREDIT(cls):
50
+ return cls("CREDIT")
51
+
52
+ @schemas.classproperty
53
+ def DEBIT(cls):
54
+ return cls("DEBIT")
55
+
56
+ @schemas.classproperty
57
+ def EVEN(cls):
58
+ return cls("EVEN")
59
+
60
+
40
61
  def __new__(
41
62
  cls,
42
63
  *args: typing.Union[None, str, ],
@@ -25,6 +25,7 @@ from snaptrade_client import schemas # noqa: F401
25
25
 
26
26
 
27
27
  class MlegPriceEffectStrict(
28
+ schemas.EnumBase,
28
29
  schemas.StrBase,
29
30
  schemas.NoneBase,
30
31
  schemas.Schema,
@@ -33,10 +34,30 @@ class MlegPriceEffectStrict(
33
34
  """
34
35
  This class is auto generated by Konfig (https://konfigthis.com)
35
36
 
36
- The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders. Only required for certain brokerages like ETrade. - CREDIT - DEBIT
37
+ The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders. Only required for certain brokerages like ETrade.
37
38
  """
38
39
 
39
40
 
41
+ class MetaOapg:
42
+ enum_value_to_name = {
43
+ "CREDIT": "CREDIT",
44
+ "DEBIT": "DEBIT",
45
+ "EVEN": "EVEN",
46
+ }
47
+
48
+ @schemas.classproperty
49
+ def CREDIT(cls):
50
+ return cls("CREDIT")
51
+
52
+ @schemas.classproperty
53
+ def DEBIT(cls):
54
+ return cls("DEBIT")
55
+
56
+ @schemas.classproperty
57
+ def EVEN(cls):
58
+ return cls("EVEN")
59
+
60
+
40
61
  def __new__(
41
62
  cls,
42
63
  *args: typing.Union[None, str, ],
@@ -25,6 +25,7 @@ from snaptrade_client import schemas # noqa: F401
25
25
 
26
26
 
27
27
  class MlegPriceEffectStrictNullable(
28
+ schemas.EnumBase,
28
29
  schemas.StrBase,
29
30
  schemas.NoneBase,
30
31
  schemas.Schema,
@@ -33,10 +34,30 @@ class MlegPriceEffectStrictNullable(
33
34
  """
34
35
  This class is auto generated by Konfig (https://konfigthis.com)
35
36
 
36
- The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders. Only required for certain brokerages like ETrade. - CREDIT - DEBIT
37
+ The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders. Only required for certain brokerages like ETrade.
37
38
  """
38
39
 
39
40
 
41
+ class MetaOapg:
42
+ enum_value_to_name = {
43
+ "CREDIT": "CREDIT",
44
+ "DEBIT": "DEBIT",
45
+ "EVEN": "EVEN",
46
+ }
47
+
48
+ @schemas.classproperty
49
+ def CREDIT(cls):
50
+ return cls("CREDIT")
51
+
52
+ @schemas.classproperty
53
+ def DEBIT(cls):
54
+ return cls("DEBIT")
55
+
56
+ @schemas.classproperty
57
+ def EVEN(cls):
58
+ return cls("EVEN")
59
+
60
+
40
61
  def __new__(
41
62
  cls,
42
63
  *args: typing.Union[None, str, ],
@@ -25,6 +25,7 @@ from snaptrade_client import schemas # noqa: F401
25
25
 
26
26
 
27
27
  class MlegPriceEffectStrictNullable(
28
+ schemas.EnumBase,
28
29
  schemas.StrBase,
29
30
  schemas.NoneBase,
30
31
  schemas.Schema,
@@ -33,10 +34,30 @@ class MlegPriceEffectStrictNullable(
33
34
  """
34
35
  This class is auto generated by Konfig (https://konfigthis.com)
35
36
 
36
- The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders. Only required for certain brokerages like ETrade. - CREDIT - DEBIT
37
+ The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders. Only required for certain brokerages like ETrade.
37
38
  """
38
39
 
39
40
 
41
+ class MetaOapg:
42
+ enum_value_to_name = {
43
+ "CREDIT": "CREDIT",
44
+ "DEBIT": "DEBIT",
45
+ "EVEN": "EVEN",
46
+ }
47
+
48
+ @schemas.classproperty
49
+ def CREDIT(cls):
50
+ return cls("CREDIT")
51
+
52
+ @schemas.classproperty
53
+ def DEBIT(cls):
54
+ return cls("DEBIT")
55
+
56
+ @schemas.classproperty
57
+ def EVEN(cls):
58
+ return cls("EVEN")
59
+
60
+
40
61
  def __new__(
41
62
  cls,
42
63
  *args: typing.Union[None, str, ],
@@ -39,8 +39,8 @@ class PathValues(str, enum.Enum):
39
39
  TRADE_IMPACT = "/trade/impact"
40
40
  TRADE_TRADE_ID = "/trade/{tradeId}"
41
41
  TRADE_PLACE = "/trade/place"
42
- ACCOUNTS_ACCOUNT_ID_TRADING_BRACKET = "/accounts/{accountId}/trading/bracket"
43
42
  ACCOUNTS_ACCOUNT_ID_ORDERS_CANCEL = "/accounts/{accountId}/orders/cancel"
43
+ ACCOUNTS_ACCOUNT_ID_TRADING_BRACKET = "/accounts/{accountId}/trading/bracket"
44
44
  ACCOUNTS_ACCOUNT_ID_TRADING_OPTIONS = "/accounts/{accountId}/trading/options"
45
45
  ACCOUNTS_ACCOUNT_ID_TRADING_INSTRUMENTS_CRYPTOCURRENCY_PAIRS = "/accounts/{accountId}/trading/instruments/cryptocurrencyPairs"
46
46
  ACCOUNTS_ACCOUNT_ID_TRADING_SIMPLE_PREVIEW = "/accounts/{accountId}/trading/simple/preview"
@@ -295,7 +295,7 @@ class BaseApi(api_client.Api):
295
295
  AsyncGeneratorResponse,
296
296
  ]:
297
297
  """
298
- Replace crypto order
298
+ Replace equity order
299
299
  :param skip_deserialization: If true then api_response.response will be set but
300
300
  api_response.body and api_response.headers will not be deserialized into schema
301
301
  class instances
@@ -442,7 +442,7 @@ class BaseApi(api_client.Api):
442
442
  api_client.ApiResponseWithoutDeserialization,
443
443
  ]:
444
444
  """
445
- Replace crypto order
445
+ Replace equity order
446
446
  :param skip_deserialization: If true then api_response.response will be set but
447
447
  api_response.body and api_response.headers will not be deserialized into schema
448
448
  class instances
@@ -282,7 +282,7 @@ class BaseApi(api_client.Api):
282
282
  AsyncGeneratorResponse,
283
283
  ]:
284
284
  """
285
- Replace crypto order
285
+ Replace equity order
286
286
  :param skip_deserialization: If true then api_response.response will be set but
287
287
  api_response.body and api_response.headers will not be deserialized into schema
288
288
  class instances
@@ -429,7 +429,7 @@ class BaseApi(api_client.Api):
429
429
  api_client.ApiResponseWithoutDeserialization,
430
430
  ]:
431
431
  """
432
- Replace crypto order
432
+ Replace equity order
433
433
  :param skip_deserialization: If true then api_response.response will be set but
434
434
  api_response.body and api_response.headers will not be deserialized into schema
435
435
  class instances
@@ -16,4 +16,4 @@ from enum import Enum
16
16
  from typing_extensions import TypedDict, Literal, TYPE_CHECKING
17
17
 
18
18
 
19
- MlegPriceEffectStrict = str
19
+ MlegPriceEffectStrict = Literal["CREDIT", "DEBIT", "EVEN"]
@@ -16,4 +16,4 @@ from enum import Enum
16
16
  from typing_extensions import TypedDict, Literal, TYPE_CHECKING
17
17
 
18
18
 
19
- MlegPriceEffectStrictNullable = str
19
+ MlegPriceEffectStrictNullable = Literal["CREDIT", "DEBIT", "EVEN"]
@@ -35,7 +35,7 @@ class OptionalMlegTradeForm(TypedDict, total=False):
35
35
  # The stop price. Required if the order type is STOP_LOSS_MARKET, STOP_LOSS_LIMIT.
36
36
  stop_price: typing.Optional[str]
37
37
 
38
- price_effect: MlegPriceEffectStrictNullable
38
+ price_effect: typing.Optional[MlegPriceEffectStrictNullable]
39
39
 
40
40
  class MlegTradeForm(RequiredMlegTradeForm, OptionalMlegTradeForm):
41
41
  pass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: snaptrade-python-sdk
3
- Version: 11.0.113
3
+ Version: 11.0.115
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
- [![PyPI](https://img.shields.io/badge/PyPI-v11.0.113-blue)](https://pypi.org/project/snaptrade-python-sdk/11.0.113)
33
+ [![PyPI](https://img.shields.io/badge/PyPI-v11.0.115-blue)](https://pypi.org/project/snaptrade-python-sdk/11.0.115)
34
34
  [![README.md](https://img.shields.io/badge/README-Click%20Here-green)](https://github.com/passiv/snaptrade-sdks/tree/master/sdks/python#readme)
35
35
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
36
36
 
@@ -110,7 +110,7 @@ Python >=3.8
110
110
  ## Installation<a id="installation"></a>
111
111
 
112
112
  ```sh
113
- pip install snaptrade-python-sdk==11.0.113
113
+ pip install snaptrade-python-sdk==11.0.115
114
114
  ```
115
115
 
116
116
  ## Getting Started<a id="getting-started"></a>
@@ -160,7 +160,6 @@ deleted_response = snaptrade.authentication.delete_snap_trade_user(
160
160
  query_params={"userId": user_id}
161
161
  )
162
162
  pprint(deleted_response.body)
163
-
164
163
  ```
165
164
 
166
165
  ## Async<a id="async"></a>
@@ -168,7 +167,6 @@ pprint(deleted_response.body)
168
167
  `async` support is available by prepending `a` to any method.
169
168
 
170
169
  ```python
171
-
172
170
  import asyncio
173
171
  from pprint import pprint
174
172
  from snaptrade_client import SnapTrade, ApiException
@@ -178,18 +176,21 @@ snaptrade = SnapTrade(
178
176
  client_id="YOUR_CLIENT_ID",
179
177
  )
180
178
 
179
+
181
180
  async def main():
182
181
  try:
183
182
  # List account activities
184
- get_account_activities_response = await snaptrade.account_information.aget_account_activities(
185
- account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
186
- user_id="snaptrade-user-123",
187
- user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
188
- start_date="2022-01-24",
189
- end_date="2022-01-24",
190
- offset=0,
191
- limit=1,
192
- type="BUY,SELL,DIVIDEND",
183
+ get_account_activities_response = (
184
+ await snaptrade.account_information.aget_account_activities(
185
+ account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
186
+ user_id="snaptrade-user-123",
187
+ user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
188
+ start_date="2022-01-24",
189
+ end_date="2022-01-24",
190
+ offset=0,
191
+ limit=1,
192
+ type="BUY,SELL,DIVIDEND",
193
+ )
193
194
  )
194
195
  pprint(get_account_activities_response.body)
195
196
  pprint(get_account_activities_response.body["data"])
@@ -198,13 +199,17 @@ async def main():
198
199
  pprint(get_account_activities_response.status)
199
200
  pprint(get_account_activities_response.round_trip_time)
200
201
  except ApiException as e:
201
- print("Exception when calling AccountInformationApi.get_account_activities: %s\n" % e)
202
+ print(
203
+ "Exception when calling AccountInformationApi.get_account_activities: %s\n"
204
+ % e
205
+ )
202
206
  pprint(e.body)
203
207
  pprint(e.headers)
204
208
  pprint(e.status)
205
209
  pprint(e.reason)
206
210
  pprint(e.round_trip_time)
207
211
 
212
+
208
213
  asyncio.run(main())
209
214
  ```
210
215
 
@@ -327,10 +332,12 @@ The data returned here is cached. How long the data is cached for varies by brok
327
332
  #### 🛠️ Usage<a id="🛠️-usage"></a>
328
333
 
329
334
  ```python
330
- get_user_account_balance_response = snaptrade.account_information.get_user_account_balance(
331
- user_id="snaptrade-user-123",
332
- user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
333
- account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
335
+ get_user_account_balance_response = (
336
+ snaptrade.account_information.get_user_account_balance(
337
+ user_id="snaptrade-user-123",
338
+ user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
339
+ account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
340
+ )
334
341
  )
335
342
  ```
336
343
 
@@ -364,10 +371,12 @@ The data returned here is always cached and refreshed once a day. **If you need
364
371
  #### 🛠️ Usage<a id="🛠️-usage"></a>
365
372
 
366
373
  ```python
367
- get_user_account_details_response = snaptrade.account_information.get_user_account_details(
368
- user_id="snaptrade-user-123",
369
- user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
370
- account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
374
+ get_user_account_details_response = (
375
+ snaptrade.account_information.get_user_account_details(
376
+ user_id="snaptrade-user-123",
377
+ user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
378
+ account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
379
+ )
371
380
  )
372
381
  ```
373
382
 
@@ -401,12 +410,14 @@ The data returned here is cached. How long the data is cached for varies by brok
401
410
  #### 🛠️ Usage<a id="🛠️-usage"></a>
402
411
 
403
412
  ```python
404
- get_user_account_orders_response = snaptrade.account_information.get_user_account_orders(
405
- user_id="snaptrade-user-123",
406
- user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
407
- account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
408
- state="all",
409
- days=30,
413
+ get_user_account_orders_response = (
414
+ snaptrade.account_information.get_user_account_orders(
415
+ user_id="snaptrade-user-123",
416
+ user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
417
+ account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
418
+ state="all",
419
+ days=30,
420
+ )
410
421
  )
411
422
  ```
412
423
 
@@ -448,10 +459,12 @@ The data returned here is cached. How long the data is cached for varies by brok
448
459
  #### 🛠️ Usage<a id="🛠️-usage"></a>
449
460
 
450
461
  ```python
451
- get_user_account_positions_response = snaptrade.account_information.get_user_account_positions(
452
- user_id="snaptrade-user-123",
453
- user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
454
- account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
462
+ get_user_account_positions_response = (
463
+ snaptrade.account_information.get_user_account_positions(
464
+ user_id="snaptrade-user-123",
465
+ user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
466
+ account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
467
+ )
455
468
  )
456
469
  ```
457
470
 
@@ -487,11 +500,13 @@ By default only returns executed orders, but that can be changed by setting *onl
487
500
  #### 🛠️ Usage<a id="🛠️-usage"></a>
488
501
 
489
502
  ```python
490
- get_user_account_recent_orders_response = snaptrade.account_information.get_user_account_recent_orders(
491
- user_id="snaptrade-user-123",
492
- user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
493
- account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
494
- only_executed=True,
503
+ get_user_account_recent_orders_response = (
504
+ snaptrade.account_information.get_user_account_recent_orders(
505
+ user_id="snaptrade-user-123",
506
+ user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
507
+ account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
508
+ only_executed=True,
509
+ )
495
510
  )
496
511
  ```
497
512
 
@@ -527,10 +542,12 @@ Returns a list of rate of return percents for a given account. Will include time
527
542
  #### 🛠️ Usage<a id="🛠️-usage"></a>
528
543
 
529
544
  ```python
530
- get_user_account_return_rates_response = snaptrade.account_information.get_user_account_return_rates(
531
- user_id="snaptrade-user-123",
532
- user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
533
- account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
545
+ get_user_account_return_rates_response = (
546
+ snaptrade.account_information.get_user_account_return_rates(
547
+ user_id="snaptrade-user-123",
548
+ user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
549
+ account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
550
+ )
534
551
  )
535
552
  ```
536
553
 
@@ -839,9 +856,11 @@ Rotates the secret for a SnapTrade user. You might use this if `userSecret` is c
839
856
  #### 🛠️ Usage<a id="🛠️-usage"></a>
840
857
 
841
858
  ```python
842
- reset_snap_trade_user_secret_response = snaptrade.authentication.reset_snap_trade_user_secret(
843
- user_id="snaptrade-user-123",
844
- user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
859
+ reset_snap_trade_user_secret_response = (
860
+ snaptrade.authentication.reset_snap_trade_user_secret(
861
+ user_id="snaptrade-user-123",
862
+ user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
863
+ )
845
864
  )
846
865
  ```
847
866
 
@@ -877,10 +896,12 @@ Returns a single connection for the specified ID.
877
896
  #### 🛠️ Usage<a id="🛠️-usage"></a>
878
897
 
879
898
  ```python
880
- detail_brokerage_authorization_response = snaptrade.connections.detail_brokerage_authorization(
881
- authorization_id="87b24961-b51e-4db8-9226-f198f6518a89",
882
- user_id="snaptrade-user-123",
883
- user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
899
+ detail_brokerage_authorization_response = (
900
+ snaptrade.connections.detail_brokerage_authorization(
901
+ authorization_id="87b24961-b51e-4db8-9226-f198f6518a89",
902
+ user_id="snaptrade-user-123",
903
+ user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
904
+ )
884
905
  )
885
906
  ```
886
907
 
@@ -915,10 +936,12 @@ This endpoint is available on test keys. If you would like it enabled on product
915
936
  #### 🛠️ Usage<a id="🛠️-usage"></a>
916
937
 
917
938
  ```python
918
- disable_brokerage_authorization_response = snaptrade.connections.disable_brokerage_authorization(
919
- authorization_id="87b24961-b51e-4db8-9226-f198f6518a89",
920
- user_id="snaptrade-user-123",
921
- user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
939
+ disable_brokerage_authorization_response = (
940
+ snaptrade.connections.disable_brokerage_authorization(
941
+ authorization_id="87b24961-b51e-4db8-9226-f198f6518a89",
942
+ user_id="snaptrade-user-123",
943
+ user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
944
+ )
922
945
  )
923
946
  ```
924
947
 
@@ -954,9 +977,11 @@ SnapTrade performs de-duping on connections for a given user. If the user has an
954
977
  #### 🛠️ Usage<a id="🛠️-usage"></a>
955
978
 
956
979
  ```python
957
- list_brokerage_authorizations_response = snaptrade.connections.list_brokerage_authorizations(
958
- user_id="snaptrade-user-123",
959
- user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
980
+ list_brokerage_authorizations_response = (
981
+ snaptrade.connections.list_brokerage_authorizations(
982
+ user_id="snaptrade-user-123",
983
+ user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
984
+ )
960
985
  )
961
986
  ```
962
987
 
@@ -989,10 +1014,12 @@ This endpoint will also trigger a transaction sync for the past day if one has n
989
1014
  #### 🛠️ Usage<a id="🛠️-usage"></a>
990
1015
 
991
1016
  ```python
992
- refresh_brokerage_authorization_response = snaptrade.connections.refresh_brokerage_authorization(
993
- authorization_id="87b24961-b51e-4db8-9226-f198f6518a89",
994
- user_id="snaptrade-user-123",
995
- user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
1017
+ refresh_brokerage_authorization_response = (
1018
+ snaptrade.connections.refresh_brokerage_authorization(
1019
+ authorization_id="87b24961-b51e-4db8-9226-f198f6518a89",
1020
+ user_id="snaptrade-user-123",
1021
+ user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
1022
+ )
996
1023
  )
997
1024
  ```
998
1025
 
@@ -1350,8 +1377,10 @@ Returns an Exchange Rate Pair object for the specified Currency Pair.
1350
1377
  #### 🛠️ Usage<a id="🛠️-usage"></a>
1351
1378
 
1352
1379
  ```python
1353
- get_currency_exchange_rate_pair_response = snaptrade.reference_data.get_currency_exchange_rate_pair(
1354
- currency_pair="currencyPair_example",
1380
+ get_currency_exchange_rate_pair_response = (
1381
+ snaptrade.reference_data.get_currency_exchange_rate_pair(
1382
+ currency_pair="currencyPair_example",
1383
+ )
1355
1384
  )
1356
1385
  ```
1357
1386
 
@@ -1511,8 +1540,10 @@ Returns a list of all defined Brokerage authorization Type objects.
1511
1540
  #### 🛠️ Usage<a id="🛠️-usage"></a>
1512
1541
 
1513
1542
  ```python
1514
- list_all_brokerage_authorization_type_response = snaptrade.reference_data.list_all_brokerage_authorization_type(
1515
- brokerage="QUESTRADE,ALPACA",
1543
+ list_all_brokerage_authorization_type_response = (
1544
+ snaptrade.reference_data.list_all_brokerage_authorization_type(
1545
+ brokerage="QUESTRADE,ALPACA",
1546
+ )
1516
1547
  )
1517
1548
  ```
1518
1549
 
@@ -1585,7 +1616,9 @@ Returns a list of all Exchange Rate Pairs for all supported Currencies.
1585
1616
  #### 🛠️ Usage<a id="🛠️-usage"></a>
1586
1617
 
1587
1618
  ```python
1588
- list_all_currencies_rates_response = snaptrade.reference_data.list_all_currencies_rates()
1619
+ list_all_currencies_rates_response = (
1620
+ snaptrade.reference_data.list_all_currencies_rates()
1621
+ )
1589
1622
  ```
1590
1623
 
1591
1624
  #### 🔄 Return<a id="🔄-return"></a>
@@ -1610,11 +1643,13 @@ The search results are further limited to the symbols supported by the brokerage
1610
1643
  #### 🛠️ Usage<a id="🛠️-usage"></a>
1611
1644
 
1612
1645
  ```python
1613
- symbol_search_user_account_response = snaptrade.reference_data.symbol_search_user_account(
1614
- user_id="snaptrade-user-123",
1615
- user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
1616
- account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
1617
- substring="AAPL",
1646
+ symbol_search_user_account_response = (
1647
+ snaptrade.reference_data.symbol_search_user_account(
1648
+ user_id="snaptrade-user-123",
1649
+ user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
1650
+ account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
1651
+ substring="AAPL",
1652
+ )
1618
1653
  )
1619
1654
  ```
1620
1655
 
@@ -1734,11 +1769,13 @@ Gets a quote for the specified account.
1734
1769
  #### 🛠️ Usage<a id="🛠️-usage"></a>
1735
1770
 
1736
1771
  ```python
1737
- get_cryptocurrency_pair_quote_response = snaptrade.trading.get_cryptocurrency_pair_quote(
1738
- user_id="snaptrade-user-123",
1739
- user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
1740
- account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
1741
- instrument_symbol="BTC-USD",
1772
+ get_cryptocurrency_pair_quote_response = (
1773
+ snaptrade.trading.get_cryptocurrency_pair_quote(
1774
+ user_id="snaptrade-user-123",
1775
+ user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
1776
+ account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
1777
+ instrument_symbol="BTC-USD",
1778
+ )
1742
1779
  )
1743
1780
  ```
1744
1781
 
@@ -2413,12 +2450,14 @@ Searches cryptocurrency pairs instruments accessible to the specified account.
2413
2450
  #### 🛠️ Usage<a id="🛠️-usage"></a>
2414
2451
 
2415
2452
  ```python
2416
- search_cryptocurrency_pair_instruments_response = snaptrade.trading.search_cryptocurrency_pair_instruments(
2417
- user_id="snaptrade-user-123",
2418
- user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
2419
- account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
2420
- base="BTC",
2421
- quote="USD",
2453
+ search_cryptocurrency_pair_instruments_response = (
2454
+ snaptrade.trading.search_cryptocurrency_pair_instruments(
2455
+ user_id="snaptrade-user-123",
2456
+ user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
2457
+ account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
2458
+ base="BTC",
2459
+ quote="USD",
2460
+ )
2422
2461
  )
2423
2462
  ```
2424
2463
 
@@ -1,8 +1,8 @@
1
- snaptrade_client/__init__.py,sha256=vnljfQBGqsRURoMqesvrSsz2Pk4LlzLGUN5jw6v83fE,820
2
- snaptrade_client/api_client.py,sha256=uLrChmprJRzf_Tgqm1oZNaIHYhXykV9CGY1ScT3DqvY,73975
1
+ snaptrade_client/__init__.py,sha256=TPr9mmLg6XUEQo0mEUKC71Bzx0aNQi5Br9JeNZS5aHM,820
2
+ snaptrade_client/api_client.py,sha256=c6t6bVEtG1pBx4K-bljk5GHMyIKGr3pYYrr5N_dqaM4,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
- snaptrade_client/apis/path_to_api.py,sha256=_jz8yIQ119uhD4cgsJPIRIHGcOSoQx9ZJtZ4k3BGMV0,13189
5
+ snaptrade_client/apis/path_to_api.py,sha256=0d_51BaYWpIE-k7-qQ6dYXnaK05ABrPzYjcqIkjk6gc,13189
6
6
  snaptrade_client/apis/paths/__init__.py,sha256=oIb-tz_ei5m0RWOOB0qXTkBKu61nYtwOUlWvQbD5gFE,243
7
7
  snaptrade_client/apis/paths/accounts.py,sha256=aHSwrwNqPSa2ikmR-WP0dg2LbRBSNBB3n3_2OTCcxs4,103
8
8
  snaptrade_client/apis/paths/accounts_account_id.py,sha256=Xv0hHwov50tVcdtqCS-Np0BmqMhUwrvjIQLaa9yPF3U,207
@@ -78,7 +78,7 @@ snaptrade_client/apis/tags/transactions_and_reporting_api_generated.py,sha256=Tw
78
78
  snaptrade_client/client.py,sha256=goDwWRv9909OPXDnGGYst_mr53bg6RUs4PwIvnrl_kE,2116
79
79
  snaptrade_client/client.pyi,sha256=goDwWRv9909OPXDnGGYst_mr53bg6RUs4PwIvnrl_kE,2116
80
80
  snaptrade_client/client_custom.py,sha256=Jx9ulCzelMFlESjzVFQSjBlYcH4dWxSJJWZDMPLyetM,745
81
- snaptrade_client/configuration.py,sha256=DReQ_hujmmmFY4-CkHYgNx6UqLW61izlJLT5toknENI,19262
81
+ snaptrade_client/configuration.py,sha256=w_vMrjoIWbwGOzM_Lq7sGyKmqArzwteIW08mxXPK0lo,19262
82
82
  snaptrade_client/exceptions.py,sha256=X0apI_sgQpGpa-qIqPUClReCdHAxeSuA6GW0YH_RsWg,7771
83
83
  snaptrade_client/exceptions_base.py,sha256=LAQkaC5C61-SdBLfyMjb0K7AYJkWVuLmg2uCvHa71FM,2274
84
84
  snaptrade_client/model/__init__.py,sha256=ayi2MIzcf0eAIsY13ToiNplV9tW-pMBFrC0I9yckGM8,350
@@ -222,10 +222,10 @@ snaptrade_client/model/mleg_order_response.py,sha256=yRcsAUCW-Oj_HDC89V1pKlPD38p
222
222
  snaptrade_client/model/mleg_order_response.pyi,sha256=yRcsAUCW-Oj_HDC89V1pKlPD38p8obdgU-tQ0cUqCGY,4230
223
223
  snaptrade_client/model/mleg_order_type_strict.py,sha256=rT7CaWvf7mqS58A6yuUm0BEIfzF_RmrlH5qvTY4FqD0,1353
224
224
  snaptrade_client/model/mleg_order_type_strict.pyi,sha256=l1oBrGrwMC1yRTxa2W5_bCSqoNdZwITqeN5gZhYAbZk,1126
225
- snaptrade_client/model/mleg_price_effect_strict.py,sha256=BtRxZ0ZJUgTxtZtYHu7v_V9tByzQ2KqfqL1t0MNkeQ8,1210
226
- snaptrade_client/model/mleg_price_effect_strict.pyi,sha256=BtRxZ0ZJUgTxtZtYHu7v_V9tByzQ2KqfqL1t0MNkeQ8,1210
227
- snaptrade_client/model/mleg_price_effect_strict_nullable.py,sha256=rFlL1UVH-UboCjvfYmQ_b0xGEa2-4lUCP9B1L1CoKwg,1226
228
- snaptrade_client/model/mleg_price_effect_strict_nullable.pyi,sha256=rFlL1UVH-UboCjvfYmQ_b0xGEa2-4lUCP9B1L1CoKwg,1226
225
+ snaptrade_client/model/mleg_price_effect_strict.py,sha256=me90mRjWdZcyIENXsjgf2470pltI2513So3cIP_Z7NY,1608
226
+ snaptrade_client/model/mleg_price_effect_strict.pyi,sha256=me90mRjWdZcyIENXsjgf2470pltI2513So3cIP_Z7NY,1608
227
+ snaptrade_client/model/mleg_price_effect_strict_nullable.py,sha256=-uOdxLVYP4Cwg1y2f51QJ6RWqJjXvA7UfJL84Wti64s,1624
228
+ snaptrade_client/model/mleg_price_effect_strict_nullable.pyi,sha256=-uOdxLVYP4Cwg1y2f51QJ6RWqJjXvA7UfJL84Wti64s,1624
229
229
  snaptrade_client/model/mleg_trade_form.py,sha256=ZGJXdwlFRWuwu83PYK7Nrl-5s6dzyBklq1I-9mSwIYc,8056
230
230
  snaptrade_client/model/mleg_trade_form.pyi,sha256=ZGJXdwlFRWuwu83PYK7Nrl-5s6dzyBklq1I-9mSwIYc,8056
231
231
  snaptrade_client/model/mleg_trading_instrument.py,sha256=kmRuihu0UqhyqlZ6SvGLKDQ32X5L_vlTmE2_27VZnuw,3302
@@ -410,7 +410,7 @@ snaptrade_client/model/validated_trade_body.py,sha256=NkTel1ulgSjBd6K7vur6puEbfr
410
410
  snaptrade_client/model/validated_trade_body.pyi,sha256=NkTel1ulgSjBd6K7vur6puEbfrg3u1vdmtUKArOu8ws,3085
411
411
  snaptrade_client/models/__init__.py,sha256=I1pwuDZgpx0vWGPJmEqsldM5F9Pd101iA31xsd9S7Oo,12749
412
412
  snaptrade_client/operation_parameter_map.py,sha256=O_ANBpVX1Bn3WgFNggL1sVZr4VuPbVJiF4YBwK_uleM,19229
413
- snaptrade_client/paths/__init__.py,sha256=XSgNxXfYOgSs4DDRkdK2nXymuYFGSxCRMuBtruBdyco,3811
413
+ snaptrade_client/paths/__init__.py,sha256=xs6HB6_UnA45lsyzaUJSlm4rKetunQV6koPzs-Ogpc8,3811
414
414
  snaptrade_client/paths/accounts/__init__.py,sha256=_Bqi6B13A-kgd0AOpqmcE1vTxJDfoz-r3Hwf-AmwW6A,307
415
415
  snaptrade_client/paths/accounts/get.py,sha256=MDE_4VCylBroYDkMQe9II1qCGf6gTTDGCShFyGLXf00,16463
416
416
  snaptrade_client/paths/accounts/get.pyi,sha256=gna7qIU-95WqOFl6qTsP18ZY7SKi9CYEBAbARPAPPF4,16261
@@ -483,8 +483,8 @@ snaptrade_client/paths/accounts_account_id_trading_simple_brokerage_order_id_can
483
483
  snaptrade_client/paths/accounts_account_id_trading_simple_brokerage_order_id_cancel/post.py,sha256=sKvRdujp_z9646vBYgJE8GeX0QasPjDj1dw6bPR8VOU,19639
484
484
  snaptrade_client/paths/accounts_account_id_trading_simple_brokerage_order_id_cancel/post.pyi,sha256=13fLCJerlM2vEsX87hGxAWdvzekW-ZTDnwDiq1J_8s8,19415
485
485
  snaptrade_client/paths/accounts_account_id_trading_simple_brokerage_order_id_replace/__init__.py,sha256=TL1dJxF1QEDBQVAYOCWuwb-vE21liUhT20nusDJnW14,413
486
- snaptrade_client/paths/accounts_account_id_trading_simple_brokerage_order_id_replace/patch.py,sha256=7AM1y20_B-ZbkVWtFZpARnO2Y99s-7XZV4DypJURvr0,27740
487
- snaptrade_client/paths/accounts_account_id_trading_simple_brokerage_order_id_replace/patch.pyi,sha256=Oj2TgDOsyM7soC7RSj-MxRStmde3hDA82HyhYUwyVTY,27486
486
+ snaptrade_client/paths/accounts_account_id_trading_simple_brokerage_order_id_replace/patch.py,sha256=DRcB4aQvuZJYQh3h7sCN2rHN0el7LSnxJZspimYdvSw,27740
487
+ snaptrade_client/paths/accounts_account_id_trading_simple_brokerage_order_id_replace/patch.pyi,sha256=693oA7dsRMLn-GF4pJEanfDa0PeFe1V-5lpl69zTc8s,27486
488
488
  snaptrade_client/paths/accounts_account_id_trading_simple_preview/__init__.py,sha256=e85yQ-g79CpD-OBNRqwmVKTYfuR_Dc9XmXqfZiJFJmg,375
489
489
  snaptrade_client/paths/accounts_account_id_trading_simple_preview/post.py,sha256=j-ARrAo-nkNB1EEAzScNL8dII6oAu1m6sE-3KBAzx5k,25693
490
490
  snaptrade_client/paths/accounts_account_id_trading_simple_preview/post.pyi,sha256=AQy3AuaWA2wqXhQKXm-4kFsGYKVHM9mXX0XRijN6sTU,25469
@@ -651,9 +651,9 @@ snaptrade_client/type/mleg_instrument_type.py,sha256=9y76B7Qiq12B_zEfuRnnUbkzc6e
651
651
  snaptrade_client/type/mleg_leg.py,sha256=2H6A2ViJCvpThEjES9sU1ODG2ZczD9odzSnn9nEV-XE,886
652
652
  snaptrade_client/type/mleg_order_response.py,sha256=H0AezvgJxJQcpUKqMmkrYPwKxh19OiBsN0ffG4u5uik,825
653
653
  snaptrade_client/type/mleg_order_type_strict.py,sha256=H0ohzOGBhguMfcPcivR6okWmid9NKJX0rASbQPDORT4,459
654
- snaptrade_client/type/mleg_price_effect_strict.py,sha256=f4go5TacS8MlLNpkNcm1PlJQMklvXmqDxiytoSYHr1Y,399
655
- snaptrade_client/type/mleg_price_effect_strict_nullable.py,sha256=-8sTKj0Cx97j8fDlQLCVUxSISNzGIz37KJLaYTKCMz0,407
656
- snaptrade_client/type/mleg_trade_form.py,sha256=r26TH-Zk3dHd9R02fThoffAD49MKj8jLc1VUURSwGOg,1237
654
+ snaptrade_client/type/mleg_price_effect_strict.py,sha256=FLgR9dsd7-6Jef80Oru6HxHPB-NY_T3hEDU8XCZCMl8,430
655
+ snaptrade_client/type/mleg_price_effect_strict_nullable.py,sha256=gmek61AQ4HoAcND-PGFoq9n0tZFejMF-2EVRZD4ijTY,438
656
+ snaptrade_client/type/mleg_trade_form.py,sha256=IYc3n_Ne1bLJhvWqUHAUU8aaWuWcm-0OYc3WasfY2e0,1254
657
657
  snaptrade_client/type/mleg_trading_instrument.py,sha256=fut3MIv6W_khvmMThzgzYJcldDo0PBtZv015nejd4_4,1084
658
658
  snaptrade_client/type/model400_failed_request_response.py,sha256=qPCGjN-VGmrou9vOFqcN28P-nIMqGOFbBY7VnQslV3A,810
659
659
  snaptrade_client/type/model401_failed_request_response.py,sha256=6FpcrEI32paLdxMpqwpRHOQjU5PH5mIzybQqJAmoTW8,810
@@ -746,7 +746,7 @@ snaptrade_client/type/user_secret.py,sha256=pKCVhqf1rROHwa6tvoyA5OAKXCBAmNDvIQCf
746
746
  snaptrade_client/type/validated_trade_body.py,sha256=ZIPBQWii_a-9zHaBCJ6bQtmL1_I7AG0zwuvkY-ZQ6R4,890
747
747
  snaptrade_client/type_util.py,sha256=JIrMYgJzd4IJ8Ne2vqcahlPA9dVmphL9sn8gwccCB4Y,563
748
748
  snaptrade_client/validation_metadata.py,sha256=VTN5y-NudHXok1X468J4PnGze_tGEAcs1v3gsXmcrb0,3172
749
- snaptrade_python_sdk-11.0.113.dist-info/LICENSE,sha256=W_1kcxEzOnZXIYJ1GVUipbmUu6dNLt-Pc-OI55h3k-A,1081
750
- snaptrade_python_sdk-11.0.113.dist-info/METADATA,sha256=IwBVMRm2z_8soFDWV41xdBOl-BBQRj1OV4lIbs5jgiQ,94206
751
- snaptrade_python_sdk-11.0.113.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
752
- snaptrade_python_sdk-11.0.113.dist-info/RECORD,,
749
+ snaptrade_python_sdk-11.0.115.dist-info/LICENSE,sha256=W_1kcxEzOnZXIYJ1GVUipbmUu6dNLt-Pc-OI55h3k-A,1081
750
+ snaptrade_python_sdk-11.0.115.dist-info/METADATA,sha256=_vFbvGAMg5GB4jQDVrj91VXwl2zNjihKp31YqcCSTrA,94696
751
+ snaptrade_python_sdk-11.0.115.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
752
+ snaptrade_python_sdk-11.0.115.dist-info/RECORD,,