snaptrade-python-sdk 11.0.120__py3-none-any.whl → 11.0.122__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 +9 -9
- snaptrade_client/configuration.py +1 -1
- snaptrade_client/model/position.py +48 -2
- snaptrade_client/model/position.pyi +48 -2
- snaptrade_client/paths/__init__.py +3 -3
- snaptrade_client/paths/accounts_account_id_trading_replace/post.py +2 -2
- snaptrade_client/paths/accounts_account_id_trading_replace/post.pyi +2 -2
- 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.120.dist-info → snaptrade_python_sdk-11.0.122.dist-info}/METADATA +3 -3
- {snaptrade_python_sdk-11.0.120.dist-info → snaptrade_python_sdk-11.0.122.dist-info}/RECORD +16 -16
- {snaptrade_python_sdk-11.0.120.dist-info → snaptrade_python_sdk-11.0.122.dist-info}/LICENSE +0 -0
- {snaptrade_python_sdk-11.0.120.dist-info → snaptrade_python_sdk-11.0.122.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.122/python'
|
|
1159
1159
|
|
|
1160
1160
|
def __enter__(self):
|
|
1161
1161
|
return self
|
|
@@ -39,10 +39,10 @@ from snaptrade_client.apis.paths.accounts_account_id_trading_bracket import Acco
|
|
|
39
39
|
from snaptrade_client.apis.paths.accounts_account_id_trading_options import AccountsAccountIdTradingOptions
|
|
40
40
|
from snaptrade_client.apis.paths.accounts_account_id_trading_instruments_cryptocurrency_pairs import AccountsAccountIdTradingInstrumentsCryptocurrencyPairs
|
|
41
41
|
from snaptrade_client.apis.paths.accounts_account_id_trading_instruments_cryptocurrency_pairs_instrument_symbol_quote import AccountsAccountIdTradingInstrumentsCryptocurrencyPairsInstrumentSymbolQuote
|
|
42
|
-
from snaptrade_client.apis.paths.accounts_account_id_trading_replace import AccountsAccountIdTradingReplace
|
|
43
|
-
from snaptrade_client.apis.paths.accounts_account_id_trading_cancel import AccountsAccountIdTradingCancel
|
|
44
|
-
from snaptrade_client.apis.paths.accounts_account_id_trading_crypto import AccountsAccountIdTradingCrypto
|
|
45
42
|
from snaptrade_client.apis.paths.accounts_account_id_trading_crypto_preview import AccountsAccountIdTradingCryptoPreview
|
|
43
|
+
from snaptrade_client.apis.paths.accounts_account_id_trading_crypto import AccountsAccountIdTradingCrypto
|
|
44
|
+
from snaptrade_client.apis.paths.accounts_account_id_trading_cancel import AccountsAccountIdTradingCancel
|
|
45
|
+
from snaptrade_client.apis.paths.accounts_account_id_trading_replace import AccountsAccountIdTradingReplace
|
|
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
|
|
@@ -97,10 +97,10 @@ PathToApi = typing_extensions.TypedDict(
|
|
|
97
97
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_OPTIONS: AccountsAccountIdTradingOptions,
|
|
98
98
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_INSTRUMENTS_CRYPTOCURRENCY_PAIRS: AccountsAccountIdTradingInstrumentsCryptocurrencyPairs,
|
|
99
99
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_INSTRUMENTS_CRYPTOCURRENCY_PAIRS_INSTRUMENT_SYMBOL_QUOTE: AccountsAccountIdTradingInstrumentsCryptocurrencyPairsInstrumentSymbolQuote,
|
|
100
|
-
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_REPLACE: AccountsAccountIdTradingReplace,
|
|
101
|
-
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_CANCEL: AccountsAccountIdTradingCancel,
|
|
102
|
-
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_CRYPTO: AccountsAccountIdTradingCrypto,
|
|
103
100
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_CRYPTO_PREVIEW: AccountsAccountIdTradingCryptoPreview,
|
|
101
|
+
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_CRYPTO: AccountsAccountIdTradingCrypto,
|
|
102
|
+
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_CANCEL: AccountsAccountIdTradingCancel,
|
|
103
|
+
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_REPLACE: AccountsAccountIdTradingReplace,
|
|
104
104
|
PathValues.SNAP_TRADE_PARTNERS: SnapTradePartners,
|
|
105
105
|
PathValues.ACCOUNTS_ACCOUNT_ID_SYMBOLS: AccountsAccountIdSymbols,
|
|
106
106
|
PathValues.BROKERAGES: Brokerages,
|
|
@@ -156,10 +156,10 @@ path_to_api = PathToApi(
|
|
|
156
156
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_OPTIONS: AccountsAccountIdTradingOptions,
|
|
157
157
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_INSTRUMENTS_CRYPTOCURRENCY_PAIRS: AccountsAccountIdTradingInstrumentsCryptocurrencyPairs,
|
|
158
158
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_INSTRUMENTS_CRYPTOCURRENCY_PAIRS_INSTRUMENT_SYMBOL_QUOTE: AccountsAccountIdTradingInstrumentsCryptocurrencyPairsInstrumentSymbolQuote,
|
|
159
|
-
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_REPLACE: AccountsAccountIdTradingReplace,
|
|
160
|
-
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_CANCEL: AccountsAccountIdTradingCancel,
|
|
161
|
-
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_CRYPTO: AccountsAccountIdTradingCrypto,
|
|
162
159
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_CRYPTO_PREVIEW: AccountsAccountIdTradingCryptoPreview,
|
|
160
|
+
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_CRYPTO: AccountsAccountIdTradingCrypto,
|
|
161
|
+
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_CANCEL: AccountsAccountIdTradingCancel,
|
|
162
|
+
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_REPLACE: AccountsAccountIdTradingReplace,
|
|
163
163
|
PathValues.SNAP_TRADE_PARTNERS: SnapTradePartners,
|
|
164
164
|
PathValues.ACCOUNTS_ACCOUNT_ID_SYMBOLS: AccountsAccountIdSymbols,
|
|
165
165
|
PathValues.BROKERAGES: Brokerages,
|
|
@@ -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.122".\
|
|
442
442
|
format(env=sys.platform, pyversion=sys.version)
|
|
443
443
|
|
|
444
444
|
def get_host_settings(self):
|
|
@@ -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
|
|
@@ -44,10 +44,10 @@ class PathValues(str, enum.Enum):
|
|
|
44
44
|
ACCOUNTS_ACCOUNT_ID_TRADING_OPTIONS = "/accounts/{accountId}/trading/options"
|
|
45
45
|
ACCOUNTS_ACCOUNT_ID_TRADING_INSTRUMENTS_CRYPTOCURRENCY_PAIRS = "/accounts/{accountId}/trading/instruments/cryptocurrencyPairs"
|
|
46
46
|
ACCOUNTS_ACCOUNT_ID_TRADING_INSTRUMENTS_CRYPTOCURRENCY_PAIRS_INSTRUMENT_SYMBOL_QUOTE = "/accounts/{accountId}/trading/instruments/cryptocurrencyPairs/{instrumentSymbol}/quote"
|
|
47
|
-
ACCOUNTS_ACCOUNT_ID_TRADING_REPLACE = "/accounts/{accountId}/trading/replace"
|
|
48
|
-
ACCOUNTS_ACCOUNT_ID_TRADING_CANCEL = "/accounts/{accountId}/trading/cancel"
|
|
49
|
-
ACCOUNTS_ACCOUNT_ID_TRADING_CRYPTO = "/accounts/{accountId}/trading/crypto"
|
|
50
47
|
ACCOUNTS_ACCOUNT_ID_TRADING_CRYPTO_PREVIEW = "/accounts/{accountId}/trading/crypto/preview"
|
|
48
|
+
ACCOUNTS_ACCOUNT_ID_TRADING_CRYPTO = "/accounts/{accountId}/trading/crypto"
|
|
49
|
+
ACCOUNTS_ACCOUNT_ID_TRADING_CANCEL = "/accounts/{accountId}/trading/cancel"
|
|
50
|
+
ACCOUNTS_ACCOUNT_ID_TRADING_REPLACE = "/accounts/{accountId}/trading/replace"
|
|
51
51
|
SNAP_TRADE_PARTNERS = "/snapTrade/partners"
|
|
52
52
|
ACCOUNTS_ACCOUNT_ID_SYMBOLS = "/accounts/{accountId}/symbols"
|
|
53
53
|
BROKERAGES = "/brokerages"
|
|
@@ -287,7 +287,7 @@ class BaseApi(api_client.Api):
|
|
|
287
287
|
AsyncGeneratorResponse,
|
|
288
288
|
]:
|
|
289
289
|
"""
|
|
290
|
-
Replace
|
|
290
|
+
Replace order
|
|
291
291
|
:param skip_deserialization: If true then api_response.response will be set but
|
|
292
292
|
api_response.body and api_response.headers will not be deserialized into schema
|
|
293
293
|
class instances
|
|
@@ -433,7 +433,7 @@ class BaseApi(api_client.Api):
|
|
|
433
433
|
api_client.ApiResponseWithoutDeserialization,
|
|
434
434
|
]:
|
|
435
435
|
"""
|
|
436
|
-
Replace
|
|
436
|
+
Replace order
|
|
437
437
|
:param skip_deserialization: If true then api_response.response will be set but
|
|
438
438
|
api_response.body and api_response.headers will not be deserialized into schema
|
|
439
439
|
class instances
|
|
@@ -274,7 +274,7 @@ class BaseApi(api_client.Api):
|
|
|
274
274
|
AsyncGeneratorResponse,
|
|
275
275
|
]:
|
|
276
276
|
"""
|
|
277
|
-
Replace
|
|
277
|
+
Replace order
|
|
278
278
|
:param skip_deserialization: If true then api_response.response will be set but
|
|
279
279
|
api_response.body and api_response.headers will not be deserialized into schema
|
|
280
280
|
class instances
|
|
@@ -420,7 +420,7 @@ class BaseApi(api_client.Api):
|
|
|
420
420
|
api_client.ApiResponseWithoutDeserialization,
|
|
421
421
|
]:
|
|
422
422
|
"""
|
|
423
|
-
Replace
|
|
423
|
+
Replace order
|
|
424
424
|
:param skip_deserialization: If true then api_response.response will be set but
|
|
425
425
|
api_response.body and api_response.headers will not be deserialized into schema
|
|
426
426
|
class instances
|
|
@@ -262,7 +262,7 @@ class BaseApi(api_client.Api):
|
|
|
262
262
|
AsyncGeneratorResponse,
|
|
263
263
|
]:
|
|
264
264
|
"""
|
|
265
|
-
Place
|
|
265
|
+
Place order
|
|
266
266
|
:param skip_deserialization: If true then api_response.response will be set but
|
|
267
267
|
api_response.body and api_response.headers will not be deserialized into schema
|
|
268
268
|
class instances
|
|
@@ -393,7 +393,7 @@ class BaseApi(api_client.Api):
|
|
|
393
393
|
api_client.ApiResponseWithoutDeserialization,
|
|
394
394
|
]:
|
|
395
395
|
"""
|
|
396
|
-
Place
|
|
396
|
+
Place order
|
|
397
397
|
:param skip_deserialization: If true then api_response.response will be set but
|
|
398
398
|
api_response.body and api_response.headers will not be deserialized into schema
|
|
399
399
|
class instances
|
|
@@ -249,7 +249,7 @@ class BaseApi(api_client.Api):
|
|
|
249
249
|
AsyncGeneratorResponse,
|
|
250
250
|
]:
|
|
251
251
|
"""
|
|
252
|
-
Place
|
|
252
|
+
Place order
|
|
253
253
|
:param skip_deserialization: If true then api_response.response will be set but
|
|
254
254
|
api_response.body and api_response.headers will not be deserialized into schema
|
|
255
255
|
class instances
|
|
@@ -380,7 +380,7 @@ class BaseApi(api_client.Api):
|
|
|
380
380
|
api_client.ApiResponseWithoutDeserialization,
|
|
381
381
|
]:
|
|
382
382
|
"""
|
|
383
|
-
Place
|
|
383
|
+
Place order
|
|
384
384
|
:param skip_deserialization: If true then api_response.response will be set but
|
|
385
385
|
api_response.body and api_response.headers will not be deserialized into schema
|
|
386
386
|
class instances
|
|
@@ -15,6 +15,7 @@ import typing
|
|
|
15
15
|
from enum import Enum
|
|
16
16
|
from typing_extensions import TypedDict, Literal, TYPE_CHECKING
|
|
17
17
|
|
|
18
|
+
from snaptrade_client.type.currency import Currency
|
|
18
19
|
from snaptrade_client.type.position_symbol import PositionSymbol
|
|
19
20
|
|
|
20
21
|
class RequiredPosition(TypedDict):
|
|
@@ -39,5 +40,8 @@ class OptionalPosition(TypedDict, total=False):
|
|
|
39
40
|
# Deprecated, use the `units` field for both fractional and integer units going forward
|
|
40
41
|
fractional_units: typing.Optional[typing.Union[int, float]]
|
|
41
42
|
|
|
43
|
+
# The 'position currency' (`price` and `average_purchase_price`). This currency can potentially be different from the 'listing currency' of the security. The 'listing currency' is what's quoted on the listing exchange, while the 'position currency' is what the brokerage uses to hold and value your position.
|
|
44
|
+
currency: Currency
|
|
45
|
+
|
|
42
46
|
class Position(RequiredPosition, OptionalPosition):
|
|
43
47
|
pass
|
{snaptrade_python_sdk-11.0.120.dist-info → snaptrade_python_sdk-11.0.122.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: snaptrade-python-sdk
|
|
3
|
-
Version: 11.0.
|
|
3
|
+
Version: 11.0.122
|
|
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
|
-
[](https://pypi.org/project/snaptrade-python-sdk/11.0.122)
|
|
34
34
|
[](https://github.com/passiv/snaptrade-sdks/tree/master/sdks/python#readme)
|
|
35
35
|
[](https://snaptrade.com/)
|
|
36
36
|
|
|
@@ -111,7 +111,7 @@ Python >=3.8
|
|
|
111
111
|
## Installation<a id="installation"></a>
|
|
112
112
|
|
|
113
113
|
```sh
|
|
114
|
-
pip install snaptrade-python-sdk==11.0.
|
|
114
|
+
pip install snaptrade-python-sdk==11.0.122
|
|
115
115
|
```
|
|
116
116
|
|
|
117
117
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
snaptrade_client/__init__.py,sha256=
|
|
2
|
-
snaptrade_client/api_client.py,sha256=
|
|
1
|
+
snaptrade_client/__init__.py,sha256=zapGH4cgzNe9SdvA9JKbjq6zxcw8Zc2E97pv4ZFlbGM,820
|
|
2
|
+
snaptrade_client/api_client.py,sha256=0M67c8P2zzuwGSPUu1he9JbE0d0drORpFlGgd0lU4uY,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=
|
|
5
|
+
snaptrade_client/apis/path_to_api.py,sha256=HwCExstG1DfCaKXCcDNrjaYe-4IRJFundBc6JCevMMA,13190
|
|
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
|
|
@@ -79,7 +79,7 @@ snaptrade_client/apis/tags/transactions_and_reporting_api_generated.py,sha256=Tw
|
|
|
79
79
|
snaptrade_client/client.py,sha256=goDwWRv9909OPXDnGGYst_mr53bg6RUs4PwIvnrl_kE,2116
|
|
80
80
|
snaptrade_client/client.pyi,sha256=goDwWRv9909OPXDnGGYst_mr53bg6RUs4PwIvnrl_kE,2116
|
|
81
81
|
snaptrade_client/client_custom.py,sha256=Jx9ulCzelMFlESjzVFQSjBlYcH4dWxSJJWZDMPLyetM,745
|
|
82
|
-
snaptrade_client/configuration.py,sha256=
|
|
82
|
+
snaptrade_client/configuration.py,sha256=ufraUBfcreECCXGriuL4IGDuHzgNH_NVRQ7YIGchwQU,19262
|
|
83
83
|
snaptrade_client/exceptions.py,sha256=X0apI_sgQpGpa-qIqPUClReCdHAxeSuA6GW0YH_RsWg,7771
|
|
84
84
|
snaptrade_client/exceptions_base.py,sha256=LAQkaC5C61-SdBLfyMjb0K7AYJkWVuLmg2uCvHa71FM,2274
|
|
85
85
|
snaptrade_client/model/__init__.py,sha256=ayi2MIzcf0eAIsY13ToiNplV9tW-pMBFrC0I9yckGM8,350
|
|
@@ -325,8 +325,8 @@ snaptrade_client/model/performance_custom_bad_tickers.py,sha256=Bsr6upKbMwdnN7Sy
|
|
|
325
325
|
snaptrade_client/model/performance_custom_bad_tickers.pyi,sha256=Bsr6upKbMwdnN7SyfjxrLDlqUTizgUaywXggDRjMths,1870
|
|
326
326
|
snaptrade_client/model/portfolio_group_id.py,sha256=5RE_TEWeQAZeHqctwrMSqt8pCtgph_t9uJQKVAS7Ed0,607
|
|
327
327
|
snaptrade_client/model/portfolio_group_id.pyi,sha256=5RE_TEWeQAZeHqctwrMSqt8pCtgph_t9uJQKVAS7Ed0,607
|
|
328
|
-
snaptrade_client/model/position.py,sha256=
|
|
329
|
-
snaptrade_client/model/position.pyi,sha256=
|
|
328
|
+
snaptrade_client/model/position.py,sha256=m4VVANpDux1W6sAUGPPHsGbJFiE5AlqnAjWvUhgBB-s,11542
|
|
329
|
+
snaptrade_client/model/position.pyi,sha256=m4VVANpDux1W6sAUGPPHsGbJFiE5AlqnAjWvUhgBB-s,11542
|
|
330
330
|
snaptrade_client/model/position_symbol.py,sha256=kopDWLHnN4pnCTlrDz9dMAeQm2s6E8C-AG5ESO7uCPU,6509
|
|
331
331
|
snaptrade_client/model/position_symbol.pyi,sha256=kopDWLHnN4pnCTlrDz9dMAeQm2s6E8C-AG5ESO7uCPU,6509
|
|
332
332
|
snaptrade_client/model/price.py,sha256=Se7jPRmTBfPyAMztvI-fBc6fNZaEHENFFY6xgqz6Gkg,1120
|
|
@@ -425,7 +425,7 @@ snaptrade_client/model/validated_trade_body.py,sha256=NkTel1ulgSjBd6K7vur6puEbfr
|
|
|
425
425
|
snaptrade_client/model/validated_trade_body.pyi,sha256=NkTel1ulgSjBd6K7vur6puEbfrg3u1vdmtUKArOu8ws,3085
|
|
426
426
|
snaptrade_client/models/__init__.py,sha256=nEO5bHCM19h-AQp0rl6XNHrTZ4Aw4ffqVOPRYOPOr_I,13312
|
|
427
427
|
snaptrade_client/operation_parameter_map.py,sha256=xHRI_s-1z4I7jbPy5zLYHZSlOiw2eYs1xVEb61juiGw,19339
|
|
428
|
-
snaptrade_client/paths/__init__.py,sha256=
|
|
428
|
+
snaptrade_client/paths/__init__.py,sha256=RkrwayYs7ExQyON-a4r6mopR2dJyFRI6_tUoiI85MsI,3789
|
|
429
429
|
snaptrade_client/paths/accounts/__init__.py,sha256=_Bqi6B13A-kgd0AOpqmcE1vTxJDfoz-r3Hwf-AmwW6A,307
|
|
430
430
|
snaptrade_client/paths/accounts/get.py,sha256=MDE_4VCylBroYDkMQe9II1qCGf6gTTDGCShFyGLXf00,16463
|
|
431
431
|
snaptrade_client/paths/accounts/get.pyi,sha256=gna7qIU-95WqOFl6qTsP18ZY7SKi9CYEBAbARPAPPF4,16261
|
|
@@ -501,8 +501,8 @@ snaptrade_client/paths/accounts_account_id_trading_options/__init__.py,sha256=W4
|
|
|
501
501
|
snaptrade_client/paths/accounts_account_id_trading_options/post.py,sha256=LXlATF-SWj6cqOixY73JWNM0VGxCixdNBkswXRxiOfs,25355
|
|
502
502
|
snaptrade_client/paths/accounts_account_id_trading_options/post.pyi,sha256=nUHg-X1j6Oa9ZZX54SIweTKEBmgh7vIiOs_rKkUG45A,25131
|
|
503
503
|
snaptrade_client/paths/accounts_account_id_trading_replace/__init__.py,sha256=k1IliXIhslkwLvlDi42TeVY-HkZ8VO-9vcTsYEIpcyc,361
|
|
504
|
-
snaptrade_client/paths/accounts_account_id_trading_replace/post.py,sha256=
|
|
505
|
-
snaptrade_client/paths/accounts_account_id_trading_replace/post.pyi,sha256=
|
|
504
|
+
snaptrade_client/paths/accounts_account_id_trading_replace/post.py,sha256=6ae5uz3eI0vPvG5RDy9dwew2lhjHuesIswWzAOCXmvs,27269
|
|
505
|
+
snaptrade_client/paths/accounts_account_id_trading_replace/post.pyi,sha256=BKyk-zuarOS7R-PSJuMGuK-K_9oUtuqy5S0pVJ4XdJ4,27015
|
|
506
506
|
snaptrade_client/paths/activities/__init__.py,sha256=eRdkddwyc4GOcQQd5YCIn3RK74b8xxVTCJ--uTCpDUo,311
|
|
507
507
|
snaptrade_client/paths/activities/get.py,sha256=cuCHK_FPuIbYw9wI7MTCIYZnKKWE6sqZbEBXp74MzKE,21979
|
|
508
508
|
snaptrade_client/paths/activities/get.pyi,sha256=_fc__LqtH6T-tEbPOdyn95NZKHDQ_EO_m-0xDzpugiE,21777
|
|
@@ -587,8 +587,8 @@ snaptrade_client/paths/trade_impact/__init__.py,sha256=Ahc5LzJcfLoux_9jiEMVkF5c-
|
|
|
587
587
|
snaptrade_client/paths/trade_impact/post.py,sha256=gycxVhNtjzsgEHaPfTruKOSufJuH5jAbwYP4YsTNaW0,25430
|
|
588
588
|
snaptrade_client/paths/trade_impact/post.pyi,sha256=-um0creYorDD-UH85zUbPnONXy9ZphqZEmIakUpdJCs,25176
|
|
589
589
|
snaptrade_client/paths/trade_place/__init__.py,sha256=83mA3Q0syyXA7ghAZOOJMQumSWVhvpkP3etJxeLmZZY,313
|
|
590
|
-
snaptrade_client/paths/trade_place/post.py,sha256=
|
|
591
|
-
snaptrade_client/paths/trade_place/post.pyi,sha256=
|
|
590
|
+
snaptrade_client/paths/trade_place/post.py,sha256=5R7MtNV1Jn6H_3lbpR_fucOui9ExQCmfwz_HJf53hqA,26758
|
|
591
|
+
snaptrade_client/paths/trade_place/post.pyi,sha256=xDpMZweKxcSClPF-b0Ep6_THM1QFQF5EwHLU-Atukys,26504
|
|
592
592
|
snaptrade_client/paths/trade_trade_id/__init__.py,sha256=EDXCsrx0SP8La12CshBpoPw_Ve9bBIF-EXx3FLBIDcc,319
|
|
593
593
|
snaptrade_client/paths/trade_trade_id/post.py,sha256=MU1ydQfvpuxrMmjluX887yjofWC32cm6bi6tHbCwF0k,22385
|
|
594
594
|
snaptrade_client/paths/trade_trade_id/post.pyi,sha256=bO40OO_iPO8XykRqox6CmvlNt01Cqh0ehHviaG50ZxY,22161
|
|
@@ -720,7 +720,7 @@ snaptrade_client/type/past_value.py,sha256=mMP6TYBvtwl2937LFv_G0H3S_uXNAy1LPnRlq
|
|
|
720
720
|
snaptrade_client/type/performance_custom.py,sha256=QGx0GPYVrgGYo-bLVnijaak7ZGB-ti-1HSuEbjkAMi4,2665
|
|
721
721
|
snaptrade_client/type/performance_custom_bad_tickers.py,sha256=dkXUonxrer2IAKCdZ2XJCRZmuN5Pz8QlpKLqB7Ze7I4,435
|
|
722
722
|
snaptrade_client/type/portfolio_group_id.py,sha256=5J6sEjGjzmAWd48oyxW-zUC5t0EI4Ehz_d0htMJ93X4,394
|
|
723
|
-
snaptrade_client/type/position.py,sha256=
|
|
723
|
+
snaptrade_client/type/position.py,sha256=RzIeIl0GI2ZjLpNbbvsVVFaDfE1Mx8mxd3oDpGAwQfY,2192
|
|
724
724
|
snaptrade_client/type/position_symbol.py,sha256=DyBMR4TVpC9Dljr46iI2h39LOlnk3xBtgrZ_Cpi8yck,1704
|
|
725
725
|
snaptrade_client/type/price.py,sha256=bg4ITnU07qZjLdWjYI4FhYYpGb9sVgKnzuuox5MTKy4,385
|
|
726
726
|
snaptrade_client/type/rate_of_return_object.py,sha256=tOi03aj61p009q97yx9d1q6q4VgYYLdlT0_f24dsBhg,876
|
|
@@ -771,7 +771,7 @@ snaptrade_client/type/user_secret.py,sha256=pKCVhqf1rROHwa6tvoyA5OAKXCBAmNDvIQCf
|
|
|
771
771
|
snaptrade_client/type/validated_trade_body.py,sha256=ZIPBQWii_a-9zHaBCJ6bQtmL1_I7AG0zwuvkY-ZQ6R4,890
|
|
772
772
|
snaptrade_client/type_util.py,sha256=JIrMYgJzd4IJ8Ne2vqcahlPA9dVmphL9sn8gwccCB4Y,563
|
|
773
773
|
snaptrade_client/validation_metadata.py,sha256=VTN5y-NudHXok1X468J4PnGze_tGEAcs1v3gsXmcrb0,3172
|
|
774
|
-
snaptrade_python_sdk-11.0.
|
|
775
|
-
snaptrade_python_sdk-11.0.
|
|
776
|
-
snaptrade_python_sdk-11.0.
|
|
777
|
-
snaptrade_python_sdk-11.0.
|
|
774
|
+
snaptrade_python_sdk-11.0.122.dist-info/LICENSE,sha256=W_1kcxEzOnZXIYJ1GVUipbmUu6dNLt-Pc-OI55h3k-A,1081
|
|
775
|
+
snaptrade_python_sdk-11.0.122.dist-info/METADATA,sha256=z9mq5udkPpmX9TlJAUA_F8aTfmd4V4HaqF5aFMspztg,95898
|
|
776
|
+
snaptrade_python_sdk-11.0.122.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
777
|
+
snaptrade_python_sdk-11.0.122.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|