snaptrade-python-sdk 11.0.116__py3-none-any.whl → 11.0.117__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/brokerages_brokerage_id_instruments.py +7 -0
- snaptrade_client/apis/tags/reference_data_api_generated.py +2 -0
- snaptrade_client/configuration.py +1 -1
- snaptrade_client/model/brokerage_id.py +25 -0
- snaptrade_client/model/brokerage_id.pyi +25 -0
- snaptrade_client/model/brokerage_instrument.py +197 -0
- snaptrade_client/model/brokerage_instrument.pyi +197 -0
- snaptrade_client/model/brokerage_instruments_response.py +103 -0
- snaptrade_client/model/brokerage_instruments_response.pyi +103 -0
- snaptrade_client/models/__init__.py +3 -0
- snaptrade_client/operation_parameter_map.py +7 -0
- snaptrade_client/paths/__init__.py +1 -0
- snaptrade_client/paths/brokerages_brokerage_id_instruments/__init__.py +7 -0
- snaptrade_client/paths/brokerages_brokerage_id_instruments/get.py +417 -0
- snaptrade_client/paths/brokerages_brokerage_id_instruments/get.pyi +406 -0
- snaptrade_client/type/brokerage_id.py +19 -0
- snaptrade_client/type/brokerage_instrument.py +39 -0
- snaptrade_client/type/brokerage_instruments_response.py +27 -0
- {snaptrade_python_sdk-11.0.116.dist-info → snaptrade_python_sdk-11.0.117.dist-info}/METADATA +34 -3
- {snaptrade_python_sdk-11.0.116.dist-info → snaptrade_python_sdk-11.0.117.dist-info}/RECORD +25 -12
- {snaptrade_python_sdk-11.0.116.dist-info → snaptrade_python_sdk-11.0.117.dist-info}/LICENSE +0 -0
- {snaptrade_python_sdk-11.0.116.dist-info → snaptrade_python_sdk-11.0.117.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.117/python'
|
|
1159
1159
|
|
|
1160
1160
|
def __enter__(self):
|
|
1161
1161
|
return self
|
|
@@ -46,6 +46,7 @@ from snaptrade_client.apis.paths.accounts_account_id_trading_cancel import Accou
|
|
|
46
46
|
from snaptrade_client.apis.paths.snap_trade_partners import SnapTradePartners
|
|
47
47
|
from snaptrade_client.apis.paths.accounts_account_id_symbols import AccountsAccountIdSymbols
|
|
48
48
|
from snaptrade_client.apis.paths.brokerages import Brokerages
|
|
49
|
+
from snaptrade_client.apis.paths.brokerages_brokerage_id_instruments import BrokeragesBrokerageIdInstruments
|
|
49
50
|
from snaptrade_client.apis.paths.brokerage_authorization_types import BrokerageAuthorizationTypes
|
|
50
51
|
from snaptrade_client.apis.paths.currencies import Currencies
|
|
51
52
|
from snaptrade_client.apis.paths.currencies_rates import CurrenciesRates
|
|
@@ -103,6 +104,7 @@ PathToApi = typing_extensions.TypedDict(
|
|
|
103
104
|
PathValues.SNAP_TRADE_PARTNERS: SnapTradePartners,
|
|
104
105
|
PathValues.ACCOUNTS_ACCOUNT_ID_SYMBOLS: AccountsAccountIdSymbols,
|
|
105
106
|
PathValues.BROKERAGES: Brokerages,
|
|
107
|
+
PathValues.BROKERAGES_BROKERAGE_ID_INSTRUMENTS: BrokeragesBrokerageIdInstruments,
|
|
106
108
|
PathValues.BROKERAGE_AUTHORIZATION_TYPES: BrokerageAuthorizationTypes,
|
|
107
109
|
PathValues.CURRENCIES: Currencies,
|
|
108
110
|
PathValues.CURRENCIES_RATES: CurrenciesRates,
|
|
@@ -161,6 +163,7 @@ path_to_api = PathToApi(
|
|
|
161
163
|
PathValues.SNAP_TRADE_PARTNERS: SnapTradePartners,
|
|
162
164
|
PathValues.ACCOUNTS_ACCOUNT_ID_SYMBOLS: AccountsAccountIdSymbols,
|
|
163
165
|
PathValues.BROKERAGES: Brokerages,
|
|
166
|
+
PathValues.BROKERAGES_BROKERAGE_ID_INSTRUMENTS: BrokeragesBrokerageIdInstruments,
|
|
164
167
|
PathValues.BROKERAGE_AUTHORIZATION_TYPES: BrokerageAuthorizationTypes,
|
|
165
168
|
PathValues.CURRENCIES: Currencies,
|
|
166
169
|
PathValues.CURRENCIES_RATES: CurrenciesRates,
|
|
@@ -16,6 +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
20
|
from snaptrade_client.paths.brokerages.get import ListAllBrokerages
|
|
20
21
|
from snaptrade_client.paths.currencies.get import ListAllCurrencies
|
|
21
22
|
from snaptrade_client.paths.currencies_rates.get import ListAllCurrenciesRates
|
|
@@ -30,6 +31,7 @@ class ReferenceDataApiGenerated(
|
|
|
30
31
|
GetSymbols,
|
|
31
32
|
GetSymbolsByTicker,
|
|
32
33
|
ListAllBrokerageAuthorizationType,
|
|
34
|
+
ListAllBrokerageInstruments,
|
|
33
35
|
ListAllBrokerages,
|
|
34
36
|
ListAllCurrencies,
|
|
35
37
|
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.117".\
|
|
442
442
|
format(env=sys.platform, pyversion=sys.version)
|
|
443
443
|
|
|
444
444
|
def get_host_settings(self):
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import date, datetime # noqa: F401
|
|
14
|
+
import decimal # noqa: F401
|
|
15
|
+
import functools # noqa: F401
|
|
16
|
+
import io # noqa: F401
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import typing # noqa: F401
|
|
19
|
+
import typing_extensions # noqa: F401
|
|
20
|
+
import uuid # noqa: F401
|
|
21
|
+
|
|
22
|
+
import frozendict # noqa: F401
|
|
23
|
+
|
|
24
|
+
from snaptrade_client import schemas # noqa: F401
|
|
25
|
+
BrokerageID = schemas.UUIDSchema
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import date, datetime # noqa: F401
|
|
14
|
+
import decimal # noqa: F401
|
|
15
|
+
import functools # noqa: F401
|
|
16
|
+
import io # noqa: F401
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import typing # noqa: F401
|
|
19
|
+
import typing_extensions # noqa: F401
|
|
20
|
+
import uuid # noqa: F401
|
|
21
|
+
|
|
22
|
+
import frozendict # noqa: F401
|
|
23
|
+
|
|
24
|
+
from snaptrade_client import schemas # noqa: F401
|
|
25
|
+
BrokerageID = schemas.UUIDSchema
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import date, datetime # noqa: F401
|
|
14
|
+
import decimal # noqa: F401
|
|
15
|
+
import functools # noqa: F401
|
|
16
|
+
import io # noqa: F401
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import typing # noqa: F401
|
|
19
|
+
import typing_extensions # noqa: F401
|
|
20
|
+
import uuid # noqa: F401
|
|
21
|
+
|
|
22
|
+
import frozendict # noqa: F401
|
|
23
|
+
|
|
24
|
+
from snaptrade_client import schemas # noqa: F401
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class BrokerageInstrument(
|
|
28
|
+
schemas.DictSchema
|
|
29
|
+
):
|
|
30
|
+
"""
|
|
31
|
+
This class is auto generated by Konfig (https://konfigthis.com)
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class MetaOapg:
|
|
36
|
+
|
|
37
|
+
class properties:
|
|
38
|
+
symbol = schemas.StrSchema
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class exchange_mic(
|
|
42
|
+
schemas.StrBase,
|
|
43
|
+
schemas.NoneBase,
|
|
44
|
+
schemas.Schema,
|
|
45
|
+
schemas.NoneStrMixin
|
|
46
|
+
):
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def __new__(
|
|
50
|
+
cls,
|
|
51
|
+
*args: typing.Union[None, str, ],
|
|
52
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
53
|
+
) -> 'exchange_mic':
|
|
54
|
+
return super().__new__(
|
|
55
|
+
cls,
|
|
56
|
+
*args,
|
|
57
|
+
_configuration=_configuration,
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
class tradeable(
|
|
62
|
+
schemas.BoolBase,
|
|
63
|
+
schemas.NoneBase,
|
|
64
|
+
schemas.Schema,
|
|
65
|
+
schemas.NoneBoolMixin
|
|
66
|
+
):
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def __new__(
|
|
70
|
+
cls,
|
|
71
|
+
*args: typing.Union[None, bool, ],
|
|
72
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
73
|
+
) -> 'tradeable':
|
|
74
|
+
return super().__new__(
|
|
75
|
+
cls,
|
|
76
|
+
*args,
|
|
77
|
+
_configuration=_configuration,
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
class fractionable(
|
|
82
|
+
schemas.BoolBase,
|
|
83
|
+
schemas.NoneBase,
|
|
84
|
+
schemas.Schema,
|
|
85
|
+
schemas.NoneBoolMixin
|
|
86
|
+
):
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def __new__(
|
|
90
|
+
cls,
|
|
91
|
+
*args: typing.Union[None, bool, ],
|
|
92
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
93
|
+
) -> 'fractionable':
|
|
94
|
+
return super().__new__(
|
|
95
|
+
cls,
|
|
96
|
+
*args,
|
|
97
|
+
_configuration=_configuration,
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
class universal_symbol_id(
|
|
102
|
+
schemas.UUIDBase,
|
|
103
|
+
schemas.StrBase,
|
|
104
|
+
schemas.NoneBase,
|
|
105
|
+
schemas.Schema,
|
|
106
|
+
schemas.NoneStrMixin
|
|
107
|
+
):
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
class MetaOapg:
|
|
111
|
+
format = 'uuid'
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
def __new__(
|
|
115
|
+
cls,
|
|
116
|
+
*args: typing.Union[None, str, uuid.UUID, ],
|
|
117
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
118
|
+
) -> 'universal_symbol_id':
|
|
119
|
+
return super().__new__(
|
|
120
|
+
cls,
|
|
121
|
+
*args,
|
|
122
|
+
_configuration=_configuration,
|
|
123
|
+
)
|
|
124
|
+
__annotations__ = {
|
|
125
|
+
"symbol": symbol,
|
|
126
|
+
"exchange_mic": exchange_mic,
|
|
127
|
+
"tradeable": tradeable,
|
|
128
|
+
"fractionable": fractionable,
|
|
129
|
+
"universal_symbol_id": universal_symbol_id,
|
|
130
|
+
}
|
|
131
|
+
additional_properties = schemas.AnyTypeSchema
|
|
132
|
+
|
|
133
|
+
@typing.overload
|
|
134
|
+
def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ...
|
|
135
|
+
|
|
136
|
+
@typing.overload
|
|
137
|
+
def __getitem__(self, name: typing_extensions.Literal["exchange_mic"]) -> MetaOapg.properties.exchange_mic: ...
|
|
138
|
+
|
|
139
|
+
@typing.overload
|
|
140
|
+
def __getitem__(self, name: typing_extensions.Literal["tradeable"]) -> MetaOapg.properties.tradeable: ...
|
|
141
|
+
|
|
142
|
+
@typing.overload
|
|
143
|
+
def __getitem__(self, name: typing_extensions.Literal["fractionable"]) -> MetaOapg.properties.fractionable: ...
|
|
144
|
+
|
|
145
|
+
@typing.overload
|
|
146
|
+
def __getitem__(self, name: typing_extensions.Literal["universal_symbol_id"]) -> MetaOapg.properties.universal_symbol_id: ...
|
|
147
|
+
|
|
148
|
+
@typing.overload
|
|
149
|
+
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
|
150
|
+
|
|
151
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["exchange_mic"], typing_extensions.Literal["tradeable"], typing_extensions.Literal["fractionable"], typing_extensions.Literal["universal_symbol_id"], str, ]):
|
|
152
|
+
# dict_instance[name] accessor
|
|
153
|
+
return super().__getitem__(name)
|
|
154
|
+
|
|
155
|
+
@typing.overload
|
|
156
|
+
def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ...
|
|
157
|
+
|
|
158
|
+
@typing.overload
|
|
159
|
+
def get_item_oapg(self, name: typing_extensions.Literal["exchange_mic"]) -> typing.Union[MetaOapg.properties.exchange_mic, schemas.Unset]: ...
|
|
160
|
+
|
|
161
|
+
@typing.overload
|
|
162
|
+
def get_item_oapg(self, name: typing_extensions.Literal["tradeable"]) -> typing.Union[MetaOapg.properties.tradeable, schemas.Unset]: ...
|
|
163
|
+
|
|
164
|
+
@typing.overload
|
|
165
|
+
def get_item_oapg(self, name: typing_extensions.Literal["fractionable"]) -> typing.Union[MetaOapg.properties.fractionable, schemas.Unset]: ...
|
|
166
|
+
|
|
167
|
+
@typing.overload
|
|
168
|
+
def get_item_oapg(self, name: typing_extensions.Literal["universal_symbol_id"]) -> typing.Union[MetaOapg.properties.universal_symbol_id, schemas.Unset]: ...
|
|
169
|
+
|
|
170
|
+
@typing.overload
|
|
171
|
+
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
|
172
|
+
|
|
173
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["exchange_mic"], typing_extensions.Literal["tradeable"], typing_extensions.Literal["fractionable"], typing_extensions.Literal["universal_symbol_id"], str, ]):
|
|
174
|
+
return super().get_item_oapg(name)
|
|
175
|
+
|
|
176
|
+
def __new__(
|
|
177
|
+
cls,
|
|
178
|
+
*args: typing.Union[dict, frozendict.frozendict, ],
|
|
179
|
+
symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset,
|
|
180
|
+
exchange_mic: typing.Union[MetaOapg.properties.exchange_mic, None, str, schemas.Unset] = schemas.unset,
|
|
181
|
+
tradeable: typing.Union[MetaOapg.properties.tradeable, None, bool, schemas.Unset] = schemas.unset,
|
|
182
|
+
fractionable: typing.Union[MetaOapg.properties.fractionable, None, bool, schemas.Unset] = schemas.unset,
|
|
183
|
+
universal_symbol_id: typing.Union[MetaOapg.properties.universal_symbol_id, None, str, uuid.UUID, schemas.Unset] = schemas.unset,
|
|
184
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
185
|
+
**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, ],
|
|
186
|
+
) -> 'BrokerageInstrument':
|
|
187
|
+
return super().__new__(
|
|
188
|
+
cls,
|
|
189
|
+
*args,
|
|
190
|
+
symbol=symbol,
|
|
191
|
+
exchange_mic=exchange_mic,
|
|
192
|
+
tradeable=tradeable,
|
|
193
|
+
fractionable=fractionable,
|
|
194
|
+
universal_symbol_id=universal_symbol_id,
|
|
195
|
+
_configuration=_configuration,
|
|
196
|
+
**kwargs,
|
|
197
|
+
)
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import date, datetime # noqa: F401
|
|
14
|
+
import decimal # noqa: F401
|
|
15
|
+
import functools # noqa: F401
|
|
16
|
+
import io # noqa: F401
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import typing # noqa: F401
|
|
19
|
+
import typing_extensions # noqa: F401
|
|
20
|
+
import uuid # noqa: F401
|
|
21
|
+
|
|
22
|
+
import frozendict # noqa: F401
|
|
23
|
+
|
|
24
|
+
from snaptrade_client import schemas # noqa: F401
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class BrokerageInstrument(
|
|
28
|
+
schemas.DictSchema
|
|
29
|
+
):
|
|
30
|
+
"""
|
|
31
|
+
This class is auto generated by Konfig (https://konfigthis.com)
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class MetaOapg:
|
|
36
|
+
|
|
37
|
+
class properties:
|
|
38
|
+
symbol = schemas.StrSchema
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class exchange_mic(
|
|
42
|
+
schemas.StrBase,
|
|
43
|
+
schemas.NoneBase,
|
|
44
|
+
schemas.Schema,
|
|
45
|
+
schemas.NoneStrMixin
|
|
46
|
+
):
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def __new__(
|
|
50
|
+
cls,
|
|
51
|
+
*args: typing.Union[None, str, ],
|
|
52
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
53
|
+
) -> 'exchange_mic':
|
|
54
|
+
return super().__new__(
|
|
55
|
+
cls,
|
|
56
|
+
*args,
|
|
57
|
+
_configuration=_configuration,
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
class tradeable(
|
|
62
|
+
schemas.BoolBase,
|
|
63
|
+
schemas.NoneBase,
|
|
64
|
+
schemas.Schema,
|
|
65
|
+
schemas.NoneBoolMixin
|
|
66
|
+
):
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def __new__(
|
|
70
|
+
cls,
|
|
71
|
+
*args: typing.Union[None, bool, ],
|
|
72
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
73
|
+
) -> 'tradeable':
|
|
74
|
+
return super().__new__(
|
|
75
|
+
cls,
|
|
76
|
+
*args,
|
|
77
|
+
_configuration=_configuration,
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
class fractionable(
|
|
82
|
+
schemas.BoolBase,
|
|
83
|
+
schemas.NoneBase,
|
|
84
|
+
schemas.Schema,
|
|
85
|
+
schemas.NoneBoolMixin
|
|
86
|
+
):
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def __new__(
|
|
90
|
+
cls,
|
|
91
|
+
*args: typing.Union[None, bool, ],
|
|
92
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
93
|
+
) -> 'fractionable':
|
|
94
|
+
return super().__new__(
|
|
95
|
+
cls,
|
|
96
|
+
*args,
|
|
97
|
+
_configuration=_configuration,
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
class universal_symbol_id(
|
|
102
|
+
schemas.UUIDBase,
|
|
103
|
+
schemas.StrBase,
|
|
104
|
+
schemas.NoneBase,
|
|
105
|
+
schemas.Schema,
|
|
106
|
+
schemas.NoneStrMixin
|
|
107
|
+
):
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
class MetaOapg:
|
|
111
|
+
format = 'uuid'
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
def __new__(
|
|
115
|
+
cls,
|
|
116
|
+
*args: typing.Union[None, str, uuid.UUID, ],
|
|
117
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
118
|
+
) -> 'universal_symbol_id':
|
|
119
|
+
return super().__new__(
|
|
120
|
+
cls,
|
|
121
|
+
*args,
|
|
122
|
+
_configuration=_configuration,
|
|
123
|
+
)
|
|
124
|
+
__annotations__ = {
|
|
125
|
+
"symbol": symbol,
|
|
126
|
+
"exchange_mic": exchange_mic,
|
|
127
|
+
"tradeable": tradeable,
|
|
128
|
+
"fractionable": fractionable,
|
|
129
|
+
"universal_symbol_id": universal_symbol_id,
|
|
130
|
+
}
|
|
131
|
+
additional_properties = schemas.AnyTypeSchema
|
|
132
|
+
|
|
133
|
+
@typing.overload
|
|
134
|
+
def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ...
|
|
135
|
+
|
|
136
|
+
@typing.overload
|
|
137
|
+
def __getitem__(self, name: typing_extensions.Literal["exchange_mic"]) -> MetaOapg.properties.exchange_mic: ...
|
|
138
|
+
|
|
139
|
+
@typing.overload
|
|
140
|
+
def __getitem__(self, name: typing_extensions.Literal["tradeable"]) -> MetaOapg.properties.tradeable: ...
|
|
141
|
+
|
|
142
|
+
@typing.overload
|
|
143
|
+
def __getitem__(self, name: typing_extensions.Literal["fractionable"]) -> MetaOapg.properties.fractionable: ...
|
|
144
|
+
|
|
145
|
+
@typing.overload
|
|
146
|
+
def __getitem__(self, name: typing_extensions.Literal["universal_symbol_id"]) -> MetaOapg.properties.universal_symbol_id: ...
|
|
147
|
+
|
|
148
|
+
@typing.overload
|
|
149
|
+
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
|
150
|
+
|
|
151
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["exchange_mic"], typing_extensions.Literal["tradeable"], typing_extensions.Literal["fractionable"], typing_extensions.Literal["universal_symbol_id"], str, ]):
|
|
152
|
+
# dict_instance[name] accessor
|
|
153
|
+
return super().__getitem__(name)
|
|
154
|
+
|
|
155
|
+
@typing.overload
|
|
156
|
+
def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ...
|
|
157
|
+
|
|
158
|
+
@typing.overload
|
|
159
|
+
def get_item_oapg(self, name: typing_extensions.Literal["exchange_mic"]) -> typing.Union[MetaOapg.properties.exchange_mic, schemas.Unset]: ...
|
|
160
|
+
|
|
161
|
+
@typing.overload
|
|
162
|
+
def get_item_oapg(self, name: typing_extensions.Literal["tradeable"]) -> typing.Union[MetaOapg.properties.tradeable, schemas.Unset]: ...
|
|
163
|
+
|
|
164
|
+
@typing.overload
|
|
165
|
+
def get_item_oapg(self, name: typing_extensions.Literal["fractionable"]) -> typing.Union[MetaOapg.properties.fractionable, schemas.Unset]: ...
|
|
166
|
+
|
|
167
|
+
@typing.overload
|
|
168
|
+
def get_item_oapg(self, name: typing_extensions.Literal["universal_symbol_id"]) -> typing.Union[MetaOapg.properties.universal_symbol_id, schemas.Unset]: ...
|
|
169
|
+
|
|
170
|
+
@typing.overload
|
|
171
|
+
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
|
172
|
+
|
|
173
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["exchange_mic"], typing_extensions.Literal["tradeable"], typing_extensions.Literal["fractionable"], typing_extensions.Literal["universal_symbol_id"], str, ]):
|
|
174
|
+
return super().get_item_oapg(name)
|
|
175
|
+
|
|
176
|
+
def __new__(
|
|
177
|
+
cls,
|
|
178
|
+
*args: typing.Union[dict, frozendict.frozendict, ],
|
|
179
|
+
symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset,
|
|
180
|
+
exchange_mic: typing.Union[MetaOapg.properties.exchange_mic, None, str, schemas.Unset] = schemas.unset,
|
|
181
|
+
tradeable: typing.Union[MetaOapg.properties.tradeable, None, bool, schemas.Unset] = schemas.unset,
|
|
182
|
+
fractionable: typing.Union[MetaOapg.properties.fractionable, None, bool, schemas.Unset] = schemas.unset,
|
|
183
|
+
universal_symbol_id: typing.Union[MetaOapg.properties.universal_symbol_id, None, str, uuid.UUID, schemas.Unset] = schemas.unset,
|
|
184
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
185
|
+
**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, ],
|
|
186
|
+
) -> 'BrokerageInstrument':
|
|
187
|
+
return super().__new__(
|
|
188
|
+
cls,
|
|
189
|
+
*args,
|
|
190
|
+
symbol=symbol,
|
|
191
|
+
exchange_mic=exchange_mic,
|
|
192
|
+
tradeable=tradeable,
|
|
193
|
+
fractionable=fractionable,
|
|
194
|
+
universal_symbol_id=universal_symbol_id,
|
|
195
|
+
_configuration=_configuration,
|
|
196
|
+
**kwargs,
|
|
197
|
+
)
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import date, datetime # noqa: F401
|
|
14
|
+
import decimal # noqa: F401
|
|
15
|
+
import functools # noqa: F401
|
|
16
|
+
import io # noqa: F401
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import typing # noqa: F401
|
|
19
|
+
import typing_extensions # noqa: F401
|
|
20
|
+
import uuid # noqa: F401
|
|
21
|
+
|
|
22
|
+
import frozendict # noqa: F401
|
|
23
|
+
|
|
24
|
+
from snaptrade_client import schemas # noqa: F401
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class BrokerageInstrumentsResponse(
|
|
28
|
+
schemas.DictSchema
|
|
29
|
+
):
|
|
30
|
+
"""
|
|
31
|
+
This class is auto generated by Konfig (https://konfigthis.com)
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class MetaOapg:
|
|
36
|
+
|
|
37
|
+
class properties:
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class instruments(
|
|
41
|
+
schemas.ListSchema
|
|
42
|
+
):
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class MetaOapg:
|
|
46
|
+
|
|
47
|
+
@staticmethod
|
|
48
|
+
def items() -> typing.Type['BrokerageInstrument']:
|
|
49
|
+
return BrokerageInstrument
|
|
50
|
+
|
|
51
|
+
def __new__(
|
|
52
|
+
cls,
|
|
53
|
+
arg: typing.Union[typing.Tuple['BrokerageInstrument'], typing.List['BrokerageInstrument']],
|
|
54
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
55
|
+
) -> 'instruments':
|
|
56
|
+
return super().__new__(
|
|
57
|
+
cls,
|
|
58
|
+
arg,
|
|
59
|
+
_configuration=_configuration,
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
def __getitem__(self, i: int) -> 'BrokerageInstrument':
|
|
63
|
+
return super().__getitem__(i)
|
|
64
|
+
__annotations__ = {
|
|
65
|
+
"instruments": instruments,
|
|
66
|
+
}
|
|
67
|
+
additional_properties = schemas.AnyTypeSchema
|
|
68
|
+
|
|
69
|
+
@typing.overload
|
|
70
|
+
def __getitem__(self, name: typing_extensions.Literal["instruments"]) -> MetaOapg.properties.instruments: ...
|
|
71
|
+
|
|
72
|
+
@typing.overload
|
|
73
|
+
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
|
74
|
+
|
|
75
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["instruments"], str, ]):
|
|
76
|
+
# dict_instance[name] accessor
|
|
77
|
+
return super().__getitem__(name)
|
|
78
|
+
|
|
79
|
+
@typing.overload
|
|
80
|
+
def get_item_oapg(self, name: typing_extensions.Literal["instruments"]) -> typing.Union[MetaOapg.properties.instruments, schemas.Unset]: ...
|
|
81
|
+
|
|
82
|
+
@typing.overload
|
|
83
|
+
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
|
84
|
+
|
|
85
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["instruments"], str, ]):
|
|
86
|
+
return super().get_item_oapg(name)
|
|
87
|
+
|
|
88
|
+
def __new__(
|
|
89
|
+
cls,
|
|
90
|
+
*args: typing.Union[dict, frozendict.frozendict, ],
|
|
91
|
+
instruments: typing.Union[MetaOapg.properties.instruments, list, tuple, schemas.Unset] = schemas.unset,
|
|
92
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
93
|
+
**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, ],
|
|
94
|
+
) -> 'BrokerageInstrumentsResponse':
|
|
95
|
+
return super().__new__(
|
|
96
|
+
cls,
|
|
97
|
+
*args,
|
|
98
|
+
instruments=instruments,
|
|
99
|
+
_configuration=_configuration,
|
|
100
|
+
**kwargs,
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
from snaptrade_client.model.brokerage_instrument import BrokerageInstrument
|