snaptrade-python-sdk 13.4.7__py3-none-any.whl → 13.4.8__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/apis/path_to_api.py +3 -3
- snaptrade_client/apis/tags/experimental_endpoints_api_generated.py +0 -2
- snaptrade_client/apis/tags/trading_api_generated.py +2 -0
- snaptrade_client/configuration.py +1 -1
- snaptrade_client/operation_parameter_map.py +37 -37
- snaptrade_client/paths/__init__.py +1 -1
- snaptrade_client/paths/accounts_account_id_trading_simple/post.py +2 -2
- snaptrade_client/type/account_universal_activity.py +1 -1
- snaptrade_client/type/activity.py +1 -1
- snaptrade_client/type/universal_activity.py +1 -1
- {snaptrade_python_sdk-13.4.7.dist-info → snaptrade_python_sdk-13.4.8.dist-info}/METADATA +179 -183
- {snaptrade_python_sdk-13.4.7.dist-info → snaptrade_python_sdk-13.4.8.dist-info}/RECORD +16 -16
- {snaptrade_python_sdk-13.4.7.dist-info → snaptrade_python_sdk-13.4.8.dist-info}/LICENSE +0 -0
- {snaptrade_python_sdk-13.4.7.dist-info → snaptrade_python_sdk-13.4.8.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.4.
|
|
1178
|
+
self.user_agent = 'Konfig/13.4.8/python'
|
|
1179
1179
|
|
|
1180
1180
|
def __enter__(self):
|
|
1181
1181
|
return self
|
|
@@ -47,6 +47,7 @@ from snaptrade_client.apis.paths.accounts_account_id_trading_crypto_preview impo
|
|
|
47
47
|
from snaptrade_client.apis.paths.accounts_account_id_trading_crypto import AccountsAccountIdTradingCrypto
|
|
48
48
|
from snaptrade_client.apis.paths.accounts_account_id_trading_cancel import AccountsAccountIdTradingCancel
|
|
49
49
|
from snaptrade_client.apis.paths.accounts_account_id_trading_replace import AccountsAccountIdTradingReplace
|
|
50
|
+
from snaptrade_client.apis.paths.accounts_account_id_trading_simple import AccountsAccountIdTradingSimple
|
|
50
51
|
from snaptrade_client.apis.paths.accounts_account_id_trading_complex import AccountsAccountIdTradingComplex
|
|
51
52
|
from snaptrade_client.apis.paths.snap_trade_partners import SnapTradePartners
|
|
52
53
|
from snaptrade_client.apis.paths.snap_trade_trade_detection_subscriptions import SnapTradeTradeDetectionSubscriptions
|
|
@@ -63,7 +64,6 @@ from snaptrade_client.apis.paths.brokerage_authorization_types import BrokerageA
|
|
|
63
64
|
from snaptrade_client.apis.paths.exchanges import Exchanges
|
|
64
65
|
from snaptrade_client.apis.paths.symbols import Symbols
|
|
65
66
|
from snaptrade_client.apis.paths.symbols_query import SymbolsQuery
|
|
66
|
-
from snaptrade_client.apis.paths.accounts_account_id_trading_simple import AccountsAccountIdTradingSimple
|
|
67
67
|
from snaptrade_client.apis.paths.accounts_account_id_orders_details_v2_brokerage_order_id import AccountsAccountIdOrdersDetailsV2BrokerageOrderId
|
|
68
68
|
|
|
69
69
|
PathToApi = typing_extensions.TypedDict(
|
|
@@ -115,6 +115,7 @@ PathToApi = typing_extensions.TypedDict(
|
|
|
115
115
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_CRYPTO: AccountsAccountIdTradingCrypto,
|
|
116
116
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_CANCEL: AccountsAccountIdTradingCancel,
|
|
117
117
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_REPLACE: AccountsAccountIdTradingReplace,
|
|
118
|
+
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_SIMPLE: AccountsAccountIdTradingSimple,
|
|
118
119
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_COMPLEX: AccountsAccountIdTradingComplex,
|
|
119
120
|
PathValues.SNAP_TRADE_PARTNERS: SnapTradePartners,
|
|
120
121
|
PathValues.SNAP_TRADE_TRADE_DETECTION_SUBSCRIPTIONS: SnapTradeTradeDetectionSubscriptions,
|
|
@@ -131,7 +132,6 @@ PathToApi = typing_extensions.TypedDict(
|
|
|
131
132
|
PathValues.EXCHANGES: Exchanges,
|
|
132
133
|
PathValues.SYMBOLS: Symbols,
|
|
133
134
|
PathValues.SYMBOLS_QUERY: SymbolsQuery,
|
|
134
|
-
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_SIMPLE: AccountsAccountIdTradingSimple,
|
|
135
135
|
PathValues.ACCOUNTS_ACCOUNT_ID_ORDERS_DETAILS_V2_BROKERAGE_ORDER_ID: AccountsAccountIdOrdersDetailsV2BrokerageOrderId,
|
|
136
136
|
}
|
|
137
137
|
)
|
|
@@ -184,6 +184,7 @@ path_to_api = PathToApi(
|
|
|
184
184
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_CRYPTO: AccountsAccountIdTradingCrypto,
|
|
185
185
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_CANCEL: AccountsAccountIdTradingCancel,
|
|
186
186
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_REPLACE: AccountsAccountIdTradingReplace,
|
|
187
|
+
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_SIMPLE: AccountsAccountIdTradingSimple,
|
|
187
188
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_COMPLEX: AccountsAccountIdTradingComplex,
|
|
188
189
|
PathValues.SNAP_TRADE_PARTNERS: SnapTradePartners,
|
|
189
190
|
PathValues.SNAP_TRADE_TRADE_DETECTION_SUBSCRIPTIONS: SnapTradeTradeDetectionSubscriptions,
|
|
@@ -200,7 +201,6 @@ path_to_api = PathToApi(
|
|
|
200
201
|
PathValues.EXCHANGES: Exchanges,
|
|
201
202
|
PathValues.SYMBOLS: Symbols,
|
|
202
203
|
PathValues.SYMBOLS_QUERY: SymbolsQuery,
|
|
203
|
-
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_SIMPLE: AccountsAccountIdTradingSimple,
|
|
204
204
|
PathValues.ACCOUNTS_ACCOUNT_ID_ORDERS_DETAILS_V2_BROKERAGE_ORDER_ID: AccountsAccountIdOrdersDetailsV2BrokerageOrderId,
|
|
205
205
|
}
|
|
206
206
|
)
|
|
@@ -15,7 +15,6 @@ from snaptrade_client.paths.accounts_account_id_orders_details_v2_brokerage_orde
|
|
|
15
15
|
from snaptrade_client.paths.accounts_account_id_orders_v2.get import GetUserAccountOrdersV2
|
|
16
16
|
from snaptrade_client.paths.accounts_account_id_recent_orders_v2.get import GetUserAccountRecentOrdersV2
|
|
17
17
|
from snaptrade_client.paths.snap_trade_trade_detection_subscriptions.get import ListSubscriptions
|
|
18
|
-
from snaptrade_client.paths.accounts_account_id_trading_simple.post import PlaceSimpleOrder
|
|
19
18
|
import typing
|
|
20
19
|
from snaptrade_client.auth import AuthMode
|
|
21
20
|
|
|
@@ -29,7 +28,6 @@ class ExperimentalEndpointsApiGenerated(
|
|
|
29
28
|
GetUserAccountOrdersV2[TAuth],
|
|
30
29
|
GetUserAccountRecentOrdersV2[TAuth],
|
|
31
30
|
ListSubscriptions[TAuth],
|
|
32
|
-
PlaceSimpleOrder[TAuth],
|
|
33
31
|
):
|
|
34
32
|
"""NOTE:
|
|
35
33
|
This class is auto generated by Konfig (https://konfigthis.com)
|
|
@@ -20,6 +20,7 @@ from snaptrade_client.paths.accounts_account_id_trading_crypto.post import Place
|
|
|
20
20
|
from snaptrade_client.paths.trade_place.post import PlaceForceOrder
|
|
21
21
|
from snaptrade_client.paths.accounts_account_id_trading_options.post import PlaceMlegOrder
|
|
22
22
|
from snaptrade_client.paths.trade_trade_id.post import PlaceOrder
|
|
23
|
+
from snaptrade_client.paths.accounts_account_id_trading_simple.post import PlaceSimpleOrder
|
|
23
24
|
from snaptrade_client.paths.accounts_account_id_trading_crypto_preview.post import PreviewCryptoOrder
|
|
24
25
|
from snaptrade_client.paths.accounts_account_id_trading_replace.post import ReplaceOrder
|
|
25
26
|
from snaptrade_client.paths.accounts_account_id_trading_instruments_cryptocurrency_pairs.get import SearchCryptocurrencyPairInstruments
|
|
@@ -41,6 +42,7 @@ class TradingApiGenerated(
|
|
|
41
42
|
PlaceForceOrder[TAuth],
|
|
42
43
|
PlaceMlegOrder[TAuth],
|
|
43
44
|
PlaceOrder[TAuth],
|
|
45
|
+
PlaceSimpleOrder[TAuth],
|
|
44
46
|
PreviewCryptoOrder[TAuth],
|
|
45
47
|
ReplaceOrder[TAuth],
|
|
46
48
|
SearchCryptocurrencyPairInstruments[TAuth],
|
|
@@ -537,7 +537,7 @@ conf = snaptrade_client.Configuration(
|
|
|
537
537
|
"OS: {env}\n"\
|
|
538
538
|
"Python Version: {pyversion}\n"\
|
|
539
539
|
"Version of the API: 1.0.0\n"\
|
|
540
|
-
"SDK Package Version: 13.4.
|
|
540
|
+
"SDK Package Version: 13.4.8".\
|
|
541
541
|
format(env=sys.platform, pyversion=sys.version)
|
|
542
542
|
|
|
543
543
|
def get_host_settings(self):
|
|
@@ -360,43 +360,6 @@ operation_parameter_map = {
|
|
|
360
360
|
'parameters': [
|
|
361
361
|
]
|
|
362
362
|
},
|
|
363
|
-
'/accounts/{accountId}/trading/simple-POST': {
|
|
364
|
-
'parameters': [
|
|
365
|
-
{
|
|
366
|
-
'name': 'order_type'
|
|
367
|
-
},
|
|
368
|
-
{
|
|
369
|
-
'name': 'time_in_force'
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
'name': 'legs'
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
'name': 'accountId'
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
'name': 'limit_price'
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
'name': 'stop_price'
|
|
382
|
-
},
|
|
383
|
-
{
|
|
384
|
-
'name': 'price_effect'
|
|
385
|
-
},
|
|
386
|
-
{
|
|
387
|
-
'name': 'client_order_id'
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
'name': 'expiry_date'
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
'name': 'notional_value'
|
|
394
|
-
},
|
|
395
|
-
{
|
|
396
|
-
'name': 'trading_session'
|
|
397
|
-
},
|
|
398
|
-
]
|
|
399
|
-
},
|
|
400
363
|
'/management/stats-GET': {
|
|
401
364
|
'parameters': [
|
|
402
365
|
{
|
|
@@ -698,6 +661,43 @@ operation_parameter_map = {
|
|
|
698
661
|
},
|
|
699
662
|
]
|
|
700
663
|
},
|
|
664
|
+
'/accounts/{accountId}/trading/simple-POST': {
|
|
665
|
+
'parameters': [
|
|
666
|
+
{
|
|
667
|
+
'name': 'order_type'
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
'name': 'time_in_force'
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
'name': 'legs'
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
'name': 'accountId'
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
'name': 'limit_price'
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
'name': 'stop_price'
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
'name': 'price_effect'
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
'name': 'client_order_id'
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
'name': 'expiry_date'
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
'name': 'notional_value'
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
'name': 'trading_session'
|
|
698
|
+
},
|
|
699
|
+
]
|
|
700
|
+
},
|
|
701
701
|
'/accounts/{accountId}/trading/crypto/preview-POST': {
|
|
702
702
|
'parameters': [
|
|
703
703
|
{
|
|
@@ -52,6 +52,7 @@ class PathValues(str, enum.Enum):
|
|
|
52
52
|
ACCOUNTS_ACCOUNT_ID_TRADING_CRYPTO = "/accounts/{accountId}/trading/crypto"
|
|
53
53
|
ACCOUNTS_ACCOUNT_ID_TRADING_CANCEL = "/accounts/{accountId}/trading/cancel"
|
|
54
54
|
ACCOUNTS_ACCOUNT_ID_TRADING_REPLACE = "/accounts/{accountId}/trading/replace"
|
|
55
|
+
ACCOUNTS_ACCOUNT_ID_TRADING_SIMPLE = "/accounts/{accountId}/trading/simple"
|
|
55
56
|
ACCOUNTS_ACCOUNT_ID_TRADING_COMPLEX = "/accounts/{accountId}/trading/complex"
|
|
56
57
|
SNAP_TRADE_PARTNERS = "/snapTrade/partners"
|
|
57
58
|
SNAP_TRADE_TRADE_DETECTION_SUBSCRIPTIONS = "/snapTrade/tradeDetection/subscriptions"
|
|
@@ -68,5 +69,4 @@ class PathValues(str, enum.Enum):
|
|
|
68
69
|
EXCHANGES = "/exchanges"
|
|
69
70
|
SYMBOLS = "/symbols"
|
|
70
71
|
SYMBOLS_QUERY = "/symbols/{query}"
|
|
71
|
-
ACCOUNTS_ACCOUNT_ID_TRADING_SIMPLE = "/accounts/{accountId}/trading/simple"
|
|
72
72
|
ACCOUNTS_ACCOUNT_ID_ORDERS_DETAILS_V2_BROKERAGE_ORDER_ID = "/accounts/{accountId}/orders/details/v2/{brokerageOrderId}"
|
|
@@ -762,7 +762,7 @@ class PlaceSimpleOrder(BaseApi, typing.Generic[TAuth]):
|
|
|
762
762
|
ApiResponseFor200,
|
|
763
763
|
api_client.ApiResponseWithoutDeserialization,
|
|
764
764
|
]:
|
|
765
|
-
""" **Beta.** Places a single-leg or multi-leg order using a common request format for equities, equity options, futures, and future options.
|
|
765
|
+
""" **Beta.** Places a single-leg or multi-leg order using a common request format for equities, equity options, futures, and future options. Breaking changes are possible while this endpoint is in beta. Equity and equity-option orders use the existing brokerage trading capabilities. Futures are supported on tastytrade, Webull US, and TradeStation (live and SIM); future options are supported on tastytrade and TradeStation (live and SIM). Order types, time in force, optional fields, and strategy combinations remain subject to brokerage support. See the [brokerage trading support page](https://support.snaptrade.com/brokerages). An order may contain equity/option legs or future/future_option legs, but cannot mix those two families. Equity/option strategies must share the same underlying symbol. Each strategy is submitted as one brokerage order; unsupported strategies are never split into independent orders. Tastytrade supports single-leg outright futures and up to four future-option legs, and does not support multi-leg market orders. Webull US supports single-leg futures orders with buy or sell actions and positive whole-contract quantities. Supported order types are market, limit, stop, and stop_limit, with day or gtc duration. Futures options, multi-leg futures, trailing stops, and Webull Canada futures trading are not supported. Webull determines contract availability, margin requirements, and valid price increments. TradeStation and TradeStation SIM support single-leg futures and futures-option orders in Futures accounts, with positive whole-contract quantities. Supported order types are market, limit, stop, and stop_limit, with day, gtc, ioc, or fok duration, subject to the contract and route's supported combinations. Futures use buy/sell; futures options use the open/close option actions. Multi-leg futures-family strategies are not supported. Prices are forwarded without rounding; TradeStation determines contract availability, permissions, margin requirements, and valid price increments. All string choices use lower snake_case and are case-sensitive. Symbols retain their native format: equity tickers, OCC equity-option symbols, or brokerage-native futures symbols. For tastytrade, use the exact BrokerageInstrument ticker, including any spaces. For Webull US, use a specific unprefixed futures contract symbol such as ESZ6; slash-prefixed aliases, continuous/root-only symbols, and whitespace are not accepted. For TradeStation, use a specific two-digit-year contract such as ESZ26 or @ESZ26, or a futures-option symbol such as `ESZ26 C6000`, preserving the space and any session alias. The optional @ prefix is supported for dated futures contracts and is forwarded unchanged. Slash-prefixed aliases and root-only continuous symbols such as @ES are not accepted. A futures symbol does not need to be present in SnapTrade's local instrument catalog to submit an order. A successful response contains only the brokerage order ID. Use the existing order endpoints to retrieve order details. """
|
|
766
766
|
args = self._place_simple_order_mapped_args(
|
|
767
767
|
body=body,
|
|
768
768
|
path_params=path_params,
|
|
@@ -865,7 +865,7 @@ class ApiForpost(BaseApi, typing.Generic[TAuth]):
|
|
|
865
865
|
ApiResponseFor200,
|
|
866
866
|
api_client.ApiResponseWithoutDeserialization,
|
|
867
867
|
]:
|
|
868
|
-
""" **Beta.** Places a single-leg or multi-leg order using a common request format for equities, equity options, futures, and future options.
|
|
868
|
+
""" **Beta.** Places a single-leg or multi-leg order using a common request format for equities, equity options, futures, and future options. Breaking changes are possible while this endpoint is in beta. Equity and equity-option orders use the existing brokerage trading capabilities. Futures are supported on tastytrade, Webull US, and TradeStation (live and SIM); future options are supported on tastytrade and TradeStation (live and SIM). Order types, time in force, optional fields, and strategy combinations remain subject to brokerage support. See the [brokerage trading support page](https://support.snaptrade.com/brokerages). An order may contain equity/option legs or future/future_option legs, but cannot mix those two families. Equity/option strategies must share the same underlying symbol. Each strategy is submitted as one brokerage order; unsupported strategies are never split into independent orders. Tastytrade supports single-leg outright futures and up to four future-option legs, and does not support multi-leg market orders. Webull US supports single-leg futures orders with buy or sell actions and positive whole-contract quantities. Supported order types are market, limit, stop, and stop_limit, with day or gtc duration. Futures options, multi-leg futures, trailing stops, and Webull Canada futures trading are not supported. Webull determines contract availability, margin requirements, and valid price increments. TradeStation and TradeStation SIM support single-leg futures and futures-option orders in Futures accounts, with positive whole-contract quantities. Supported order types are market, limit, stop, and stop_limit, with day, gtc, ioc, or fok duration, subject to the contract and route's supported combinations. Futures use buy/sell; futures options use the open/close option actions. Multi-leg futures-family strategies are not supported. Prices are forwarded without rounding; TradeStation determines contract availability, permissions, margin requirements, and valid price increments. All string choices use lower snake_case and are case-sensitive. Symbols retain their native format: equity tickers, OCC equity-option symbols, or brokerage-native futures symbols. For tastytrade, use the exact BrokerageInstrument ticker, including any spaces. For Webull US, use a specific unprefixed futures contract symbol such as ESZ6; slash-prefixed aliases, continuous/root-only symbols, and whitespace are not accepted. For TradeStation, use a specific two-digit-year contract such as ESZ26 or @ESZ26, or a futures-option symbol such as `ESZ26 C6000`, preserving the space and any session alias. The optional @ prefix is supported for dated futures contracts and is forwarded unchanged. Slash-prefixed aliases and root-only continuous symbols such as @ES are not accepted. A futures symbol does not need to be present in SnapTrade's local instrument catalog to submit an order. A successful response contains only the brokerage order ID. Use the existing order endpoints to retrieve order details. """
|
|
869
869
|
args = self._place_simple_order_mapped_args(
|
|
870
870
|
body=body,
|
|
871
871
|
path_params=path_params,
|
|
@@ -43,7 +43,7 @@ class OptionalAccountUniversalActivity(TypedDict, total=False):
|
|
|
43
43
|
|
|
44
44
|
currency: typing.Optional[CurrencyNullable]
|
|
45
45
|
|
|
46
|
-
# 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. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `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 asset(s) from one account to another. - `EXTERNAL_ASSET_TRANSFER_IN` - Incoming transfer of an asset from an external account to this account. - `EXTERNAL_ASSET_TRANSFER_OUT` - Outgoing transfer of an asset from this account to an external account. - `SPLIT` - A stock share split. - `ADJUSTMENT` - A one time adjustment of the account's cash balance or shares of an asset
|
|
46
|
+
# 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. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CAPITAL_GAINS_LONG` - Long-term capital-gain distribution. - `CAPITAL_GAINS_SHORT` - Short-term capital-gain distribution. - `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 asset(s) from one account to another. - `EXTERNAL_ASSET_TRANSFER_IN` - Incoming transfer of an asset from an external account to this account. - `EXTERNAL_ASSET_TRANSFER_OUT` - Outgoing transfer of an asset from this account to an external account. - `SPLIT` - A stock share split. - `ADJUSTMENT` - A one time adjustment of the account's cash balance or shares of an asset
|
|
47
47
|
type: str
|
|
48
48
|
|
|
49
49
|
# 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
|
|
@@ -22,7 +22,7 @@ class RequiredActivity(TypedDict):
|
|
|
22
22
|
# A stable and unique transaction id when available
|
|
23
23
|
transaction_id: typing.Optional[str]
|
|
24
24
|
|
|
25
|
-
# 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. - `BUY_TO_OPEN` - Option bought to open a long position. - `BUY_TO_CLOSE` - Option bought to close a short position. - `SELL_TO_OPEN` - Option sold to open a short position. - `SELL_TO_CLOSE` - Option sold to close a long position. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `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 asset(s) from one account to another. - `EXTERNAL_ASSET_TRANSFER_IN` - Incoming transfer of an asset from an external account to this account. - `EXTERNAL_ASSET_TRANSFER_OUT` - Outgoing transfer of an asset from this account to an external account. - `SPLIT` - A stock share split. - `ADJUSTMENT` - A one time adjustment of the account's cash balance or shares of an asset
|
|
25
|
+
# 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. - `BUY_TO_OPEN` - Option bought to open a long position. - `BUY_TO_CLOSE` - Option bought to close a short position. - `SELL_TO_OPEN` - Option sold to open a short position. - `SELL_TO_CLOSE` - Option sold to close a long position. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CAPITAL_GAINS_LONG` - Long-term capital-gain distribution. - `CAPITAL_GAINS_SHORT` - Short-term capital-gain distribution. - `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 asset(s) from one account to another. - `EXTERNAL_ASSET_TRANSFER_IN` - Incoming transfer of an asset from an external account to this account. - `EXTERNAL_ASSET_TRANSFER_OUT` - Outgoing transfer of an asset from this account to an external account. - `SPLIT` - A stock share split. - `ADJUSTMENT` - A one time adjustment of the account's cash balance or shares of an asset
|
|
26
26
|
type: str
|
|
27
27
|
|
|
28
28
|
# Recorded date and time in UTC. Precision depends on what the brokerage supplies.
|
|
@@ -46,7 +46,7 @@ class OptionalUniversalActivity(TypedDict, total=False):
|
|
|
46
46
|
|
|
47
47
|
currency: typing.Optional[CurrencyNullable]
|
|
48
48
|
|
|
49
|
-
# 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. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `OPTIONEXPIRATION` - Option expiration event. `option_symbol` contains the related option contract info. - `OPTIONASSIGNMENT` - Option assignment event. `option_symbol` contains the related option contract info. - `OPTIONEXERCISE` - Option exercise event. `option_symbol` contains the related option contract info.
|
|
49
|
+
# 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. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CAPITAL_GAINS_LONG` - Long-term capital-gain distribution. - `CAPITAL_GAINS_SHORT` - Short-term capital-gain distribution. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `OPTIONEXPIRATION` - Option expiration event. `option_symbol` contains the related option contract info. - `OPTIONASSIGNMENT` - Option assignment event. `option_symbol` contains the related option contract info. - `OPTIONEXERCISE` - Option exercise event. `option_symbol` contains the related option contract info.
|
|
50
50
|
type: str
|
|
51
51
|
|
|
52
52
|
# 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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: snaptrade-python-sdk
|
|
3
|
-
Version: 13.4.
|
|
3
|
+
Version: 13.4.8
|
|
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.4.8)
|
|
91
91
|
[](https://github.com/passiv/snaptrade-sdks/tree/master/sdks/python#readme)
|
|
92
92
|
[](https://snaptrade.com/)
|
|
93
93
|
|
|
@@ -149,7 +149,6 @@ See https://docs.snaptrade.com/docs/ratelimiting.
|
|
|
149
149
|
* [`snaptrade.experimental_endpoints.get_user_account_orders_v2`](#snaptradeexperimental_endpointsget_user_account_orders_v2)
|
|
150
150
|
* [`snaptrade.experimental_endpoints.get_user_account_recent_orders_v2`](#snaptradeexperimental_endpointsget_user_account_recent_orders_v2)
|
|
151
151
|
* [`snaptrade.experimental_endpoints.list_subscriptions`](#snaptradeexperimental_endpointslist_subscriptions)
|
|
152
|
-
* [`snaptrade.experimental_endpoints.place_simple_order`](#snaptradeexperimental_endpointsplace_simple_order)
|
|
153
152
|
* [`snaptrade.management.get_stats`](#snaptrademanagementget_stats)
|
|
154
153
|
* [`snaptrade.management.get_stats_legacy`](#snaptrademanagementget_stats_legacy)
|
|
155
154
|
* [`snaptrade.reference_data.get_partner_info`](#snaptradereference_dataget_partner_info)
|
|
@@ -172,6 +171,7 @@ See https://docs.snaptrade.com/docs/ratelimiting.
|
|
|
172
171
|
* [`snaptrade.trading.place_force_order`](#snaptradetradingplace_force_order)
|
|
173
172
|
* [`snaptrade.trading.place_mleg_order`](#snaptradetradingplace_mleg_order)
|
|
174
173
|
* [`snaptrade.trading.place_order`](#snaptradetradingplace_order)
|
|
174
|
+
* [`snaptrade.trading.place_simple_order`](#snaptradetradingplace_simple_order)
|
|
175
175
|
* [`snaptrade.trading.preview_crypto_order`](#snaptradetradingpreview_crypto_order)
|
|
176
176
|
* [`snaptrade.trading.replace_order`](#snaptradetradingreplace_order)
|
|
177
177
|
* [`snaptrade.trading.search_cryptocurrency_pair_instruments`](#snaptradetradingsearch_cryptocurrency_pair_instruments)
|
|
@@ -185,7 +185,7 @@ Python >=3.8
|
|
|
185
185
|
## Installation<a id="installation"></a>
|
|
186
186
|
|
|
187
187
|
```sh
|
|
188
|
-
pip install snaptrade-python-sdk==13.4.
|
|
188
|
+
pip install snaptrade-python-sdk==13.4.8
|
|
189
189
|
```
|
|
190
190
|
|
|
191
191
|
## Authentication<a id="authentication"></a>
|
|
@@ -193,7 +193,7 @@ pip install snaptrade-python-sdk==13.4.7
|
|
|
193
193
|
Choose the authentication mode that matches your credentials, then use its client in the reference examples.
|
|
194
194
|
|
|
195
195
|
### Commercial API Key Auth authentication<a id="commercial-api-key-auth-authentication"></a>
|
|
196
|
-
Use
|
|
196
|
+
Use a Commercial API Key when your app manages users and their connection experience.
|
|
197
197
|
|
|
198
198
|
```python
|
|
199
199
|
from snaptrade_client import SnapTrade, SnapTradeAuth
|
|
@@ -509,7 +509,7 @@ An integer that specifies the maximum number of transactions to return. Default
|
|
|
509
509
|
|
|
510
510
|
##### type: `str`<a id="type-str"></a>
|
|
511
511
|
|
|
512
|
-
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. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `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.
|
|
512
|
+
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. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CAPITAL_GAINS_LONG` - Long-term capital-gain distribution. - `CAPITAL_GAINS_SHORT` - Short-term capital-gain distribution. - `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.
|
|
513
513
|
|
|
514
514
|
#### 🔄 Return<a id="🔄-return"></a>
|
|
515
515
|
|
|
@@ -857,7 +857,7 @@ Last date to include (UTC). Defaults to the latest available transaction.
|
|
|
857
857
|
|
|
858
858
|
##### type: `str`<a id="type-str"></a>
|
|
859
859
|
|
|
860
|
-
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. - `BUY_TO_OPEN` - Option bought to open a long position. - `BUY_TO_CLOSE` - Option bought to close a short position. - `SELL_TO_OPEN` - Option sold to open a short position. - `SELL_TO_CLOSE` - Option sold to close a long position. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `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.
|
|
860
|
+
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. - `BUY_TO_OPEN` - Option bought to open a long position. - `BUY_TO_CLOSE` - Option bought to close a short position. - `SELL_TO_OPEN` - Option sold to open a short position. - `SELL_TO_CLOSE` - Option sold to close a long position. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CAPITAL_GAINS_LONG` - Long-term capital-gain distribution. - `CAPITAL_GAINS_SHORT` - Short-term capital-gain distribution. - `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.
|
|
861
861
|
|
|
862
862
|
##### offset: `int`<a id="offset-int"></a>
|
|
863
863
|
|
|
@@ -3070,182 +3070,6 @@ list_subscriptions_response = (
|
|
|
3070
3070
|
|
|
3071
3071
|
---
|
|
3072
3072
|
|
|
3073
|
-
### `snaptrade.experimental_endpoints.place_simple_order`<a id="snaptradeexperimental_endpointsplace_simple_order"></a>
|
|
3074
|
-
|
|
3075
|
-
**Beta.** Places a single-leg or multi-leg order using a common request format for equities, equity options, futures, and future options. This endpoint is experimental; breaking changes are possible during the experimental phase.
|
|
3076
|
-
|
|
3077
|
-
Equity and equity-option orders use the existing brokerage trading capabilities. Futures are supported on tastytrade, Webull US, and TradeStation (live and SIM); future options are supported on tastytrade and TradeStation (live and SIM). Order types, time in force, optional fields, and strategy combinations remain subject to brokerage support. See the [brokerage trading support page](https://support.snaptrade.com/brokerages).
|
|
3078
|
-
|
|
3079
|
-
An order may contain equity/option legs or future/future_option legs, but cannot mix those two families. Equity/option strategies must share the same underlying symbol. Each strategy is submitted as one brokerage order; unsupported strategies are never split into independent orders. Tastytrade supports single-leg outright futures and up to four future-option legs, and does not support multi-leg market orders.
|
|
3080
|
-
|
|
3081
|
-
Webull US supports single-leg futures orders with buy or sell actions and positive whole-contract quantities. Supported order types are market, limit, stop, and stop_limit, with day or gtc duration. Futures options, multi-leg futures, trailing stops, and Webull Canada futures trading are not supported. Webull determines contract availability, margin requirements, and valid price increments.
|
|
3082
|
-
|
|
3083
|
-
TradeStation and TradeStation SIM support single-leg futures and futures-option orders in Futures accounts, with positive whole-contract quantities. Supported order types are market, limit, stop, and stop_limit, with day, gtc, ioc, or fok duration, subject to the contract and route's supported combinations. Futures use buy/sell; futures options use the open/close option actions. Multi-leg futures-family strategies are not supported. Prices are forwarded without rounding; TradeStation determines contract availability, permissions, margin requirements, and valid price increments.
|
|
3084
|
-
|
|
3085
|
-
All string choices use lower snake_case and are case-sensitive. Symbols retain their native format: equity tickers, OCC equity-option symbols, or brokerage-native futures symbols. For tastytrade, use the exact BrokerageInstrument ticker, including any spaces. For Webull US, use a specific unprefixed futures contract symbol such as ESZ6; slash-prefixed aliases, continuous/root-only symbols, and whitespace are not accepted. For TradeStation, use a specific two-digit-year contract such as ESZ26 or @ESZ26, or a futures-option symbol such as `ESZ26 C6000`, preserving the space and any session alias. The optional @ prefix is supported for dated futures contracts and is forwarded unchanged. Slash-prefixed aliases and root-only continuous symbols such as @ES are not accepted. A futures symbol does not need to be present in SnapTrade's local instrument catalog to submit an order.
|
|
3086
|
-
|
|
3087
|
-
A successful response contains only the brokerage order ID. Use the existing order endpoints to retrieve order details.
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
3091
|
-
|
|
3092
|
-
##### Commercial API Key Auth<a id="commercial-api-key-auth"></a>
|
|
3093
|
-
|
|
3094
|
-
```python
|
|
3095
|
-
place_simple_order_response = (
|
|
3096
|
-
commercial_api_key_client.experimental_endpoints.place_simple_order(
|
|
3097
|
-
order_type="stop_limit",
|
|
3098
|
-
time_in_force="day",
|
|
3099
|
-
legs=[
|
|
3100
|
-
{
|
|
3101
|
-
"instrument": {
|
|
3102
|
-
"kind": "future",
|
|
3103
|
-
"symbol": "/ESZ6",
|
|
3104
|
-
},
|
|
3105
|
-
"action": "buy",
|
|
3106
|
-
"units": "1.25",
|
|
3107
|
-
}
|
|
3108
|
-
],
|
|
3109
|
-
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
3110
|
-
limit_price="1.25",
|
|
3111
|
-
stop_price="1.25",
|
|
3112
|
-
price_effect="debit",
|
|
3113
|
-
client_order_id="550e8400-e29b-41d4-a716-446655440000",
|
|
3114
|
-
expiry_date="2026-12-18T20:00:00Z",
|
|
3115
|
-
notional_value="1.25",
|
|
3116
|
-
trading_session="regular",
|
|
3117
|
-
user_id="snaptrade-user-123",
|
|
3118
|
-
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
3119
|
-
)
|
|
3120
|
-
)
|
|
3121
|
-
```
|
|
3122
|
-
|
|
3123
|
-
Required credentials for this mode:
|
|
3124
|
-
|
|
3125
|
-
- `user_id` (str, required): SnapTrade User ID. This is chosen by the API partner and can be any string that is a) unique to the user, and b) immutable for the user. It is recommended to NOT use email addresses for this property because they are usually not immutable.
|
|
3126
|
-
|
|
3127
|
-
- `user_secret` (str, required): SnapTrade User Secret. This is a randomly generated string and should be stored securely. If compromised, please rotate it via the [rotate user secret endpoint](/reference/Authentication/Authentication_resetSnapTradeUserSecret).
|
|
3128
|
-
|
|
3129
|
-
##### Personal API Key Auth<a id="personal-api-key-auth"></a>
|
|
3130
|
-
|
|
3131
|
-
```python
|
|
3132
|
-
place_simple_order_response = (
|
|
3133
|
-
personal_api_key_client.experimental_endpoints.place_simple_order(
|
|
3134
|
-
order_type="stop_limit",
|
|
3135
|
-
time_in_force="day",
|
|
3136
|
-
legs=[
|
|
3137
|
-
{
|
|
3138
|
-
"instrument": {
|
|
3139
|
-
"kind": "future",
|
|
3140
|
-
"symbol": "/ESZ6",
|
|
3141
|
-
},
|
|
3142
|
-
"action": "buy",
|
|
3143
|
-
"units": "1.25",
|
|
3144
|
-
}
|
|
3145
|
-
],
|
|
3146
|
-
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
3147
|
-
limit_price="1.25",
|
|
3148
|
-
stop_price="1.25",
|
|
3149
|
-
price_effect="debit",
|
|
3150
|
-
client_order_id="550e8400-e29b-41d4-a716-446655440000",
|
|
3151
|
-
expiry_date="2026-12-18T20:00:00Z",
|
|
3152
|
-
notional_value="1.25",
|
|
3153
|
-
trading_session="regular",
|
|
3154
|
-
)
|
|
3155
|
-
)
|
|
3156
|
-
```
|
|
3157
|
-
|
|
3158
|
-
The client identifies the user in this mode. Do not pass `user_id` `user_secret` to this method.
|
|
3159
|
-
|
|
3160
|
-
##### OAuth Auth<a id="oauth-auth"></a>
|
|
3161
|
-
|
|
3162
|
-
```python
|
|
3163
|
-
place_simple_order_response = oauth_client.experimental_endpoints.place_simple_order(
|
|
3164
|
-
order_type="stop_limit",
|
|
3165
|
-
time_in_force="day",
|
|
3166
|
-
legs=[
|
|
3167
|
-
{
|
|
3168
|
-
"instrument": {
|
|
3169
|
-
"kind": "future",
|
|
3170
|
-
"symbol": "/ESZ6",
|
|
3171
|
-
},
|
|
3172
|
-
"action": "buy",
|
|
3173
|
-
"units": "1.25",
|
|
3174
|
-
}
|
|
3175
|
-
],
|
|
3176
|
-
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
3177
|
-
limit_price="1.25",
|
|
3178
|
-
stop_price="1.25",
|
|
3179
|
-
price_effect="debit",
|
|
3180
|
-
client_order_id="550e8400-e29b-41d4-a716-446655440000",
|
|
3181
|
-
expiry_date="2026-12-18T20:00:00Z",
|
|
3182
|
-
notional_value="1.25",
|
|
3183
|
-
trading_session="regular",
|
|
3184
|
-
)
|
|
3185
|
-
```
|
|
3186
|
-
|
|
3187
|
-
The client identifies the user in this mode. Do not pass `user_id` `user_secret` to this method.
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
|
3191
|
-
|
|
3192
|
-
##### order_type: `str`<a id="order_type-str"></a>
|
|
3193
|
-
|
|
3194
|
-
##### time_in_force: `str`<a id="time_in_force-str"></a>
|
|
3195
|
-
|
|
3196
|
-
Order duration, subject to brokerage and execution-path support. gtd requires expiry_date and a non-market single-leg equity/option order. Existing single-leg option routing does not support ioc. Futures and multi-leg orders do not support gtd through this endpoint. Webull US futures only support day and gtc. TradeStation futures and futures options accept day, gtc, ioc, and fok, subject to the contract and route's supported combinations.
|
|
3197
|
-
|
|
3198
|
-
##### legs: List[`SimpleTradeLeg`]<a id="legs-listsimpletradeleg"></a>
|
|
3199
|
-
|
|
3200
|
-
Legs of one brokerage order. Use equity/option legs or future/future_option legs, without mixing the two families. Brokerage strategy and leg-count limits apply.
|
|
3201
|
-
|
|
3202
|
-
##### account_id: `str`<a id="account_id-str"></a>
|
|
3203
|
-
|
|
3204
|
-
The ID of the account to execute the trade on.
|
|
3205
|
-
|
|
3206
|
-
##### limit_price: `SimpleTradeDecimal`<a id="limit_price-simpletradedecimal"></a>
|
|
3207
|
-
|
|
3208
|
-
Required for limit and stop_limit orders, except that multi-leg price_effect even implies zero. Must be omitted or null for market and stop orders. For multi-leg orders this is the net strategy price. Negative prices are accepted only for futures-family orders, subject to brokerage support.
|
|
3209
|
-
|
|
3210
|
-
##### stop_price: `SimpleTradeDecimal`<a id="stop_price-simpletradedecimal"></a>
|
|
3211
|
-
|
|
3212
|
-
Required for stop and stop_limit orders. Must be omitted or null for market and limit orders. Must be positive for equity/option orders; futures-family trigger prices are subject to brokerage support.
|
|
3213
|
-
|
|
3214
|
-
##### price_effect: `Optional[str]`<a id="price_effect-optionalstr"></a>
|
|
3215
|
-
|
|
3216
|
-
Only applicable to multi-leg limit and stop_limit orders. Requirements and supported values depend on the brokerage; tastytrade requires credit or debit. even implies a zero limit_price, which may be omitted and must be zero if supplied. Single-leg price effects are derived from the action.
|
|
3217
|
-
|
|
3218
|
-
##### client_order_id: `ClientOrderID`<a id="client_order_id-clientorderid"></a>
|
|
3219
|
-
|
|
3220
|
-
Canonical UUID. Required for Wealthsimple multi-leg placement regardless of client-order-ID enablement; reuse it when retrying the same attempt. Wealthsimple multi-leg attempts retain the ID after success or failure, and reuse by the same user across accounts or placement endpoints returns 409 without another submission. A 409 does not establish whether the original attempt was accepted; reconcile it before creating a new order with a new ID. Optional for other orders, forwarded where the existing execution path supports it and for tastytrade, Webull US, and TradeStation futures-family orders. Other orders require the existing client-order-ID enablement; when disabled the value is ignored. Brokerage behavior on duplicates varies. OAuth requests also reject a client_order_id the user has already used with 409. Tastytrade uses this as external-identifier for correlation and does not deduplicate submissions. For Webull US futures, SnapTrade converts the supplied UUID (or its generated order UUID) to lowercase 32-character hexadecimal without hyphens. The original supplied UUID remains in SnapTrade's trade audit; the converted value is returned as brokerage_order_id for subsequent order reads. For TradeStation live and SIM, SnapTrade encodes the supplied UUID (or its generated order UUID) as 22-character URL-safe base64 without padding and sends it as OrderConfirmID for brokerage duplicate prevention; the response contains TradeStation's separate order ID.
|
|
3221
|
-
|
|
3222
|
-
##### expiry_date: `Optional[datetime]`<a id="expiry_date-optionaldatetime"></a>
|
|
3223
|
-
|
|
3224
|
-
ISO 8601 expiry timestamp, required for gtd and invalid with other durations. A missing timezone is treated as UTC. Supported only through existing single-leg Public and Sandbox execution paths.
|
|
3225
|
-
|
|
3226
|
-
##### notional_value: `SimpleTradeDecimal`<a id="notional_value-simpletradedecimal"></a>
|
|
3227
|
-
|
|
3228
|
-
Positive order value, supported only for a single-equity market order on eligible brokerages and partners. Mutually exclusive with leg units. Omit or set units to null when supplied.
|
|
3229
|
-
|
|
3230
|
-
##### trading_session: `str`<a id="trading_session-str"></a>
|
|
3231
|
-
|
|
3232
|
-
extended uses existing single-leg equity/option brokerage support and requires extended-hours enablement. Futures and multi-leg orders only accept regular.
|
|
3233
|
-
|
|
3234
|
-
#### ⚙️ Request Body<a id="⚙️-request-body"></a>
|
|
3235
|
-
|
|
3236
|
-
[`SimpleTradeForm`](./snaptrade_client/type/simple_trade_form.py)
|
|
3237
|
-
#### 🔄 Return<a id="🔄-return"></a>
|
|
3238
|
-
|
|
3239
|
-
[`SimpleTradeResponse`](./snaptrade_client/type/simple_trade_response.py)
|
|
3240
|
-
|
|
3241
|
-
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
|
3242
|
-
|
|
3243
|
-
`/accounts/{accountId}/trading/simple` `post`
|
|
3244
|
-
|
|
3245
|
-
[🔙 **Back to Table of Contents**](#table-of-contents)
|
|
3246
|
-
|
|
3247
|
-
---
|
|
3248
|
-
|
|
3249
3073
|
### `snaptrade.management.get_stats`<a id="snaptrademanagementget_stats"></a>
|
|
3250
3074
|
|
|
3251
3075
|
**Beta.** This endpoint and its response schema may change.
|
|
@@ -4928,6 +4752,178 @@ Optional, defaults to true. Determines if a wait is performed to check on order
|
|
|
4928
4752
|
|
|
4929
4753
|
---
|
|
4930
4754
|
|
|
4755
|
+
### `snaptrade.trading.place_simple_order`<a id="snaptradetradingplace_simple_order"></a>
|
|
4756
|
+
|
|
4757
|
+
**Beta.** Places a single-leg or multi-leg order using a common request format for equities, equity options, futures, and future options. Breaking changes are possible while this endpoint is in beta.
|
|
4758
|
+
|
|
4759
|
+
Equity and equity-option orders use the existing brokerage trading capabilities. Futures are supported on tastytrade, Webull US, and TradeStation (live and SIM); future options are supported on tastytrade and TradeStation (live and SIM). Order types, time in force, optional fields, and strategy combinations remain subject to brokerage support. See the [brokerage trading support page](https://support.snaptrade.com/brokerages).
|
|
4760
|
+
|
|
4761
|
+
An order may contain equity/option legs or future/future_option legs, but cannot mix those two families. Equity/option strategies must share the same underlying symbol. Each strategy is submitted as one brokerage order; unsupported strategies are never split into independent orders. Tastytrade supports single-leg outright futures and up to four future-option legs, and does not support multi-leg market orders.
|
|
4762
|
+
|
|
4763
|
+
Webull US supports single-leg futures orders with buy or sell actions and positive whole-contract quantities. Supported order types are market, limit, stop, and stop_limit, with day or gtc duration. Futures options, multi-leg futures, trailing stops, and Webull Canada futures trading are not supported. Webull determines contract availability, margin requirements, and valid price increments.
|
|
4764
|
+
|
|
4765
|
+
TradeStation and TradeStation SIM support single-leg futures and futures-option orders in Futures accounts, with positive whole-contract quantities. Supported order types are market, limit, stop, and stop_limit, with day, gtc, ioc, or fok duration, subject to the contract and route's supported combinations. Futures use buy/sell; futures options use the open/close option actions. Multi-leg futures-family strategies are not supported. Prices are forwarded without rounding; TradeStation determines contract availability, permissions, margin requirements, and valid price increments.
|
|
4766
|
+
|
|
4767
|
+
All string choices use lower snake_case and are case-sensitive. Symbols retain their native format: equity tickers, OCC equity-option symbols, or brokerage-native futures symbols. For tastytrade, use the exact BrokerageInstrument ticker, including any spaces. For Webull US, use a specific unprefixed futures contract symbol such as ESZ6; slash-prefixed aliases, continuous/root-only symbols, and whitespace are not accepted. For TradeStation, use a specific two-digit-year contract such as ESZ26 or @ESZ26, or a futures-option symbol such as `ESZ26 C6000`, preserving the space and any session alias. The optional @ prefix is supported for dated futures contracts and is forwarded unchanged. Slash-prefixed aliases and root-only continuous symbols such as @ES are not accepted. A futures symbol does not need to be present in SnapTrade's local instrument catalog to submit an order.
|
|
4768
|
+
|
|
4769
|
+
A successful response contains only the brokerage order ID. Use the existing order endpoints to retrieve order details.
|
|
4770
|
+
|
|
4771
|
+
|
|
4772
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
4773
|
+
|
|
4774
|
+
##### Commercial API Key Auth<a id="commercial-api-key-auth"></a>
|
|
4775
|
+
|
|
4776
|
+
```python
|
|
4777
|
+
place_simple_order_response = commercial_api_key_client.trading.place_simple_order(
|
|
4778
|
+
order_type="stop_limit",
|
|
4779
|
+
time_in_force="day",
|
|
4780
|
+
legs=[
|
|
4781
|
+
{
|
|
4782
|
+
"instrument": {
|
|
4783
|
+
"kind": "future",
|
|
4784
|
+
"symbol": "/ESZ6",
|
|
4785
|
+
},
|
|
4786
|
+
"action": "buy",
|
|
4787
|
+
"units": "1.25",
|
|
4788
|
+
}
|
|
4789
|
+
],
|
|
4790
|
+
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
4791
|
+
limit_price="1.25",
|
|
4792
|
+
stop_price="1.25",
|
|
4793
|
+
price_effect="debit",
|
|
4794
|
+
client_order_id="550e8400-e29b-41d4-a716-446655440000",
|
|
4795
|
+
expiry_date="2026-12-18T20:00:00Z",
|
|
4796
|
+
notional_value="1.25",
|
|
4797
|
+
trading_session="regular",
|
|
4798
|
+
user_id="snaptrade-user-123",
|
|
4799
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
4800
|
+
)
|
|
4801
|
+
```
|
|
4802
|
+
|
|
4803
|
+
Required credentials for this mode:
|
|
4804
|
+
|
|
4805
|
+
- `user_id` (str, required): SnapTrade User ID. This is chosen by the API partner and can be any string that is a) unique to the user, and b) immutable for the user. It is recommended to NOT use email addresses for this property because they are usually not immutable.
|
|
4806
|
+
|
|
4807
|
+
- `user_secret` (str, required): SnapTrade User Secret. This is a randomly generated string and should be stored securely. If compromised, please rotate it via the [rotate user secret endpoint](/reference/Authentication/Authentication_resetSnapTradeUserSecret).
|
|
4808
|
+
|
|
4809
|
+
##### Personal API Key Auth<a id="personal-api-key-auth"></a>
|
|
4810
|
+
|
|
4811
|
+
```python
|
|
4812
|
+
place_simple_order_response = personal_api_key_client.trading.place_simple_order(
|
|
4813
|
+
order_type="stop_limit",
|
|
4814
|
+
time_in_force="day",
|
|
4815
|
+
legs=[
|
|
4816
|
+
{
|
|
4817
|
+
"instrument": {
|
|
4818
|
+
"kind": "future",
|
|
4819
|
+
"symbol": "/ESZ6",
|
|
4820
|
+
},
|
|
4821
|
+
"action": "buy",
|
|
4822
|
+
"units": "1.25",
|
|
4823
|
+
}
|
|
4824
|
+
],
|
|
4825
|
+
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
4826
|
+
limit_price="1.25",
|
|
4827
|
+
stop_price="1.25",
|
|
4828
|
+
price_effect="debit",
|
|
4829
|
+
client_order_id="550e8400-e29b-41d4-a716-446655440000",
|
|
4830
|
+
expiry_date="2026-12-18T20:00:00Z",
|
|
4831
|
+
notional_value="1.25",
|
|
4832
|
+
trading_session="regular",
|
|
4833
|
+
)
|
|
4834
|
+
```
|
|
4835
|
+
|
|
4836
|
+
The client identifies the user in this mode. Do not pass `user_id` `user_secret` to this method.
|
|
4837
|
+
|
|
4838
|
+
##### OAuth Auth<a id="oauth-auth"></a>
|
|
4839
|
+
|
|
4840
|
+
```python
|
|
4841
|
+
place_simple_order_response = oauth_client.trading.place_simple_order(
|
|
4842
|
+
order_type="stop_limit",
|
|
4843
|
+
time_in_force="day",
|
|
4844
|
+
legs=[
|
|
4845
|
+
{
|
|
4846
|
+
"instrument": {
|
|
4847
|
+
"kind": "future",
|
|
4848
|
+
"symbol": "/ESZ6",
|
|
4849
|
+
},
|
|
4850
|
+
"action": "buy",
|
|
4851
|
+
"units": "1.25",
|
|
4852
|
+
}
|
|
4853
|
+
],
|
|
4854
|
+
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
4855
|
+
limit_price="1.25",
|
|
4856
|
+
stop_price="1.25",
|
|
4857
|
+
price_effect="debit",
|
|
4858
|
+
client_order_id="550e8400-e29b-41d4-a716-446655440000",
|
|
4859
|
+
expiry_date="2026-12-18T20:00:00Z",
|
|
4860
|
+
notional_value="1.25",
|
|
4861
|
+
trading_session="regular",
|
|
4862
|
+
)
|
|
4863
|
+
```
|
|
4864
|
+
|
|
4865
|
+
The client identifies the user in this mode. Do not pass `user_id` `user_secret` to this method.
|
|
4866
|
+
|
|
4867
|
+
|
|
4868
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
|
4869
|
+
|
|
4870
|
+
##### order_type: `str`<a id="order_type-str"></a>
|
|
4871
|
+
|
|
4872
|
+
##### time_in_force: `str`<a id="time_in_force-str"></a>
|
|
4873
|
+
|
|
4874
|
+
Order duration, subject to brokerage and execution-path support. gtd requires expiry_date and a non-market single-leg equity/option order. Existing single-leg option routing does not support ioc. Futures and multi-leg orders do not support gtd through this endpoint. Webull US futures only support day and gtc. TradeStation futures and futures options accept day, gtc, ioc, and fok, subject to the contract and route's supported combinations.
|
|
4875
|
+
|
|
4876
|
+
##### legs: List[`SimpleTradeLeg`]<a id="legs-listsimpletradeleg"></a>
|
|
4877
|
+
|
|
4878
|
+
Legs of one brokerage order. Use equity/option legs or future/future_option legs, without mixing the two families. Brokerage strategy and leg-count limits apply.
|
|
4879
|
+
|
|
4880
|
+
##### account_id: `str`<a id="account_id-str"></a>
|
|
4881
|
+
|
|
4882
|
+
The ID of the account to execute the trade on.
|
|
4883
|
+
|
|
4884
|
+
##### limit_price: `SimpleTradeDecimal`<a id="limit_price-simpletradedecimal"></a>
|
|
4885
|
+
|
|
4886
|
+
Required for limit and stop_limit orders, except that multi-leg price_effect even implies zero. Must be omitted or null for market and stop orders. For multi-leg orders this is the net strategy price. Negative prices are accepted only for futures-family orders, subject to brokerage support.
|
|
4887
|
+
|
|
4888
|
+
##### stop_price: `SimpleTradeDecimal`<a id="stop_price-simpletradedecimal"></a>
|
|
4889
|
+
|
|
4890
|
+
Required for stop and stop_limit orders. Must be omitted or null for market and limit orders. Must be positive for equity/option orders; futures-family trigger prices are subject to brokerage support.
|
|
4891
|
+
|
|
4892
|
+
##### price_effect: `Optional[str]`<a id="price_effect-optionalstr"></a>
|
|
4893
|
+
|
|
4894
|
+
Only applicable to multi-leg limit and stop_limit orders. Requirements and supported values depend on the brokerage; tastytrade requires credit or debit. even implies a zero limit_price, which may be omitted and must be zero if supplied. Single-leg price effects are derived from the action.
|
|
4895
|
+
|
|
4896
|
+
##### client_order_id: `ClientOrderID`<a id="client_order_id-clientorderid"></a>
|
|
4897
|
+
|
|
4898
|
+
Canonical UUID. Required for Wealthsimple multi-leg placement regardless of client-order-ID enablement; reuse it when retrying the same attempt. Wealthsimple multi-leg attempts retain the ID after success or failure, and reuse by the same user across accounts or placement endpoints returns 409 without another submission. A 409 does not establish whether the original attempt was accepted; reconcile it before creating a new order with a new ID. Optional for other orders, forwarded where the existing execution path supports it and for tastytrade, Webull US, and TradeStation futures-family orders. Other orders require the existing client-order-ID enablement; when disabled the value is ignored. Brokerage behavior on duplicates varies. OAuth requests also reject a client_order_id the user has already used with 409. Tastytrade uses this as external-identifier for correlation and does not deduplicate submissions. For Webull US futures, SnapTrade converts the supplied UUID (or its generated order UUID) to lowercase 32-character hexadecimal without hyphens. The original supplied UUID remains in SnapTrade's trade audit; the converted value is returned as brokerage_order_id for subsequent order reads. For TradeStation live and SIM, SnapTrade encodes the supplied UUID (or its generated order UUID) as 22-character URL-safe base64 without padding and sends it as OrderConfirmID for brokerage duplicate prevention; the response contains TradeStation's separate order ID.
|
|
4899
|
+
|
|
4900
|
+
##### expiry_date: `Optional[datetime]`<a id="expiry_date-optionaldatetime"></a>
|
|
4901
|
+
|
|
4902
|
+
ISO 8601 expiry timestamp, required for gtd and invalid with other durations. A missing timezone is treated as UTC. Supported only through existing single-leg Public and Sandbox execution paths.
|
|
4903
|
+
|
|
4904
|
+
##### notional_value: `SimpleTradeDecimal`<a id="notional_value-simpletradedecimal"></a>
|
|
4905
|
+
|
|
4906
|
+
Positive order value, supported only for a single-equity market order on eligible brokerages and partners. Mutually exclusive with leg units. Omit or set units to null when supplied.
|
|
4907
|
+
|
|
4908
|
+
##### trading_session: `str`<a id="trading_session-str"></a>
|
|
4909
|
+
|
|
4910
|
+
extended uses existing single-leg equity/option brokerage support and requires extended-hours enablement. Futures and multi-leg orders only accept regular.
|
|
4911
|
+
|
|
4912
|
+
#### ⚙️ Request Body<a id="⚙️-request-body"></a>
|
|
4913
|
+
|
|
4914
|
+
[`SimpleTradeForm`](./snaptrade_client/type/simple_trade_form.py)
|
|
4915
|
+
#### 🔄 Return<a id="🔄-return"></a>
|
|
4916
|
+
|
|
4917
|
+
[`SimpleTradeResponse`](./snaptrade_client/type/simple_trade_response.py)
|
|
4918
|
+
|
|
4919
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
|
4920
|
+
|
|
4921
|
+
`/accounts/{accountId}/trading/simple` `post`
|
|
4922
|
+
|
|
4923
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
|
4924
|
+
|
|
4925
|
+
---
|
|
4926
|
+
|
|
4931
4927
|
### `snaptrade.trading.preview_crypto_order`<a id="snaptradetradingpreview_crypto_order"></a>
|
|
4932
4928
|
|
|
4933
4929
|
Previews an order using the specified account.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
snaptrade_client/__init__.py,sha256=
|
|
2
|
-
snaptrade_client/api_client.py,sha256=
|
|
1
|
+
snaptrade_client/__init__.py,sha256=5tJsk5dQ64nZqThWuXCF6KGYxuDXHFL9HcW-vjPJyQs,4370
|
|
2
|
+
snaptrade_client/api_client.py,sha256=vW8JNLuCqyh_vmcprC6tQJvrkeg5U2C-FWP3sZyP4FA,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
|
-
snaptrade_client/apis/path_to_api.py,sha256=
|
|
5
|
+
snaptrade_client/apis/path_to_api.py,sha256=mVg1Wp4Y01Lceb7zgn4y7ElsEcvMglq_x3D_GXaDnEU,16440
|
|
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
|
|
@@ -79,18 +79,18 @@ snaptrade_client/apis/tags/authentication_api_generated.py,sha256=nbbBY2PGHhU2UK
|
|
|
79
79
|
snaptrade_client/apis/tags/connections_api.py,sha256=t86vVzfjvfs8LOL2pVi0oR1a5hH1QH3Nq6T50XfeNlU,241
|
|
80
80
|
snaptrade_client/apis/tags/connections_api_generated.py,sha256=fDuHH28sO9CAM5rd50KyuF2-rBdDINhKhS_d5wVYhug,4932
|
|
81
81
|
snaptrade_client/apis/tags/experimental_endpoints_api.py,sha256=5n1j4_VE0jK9O7w843GRWWaVNuU3K1OSyLVvMl06fvY,293
|
|
82
|
-
snaptrade_client/apis/tags/experimental_endpoints_api_generated.py,sha256=
|
|
82
|
+
snaptrade_client/apis/tags/experimental_endpoints_api_generated.py,sha256=dEQQOxlUILN1SpWlWd-AMTSJivUwbvA2ppkieO-dO4w,4496
|
|
83
83
|
snaptrade_client/apis/tags/management_api.py,sha256=22txFcxw3RXf2m3jgcfbxESS1bzJJwuHssTP-Sin1sw,236
|
|
84
84
|
snaptrade_client/apis/tags/management_api_generated.py,sha256=J1k9WBE4KuafLJ9lbdnpzSytdJzPx5xzULoCPP_y6L4,3841
|
|
85
85
|
snaptrade_client/apis/tags/reference_data_api.py,sha256=GLUSSZXz9T4i_v-I3g3pODinjZA06cOw0KO-vQ1fhZg,253
|
|
86
86
|
snaptrade_client/apis/tags/reference_data_api_generated.py,sha256=OXsQQTwK4BoqEjIG_ZmZBdHlH10aUQgdlLAO5pOAznY,4651
|
|
87
87
|
snaptrade_client/apis/tags/trading_api.py,sha256=Mw_R--Yd53X_OYkiCo25l36ueX85U0bZLneQrmfc5iY,221
|
|
88
|
-
snaptrade_client/apis/tags/trading_api_generated.py,sha256=
|
|
88
|
+
snaptrade_client/apis/tags/trading_api_generated.py,sha256=uNG1py4Toqm9yGykTuP_8x5Sp9SZGv1EjgRLKLrVESo,5537
|
|
89
89
|
snaptrade_client/auth.py,sha256=85VAIdB-s7SGAHoU0xZnPd7pc680Y58ILZgRiKVn2pk,4797
|
|
90
90
|
snaptrade_client/client.py,sha256=ncRPbSzbjqr4YVdjzfm8IrCgFhawclXFRlYJzkHNu98,6361
|
|
91
91
|
snaptrade_client/client.pyi,sha256=s5mcwbmAEVZMJrZOT3fTP9-_r7rf2L0qdJiX8RlnX9o,6358
|
|
92
92
|
snaptrade_client/client_custom.py,sha256=hNQMRFrY_KWEOCgf36fsZBs3sBU2SQtnZin8dAEVyYo,3931
|
|
93
|
-
snaptrade_client/configuration.py,sha256=
|
|
93
|
+
snaptrade_client/configuration.py,sha256=74xBH-vxBa9GN9q0hPLJma5Hew5061cZVUmeEhTTpOU,26562
|
|
94
94
|
snaptrade_client/exceptions.py,sha256=pRlZiy1hSulcXfTCqqBU5Jys0hRBkxljOiv212M_yeo,10957
|
|
95
95
|
snaptrade_client/exceptions_base.py,sha256=LAQkaC5C61-SdBLfyMjb0K7AYJkWVuLmg2uCvHa71FM,2274
|
|
96
96
|
snaptrade_client/model/__init__.py,sha256=ayi2MIzcf0eAIsY13ToiNplV9tW-pMBFrC0I9yckGM8,350
|
|
@@ -683,8 +683,8 @@ snaptrade_client/model/validated_trade_body.pyi,sha256=KOObe8mGtKr29bjV0l7cdiqKJ
|
|
|
683
683
|
snaptrade_client/models/__init__.py,sha256=6e8A8QkWhkqpauWhmhza0rJHJ4lioUU2CMQITL26PNc,23746
|
|
684
684
|
snaptrade_client/oauth.py,sha256=hld39wsLslZwX7OKRpTC98EE6wv7QyxfYesmWdH-2S8,14009
|
|
685
685
|
snaptrade_client/oauth_device.py,sha256=mgH6ak8zRa0YCLKzd_rKctpS2e71OeC0QHbetQICSWY,10511
|
|
686
|
-
snaptrade_client/operation_parameter_map.py,sha256=
|
|
687
|
-
snaptrade_client/paths/__init__.py,sha256=
|
|
686
|
+
snaptrade_client/operation_parameter_map.py,sha256=3ykPYcb9wyP_MEskMnGFxOpdGd_-zp3_wxgBegZQBdQ,16940
|
|
687
|
+
snaptrade_client/paths/__init__.py,sha256=Uqq9lPFsInbbeVc-lIDChiQqW97HfIx86EFg6k_25qg,4750
|
|
688
688
|
snaptrade_client/paths/accounts/__init__.py,sha256=_Bqi6B13A-kgd0AOpqmcE1vTxJDfoz-r3Hwf-AmwW6A,307
|
|
689
689
|
snaptrade_client/paths/accounts/get.py,sha256=F98YMykYXcue37Y30SUiV4eXp4FzBFwgWR_m2-0Rla4,23267
|
|
690
690
|
snaptrade_client/paths/accounts/get.pyi,sha256=qZR_mDCrgONhDmZiGgc-v7rtaAX82O_3qdWKastVZu0,6469
|
|
@@ -781,7 +781,7 @@ snaptrade_client/paths/accounts_account_id_trading_replace/__init__.py,sha256=k1
|
|
|
781
781
|
snaptrade_client/paths/accounts_account_id_trading_replace/post.py,sha256=1W7A4xTwVArtMUFuXX70yOICrtCjjbjTdFLTaE8Q-1c,32545
|
|
782
782
|
snaptrade_client/paths/accounts_account_id_trading_replace/post.pyi,sha256=0sqi4ug3ZAv36cVxtM4q8KQjEOqT-XTkTfma1mtHmjg,9381
|
|
783
783
|
snaptrade_client/paths/accounts_account_id_trading_simple/__init__.py,sha256=1kfuRO4L1XUyRnv-XbLhv5SrvJ4UqjzjKDfRR9EIu9Y,359
|
|
784
|
-
snaptrade_client/paths/accounts_account_id_trading_simple/post.py,sha256=
|
|
784
|
+
snaptrade_client/paths/accounts_account_id_trading_simple/post.py,sha256=JKutas2ZeO0_DKkoxTtjx14GM48YSAgCsQguyYkiCxQ,43543
|
|
785
785
|
snaptrade_client/paths/accounts_account_id_trading_simple/post.pyi,sha256=R5qYJIO9KXhiWB6tKypprTt-cu3Pgg8q71HxT2hrRjk,10232
|
|
786
786
|
snaptrade_client/paths/accounts_account_id_transactions/__init__.py,sha256=76XTKj8DBa1bSBMoyCdvKgIwOeAYBfrB1wgsAdVXl8k,355
|
|
787
787
|
snaptrade_client/paths/accounts_account_id_transactions/get.py,sha256=TW6jHru7FlGlxwed9PAsUdmqS1iF_SoRSofWLmOLWPg,33105
|
|
@@ -923,14 +923,14 @@ snaptrade_client/type/account_position.py,sha256=ASQkr3NAlvfx8itY9WQYHXXIkJcrAwr
|
|
|
923
923
|
snaptrade_client/type/account_simple.py,sha256=KjSSOn5v6QkiSHTPdDPa-BtIcJrzlFpaNW82v9ydGf8,4595
|
|
924
924
|
snaptrade_client/type/account_sync_status.py,sha256=SRDcV9Oc5kSorODmW2rB0IRijmhVLsa-hWAAaVeia48,3962
|
|
925
925
|
snaptrade_client/type/account_transactions_response.py,sha256=AEJJs7xCORZ6QQS_-giSmgNHGOZytTqwwDrpyGnypD8,4051
|
|
926
|
-
snaptrade_client/type/account_universal_activity.py,sha256=
|
|
926
|
+
snaptrade_client/type/account_universal_activity.py,sha256=LNLCvBk40Ya1F-R_GBp-QkOIiqDbWWXNmGOBCgXF5FY,8731
|
|
927
927
|
snaptrade_client/type/account_value_history_item.py,sha256=ecKiN6ThkImbc1VTp1ny5jqQUkrdrxpr3KSjHDlCzGM,3989
|
|
928
928
|
snaptrade_client/type/account_value_history_response.py,sha256=kfhjk5Oqu_K1JtGBw7h0kpxpeLTjAYMLOwz49aX57YE,4229
|
|
929
929
|
snaptrade_client/type/action.py,sha256=tfH3z4e0ReZyuUQS_Pmz51fxlrxzj3Y83TxEeKWZbqs,3570
|
|
930
930
|
snaptrade_client/type/action_strict.py,sha256=a15cs4d6xTKZxV3CUh9ottpWUn9cFpJehQ2xQIWjgsI,3595
|
|
931
931
|
snaptrade_client/type/action_strict_v2.py,sha256=wM080CEyRMeojiZb2blFf8RpZEZRBDqKMkomIkivccY,3578
|
|
932
932
|
snaptrade_client/type/action_strict_with_options.py,sha256=djoum-mJZEE_rP_7utEUFC-fz05Fc-sCQOH6J-tE3ng,3670
|
|
933
|
-
snaptrade_client/type/activity.py,sha256=
|
|
933
|
+
snaptrade_client/type/activity.py,sha256=g9TkAOVhfYpSgXP4A4-FkFyhtVdpMM6cTk0elCkrtbs,7009
|
|
934
934
|
snaptrade_client/type/adr_instrument.py,sha256=lVgdmw0k3eFxCeULPQuIeDPkydTtjzIgJHE0zsb5WPI,4405
|
|
935
935
|
snaptrade_client/type/all_account_orders_response.py,sha256=7TZlewwQ94Bjq4XcCx_Tk52NkUTBJfTX0qxJmoINJLo,4105
|
|
936
936
|
snaptrade_client/type/all_account_orders_response_data_freshness.py,sha256=BgOTKIRNLip-oOOyJfGFhgy5r1GzhsTz8TaT0nVWvdI,3949
|
|
@@ -1171,7 +1171,7 @@ snaptrade_client/type/underlying_symbol.py,sha256=gVWCLjhTNcVQMItS27jvr68kmdvfRk
|
|
|
1171
1171
|
snaptrade_client/type/underlying_tokenized_asset_instrument.py,sha256=ZVUs2EXOfq0Y17UQwOt-2KssrrXcITyh1dHPCIpcIgI,3768
|
|
1172
1172
|
snaptrade_client/type/units.py,sha256=_LBGl_6WFm2lEtfY01WH_VtSs1K0NvmBwaseDeBhe3I,3571
|
|
1173
1173
|
snaptrade_client/type/units_nullable.py,sha256=6Nd3bZ7uBKlwOKtPd5xP1wMYu3cqzpi3PINo9yHdiYI,3579
|
|
1174
|
-
snaptrade_client/type/universal_activity.py,sha256=
|
|
1174
|
+
snaptrade_client/type/universal_activity.py,sha256=EXt95dGj0oyj5Te0WCwj8FQZlLzrOdmAQgb4KK8zwm0,8358
|
|
1175
1175
|
snaptrade_client/type/universal_symbol.py,sha256=25h-AomnLDIGrkV8-MxlR3Ccd8d7G7-FRnhjl-gEmeE,5751
|
|
1176
1176
|
snaptrade_client/type/universal_symbol_id.py,sha256=m6BBetrn17EDyr8v8HVxKV7BwD89Chgzc4ig4ZrwSe8,3581
|
|
1177
1177
|
snaptrade_client/type/universal_symbol_id_nullable.py,sha256=n_rp-E-IJnH3MT0ykt7dE4QEmtJ0T-2x4EPYROTLbh4,3589
|
|
@@ -1184,7 +1184,7 @@ snaptrade_client/type/user_secret.py,sha256=B6gpY5ECG6fV4aCV7XH9TK9uW9UsZYZlng56
|
|
|
1184
1184
|
snaptrade_client/type/validated_trade_body.py,sha256=3d5fH-7GtjtWxBTBDyjK2RSmoFcMQpr7Sv6MXgCfKQc,4076
|
|
1185
1185
|
snaptrade_client/type_util.py,sha256=y93VO77G7QTwguvfc3HnevIWtLat__tNZXfpSCSxHoU,3749
|
|
1186
1186
|
snaptrade_client/validation_metadata.py,sha256=VTN5y-NudHXok1X468J4PnGze_tGEAcs1v3gsXmcrb0,3172
|
|
1187
|
-
snaptrade_python_sdk-13.4.
|
|
1188
|
-
snaptrade_python_sdk-13.4.
|
|
1189
|
-
snaptrade_python_sdk-13.4.
|
|
1190
|
-
snaptrade_python_sdk-13.4.
|
|
1187
|
+
snaptrade_python_sdk-13.4.8.dist-info/LICENSE,sha256=GxvPdqYTCDLPwtMD70oHKcnAL8Os4eOjPVhERWpJ5Cs,1081
|
|
1188
|
+
snaptrade_python_sdk-13.4.8.dist-info/METADATA,sha256=n-v-J2Qb_k-Eg1a-rx945hawh4YSzOhe74TCp5JoW68,215802
|
|
1189
|
+
snaptrade_python_sdk-13.4.8.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
1190
|
+
snaptrade_python_sdk-13.4.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|