snaptrade-python-sdk 11.0.126__py3-none-any.whl → 11.0.128__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 +6 -6
- snaptrade_client/apis/paths/accounts_account_id_orders_details.py +7 -0
- snaptrade_client/apis/paths/brokerages_slug_instruments.py +7 -0
- snaptrade_client/apis/tags/account_information_api_generated.py +1 -1
- snaptrade_client/apis/tags/reference_data_api_generated.py +1 -1
- snaptrade_client/configuration.py +1 -1
- snaptrade_client/model/brokerage_instrument.py +7 -2
- snaptrade_client/model/brokerage_instrument.pyi +7 -2
- snaptrade_client/operation_parameter_map.py +7 -7
- snaptrade_client/paths/__init__.py +2 -2
- snaptrade_client/paths/{brokerages_brokerage_id_instruments → accounts_account_id_orders_details}/__init__.py +2 -2
- snaptrade_client/paths/{accounts_account_id_orders_brokerage_order_id/get.py → accounts_account_id_orders_details/post.py} +167 -37
- snaptrade_client/paths/{accounts_account_id_orders_brokerage_order_id/get.pyi → accounts_account_id_orders_details/post.pyi} +166 -37
- snaptrade_client/paths/{accounts_account_id_orders_brokerage_order_id → brokerages_slug_instruments}/__init__.py +2 -2
- snaptrade_client/paths/{brokerages_brokerage_id_instruments → brokerages_slug_instruments}/get.py +20 -20
- snaptrade_client/paths/{brokerages_brokerage_id_instruments → brokerages_slug_instruments}/get.pyi +20 -20
- snaptrade_client/type/brokerage_instrument.py +2 -3
- {snaptrade_python_sdk-11.0.126.dist-info → snaptrade_python_sdk-11.0.128.dist-info}/METADATA +20 -13
- {snaptrade_python_sdk-11.0.126.dist-info → snaptrade_python_sdk-11.0.128.dist-info}/RECORD +23 -23
- snaptrade_client/apis/paths/accounts_account_id_orders_brokerage_order_id.py +0 -7
- snaptrade_client/apis/paths/brokerages_brokerage_id_instruments.py +0 -7
- {snaptrade_python_sdk-11.0.126.dist-info → snaptrade_python_sdk-11.0.128.dist-info}/LICENSE +0 -0
- {snaptrade_python_sdk-11.0.126.dist-info → snaptrade_python_sdk-11.0.128.dist-info}/WHEEL +0 -0
snaptrade_client/__init__.py
CHANGED
snaptrade_client/api_client.py
CHANGED
|
@@ -1155,7 +1155,7 @@ class ApiClient:
|
|
|
1155
1155
|
self.default_headers[header_name] = header_value
|
|
1156
1156
|
self.cookie = cookie
|
|
1157
1157
|
# Set default User-Agent.
|
|
1158
|
-
self.user_agent = 'Konfig/11.0.
|
|
1158
|
+
self.user_agent = 'Konfig/11.0.128/python'
|
|
1159
1159
|
|
|
1160
1160
|
def __enter__(self):
|
|
1161
1161
|
return self
|
|
@@ -20,10 +20,10 @@ from snaptrade_client.apis.paths.accounts_account_id import AccountsAccountId
|
|
|
20
20
|
from snaptrade_client.apis.paths.accounts_account_id_balances import AccountsAccountIdBalances
|
|
21
21
|
from snaptrade_client.apis.paths.accounts_account_id_positions import AccountsAccountIdPositions
|
|
22
22
|
from snaptrade_client.apis.paths.accounts_account_id_orders import AccountsAccountIdOrders
|
|
23
|
-
from snaptrade_client.apis.paths.accounts_account_id_orders_brokerage_order_id import AccountsAccountIdOrdersBrokerageOrderId
|
|
24
23
|
from snaptrade_client.apis.paths.accounts_account_id_recent_orders import AccountsAccountIdRecentOrders
|
|
25
24
|
from snaptrade_client.apis.paths.accounts_account_id_return_rates import AccountsAccountIdReturnRates
|
|
26
25
|
from snaptrade_client.apis.paths.accounts_account_id_activities import AccountsAccountIdActivities
|
|
26
|
+
from snaptrade_client.apis.paths.accounts_account_id_orders_details import AccountsAccountIdOrdersDetails
|
|
27
27
|
from snaptrade_client.apis.paths.accounts_account_id_options import AccountsAccountIdOptions
|
|
28
28
|
from snaptrade_client.apis.paths.accounts_account_id_options_chain import AccountsAccountIdOptionsChain
|
|
29
29
|
from snaptrade_client.apis.paths.activities import Activities
|
|
@@ -44,7 +44,7 @@ from snaptrade_client.apis.paths.accounts_account_id_trading_replace import Acco
|
|
|
44
44
|
from snaptrade_client.apis.paths.snap_trade_partners import SnapTradePartners
|
|
45
45
|
from snaptrade_client.apis.paths.accounts_account_id_symbols import AccountsAccountIdSymbols
|
|
46
46
|
from snaptrade_client.apis.paths.brokerages import Brokerages
|
|
47
|
-
from snaptrade_client.apis.paths.
|
|
47
|
+
from snaptrade_client.apis.paths.brokerages_slug_instruments import BrokeragesSlugInstruments
|
|
48
48
|
from snaptrade_client.apis.paths.brokerage_authorization_types import BrokerageAuthorizationTypes
|
|
49
49
|
from snaptrade_client.apis.paths.currencies import Currencies
|
|
50
50
|
from snaptrade_client.apis.paths.currencies_rates import CurrenciesRates
|
|
@@ -76,10 +76,10 @@ PathToApi = typing_extensions.TypedDict(
|
|
|
76
76
|
PathValues.ACCOUNTS_ACCOUNT_ID_BALANCES: AccountsAccountIdBalances,
|
|
77
77
|
PathValues.ACCOUNTS_ACCOUNT_ID_POSITIONS: AccountsAccountIdPositions,
|
|
78
78
|
PathValues.ACCOUNTS_ACCOUNT_ID_ORDERS: AccountsAccountIdOrders,
|
|
79
|
-
PathValues.ACCOUNTS_ACCOUNT_ID_ORDERS_BROKERAGE_ORDER_ID: AccountsAccountIdOrdersBrokerageOrderId,
|
|
80
79
|
PathValues.ACCOUNTS_ACCOUNT_ID_RECENT_ORDERS: AccountsAccountIdRecentOrders,
|
|
81
80
|
PathValues.ACCOUNTS_ACCOUNT_ID_RETURN_RATES: AccountsAccountIdReturnRates,
|
|
82
81
|
PathValues.ACCOUNTS_ACCOUNT_ID_ACTIVITIES: AccountsAccountIdActivities,
|
|
82
|
+
PathValues.ACCOUNTS_ACCOUNT_ID_ORDERS_DETAILS: AccountsAccountIdOrdersDetails,
|
|
83
83
|
PathValues.ACCOUNTS_ACCOUNT_ID_OPTIONS: AccountsAccountIdOptions,
|
|
84
84
|
PathValues.ACCOUNTS_ACCOUNT_ID_OPTIONS_CHAIN: AccountsAccountIdOptionsChain,
|
|
85
85
|
PathValues.ACTIVITIES: Activities,
|
|
@@ -100,7 +100,7 @@ PathToApi = typing_extensions.TypedDict(
|
|
|
100
100
|
PathValues.SNAP_TRADE_PARTNERS: SnapTradePartners,
|
|
101
101
|
PathValues.ACCOUNTS_ACCOUNT_ID_SYMBOLS: AccountsAccountIdSymbols,
|
|
102
102
|
PathValues.BROKERAGES: Brokerages,
|
|
103
|
-
PathValues.
|
|
103
|
+
PathValues.BROKERAGES_SLUG_INSTRUMENTS: BrokeragesSlugInstruments,
|
|
104
104
|
PathValues.BROKERAGE_AUTHORIZATION_TYPES: BrokerageAuthorizationTypes,
|
|
105
105
|
PathValues.CURRENCIES: Currencies,
|
|
106
106
|
PathValues.CURRENCIES_RATES: CurrenciesRates,
|
|
@@ -133,10 +133,10 @@ path_to_api = PathToApi(
|
|
|
133
133
|
PathValues.ACCOUNTS_ACCOUNT_ID_BALANCES: AccountsAccountIdBalances,
|
|
134
134
|
PathValues.ACCOUNTS_ACCOUNT_ID_POSITIONS: AccountsAccountIdPositions,
|
|
135
135
|
PathValues.ACCOUNTS_ACCOUNT_ID_ORDERS: AccountsAccountIdOrders,
|
|
136
|
-
PathValues.ACCOUNTS_ACCOUNT_ID_ORDERS_BROKERAGE_ORDER_ID: AccountsAccountIdOrdersBrokerageOrderId,
|
|
137
136
|
PathValues.ACCOUNTS_ACCOUNT_ID_RECENT_ORDERS: AccountsAccountIdRecentOrders,
|
|
138
137
|
PathValues.ACCOUNTS_ACCOUNT_ID_RETURN_RATES: AccountsAccountIdReturnRates,
|
|
139
138
|
PathValues.ACCOUNTS_ACCOUNT_ID_ACTIVITIES: AccountsAccountIdActivities,
|
|
139
|
+
PathValues.ACCOUNTS_ACCOUNT_ID_ORDERS_DETAILS: AccountsAccountIdOrdersDetails,
|
|
140
140
|
PathValues.ACCOUNTS_ACCOUNT_ID_OPTIONS: AccountsAccountIdOptions,
|
|
141
141
|
PathValues.ACCOUNTS_ACCOUNT_ID_OPTIONS_CHAIN: AccountsAccountIdOptionsChain,
|
|
142
142
|
PathValues.ACTIVITIES: Activities,
|
|
@@ -157,7 +157,7 @@ path_to_api = PathToApi(
|
|
|
157
157
|
PathValues.SNAP_TRADE_PARTNERS: SnapTradePartners,
|
|
158
158
|
PathValues.ACCOUNTS_ACCOUNT_ID_SYMBOLS: AccountsAccountIdSymbols,
|
|
159
159
|
PathValues.BROKERAGES: Brokerages,
|
|
160
|
-
PathValues.
|
|
160
|
+
PathValues.BROKERAGES_SLUG_INSTRUMENTS: BrokeragesSlugInstruments,
|
|
161
161
|
PathValues.BROKERAGE_AUTHORIZATION_TYPES: BrokerageAuthorizationTypes,
|
|
162
162
|
PathValues.CURRENCIES: Currencies,
|
|
163
163
|
PathValues.CURRENCIES_RATES: CurrenciesRates,
|
|
@@ -13,7 +13,7 @@ from snaptrade_client.paths.accounts_account_id_activities.get import GetAccount
|
|
|
13
13
|
from snaptrade_client.paths.holdings.get import GetAllUserHoldings
|
|
14
14
|
from snaptrade_client.paths.accounts_account_id_balances.get import GetUserAccountBalance
|
|
15
15
|
from snaptrade_client.paths.accounts_account_id.get import GetUserAccountDetails
|
|
16
|
-
from snaptrade_client.paths.
|
|
16
|
+
from snaptrade_client.paths.accounts_account_id_orders_details.post import GetUserAccountOrderDetail
|
|
17
17
|
from snaptrade_client.paths.accounts_account_id_orders.get import GetUserAccountOrders
|
|
18
18
|
from snaptrade_client.paths.accounts_account_id_positions.get import GetUserAccountPositions
|
|
19
19
|
from snaptrade_client.paths.accounts_account_id_recent_orders.get import GetUserAccountRecentOrders
|
|
@@ -16,7 +16,7 @@ from snaptrade_client.paths.exchanges.get import GetStockExchanges
|
|
|
16
16
|
from snaptrade_client.paths.symbols.post import GetSymbols
|
|
17
17
|
from snaptrade_client.paths.symbols_query.get import GetSymbolsByTicker
|
|
18
18
|
from snaptrade_client.paths.brokerage_authorization_types.get import ListAllBrokerageAuthorizationType
|
|
19
|
-
from snaptrade_client.paths.
|
|
19
|
+
from snaptrade_client.paths.brokerages_slug_instruments.get import ListAllBrokerageInstruments
|
|
20
20
|
from snaptrade_client.paths.brokerages.get import ListAllBrokerages
|
|
21
21
|
from snaptrade_client.paths.currencies.get import ListAllCurrencies
|
|
22
22
|
from snaptrade_client.paths.currencies_rates.get import ListAllCurrenciesRates
|
|
@@ -438,7 +438,7 @@ conf = snaptrade_client.Configuration(
|
|
|
438
438
|
"OS: {env}\n"\
|
|
439
439
|
"Python Version: {pyversion}\n"\
|
|
440
440
|
"Version of the API: 1.0.0\n"\
|
|
441
|
-
"SDK Package Version: 11.0.
|
|
441
|
+
"SDK Package Version: 11.0.128".\
|
|
442
442
|
format(env=sys.platform, pyversion=sys.version)
|
|
443
443
|
|
|
444
444
|
def get_host_settings(self):
|
|
@@ -33,6 +33,9 @@ class BrokerageInstrument(
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
class MetaOapg:
|
|
36
|
+
required = {
|
|
37
|
+
"symbol",
|
|
38
|
+
}
|
|
36
39
|
|
|
37
40
|
class properties:
|
|
38
41
|
symbol = schemas.StrSchema
|
|
@@ -130,6 +133,8 @@ class BrokerageInstrument(
|
|
|
130
133
|
}
|
|
131
134
|
additional_properties = schemas.AnyTypeSchema
|
|
132
135
|
|
|
136
|
+
symbol: MetaOapg.properties.symbol
|
|
137
|
+
|
|
133
138
|
@typing.overload
|
|
134
139
|
def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ...
|
|
135
140
|
|
|
@@ -153,7 +158,7 @@ class BrokerageInstrument(
|
|
|
153
158
|
return super().__getitem__(name)
|
|
154
159
|
|
|
155
160
|
@typing.overload
|
|
156
|
-
def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) ->
|
|
161
|
+
def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ...
|
|
157
162
|
|
|
158
163
|
@typing.overload
|
|
159
164
|
def get_item_oapg(self, name: typing_extensions.Literal["exchange_mic"]) -> typing.Union[MetaOapg.properties.exchange_mic, schemas.Unset]: ...
|
|
@@ -176,7 +181,7 @@ class BrokerageInstrument(
|
|
|
176
181
|
def __new__(
|
|
177
182
|
cls,
|
|
178
183
|
*args: typing.Union[dict, frozendict.frozendict, ],
|
|
179
|
-
symbol: typing.Union[MetaOapg.properties.symbol, str,
|
|
184
|
+
symbol: typing.Union[MetaOapg.properties.symbol, str, ],
|
|
180
185
|
exchange_mic: typing.Union[MetaOapg.properties.exchange_mic, None, str, schemas.Unset] = schemas.unset,
|
|
181
186
|
tradeable: typing.Union[MetaOapg.properties.tradeable, None, bool, schemas.Unset] = schemas.unset,
|
|
182
187
|
fractionable: typing.Union[MetaOapg.properties.fractionable, None, bool, schemas.Unset] = schemas.unset,
|
|
@@ -33,6 +33,9 @@ class BrokerageInstrument(
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
class MetaOapg:
|
|
36
|
+
required = {
|
|
37
|
+
"symbol",
|
|
38
|
+
}
|
|
36
39
|
|
|
37
40
|
class properties:
|
|
38
41
|
symbol = schemas.StrSchema
|
|
@@ -130,6 +133,8 @@ class BrokerageInstrument(
|
|
|
130
133
|
}
|
|
131
134
|
additional_properties = schemas.AnyTypeSchema
|
|
132
135
|
|
|
136
|
+
symbol: MetaOapg.properties.symbol
|
|
137
|
+
|
|
133
138
|
@typing.overload
|
|
134
139
|
def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ...
|
|
135
140
|
|
|
@@ -153,7 +158,7 @@ class BrokerageInstrument(
|
|
|
153
158
|
return super().__getitem__(name)
|
|
154
159
|
|
|
155
160
|
@typing.overload
|
|
156
|
-
def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) ->
|
|
161
|
+
def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ...
|
|
157
162
|
|
|
158
163
|
@typing.overload
|
|
159
164
|
def get_item_oapg(self, name: typing_extensions.Literal["exchange_mic"]) -> typing.Union[MetaOapg.properties.exchange_mic, schemas.Unset]: ...
|
|
@@ -176,7 +181,7 @@ class BrokerageInstrument(
|
|
|
176
181
|
def __new__(
|
|
177
182
|
cls,
|
|
178
183
|
*args: typing.Union[dict, frozendict.frozendict, ],
|
|
179
|
-
symbol: typing.Union[MetaOapg.properties.symbol, str,
|
|
184
|
+
symbol: typing.Union[MetaOapg.properties.symbol, str, ],
|
|
180
185
|
exchange_mic: typing.Union[MetaOapg.properties.exchange_mic, None, str, schemas.Unset] = schemas.unset,
|
|
181
186
|
tradeable: typing.Union[MetaOapg.properties.tradeable, None, bool, schemas.Unset] = schemas.unset,
|
|
182
187
|
fractionable: typing.Union[MetaOapg.properties.fractionable, None, bool, schemas.Unset] = schemas.unset,
|
|
@@ -66,19 +66,19 @@ operation_parameter_map = {
|
|
|
66
66
|
},
|
|
67
67
|
]
|
|
68
68
|
},
|
|
69
|
-
'/accounts/{accountId}/orders/
|
|
69
|
+
'/accounts/{accountId}/orders/details-POST': {
|
|
70
70
|
'parameters': [
|
|
71
71
|
{
|
|
72
|
-
'name': '
|
|
72
|
+
'name': 'external_order_id'
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
|
-
'name': '
|
|
75
|
+
'name': 'accountId'
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
'name': '
|
|
78
|
+
'name': 'userId'
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
|
-
'name': '
|
|
81
|
+
'name': 'userSecret'
|
|
82
82
|
},
|
|
83
83
|
]
|
|
84
84
|
},
|
|
@@ -396,10 +396,10 @@ operation_parameter_map = {
|
|
|
396
396
|
},
|
|
397
397
|
]
|
|
398
398
|
},
|
|
399
|
-
'/brokerages/{
|
|
399
|
+
'/brokerages/{slug}/instruments-GET': {
|
|
400
400
|
'parameters': [
|
|
401
401
|
{
|
|
402
|
-
'name': '
|
|
402
|
+
'name': 'slug'
|
|
403
403
|
},
|
|
404
404
|
]
|
|
405
405
|
},
|
|
@@ -25,10 +25,10 @@ class PathValues(str, enum.Enum):
|
|
|
25
25
|
ACCOUNTS_ACCOUNT_ID_BALANCES = "/accounts/{accountId}/balances"
|
|
26
26
|
ACCOUNTS_ACCOUNT_ID_POSITIONS = "/accounts/{accountId}/positions"
|
|
27
27
|
ACCOUNTS_ACCOUNT_ID_ORDERS = "/accounts/{accountId}/orders"
|
|
28
|
-
ACCOUNTS_ACCOUNT_ID_ORDERS_BROKERAGE_ORDER_ID = "/accounts/{accountId}/orders/{brokerageOrderId}"
|
|
29
28
|
ACCOUNTS_ACCOUNT_ID_RECENT_ORDERS = "/accounts/{accountId}/recentOrders"
|
|
30
29
|
ACCOUNTS_ACCOUNT_ID_RETURN_RATES = "/accounts/{accountId}/returnRates"
|
|
31
30
|
ACCOUNTS_ACCOUNT_ID_ACTIVITIES = "/accounts/{accountId}/activities"
|
|
31
|
+
ACCOUNTS_ACCOUNT_ID_ORDERS_DETAILS = "/accounts/{accountId}/orders/details"
|
|
32
32
|
ACCOUNTS_ACCOUNT_ID_OPTIONS = "/accounts/{accountId}/options"
|
|
33
33
|
ACCOUNTS_ACCOUNT_ID_OPTIONS_CHAIN = "/accounts/{accountId}/optionsChain"
|
|
34
34
|
ACTIVITIES = "/activities"
|
|
@@ -49,7 +49,7 @@ class PathValues(str, enum.Enum):
|
|
|
49
49
|
SNAP_TRADE_PARTNERS = "/snapTrade/partners"
|
|
50
50
|
ACCOUNTS_ACCOUNT_ID_SYMBOLS = "/accounts/{accountId}/symbols"
|
|
51
51
|
BROKERAGES = "/brokerages"
|
|
52
|
-
|
|
52
|
+
BROKERAGES_SLUG_INSTRUMENTS = "/brokerages/{slug}/instruments"
|
|
53
53
|
BROKERAGE_AUTHORIZATION_TYPES = "/brokerageAuthorizationTypes"
|
|
54
54
|
CURRENCIES = "/currencies"
|
|
55
55
|
CURRENCIES_RATES = "/currencies/rates"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# do not import all endpoints into this module because that uses a lot of memory and stack frames
|
|
2
2
|
# if you need the ability to import all endpoints from this module, import them with
|
|
3
|
-
# from snaptrade_client.paths.
|
|
3
|
+
# from snaptrade_client.paths.accounts_account_id_orders_details import Api
|
|
4
4
|
|
|
5
5
|
from snaptrade_client.paths import PathValues
|
|
6
6
|
|
|
7
|
-
path = PathValues.
|
|
7
|
+
path = PathValues.ACCOUNTS_ACCOUNT_ID_ORDERS_DETAILS
|