snaptrade-python-sdk 11.0.122__py3-none-any.whl → 11.0.123__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.122"
15
+ __version__ = "11.0.123"
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.122/python'
1158
+ self.user_agent = 'Konfig/11.0.123/python'
1159
1159
 
1160
1160
  def __enter__(self):
1161
1161
  return self
@@ -20,6 +20,7 @@ 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
23
24
  from snaptrade_client.apis.paths.accounts_account_id_recent_orders import AccountsAccountIdRecentOrders
24
25
  from snaptrade_client.apis.paths.accounts_account_id_return_rates import AccountsAccountIdReturnRates
25
26
  from snaptrade_client.apis.paths.accounts_account_id_activities import AccountsAccountIdActivities
@@ -78,6 +79,7 @@ PathToApi = typing_extensions.TypedDict(
78
79
  PathValues.ACCOUNTS_ACCOUNT_ID_BALANCES: AccountsAccountIdBalances,
79
80
  PathValues.ACCOUNTS_ACCOUNT_ID_POSITIONS: AccountsAccountIdPositions,
80
81
  PathValues.ACCOUNTS_ACCOUNT_ID_ORDERS: AccountsAccountIdOrders,
82
+ PathValues.ACCOUNTS_ACCOUNT_ID_ORDERS_BROKERAGE_ORDER_ID: AccountsAccountIdOrdersBrokerageOrderId,
81
83
  PathValues.ACCOUNTS_ACCOUNT_ID_RECENT_ORDERS: AccountsAccountIdRecentOrders,
82
84
  PathValues.ACCOUNTS_ACCOUNT_ID_RETURN_RATES: AccountsAccountIdReturnRates,
83
85
  PathValues.ACCOUNTS_ACCOUNT_ID_ACTIVITIES: AccountsAccountIdActivities,
@@ -137,6 +139,7 @@ path_to_api = PathToApi(
137
139
  PathValues.ACCOUNTS_ACCOUNT_ID_BALANCES: AccountsAccountIdBalances,
138
140
  PathValues.ACCOUNTS_ACCOUNT_ID_POSITIONS: AccountsAccountIdPositions,
139
141
  PathValues.ACCOUNTS_ACCOUNT_ID_ORDERS: AccountsAccountIdOrders,
142
+ PathValues.ACCOUNTS_ACCOUNT_ID_ORDERS_BROKERAGE_ORDER_ID: AccountsAccountIdOrdersBrokerageOrderId,
140
143
  PathValues.ACCOUNTS_ACCOUNT_ID_RECENT_ORDERS: AccountsAccountIdRecentOrders,
141
144
  PathValues.ACCOUNTS_ACCOUNT_ID_RETURN_RATES: AccountsAccountIdReturnRates,
142
145
  PathValues.ACCOUNTS_ACCOUNT_ID_ACTIVITIES: AccountsAccountIdActivities,
@@ -0,0 +1,7 @@
1
+ from snaptrade_client.paths.accounts_account_id_orders_brokerage_order_id.get import ApiForget
2
+
3
+
4
+ class AccountsAccountIdOrdersBrokerageOrderId(
5
+ ApiForget,
6
+ ):
7
+ pass
@@ -13,6 +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.accounts_account_id_orders_brokerage_order_id.get import GetUserAccountOrderDetail
16
17
  from snaptrade_client.paths.accounts_account_id_orders.get import GetUserAccountOrders
17
18
  from snaptrade_client.paths.accounts_account_id_positions.get import GetUserAccountPositions
18
19
  from snaptrade_client.paths.accounts_account_id_recent_orders.get import GetUserAccountRecentOrders
@@ -27,6 +28,7 @@ class AccountInformationApiGenerated(
27
28
  GetAllUserHoldings,
28
29
  GetUserAccountBalance,
29
30
  GetUserAccountDetails,
31
+ GetUserAccountOrderDetail,
30
32
  GetUserAccountOrders,
31
33
  GetUserAccountPositions,
32
34
  GetUserAccountRecentOrders,
@@ -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.122".\
441
+ "SDK Package Version: 11.0.123".\
442
442
  format(env=sys.platform, pyversion=sys.version)
443
443
 
444
444
  def get_host_settings(self):
@@ -132,6 +132,7 @@ class Account(
132
132
  "open": "OPEN",
133
133
  "closed": "CLOSED",
134
134
  "archived": "ARCHIVED",
135
+ "unavailable": "UNAVAILABLE",
135
136
  }
136
137
 
137
138
  @schemas.classproperty
@@ -145,6 +146,10 @@ class Account(
145
146
  @schemas.classproperty
146
147
  def ARCHIVED(cls):
147
148
  return cls("archived")
149
+
150
+ @schemas.classproperty
151
+ def UNAVAILABLE(cls):
152
+ return cls("unavailable")
148
153
 
149
154
 
150
155
  def __new__(
@@ -132,6 +132,7 @@ class Account(
132
132
  "open": "OPEN",
133
133
  "closed": "CLOSED",
134
134
  "archived": "ARCHIVED",
135
+ "unavailable": "UNAVAILABLE",
135
136
  }
136
137
 
137
138
  @schemas.classproperty
@@ -145,6 +146,10 @@ class Account(
145
146
  @schemas.classproperty
146
147
  def ARCHIVED(cls):
147
148
  return cls("archived")
149
+
150
+ @schemas.classproperty
151
+ def UNAVAILABLE(cls):
152
+ return cls("unavailable")
148
153
 
149
154
 
150
155
  def __new__(
@@ -66,6 +66,22 @@ operation_parameter_map = {
66
66
  },
67
67
  ]
68
68
  },
69
+ '/accounts/{accountId}/orders/{brokerageOrderId}-GET': {
70
+ 'parameters': [
71
+ {
72
+ 'name': 'userId'
73
+ },
74
+ {
75
+ 'name': 'userSecret'
76
+ },
77
+ {
78
+ 'name': 'accountId'
79
+ },
80
+ {
81
+ 'name': 'brokerageOrderId'
82
+ },
83
+ ]
84
+ },
69
85
  '/accounts/{accountId}/orders-GET': {
70
86
  'parameters': [
71
87
  {
@@ -25,6 +25,7 @@ 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}"
28
29
  ACCOUNTS_ACCOUNT_ID_RECENT_ORDERS = "/accounts/{accountId}/recentOrders"
29
30
  ACCOUNTS_ACCOUNT_ID_RETURN_RATES = "/accounts/{accountId}/returnRates"
30
31
  ACCOUNTS_ACCOUNT_ID_ACTIVITIES = "/accounts/{accountId}/activities"
@@ -0,0 +1,7 @@
1
+ # do not import all endpoints into this module because that uses a lot of memory and stack frames
2
+ # if you need the ability to import all endpoints from this module, import them with
3
+ # from snaptrade_client.paths.accounts_account_id_orders_brokerage_order_id import Api
4
+
5
+ from snaptrade_client.paths import PathValues
6
+
7
+ path = PathValues.ACCOUNTS_ACCOUNT_ID_ORDERS_BROKERAGE_ORDER_ID