snaptrade-python-sdk 11.0.121__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.
- snaptrade_client/__init__.py +1 -1
- snaptrade_client/api_client.py +1 -1
- snaptrade_client/apis/path_to_api.py +3 -0
- snaptrade_client/apis/paths/accounts_account_id_orders_brokerage_order_id.py +7 -0
- snaptrade_client/apis/tags/account_information_api_generated.py +2 -0
- snaptrade_client/configuration.py +1 -1
- snaptrade_client/model/account.py +5 -0
- snaptrade_client/model/account.pyi +5 -0
- snaptrade_client/model/position.py +48 -2
- snaptrade_client/model/position.pyi +48 -2
- snaptrade_client/operation_parameter_map.py +16 -0
- snaptrade_client/paths/__init__.py +1 -0
- snaptrade_client/paths/accounts_account_id_orders_brokerage_order_id/__init__.py +7 -0
- snaptrade_client/paths/accounts_account_id_orders_brokerage_order_id/get.py +561 -0
- snaptrade_client/paths/accounts_account_id_orders_brokerage_order_id/get.pyi +549 -0
- snaptrade_client/paths/trade_place/post.py +2 -2
- snaptrade_client/paths/trade_place/post.pyi +2 -2
- snaptrade_client/type/position.py +4 -0
- {snaptrade_python_sdk-11.0.121.dist-info → snaptrade_python_sdk-11.0.123.dist-info}/METADATA +44 -3
- {snaptrade_python_sdk-11.0.121.dist-info → snaptrade_python_sdk-11.0.123.dist-info}/RECORD +22 -18
- {snaptrade_python_sdk-11.0.121.dist-info → snaptrade_python_sdk-11.0.123.dist-info}/LICENSE +0 -0
- {snaptrade_python_sdk-11.0.121.dist-info → snaptrade_python_sdk-11.0.123.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.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,
|
|
@@ -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.
|
|
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__(
|
|
@@ -141,6 +141,42 @@ class Position(
|
|
|
141
141
|
*args,
|
|
142
142
|
_configuration=_configuration,
|
|
143
143
|
)
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
class currency(
|
|
147
|
+
schemas.ComposedSchema,
|
|
148
|
+
):
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
class MetaOapg:
|
|
152
|
+
|
|
153
|
+
@classmethod
|
|
154
|
+
@functools.lru_cache()
|
|
155
|
+
def all_of(cls):
|
|
156
|
+
# we need this here to make our import statements work
|
|
157
|
+
# we must store _composed_schemas in here so the code is only run
|
|
158
|
+
# when we invoke this method. If we kept this at the class
|
|
159
|
+
# level we would get an error because the class level
|
|
160
|
+
# code would be run when this module is imported, and these composed
|
|
161
|
+
# classes don't exist yet because their module has not finished
|
|
162
|
+
# loading
|
|
163
|
+
return [
|
|
164
|
+
Currency,
|
|
165
|
+
]
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
def __new__(
|
|
169
|
+
cls,
|
|
170
|
+
*args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
|
171
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
172
|
+
**kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
|
|
173
|
+
) -> 'currency':
|
|
174
|
+
return super().__new__(
|
|
175
|
+
cls,
|
|
176
|
+
*args,
|
|
177
|
+
_configuration=_configuration,
|
|
178
|
+
**kwargs,
|
|
179
|
+
)
|
|
144
180
|
__annotations__ = {
|
|
145
181
|
"symbol": symbol,
|
|
146
182
|
"units": units,
|
|
@@ -148,6 +184,7 @@ class Position(
|
|
|
148
184
|
"open_pnl": open_pnl,
|
|
149
185
|
"average_purchase_price": average_purchase_price,
|
|
150
186
|
"fractional_units": fractional_units,
|
|
187
|
+
"currency": currency,
|
|
151
188
|
}
|
|
152
189
|
additional_properties = schemas.AnyTypeSchema
|
|
153
190
|
|
|
@@ -169,10 +206,13 @@ class Position(
|
|
|
169
206
|
@typing.overload
|
|
170
207
|
def __getitem__(self, name: typing_extensions.Literal["fractional_units"]) -> MetaOapg.properties.fractional_units: ...
|
|
171
208
|
|
|
209
|
+
@typing.overload
|
|
210
|
+
def __getitem__(self, name: typing_extensions.Literal["currency"]) -> MetaOapg.properties.currency: ...
|
|
211
|
+
|
|
172
212
|
@typing.overload
|
|
173
213
|
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
|
174
214
|
|
|
175
|
-
def __getitem__(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["units"], typing_extensions.Literal["price"], typing_extensions.Literal["open_pnl"], typing_extensions.Literal["average_purchase_price"], typing_extensions.Literal["fractional_units"], str, ]):
|
|
215
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["units"], typing_extensions.Literal["price"], typing_extensions.Literal["open_pnl"], typing_extensions.Literal["average_purchase_price"], typing_extensions.Literal["fractional_units"], typing_extensions.Literal["currency"], str, ]):
|
|
176
216
|
# dict_instance[name] accessor
|
|
177
217
|
return super().__getitem__(name)
|
|
178
218
|
|
|
@@ -194,10 +234,13 @@ class Position(
|
|
|
194
234
|
@typing.overload
|
|
195
235
|
def get_item_oapg(self, name: typing_extensions.Literal["fractional_units"]) -> typing.Union[MetaOapg.properties.fractional_units, schemas.Unset]: ...
|
|
196
236
|
|
|
237
|
+
@typing.overload
|
|
238
|
+
def get_item_oapg(self, name: typing_extensions.Literal["currency"]) -> typing.Union[MetaOapg.properties.currency, schemas.Unset]: ...
|
|
239
|
+
|
|
197
240
|
@typing.overload
|
|
198
241
|
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
|
199
242
|
|
|
200
|
-
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["units"], typing_extensions.Literal["price"], typing_extensions.Literal["open_pnl"], typing_extensions.Literal["average_purchase_price"], typing_extensions.Literal["fractional_units"], str, ]):
|
|
243
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["units"], typing_extensions.Literal["price"], typing_extensions.Literal["open_pnl"], typing_extensions.Literal["average_purchase_price"], typing_extensions.Literal["fractional_units"], typing_extensions.Literal["currency"], str, ]):
|
|
201
244
|
return super().get_item_oapg(name)
|
|
202
245
|
|
|
203
246
|
def __new__(
|
|
@@ -209,6 +252,7 @@ class Position(
|
|
|
209
252
|
open_pnl: typing.Union[MetaOapg.properties.open_pnl, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset,
|
|
210
253
|
average_purchase_price: typing.Union[MetaOapg.properties.average_purchase_price, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset,
|
|
211
254
|
fractional_units: typing.Union[MetaOapg.properties.fractional_units, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset,
|
|
255
|
+
currency: typing.Union[MetaOapg.properties.currency, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset,
|
|
212
256
|
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
213
257
|
**kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
|
214
258
|
) -> 'Position':
|
|
@@ -221,8 +265,10 @@ class Position(
|
|
|
221
265
|
open_pnl=open_pnl,
|
|
222
266
|
average_purchase_price=average_purchase_price,
|
|
223
267
|
fractional_units=fractional_units,
|
|
268
|
+
currency=currency,
|
|
224
269
|
_configuration=_configuration,
|
|
225
270
|
**kwargs,
|
|
226
271
|
)
|
|
227
272
|
|
|
273
|
+
from snaptrade_client.model.currency import Currency
|
|
228
274
|
from snaptrade_client.model.position_symbol import PositionSymbol
|
|
@@ -141,6 +141,42 @@ class Position(
|
|
|
141
141
|
*args,
|
|
142
142
|
_configuration=_configuration,
|
|
143
143
|
)
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
class currency(
|
|
147
|
+
schemas.ComposedSchema,
|
|
148
|
+
):
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
class MetaOapg:
|
|
152
|
+
|
|
153
|
+
@classmethod
|
|
154
|
+
@functools.lru_cache()
|
|
155
|
+
def all_of(cls):
|
|
156
|
+
# we need this here to make our import statements work
|
|
157
|
+
# we must store _composed_schemas in here so the code is only run
|
|
158
|
+
# when we invoke this method. If we kept this at the class
|
|
159
|
+
# level we would get an error because the class level
|
|
160
|
+
# code would be run when this module is imported, and these composed
|
|
161
|
+
# classes don't exist yet because their module has not finished
|
|
162
|
+
# loading
|
|
163
|
+
return [
|
|
164
|
+
Currency,
|
|
165
|
+
]
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
def __new__(
|
|
169
|
+
cls,
|
|
170
|
+
*args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
|
171
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
172
|
+
**kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
|
|
173
|
+
) -> 'currency':
|
|
174
|
+
return super().__new__(
|
|
175
|
+
cls,
|
|
176
|
+
*args,
|
|
177
|
+
_configuration=_configuration,
|
|
178
|
+
**kwargs,
|
|
179
|
+
)
|
|
144
180
|
__annotations__ = {
|
|
145
181
|
"symbol": symbol,
|
|
146
182
|
"units": units,
|
|
@@ -148,6 +184,7 @@ class Position(
|
|
|
148
184
|
"open_pnl": open_pnl,
|
|
149
185
|
"average_purchase_price": average_purchase_price,
|
|
150
186
|
"fractional_units": fractional_units,
|
|
187
|
+
"currency": currency,
|
|
151
188
|
}
|
|
152
189
|
additional_properties = schemas.AnyTypeSchema
|
|
153
190
|
|
|
@@ -169,10 +206,13 @@ class Position(
|
|
|
169
206
|
@typing.overload
|
|
170
207
|
def __getitem__(self, name: typing_extensions.Literal["fractional_units"]) -> MetaOapg.properties.fractional_units: ...
|
|
171
208
|
|
|
209
|
+
@typing.overload
|
|
210
|
+
def __getitem__(self, name: typing_extensions.Literal["currency"]) -> MetaOapg.properties.currency: ...
|
|
211
|
+
|
|
172
212
|
@typing.overload
|
|
173
213
|
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
|
174
214
|
|
|
175
|
-
def __getitem__(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["units"], typing_extensions.Literal["price"], typing_extensions.Literal["open_pnl"], typing_extensions.Literal["average_purchase_price"], typing_extensions.Literal["fractional_units"], str, ]):
|
|
215
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["units"], typing_extensions.Literal["price"], typing_extensions.Literal["open_pnl"], typing_extensions.Literal["average_purchase_price"], typing_extensions.Literal["fractional_units"], typing_extensions.Literal["currency"], str, ]):
|
|
176
216
|
# dict_instance[name] accessor
|
|
177
217
|
return super().__getitem__(name)
|
|
178
218
|
|
|
@@ -194,10 +234,13 @@ class Position(
|
|
|
194
234
|
@typing.overload
|
|
195
235
|
def get_item_oapg(self, name: typing_extensions.Literal["fractional_units"]) -> typing.Union[MetaOapg.properties.fractional_units, schemas.Unset]: ...
|
|
196
236
|
|
|
237
|
+
@typing.overload
|
|
238
|
+
def get_item_oapg(self, name: typing_extensions.Literal["currency"]) -> typing.Union[MetaOapg.properties.currency, schemas.Unset]: ...
|
|
239
|
+
|
|
197
240
|
@typing.overload
|
|
198
241
|
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
|
199
242
|
|
|
200
|
-
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["units"], typing_extensions.Literal["price"], typing_extensions.Literal["open_pnl"], typing_extensions.Literal["average_purchase_price"], typing_extensions.Literal["fractional_units"], str, ]):
|
|
243
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["units"], typing_extensions.Literal["price"], typing_extensions.Literal["open_pnl"], typing_extensions.Literal["average_purchase_price"], typing_extensions.Literal["fractional_units"], typing_extensions.Literal["currency"], str, ]):
|
|
201
244
|
return super().get_item_oapg(name)
|
|
202
245
|
|
|
203
246
|
def __new__(
|
|
@@ -209,6 +252,7 @@ class Position(
|
|
|
209
252
|
open_pnl: typing.Union[MetaOapg.properties.open_pnl, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset,
|
|
210
253
|
average_purchase_price: typing.Union[MetaOapg.properties.average_purchase_price, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset,
|
|
211
254
|
fractional_units: typing.Union[MetaOapg.properties.fractional_units, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset,
|
|
255
|
+
currency: typing.Union[MetaOapg.properties.currency, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset,
|
|
212
256
|
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
213
257
|
**kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
|
214
258
|
) -> 'Position':
|
|
@@ -221,8 +265,10 @@ class Position(
|
|
|
221
265
|
open_pnl=open_pnl,
|
|
222
266
|
average_purchase_price=average_purchase_price,
|
|
223
267
|
fractional_units=fractional_units,
|
|
268
|
+
currency=currency,
|
|
224
269
|
_configuration=_configuration,
|
|
225
270
|
**kwargs,
|
|
226
271
|
)
|
|
227
272
|
|
|
273
|
+
from snaptrade_client.model.currency import Currency
|
|
228
274
|
from snaptrade_client.model.position_symbol import PositionSymbol
|
|
@@ -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
|