snaptrade-python-sdk 11.0.127__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.
@@ -12,7 +12,7 @@
12
12
  Created by: https://snaptrade.com/
13
13
  """
14
14
 
15
- __version__ = "11.0.127"
15
+ __version__ = "11.0.128"
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.127/python'
1158
+ self.user_agent = 'Konfig/11.0.128/python'
1159
1159
 
1160
1160
  def __enter__(self):
1161
1161
  return self
@@ -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.brokerages_brokerage_id_instruments import BrokeragesBrokerageIdInstruments
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
@@ -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.BROKERAGES_BROKERAGE_ID_INSTRUMENTS: BrokeragesBrokerageIdInstruments,
103
+ PathValues.BROKERAGES_SLUG_INSTRUMENTS: BrokeragesSlugInstruments,
104
104
  PathValues.BROKERAGE_AUTHORIZATION_TYPES: BrokerageAuthorizationTypes,
105
105
  PathValues.CURRENCIES: Currencies,
106
106
  PathValues.CURRENCIES_RATES: CurrenciesRates,
@@ -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.BROKERAGES_BROKERAGE_ID_INSTRUMENTS: BrokeragesBrokerageIdInstruments,
160
+ PathValues.BROKERAGES_SLUG_INSTRUMENTS: BrokeragesSlugInstruments,
161
161
  PathValues.BROKERAGE_AUTHORIZATION_TYPES: BrokerageAuthorizationTypes,
162
162
  PathValues.CURRENCIES: Currencies,
163
163
  PathValues.CURRENCIES_RATES: CurrenciesRates,
@@ -0,0 +1,7 @@
1
+ from snaptrade_client.paths.brokerages_slug_instruments.get import ApiForget
2
+
3
+
4
+ class BrokeragesSlugInstruments(
5
+ ApiForget,
6
+ ):
7
+ pass
@@ -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.brokerages_brokerage_id_instruments.get import ListAllBrokerageInstruments
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.127".\
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"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ...
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, schemas.Unset] = schemas.unset,
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"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ...
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, schemas.Unset] = schemas.unset,
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,
@@ -396,10 +396,10 @@ operation_parameter_map = {
396
396
  },
397
397
  ]
398
398
  },
399
- '/brokerages/{brokerageId}/instruments-GET': {
399
+ '/brokerages/{slug}/instruments-GET': {
400
400
  'parameters': [
401
401
  {
402
- 'name': 'brokerageId'
402
+ 'name': 'slug'
403
403
  },
404
404
  ]
405
405
  },
@@ -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
- BROKERAGES_BROKERAGE_ID_INSTRUMENTS = "/brokerages/{brokerageId}/instruments"
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.brokerages_brokerage_id_instruments import Api
3
+ # from snaptrade_client.paths.brokerages_slug_instruments import Api
4
4
 
5
5
  from snaptrade_client.paths import PathValues
6
6
 
7
- path = PathValues.BROKERAGES_BROKERAGE_ID_INSTRUMENTS
7
+ path = PathValues.BROKERAGES_SLUG_INSTRUMENTS
@@ -39,11 +39,11 @@ from snaptrade_client.type.brokerage_instruments_response import BrokerageInstru
39
39
  from . import path
40
40
 
41
41
  # Path params
42
- BrokerageIdSchema = schemas.UUIDSchema
42
+ SlugSchema = schemas.StrSchema
43
43
  RequestRequiredPathParams = typing_extensions.TypedDict(
44
44
  'RequestRequiredPathParams',
45
45
  {
46
- 'brokerageId': typing.Union[BrokerageIdSchema, str, uuid.UUID, ],
46
+ 'slug': typing.Union[SlugSchema, str, ],
47
47
  }
48
48
  )
49
49
  RequestOptionalPathParams = typing_extensions.TypedDict(
@@ -58,10 +58,10 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
58
58
  pass
59
59
 
60
60
 
61
- request_path_brokerage_id = api_client.PathParameter(
62
- name="brokerageId",
61
+ request_path_slug = api_client.PathParameter(
62
+ name="slug",
63
63
  style=api_client.ParameterStyle.SIMPLE,
64
- schema=BrokerageIdSchema,
64
+ schema=SlugSchema,
65
65
  required=True,
66
66
  )
67
67
  _auth = [
@@ -118,13 +118,13 @@ class BaseApi(api_client.Api):
118
118
 
119
119
  def _list_all_brokerage_instruments_mapped_args(
120
120
  self,
121
- brokerage_id: typing.Optional[str] = None,
121
+ slug: typing.Optional[str] = None,
122
122
  path_params: typing.Optional[dict] = {},
123
123
  ) -> api_client.MappedArgs:
124
124
  args: api_client.MappedArgs = api_client.MappedArgs()
125
125
  _path_params = {}
126
- if brokerage_id is not None:
127
- _path_params["brokerageId"] = brokerage_id
126
+ if slug is not None:
127
+ _path_params["slug"] = slug
128
128
  args.path = path_params if path_params else _path_params
129
129
  return args
130
130
 
@@ -153,7 +153,7 @@ class BaseApi(api_client.Api):
153
153
 
154
154
  _path_params = {}
155
155
  for parameter in (
156
- request_path_brokerage_id,
156
+ request_path_slug,
157
157
  ):
158
158
  parameter_data = path_params.get(parameter.name, schemas.unset)
159
159
  if parameter_data is schemas.unset:
@@ -174,7 +174,7 @@ class BaseApi(api_client.Api):
174
174
  resource_path=used_path,
175
175
  method=method,
176
176
  configuration=self.api_client.configuration,
177
- path_template='/brokerages/{brokerageId}/instruments',
177
+ path_template='/brokerages/{slug}/instruments',
178
178
  auth_settings=_auth,
179
179
  headers=_headers,
180
180
  )
@@ -270,7 +270,7 @@ class BaseApi(api_client.Api):
270
270
 
271
271
  _path_params = {}
272
272
  for parameter in (
273
- request_path_brokerage_id,
273
+ request_path_slug,
274
274
  ):
275
275
  parameter_data = path_params.get(parameter.name, schemas.unset)
276
276
  if parameter_data is schemas.unset:
@@ -291,7 +291,7 @@ class BaseApi(api_client.Api):
291
291
  resource_path=used_path,
292
292
  method=method,
293
293
  configuration=self.api_client.configuration,
294
- path_template='/brokerages/{brokerageId}/instruments',
294
+ path_template='/brokerages/{slug}/instruments',
295
295
  auth_settings=_auth,
296
296
  headers=_headers,
297
297
  )
@@ -338,7 +338,7 @@ class ListAllBrokerageInstruments(BaseApi):
338
338
 
339
339
  async def alist_all_brokerage_instruments(
340
340
  self,
341
- brokerage_id: typing.Optional[str] = None,
341
+ slug: typing.Optional[str] = None,
342
342
  path_params: typing.Optional[dict] = {},
343
343
  **kwargs,
344
344
  ) -> typing.Union[
@@ -349,7 +349,7 @@ class ListAllBrokerageInstruments(BaseApi):
349
349
  ]:
350
350
  args = self._list_all_brokerage_instruments_mapped_args(
351
351
  path_params=path_params,
352
- brokerage_id=brokerage_id,
352
+ slug=slug,
353
353
  )
354
354
  return await self._alist_all_brokerage_instruments_oapg(
355
355
  path_params=args.path,
@@ -358,7 +358,7 @@ class ListAllBrokerageInstruments(BaseApi):
358
358
 
359
359
  def list_all_brokerage_instruments(
360
360
  self,
361
- brokerage_id: typing.Optional[str] = None,
361
+ slug: typing.Optional[str] = None,
362
362
  path_params: typing.Optional[dict] = {},
363
363
  ) -> typing.Union[
364
364
  ApiResponseFor200,
@@ -368,7 +368,7 @@ class ListAllBrokerageInstruments(BaseApi):
368
368
  """ Returns a list of all brokerage instruments available for a given brokerage. Not all brokerages support this. The ones that don't will return an empty list. """
369
369
  args = self._list_all_brokerage_instruments_mapped_args(
370
370
  path_params=path_params,
371
- brokerage_id=brokerage_id,
371
+ slug=slug,
372
372
  )
373
373
  return self._list_all_brokerage_instruments_oapg(
374
374
  path_params=args.path,
@@ -379,7 +379,7 @@ class ApiForget(BaseApi):
379
379
 
380
380
  async def aget(
381
381
  self,
382
- brokerage_id: typing.Optional[str] = None,
382
+ slug: typing.Optional[str] = None,
383
383
  path_params: typing.Optional[dict] = {},
384
384
  **kwargs,
385
385
  ) -> typing.Union[
@@ -390,7 +390,7 @@ class ApiForget(BaseApi):
390
390
  ]:
391
391
  args = self._list_all_brokerage_instruments_mapped_args(
392
392
  path_params=path_params,
393
- brokerage_id=brokerage_id,
393
+ slug=slug,
394
394
  )
395
395
  return await self._alist_all_brokerage_instruments_oapg(
396
396
  path_params=args.path,
@@ -399,7 +399,7 @@ class ApiForget(BaseApi):
399
399
 
400
400
  def get(
401
401
  self,
402
- brokerage_id: typing.Optional[str] = None,
402
+ slug: typing.Optional[str] = None,
403
403
  path_params: typing.Optional[dict] = {},
404
404
  ) -> typing.Union[
405
405
  ApiResponseFor200,
@@ -409,7 +409,7 @@ class ApiForget(BaseApi):
409
409
  """ Returns a list of all brokerage instruments available for a given brokerage. Not all brokerages support this. The ones that don't will return an empty list. """
410
410
  args = self._list_all_brokerage_instruments_mapped_args(
411
411
  path_params=path_params,
412
- brokerage_id=brokerage_id,
412
+ slug=slug,
413
413
  )
414
414
  return self._list_all_brokerage_instruments_oapg(
415
415
  path_params=args.path,
@@ -37,11 +37,11 @@ from snaptrade_client.model.brokerage_instruments_response import BrokerageInstr
37
37
  from snaptrade_client.type.brokerage_instruments_response import BrokerageInstrumentsResponse
38
38
 
39
39
  # Path params
40
- BrokerageIdSchema = schemas.UUIDSchema
40
+ SlugSchema = schemas.StrSchema
41
41
  RequestRequiredPathParams = typing_extensions.TypedDict(
42
42
  'RequestRequiredPathParams',
43
43
  {
44
- 'brokerageId': typing.Union[BrokerageIdSchema, str, uuid.UUID, ],
44
+ 'slug': typing.Union[SlugSchema, str, ],
45
45
  }
46
46
  )
47
47
  RequestOptionalPathParams = typing_extensions.TypedDict(
@@ -56,10 +56,10 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
56
56
  pass
57
57
 
58
58
 
59
- request_path_brokerage_id = api_client.PathParameter(
60
- name="brokerageId",
59
+ request_path_slug = api_client.PathParameter(
60
+ name="slug",
61
61
  style=api_client.ParameterStyle.SIMPLE,
62
- schema=BrokerageIdSchema,
62
+ schema=SlugSchema,
63
63
  required=True,
64
64
  )
65
65
  SchemaFor200ResponseBodyApplicationJson = BrokerageInstrumentsResponseSchema
@@ -107,13 +107,13 @@ class BaseApi(api_client.Api):
107
107
 
108
108
  def _list_all_brokerage_instruments_mapped_args(
109
109
  self,
110
- brokerage_id: typing.Optional[str] = None,
110
+ slug: typing.Optional[str] = None,
111
111
  path_params: typing.Optional[dict] = {},
112
112
  ) -> api_client.MappedArgs:
113
113
  args: api_client.MappedArgs = api_client.MappedArgs()
114
114
  _path_params = {}
115
- if brokerage_id is not None:
116
- _path_params["brokerageId"] = brokerage_id
115
+ if slug is not None:
116
+ _path_params["slug"] = slug
117
117
  args.path = path_params if path_params else _path_params
118
118
  return args
119
119
 
@@ -142,7 +142,7 @@ class BaseApi(api_client.Api):
142
142
 
143
143
  _path_params = {}
144
144
  for parameter in (
145
- request_path_brokerage_id,
145
+ request_path_slug,
146
146
  ):
147
147
  parameter_data = path_params.get(parameter.name, schemas.unset)
148
148
  if parameter_data is schemas.unset:
@@ -163,7 +163,7 @@ class BaseApi(api_client.Api):
163
163
  resource_path=used_path,
164
164
  method=method,
165
165
  configuration=self.api_client.configuration,
166
- path_template='/brokerages/{brokerageId}/instruments',
166
+ path_template='/brokerages/{slug}/instruments',
167
167
  auth_settings=_auth,
168
168
  headers=_headers,
169
169
  )
@@ -259,7 +259,7 @@ class BaseApi(api_client.Api):
259
259
 
260
260
  _path_params = {}
261
261
  for parameter in (
262
- request_path_brokerage_id,
262
+ request_path_slug,
263
263
  ):
264
264
  parameter_data = path_params.get(parameter.name, schemas.unset)
265
265
  if parameter_data is schemas.unset:
@@ -280,7 +280,7 @@ class BaseApi(api_client.Api):
280
280
  resource_path=used_path,
281
281
  method=method,
282
282
  configuration=self.api_client.configuration,
283
- path_template='/brokerages/{brokerageId}/instruments',
283
+ path_template='/brokerages/{slug}/instruments',
284
284
  auth_settings=_auth,
285
285
  headers=_headers,
286
286
  )
@@ -327,7 +327,7 @@ class ListAllBrokerageInstruments(BaseApi):
327
327
 
328
328
  async def alist_all_brokerage_instruments(
329
329
  self,
330
- brokerage_id: typing.Optional[str] = None,
330
+ slug: typing.Optional[str] = None,
331
331
  path_params: typing.Optional[dict] = {},
332
332
  **kwargs,
333
333
  ) -> typing.Union[
@@ -338,7 +338,7 @@ class ListAllBrokerageInstruments(BaseApi):
338
338
  ]:
339
339
  args = self._list_all_brokerage_instruments_mapped_args(
340
340
  path_params=path_params,
341
- brokerage_id=brokerage_id,
341
+ slug=slug,
342
342
  )
343
343
  return await self._alist_all_brokerage_instruments_oapg(
344
344
  path_params=args.path,
@@ -347,7 +347,7 @@ class ListAllBrokerageInstruments(BaseApi):
347
347
 
348
348
  def list_all_brokerage_instruments(
349
349
  self,
350
- brokerage_id: typing.Optional[str] = None,
350
+ slug: typing.Optional[str] = None,
351
351
  path_params: typing.Optional[dict] = {},
352
352
  ) -> typing.Union[
353
353
  ApiResponseFor200,
@@ -357,7 +357,7 @@ class ListAllBrokerageInstruments(BaseApi):
357
357
  """ Returns a list of all brokerage instruments available for a given brokerage. Not all brokerages support this. The ones that don't will return an empty list. """
358
358
  args = self._list_all_brokerage_instruments_mapped_args(
359
359
  path_params=path_params,
360
- brokerage_id=brokerage_id,
360
+ slug=slug,
361
361
  )
362
362
  return self._list_all_brokerage_instruments_oapg(
363
363
  path_params=args.path,
@@ -368,7 +368,7 @@ class ApiForget(BaseApi):
368
368
 
369
369
  async def aget(
370
370
  self,
371
- brokerage_id: typing.Optional[str] = None,
371
+ slug: typing.Optional[str] = None,
372
372
  path_params: typing.Optional[dict] = {},
373
373
  **kwargs,
374
374
  ) -> typing.Union[
@@ -379,7 +379,7 @@ class ApiForget(BaseApi):
379
379
  ]:
380
380
  args = self._list_all_brokerage_instruments_mapped_args(
381
381
  path_params=path_params,
382
- brokerage_id=brokerage_id,
382
+ slug=slug,
383
383
  )
384
384
  return await self._alist_all_brokerage_instruments_oapg(
385
385
  path_params=args.path,
@@ -388,7 +388,7 @@ class ApiForget(BaseApi):
388
388
 
389
389
  def get(
390
390
  self,
391
- brokerage_id: typing.Optional[str] = None,
391
+ slug: typing.Optional[str] = None,
392
392
  path_params: typing.Optional[dict] = {},
393
393
  ) -> typing.Union[
394
394
  ApiResponseFor200,
@@ -398,7 +398,7 @@ class ApiForget(BaseApi):
398
398
  """ Returns a list of all brokerage instruments available for a given brokerage. Not all brokerages support this. The ones that don't will return an empty list. """
399
399
  args = self._list_all_brokerage_instruments_mapped_args(
400
400
  path_params=path_params,
401
- brokerage_id=brokerage_id,
401
+ slug=slug,
402
402
  )
403
403
  return self._list_all_brokerage_instruments_oapg(
404
404
  path_params=args.path,
@@ -17,12 +17,11 @@ from typing_extensions import TypedDict, Literal, TYPE_CHECKING
17
17
 
18
18
 
19
19
  class RequiredBrokerageInstrument(TypedDict):
20
- pass
21
-
22
- class OptionalBrokerageInstrument(TypedDict, total=False):
23
20
  # The instrument's trading symbol / ticker.
24
21
  symbol: str
25
22
 
23
+
24
+ class OptionalBrokerageInstrument(TypedDict, total=False):
26
25
  # The MIC code of the exchange where the instrument is traded.
27
26
  exchange_mic: typing.Optional[str]
28
27
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: snaptrade-python-sdk
3
- Version: 11.0.127
3
+ Version: 11.0.128
4
4
  Summary: Client for SnapTrade
5
5
  License: MIT
6
6
  Author: SnapTrade
@@ -30,7 +30,7 @@ Description-Content-Type: text/markdown
30
30
  Connect brokerage accounts to your app for live positions and trading
31
31
 
32
32
 
33
- [![PyPI](https://img.shields.io/badge/PyPI-v11.0.127-blue)](https://pypi.org/project/snaptrade-python-sdk/11.0.127)
33
+ [![PyPI](https://img.shields.io/badge/PyPI-v11.0.128-blue)](https://pypi.org/project/snaptrade-python-sdk/11.0.128)
34
34
  [![README.md](https://img.shields.io/badge/README-Click%20Here-green)](https://github.com/passiv/snaptrade-sdks/tree/master/sdks/python#readme)
35
35
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
36
36
 
@@ -109,7 +109,7 @@ Python >=3.8
109
109
  ## Installation<a id="installation"></a>
110
110
 
111
111
  ```sh
112
- pip install snaptrade-python-sdk==11.0.127
112
+ pip install snaptrade-python-sdk==11.0.128
113
113
  ```
114
114
 
115
115
  ## Getting Started<a id="getting-started"></a>
@@ -1472,14 +1472,16 @@ Returns a list of all brokerage instruments available for a given brokerage. Not
1472
1472
  ```python
1473
1473
  list_all_brokerage_instruments_response = (
1474
1474
  snaptrade.reference_data.list_all_brokerage_instruments(
1475
- brokerage_id="87b24961-b51e-4db8-9226-f198f6518a89",
1475
+ slug="QUESTRADE",
1476
1476
  )
1477
1477
  )
1478
1478
  ```
1479
1479
 
1480
1480
  #### ⚙️ Parameters<a id="⚙️-parameters"></a>
1481
1481
 
1482
- ##### brokerage_id: `str`<a id="brokerage_id-str"></a>
1482
+ ##### slug: `str`<a id="slug-str"></a>
1483
+
1484
+ A short, unique identifier for the brokerage. It is usually the name of the brokerage in capital letters and will never change.
1483
1485
 
1484
1486
  #### 🔄 Return<a id="🔄-return"></a>
1485
1487
 
@@ -1487,7 +1489,7 @@ list_all_brokerage_instruments_response = (
1487
1489
 
1488
1490
  #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1489
1491
 
1490
- `/brokerages/{brokerageId}/instruments` `get`
1492
+ `/brokerages/{slug}/instruments` `get`
1491
1493
 
1492
1494
  [🔙 **Back to Table of Contents**](#table-of-contents)
1493
1495
 
@@ -1,8 +1,8 @@
1
- snaptrade_client/__init__.py,sha256=fKH7fcERHy7Lvl68u2olGA8bif5MeJJrd431QYHil2Q,820
2
- snaptrade_client/api_client.py,sha256=VGux4kSQm5ec3r1gNILr_QcHFdgK7tyK3D3EGLu5TJI,73975
1
+ snaptrade_client/__init__.py,sha256=IrvbrIP2a8GkNcimo0iZNX2Un-C0D6H-Imx3ZBhFwc8,820
2
+ snaptrade_client/api_client.py,sha256=eanovE9Jezv26Tc0Pd_DWENU3gHCpZEY5W1aQRPU76w,73975
3
3
  snaptrade_client/api_response.py,sha256=mZn18p_TNr6OY0HXTZW5InL9iXfqsJWstYGeGD-euPA,663
4
4
  snaptrade_client/apis/__init__.py,sha256=RTosXhMn41tMsKPUjIy-VK-_efOWzhkKiuGggJ3A6E0,214
5
- snaptrade_client/apis/path_to_api.py,sha256=-BsjWJKow8g8XEIcbYWGby5dg-E5JH2xCieyZRigmzw,12357
5
+ snaptrade_client/apis/path_to_api.py,sha256=4kldxcVXHcyd6XM8UFe7zlFSHj02tf9s3TFXDZwfEHY,12312
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
@@ -35,7 +35,7 @@ snaptrade_client/apis/paths/authorizations_authorization_id_refresh.py,sha256=YB
35
35
  snaptrade_client/apis/paths/authorizations_authorization_id_return_rates.py,sha256=1_ZsryO5M4dV9eWfIa1PPq2fG8fnzYtc5hmuelKVXt8,171
36
36
  snaptrade_client/apis/paths/brokerage_authorization_types.py,sha256=A0HApWnSB9hR_D7AQ41urD5Lke3dtKosKOnScgStu7o,143
37
37
  snaptrade_client/apis/paths/brokerages.py,sha256=LKV9KzmXT0e2tJzbeXPf80fcDR6XeuPtP-ZJ0RYfudQ,107
38
- snaptrade_client/apis/paths/brokerages_brokerage_id_instruments.py,sha256=ri5ruKNZRbzXJZAliok-HnXT9vizYgS5j6NOqQTQkFw,154
38
+ snaptrade_client/apis/paths/brokerages_slug_instruments.py,sha256=b_S8sYo9HdC_HbdRXIAX-Bmd_zKnchX0J2YK5mDLyxk,139
39
39
  snaptrade_client/apis/paths/currencies.py,sha256=MQhS7U36AQnyQ454yUUuNCCbgel-v8x4g7DQebzAYaM,107
40
40
  snaptrade_client/apis/paths/currencies_rates.py,sha256=C4UyuGNlgJf7doYKpp4AfjQ4-QPvGtrm1kV4ln42zmE,118
41
41
  snaptrade_client/apis/paths/currencies_rates_currency_pair.py,sha256=yzm9l8jNuQU6vXIp4rVR69DTv89J6TIwFx-sc5ugBhA,144
@@ -69,7 +69,7 @@ snaptrade_client/apis/tags/connections_api_generated.py,sha256=inWc0qR9q4SFyTWsf
69
69
  snaptrade_client/apis/tags/options_api.py,sha256=tl2HI1JChvEGrE5mcSLN85Ah5AHtjVa4n8Hx7GY-ZNA,147
70
70
  snaptrade_client/apis/tags/options_api_generated.py,sha256=cZibnPAKx1t5eoDBuMrjE1Gty5Kso9jqzTsUhE-M4Jg,582
71
71
  snaptrade_client/apis/tags/reference_data_api.py,sha256=DdmRsoiG7nLk8EgXWT1KvurcQnPYAlr1Dz0kdpdWGRQ,172
72
- snaptrade_client/apis/tags/reference_data_api_generated.py,sha256=F5uv2WsIYX7z8P86b8W8gjMjJU46L6GWs6WFJjKW17Y,1635
72
+ snaptrade_client/apis/tags/reference_data_api_generated.py,sha256=dgkjVRiqL6xGnW-ji3iG4D9qqPd-QqPqBMsrt4EUbmc,1627
73
73
  snaptrade_client/apis/tags/trading_api.py,sha256=J0L9w7V4uoH3_fkvmJhpVQTIUQCACBgrb_QQ7VTILqI,147
74
74
  snaptrade_client/apis/tags/trading_api_generated.py,sha256=dbNWUjGnGVNg_ZFEPI0yw7EF4_DjonpEjhjBU5lsfQc,1898
75
75
  snaptrade_client/apis/tags/transactions_and_reporting_api.py,sha256=4qC3MPU73Cj2ePSxD_GIjrvvxLbjEEsan2VcDqVZXd4,217
@@ -77,7 +77,7 @@ snaptrade_client/apis/tags/transactions_and_reporting_api_generated.py,sha256=Tw
77
77
  snaptrade_client/client.py,sha256=goDwWRv9909OPXDnGGYst_mr53bg6RUs4PwIvnrl_kE,2116
78
78
  snaptrade_client/client.pyi,sha256=goDwWRv9909OPXDnGGYst_mr53bg6RUs4PwIvnrl_kE,2116
79
79
  snaptrade_client/client_custom.py,sha256=Jx9ulCzelMFlESjzVFQSjBlYcH4dWxSJJWZDMPLyetM,745
80
- snaptrade_client/configuration.py,sha256=pitHb-laFChqPUlCVpt8Ymw6Sx-MoYtv5aqidDTa1S0,19262
80
+ snaptrade_client/configuration.py,sha256=w6QTi9HxTK_jw0GFOE0vS5DgmJejx8sCFW52do9-KLo,19262
81
81
  snaptrade_client/exceptions.py,sha256=X0apI_sgQpGpa-qIqPUClReCdHAxeSuA6GW0YH_RsWg,7771
82
82
  snaptrade_client/exceptions_base.py,sha256=LAQkaC5C61-SdBLfyMjb0K7AYJkWVuLmg2uCvHa71FM,2274
83
83
  snaptrade_client/model/__init__.py,sha256=ayi2MIzcf0eAIsY13ToiNplV9tW-pMBFrC0I9yckGM8,350
@@ -137,8 +137,8 @@ snaptrade_client/model/brokerage_exchanges.py,sha256=pCbQ6uDHKBHPJBiVRdnyOV8iqZQ
137
137
  snaptrade_client/model/brokerage_exchanges.pyi,sha256=pCbQ6uDHKBHPJBiVRdnyOV8iqZQvCKgfyx8i7ok6xnE,1624
138
138
  snaptrade_client/model/brokerage_id.py,sha256=B8Y6_fjztI3b-UyGfqTXYZTF90_DFS4Gib3ZKnC3fkY,602
139
139
  snaptrade_client/model/brokerage_id.pyi,sha256=B8Y6_fjztI3b-UyGfqTXYZTF90_DFS4Gib3ZKnC3fkY,602
140
- snaptrade_client/model/brokerage_instrument.py,sha256=rK7nGHcoFkyyI38YPipmz_lVXQ9bPKRKI1u6CalGTBY,7639
141
- snaptrade_client/model/brokerage_instrument.pyi,sha256=rK7nGHcoFkyyI38YPipmz_lVXQ9bPKRKI1u6CalGTBY,7639
140
+ snaptrade_client/model/brokerage_instrument.py,sha256=uA-H42uh_Dt5ps9YoxCY2rVfBEa4WCYv38AEiasFLU0,7678
141
+ snaptrade_client/model/brokerage_instrument.pyi,sha256=uA-H42uh_Dt5ps9YoxCY2rVfBEa4WCYv38AEiasFLU0,7678
142
142
  snaptrade_client/model/brokerage_instruments_response.py,sha256=k0boWyLlnpaKDPntIrv8rcpJk5eG7rwDWnA4BZUjzKI,3535
143
143
  snaptrade_client/model/brokerage_instruments_response.pyi,sha256=k0boWyLlnpaKDPntIrv8rcpJk5eG7rwDWnA4BZUjzKI,3535
144
144
  snaptrade_client/model/brokerage_order_id.py,sha256=7MQACuFY1z1zyd31KkUVjwboCh6efSCrOxbHzzWpha0,606
@@ -422,8 +422,8 @@ snaptrade_client/model/user_secret.pyi,sha256=7xf__S566WtTq7VthmdVtrCBIfgpnYWYqE
422
422
  snaptrade_client/model/validated_trade_body.py,sha256=NkTel1ulgSjBd6K7vur6puEbfrg3u1vdmtUKArOu8ws,3085
423
423
  snaptrade_client/model/validated_trade_body.pyi,sha256=NkTel1ulgSjBd6K7vur6puEbfrg3u1vdmtUKArOu8ws,3085
424
424
  snaptrade_client/models/__init__.py,sha256=nEO5bHCM19h-AQp0rl6XNHrTZ4Aw4ffqVOPRYOPOr_I,13312
425
- snaptrade_client/operation_parameter_map.py,sha256=vYwQo6Ut1eXnNP8CtISqVlEKUvv8NNe9D46hD-CYIRI,18252
426
- snaptrade_client/paths/__init__.py,sha256=YGG613dY7WnYSd01RMtoFdoU0eEwQHy1mLiu6daKOMQ,3534
425
+ snaptrade_client/operation_parameter_map.py,sha256=lZoHmeI4jeRyxSzIUX4iBJqKPXJ8eezrA7K7tmEPk74,18238
426
+ snaptrade_client/paths/__init__.py,sha256=_AIs8vbi_zgRHbgZ2k64V6waRP3RiZuyL4nRaZbpLMY,3519
427
427
  snaptrade_client/paths/accounts/__init__.py,sha256=_Bqi6B13A-kgd0AOpqmcE1vTxJDfoz-r3Hwf-AmwW6A,307
428
428
  snaptrade_client/paths/accounts/get.py,sha256=MDE_4VCylBroYDkMQe9II1qCGf6gTTDGCShFyGLXf00,16463
429
429
  snaptrade_client/paths/accounts/get.pyi,sha256=gna7qIU-95WqOFl6qTsP18ZY7SKi9CYEBAbARPAPPF4,16261
@@ -521,9 +521,9 @@ snaptrade_client/paths/brokerage_authorization_types/get.pyi,sha256=QH-Le2FQ3lEw
521
521
  snaptrade_client/paths/brokerages/__init__.py,sha256=iSOrQi0W3HabeDgu9IRT-PYS_bYZvd2o05hfhFgyqpw,311
522
522
  snaptrade_client/paths/brokerages/get.py,sha256=C9ygoXqROqHL58spj0nISr13o9mXMLUE6tmUiK6i-eQ,11862
523
523
  snaptrade_client/paths/brokerages/get.pyi,sha256=s3n13JswLTx30uVTItV8eUVDa0cpJSrcUOOQ8SSgOdo,11660
524
- snaptrade_client/paths/brokerages_brokerage_id_instruments/__init__.py,sha256=VWl2ZJ5JNeTtYHcavRnLjDKfQ7PsLTh7z1EyYzlhG44,361
525
- snaptrade_client/paths/brokerages_brokerage_id_instruments/get.py,sha256=zl3IhD7ERu0R5ERDw-FYiPBnf8VTF2iDZhHceWAnXps,14779
526
- snaptrade_client/paths/brokerages_brokerage_id_instruments/get.pyi,sha256=2b4RaF0owgMO0Tj2wu3krAVGEE6YH7ju8bxWqzQUA4w,14577
524
+ snaptrade_client/paths/brokerages_slug_instruments/__init__.py,sha256=OF4dWGJpsrigtIdVoEIvQpgLUS3KDM3Uwia1-NnXoOQ,345
525
+ snaptrade_client/paths/brokerages_slug_instruments/get.py,sha256=69TUDYcJrmvF2HBU7OozcmTtRinwaaGlE8RSaEv1oPA,14567
526
+ snaptrade_client/paths/brokerages_slug_instruments/get.pyi,sha256=IEfuDsB2QLc0cmqXksLL9bVZHfLoVvhYRZoOCZ0N618,14365
527
527
  snaptrade_client/paths/currencies/__init__.py,sha256=E_ExjRD9lsd051A5rYxbZjMI8EuzoNNqca6NnHUmGGg,311
528
528
  snaptrade_client/paths/currencies/get.py,sha256=T6INxssyN58AqwmlhUy363i9YRezc-xVnoqWeRMgkco,11848
529
529
  snaptrade_client/paths/currencies/get.pyi,sha256=NeZH1if9QF_KPdhEME-vuJV-JTILX2CuG9wNSs9MXMA,11646
@@ -619,7 +619,7 @@ snaptrade_client/type/brokerage_authorization_type_read_only.py,sha256=s8LO8_UrS
619
619
  snaptrade_client/type/brokerage_authorization_type_read_only_brokerage.py,sha256=CifzEt7S-UupSXMVloKz-ZdX7LeNG60btZ7nQhVOW_o,905
620
620
  snaptrade_client/type/brokerage_exchanges.py,sha256=qKMI9-B8MQPz3W3fnAVJNrZmdFK6ehfhH6FJmiI3Mk0,475
621
621
  snaptrade_client/type/brokerage_id.py,sha256=9lFbHF4p5urF89zSBsedK_2PHtqD86b0TOV0Snp5FrY,389
622
- snaptrade_client/type/brokerage_instrument.py,sha256=G5Jjf3-_ziIBtyGMq-RLFOvRXKUN7c4WUHBc_KcGQEg,1199
622
+ snaptrade_client/type/brokerage_instrument.py,sha256=QJiSO-aTfCWyOUOENCHh4TcPOYcULLrrCWsNSoSh0u8,1190
623
623
  snaptrade_client/type/brokerage_instruments_response.py,sha256=flNX8_TLme4kZ_JxfYvHt09zt9hlMvNg-N9N-Vde65c,751
624
624
  snaptrade_client/type/brokerage_order_id.py,sha256=oE2d-GYvZjKRLR-eKg2iMVR3ESXhw7qEKC2w6ld4ldQ,394
625
625
  snaptrade_client/type/brokerage_symbol_id.py,sha256=nR9N24PrsaUx1AsjtLRg7-Jay5zqWxvYukw3Xj9SrXY,395
@@ -763,7 +763,7 @@ snaptrade_client/type/user_secret.py,sha256=pKCVhqf1rROHwa6tvoyA5OAKXCBAmNDvIQCf
763
763
  snaptrade_client/type/validated_trade_body.py,sha256=ZIPBQWii_a-9zHaBCJ6bQtmL1_I7AG0zwuvkY-ZQ6R4,890
764
764
  snaptrade_client/type_util.py,sha256=JIrMYgJzd4IJ8Ne2vqcahlPA9dVmphL9sn8gwccCB4Y,563
765
765
  snaptrade_client/validation_metadata.py,sha256=VTN5y-NudHXok1X468J4PnGze_tGEAcs1v3gsXmcrb0,3172
766
- snaptrade_python_sdk-11.0.127.dist-info/LICENSE,sha256=W_1kcxEzOnZXIYJ1GVUipbmUu6dNLt-Pc-OI55h3k-A,1081
767
- snaptrade_python_sdk-11.0.127.dist-info/METADATA,sha256=6GvXYsc1Vf7C5CTW9yjnjSR0OmodBlTc5t2xuw9xSww,92887
768
- snaptrade_python_sdk-11.0.127.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
769
- snaptrade_python_sdk-11.0.127.dist-info/RECORD,,
766
+ snaptrade_python_sdk-11.0.128.dist-info/LICENSE,sha256=W_1kcxEzOnZXIYJ1GVUipbmUu6dNLt-Pc-OI55h3k-A,1081
767
+ snaptrade_python_sdk-11.0.128.dist-info/METADATA,sha256=CBXY3oianO1MRBiREyyoPtnbDLiVEXCZPEAe5CPfO1w,92958
768
+ snaptrade_python_sdk-11.0.128.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
769
+ snaptrade_python_sdk-11.0.128.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- from snaptrade_client.paths.brokerages_brokerage_id_instruments.get import ApiForget
2
-
3
-
4
- class BrokeragesBrokerageIdInstruments(
5
- ApiForget,
6
- ):
7
- pass