snaptrade-python-sdk 11.0.109__py3-none-any.whl → 11.0.110__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 -3
- snaptrade_client/apis/tag_to_api.py +3 -0
- snaptrade_client/apis/tags/__init__.py +1 -0
- snaptrade_client/apis/tags/crypto_trading_api.py +6 -0
- snaptrade_client/apis/tags/crypto_trading_api_generated.py +21 -0
- snaptrade_client/apis/tags/trading_api_generated.py +0 -2
- snaptrade_client/client.py +2 -0
- snaptrade_client/client.pyi +2 -0
- snaptrade_client/configuration.py +1 -1
- snaptrade_client/operation_parameter_map.py +19 -19
- snaptrade_client/paths/__init__.py +1 -1
- snaptrade_client/paths/accounts_account_id_trading_options/post.py +2 -2
- snaptrade_client/paths/accounts_account_id_trading_options/post.pyi +2 -2
- {snaptrade_python_sdk-11.0.109.dist-info → snaptrade_python_sdk-11.0.110.dist-info}/METADATA +154 -115
- {snaptrade_python_sdk-11.0.109.dist-info → snaptrade_python_sdk-11.0.110.dist-info}/RECORD +19 -17
- {snaptrade_python_sdk-11.0.109.dist-info → snaptrade_python_sdk-11.0.110.dist-info}/LICENSE +0 -0
- {snaptrade_python_sdk-11.0.109.dist-info → snaptrade_python_sdk-11.0.110.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.110/python'
|
|
1159
1159
|
|
|
1160
1160
|
def __enter__(self):
|
|
1161
1161
|
return self
|
|
@@ -40,7 +40,6 @@ from snaptrade_client.apis.paths.accounts_account_id_trading_simple_brokerage_or
|
|
|
40
40
|
from snaptrade_client.apis.paths.accounts_account_id_trading_simple import AccountsAccountIdTradingSimple
|
|
41
41
|
from snaptrade_client.apis.paths.accounts_account_id_trading_simple_brokerage_order_id_cancel import AccountsAccountIdTradingSimpleBrokerageOrderIdCancel
|
|
42
42
|
from snaptrade_client.apis.paths.accounts_account_id_trading_simple_preview import AccountsAccountIdTradingSimplePreview
|
|
43
|
-
from snaptrade_client.apis.paths.accounts_account_id_trading_instruments_cryptocurrency_pairs import AccountsAccountIdTradingInstrumentsCryptocurrencyPairs
|
|
44
43
|
from snaptrade_client.apis.paths.accounts_account_id_trading_instruments_cryptocurrency_pairs_instrument_symbol_quote import AccountsAccountIdTradingInstrumentsCryptocurrencyPairsInstrumentSymbolQuote
|
|
45
44
|
from snaptrade_client.apis.paths.accounts_account_id_trading_options import AccountsAccountIdTradingOptions
|
|
46
45
|
from snaptrade_client.apis.paths.snap_trade_partners import SnapTradePartners
|
|
@@ -54,6 +53,7 @@ from snaptrade_client.apis.paths.exchanges import Exchanges
|
|
|
54
53
|
from snaptrade_client.apis.paths.security_types import SecurityTypes
|
|
55
54
|
from snaptrade_client.apis.paths.symbols import Symbols
|
|
56
55
|
from snaptrade_client.apis.paths.symbols_query import SymbolsQuery
|
|
56
|
+
from snaptrade_client.apis.paths.accounts_account_id_trading_instruments_cryptocurrency_pairs import AccountsAccountIdTradingInstrumentsCryptocurrencyPairs
|
|
57
57
|
|
|
58
58
|
PathToApi = typing_extensions.TypedDict(
|
|
59
59
|
'PathToApi',
|
|
@@ -97,7 +97,6 @@ PathToApi = typing_extensions.TypedDict(
|
|
|
97
97
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_SIMPLE: AccountsAccountIdTradingSimple,
|
|
98
98
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_SIMPLE_BROKERAGE_ORDER_ID_CANCEL: AccountsAccountIdTradingSimpleBrokerageOrderIdCancel,
|
|
99
99
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_SIMPLE_PREVIEW: AccountsAccountIdTradingSimplePreview,
|
|
100
|
-
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_INSTRUMENTS_CRYPTOCURRENCY_PAIRS: AccountsAccountIdTradingInstrumentsCryptocurrencyPairs,
|
|
101
100
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_INSTRUMENTS_CRYPTOCURRENCY_PAIRS_INSTRUMENT_SYMBOL_QUOTE: AccountsAccountIdTradingInstrumentsCryptocurrencyPairsInstrumentSymbolQuote,
|
|
102
101
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_OPTIONS: AccountsAccountIdTradingOptions,
|
|
103
102
|
PathValues.SNAP_TRADE_PARTNERS: SnapTradePartners,
|
|
@@ -111,6 +110,7 @@ PathToApi = typing_extensions.TypedDict(
|
|
|
111
110
|
PathValues.SECURITY_TYPES: SecurityTypes,
|
|
112
111
|
PathValues.SYMBOLS: Symbols,
|
|
113
112
|
PathValues.SYMBOLS_QUERY: SymbolsQuery,
|
|
113
|
+
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_INSTRUMENTS_CRYPTOCURRENCY_PAIRS: AccountsAccountIdTradingInstrumentsCryptocurrencyPairs,
|
|
114
114
|
}
|
|
115
115
|
)
|
|
116
116
|
|
|
@@ -155,7 +155,6 @@ path_to_api = PathToApi(
|
|
|
155
155
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_SIMPLE: AccountsAccountIdTradingSimple,
|
|
156
156
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_SIMPLE_BROKERAGE_ORDER_ID_CANCEL: AccountsAccountIdTradingSimpleBrokerageOrderIdCancel,
|
|
157
157
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_SIMPLE_PREVIEW: AccountsAccountIdTradingSimplePreview,
|
|
158
|
-
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_INSTRUMENTS_CRYPTOCURRENCY_PAIRS: AccountsAccountIdTradingInstrumentsCryptocurrencyPairs,
|
|
159
158
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_INSTRUMENTS_CRYPTOCURRENCY_PAIRS_INSTRUMENT_SYMBOL_QUOTE: AccountsAccountIdTradingInstrumentsCryptocurrencyPairsInstrumentSymbolQuote,
|
|
160
159
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_OPTIONS: AccountsAccountIdTradingOptions,
|
|
161
160
|
PathValues.SNAP_TRADE_PARTNERS: SnapTradePartners,
|
|
@@ -169,5 +168,6 @@ path_to_api = PathToApi(
|
|
|
169
168
|
PathValues.SECURITY_TYPES: SecurityTypes,
|
|
170
169
|
PathValues.SYMBOLS: Symbols,
|
|
171
170
|
PathValues.SYMBOLS_QUERY: SymbolsQuery,
|
|
171
|
+
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_INSTRUMENTS_CRYPTOCURRENCY_PAIRS: AccountsAccountIdTradingInstrumentsCryptocurrencyPairs,
|
|
172
172
|
}
|
|
173
173
|
)
|
|
@@ -8,6 +8,7 @@ from snaptrade_client.apis.tags.account_information_api import AccountInformatio
|
|
|
8
8
|
from snaptrade_client.apis.tags.options_api import OptionsApi
|
|
9
9
|
from snaptrade_client.apis.tags.transactions_and_reporting_api import TransactionsAndReportingApi
|
|
10
10
|
from snaptrade_client.apis.tags.trading_api import TradingApi
|
|
11
|
+
from snaptrade_client.apis.tags.crypto_trading_api import CryptoTradingApi
|
|
11
12
|
from snaptrade_client.apis.tags.reference_data_api import ReferenceDataApi
|
|
12
13
|
|
|
13
14
|
TagToApi = typing_extensions.TypedDict(
|
|
@@ -20,6 +21,7 @@ TagToApi = typing_extensions.TypedDict(
|
|
|
20
21
|
TagValues.OPTIONS: OptionsApi,
|
|
21
22
|
TagValues.TRANSACTIONS_AND_REPORTING: TransactionsAndReportingApi,
|
|
22
23
|
TagValues.TRADING: TradingApi,
|
|
24
|
+
TagValues.CRYPTO_TRADING: CryptoTradingApi,
|
|
23
25
|
TagValues.REFERENCE_DATA: ReferenceDataApi,
|
|
24
26
|
}
|
|
25
27
|
)
|
|
@@ -33,6 +35,7 @@ tag_to_api = TagToApi(
|
|
|
33
35
|
TagValues.OPTIONS: OptionsApi,
|
|
34
36
|
TagValues.TRANSACTIONS_AND_REPORTING: TransactionsAndReportingApi,
|
|
35
37
|
TagValues.TRADING: TradingApi,
|
|
38
|
+
TagValues.CRYPTO_TRADING: CryptoTradingApi,
|
|
36
39
|
TagValues.REFERENCE_DATA: ReferenceDataApi,
|
|
37
40
|
}
|
|
38
41
|
)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
"""
|
|
3
|
+
SnapTrade
|
|
4
|
+
|
|
5
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
6
|
+
|
|
7
|
+
The version of the OpenAPI document: 1.0.0
|
|
8
|
+
Contact: api@snaptrade.com
|
|
9
|
+
Created by: https://snaptrade.com/
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
from snaptrade_client.paths.accounts_account_id_trading_instruments_cryptocurrency_pairs.get import SearchCryptocurrencyPairInstruments
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class CryptoTradingApiGenerated(
|
|
16
|
+
SearchCryptocurrencyPairInstruments,
|
|
17
|
+
):
|
|
18
|
+
"""NOTE:
|
|
19
|
+
This class is auto generated by Konfig (https://konfigthis.com)
|
|
20
|
+
"""
|
|
21
|
+
pass
|
|
@@ -21,7 +21,6 @@ from snaptrade_client.paths.trade_trade_id.post import PlaceOrder
|
|
|
21
21
|
from snaptrade_client.paths.accounts_account_id_trading_simple.post import PlaceSimpleOrder
|
|
22
22
|
from snaptrade_client.paths.accounts_account_id_trading_simple_preview.post import PreviewSimpleOrder
|
|
23
23
|
from snaptrade_client.paths.accounts_account_id_trading_simple_brokerage_order_id_replace.patch import ReplaceOrder
|
|
24
|
-
from snaptrade_client.paths.accounts_account_id_trading_instruments_cryptocurrency_pairs.get import SearchCryptocurrencyPairInstruments
|
|
25
24
|
|
|
26
25
|
|
|
27
26
|
class TradingApiGenerated(
|
|
@@ -37,7 +36,6 @@ class TradingApiGenerated(
|
|
|
37
36
|
PlaceSimpleOrder,
|
|
38
37
|
PreviewSimpleOrder,
|
|
39
38
|
ReplaceOrder,
|
|
40
|
-
SearchCryptocurrencyPairInstruments,
|
|
41
39
|
):
|
|
42
40
|
"""NOTE:
|
|
43
41
|
This class is auto generated by Konfig (https://konfigthis.com)
|
snaptrade_client/client.py
CHANGED
|
@@ -20,6 +20,7 @@ from snaptrade_client.apis.tags.account_information_api import AccountInformatio
|
|
|
20
20
|
from snaptrade_client.apis.tags.api_status_api import APIStatusApi
|
|
21
21
|
from snaptrade_client.apis.tags.authentication_api import AuthenticationApi
|
|
22
22
|
from snaptrade_client.apis.tags.connections_api import ConnectionsApi
|
|
23
|
+
from snaptrade_client.apis.tags.crypto_trading_api import CryptoTradingApi
|
|
23
24
|
from snaptrade_client.apis.tags.options_api import OptionsApi
|
|
24
25
|
from snaptrade_client.apis.tags.reference_data_api import ReferenceDataApi
|
|
25
26
|
from snaptrade_client.apis.tags.trading_api import TradingApi
|
|
@@ -40,6 +41,7 @@ class SnapTrade(ClientCustom):
|
|
|
40
41
|
self.api_status: APIStatusApi = APIStatusApi(api_client)
|
|
41
42
|
self.authentication: AuthenticationApi = AuthenticationApi(api_client)
|
|
42
43
|
self.connections: ConnectionsApi = ConnectionsApi(api_client)
|
|
44
|
+
self.crypto_trading: CryptoTradingApi = CryptoTradingApi(api_client)
|
|
43
45
|
self.options: OptionsApi = OptionsApi(api_client)
|
|
44
46
|
self.reference_data: ReferenceDataApi = ReferenceDataApi(api_client)
|
|
45
47
|
self.trading: TradingApi = TradingApi(api_client)
|
snaptrade_client/client.pyi
CHANGED
|
@@ -20,6 +20,7 @@ from snaptrade_client.apis.tags.account_information_api import AccountInformatio
|
|
|
20
20
|
from snaptrade_client.apis.tags.api_status_api import APIStatusApi
|
|
21
21
|
from snaptrade_client.apis.tags.authentication_api import AuthenticationApi
|
|
22
22
|
from snaptrade_client.apis.tags.connections_api import ConnectionsApi
|
|
23
|
+
from snaptrade_client.apis.tags.crypto_trading_api import CryptoTradingApi
|
|
23
24
|
from snaptrade_client.apis.tags.options_api import OptionsApi
|
|
24
25
|
from snaptrade_client.apis.tags.reference_data_api import ReferenceDataApi
|
|
25
26
|
from snaptrade_client.apis.tags.trading_api import TradingApi
|
|
@@ -40,6 +41,7 @@ class SnapTrade(ClientCustom):
|
|
|
40
41
|
self.api_status: APIStatusApi = APIStatusApi(api_client)
|
|
41
42
|
self.authentication: AuthenticationApi = AuthenticationApi(api_client)
|
|
42
43
|
self.connections: ConnectionsApi = ConnectionsApi(api_client)
|
|
44
|
+
self.crypto_trading: CryptoTradingApi = CryptoTradingApi(api_client)
|
|
43
45
|
self.options: OptionsApi = OptionsApi(api_client)
|
|
44
46
|
self.reference_data: ReferenceDataApi = ReferenceDataApi(api_client)
|
|
45
47
|
self.trading: TradingApi = TradingApi(api_client)
|
|
@@ -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.110".\
|
|
442
442
|
format(env=sys.platform, pyversion=sys.version)
|
|
443
443
|
|
|
444
444
|
def get_host_settings(self):
|
|
@@ -311,6 +311,25 @@ operation_parameter_map = {
|
|
|
311
311
|
},
|
|
312
312
|
]
|
|
313
313
|
},
|
|
314
|
+
'/accounts/{accountId}/trading/instruments/cryptocurrencyPairs-GET': {
|
|
315
|
+
'parameters': [
|
|
316
|
+
{
|
|
317
|
+
'name': 'userId'
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
'name': 'userSecret'
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
'name': 'accountId'
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
'name': 'base'
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
'name': 'quote'
|
|
330
|
+
},
|
|
331
|
+
]
|
|
332
|
+
},
|
|
314
333
|
'/accounts/{accountId}/optionStrategy-POST': {
|
|
315
334
|
'parameters': [
|
|
316
335
|
{
|
|
@@ -822,25 +841,6 @@ operation_parameter_map = {
|
|
|
822
841
|
},
|
|
823
842
|
]
|
|
824
843
|
},
|
|
825
|
-
'/accounts/{accountId}/trading/instruments/cryptocurrencyPairs-GET': {
|
|
826
|
-
'parameters': [
|
|
827
|
-
{
|
|
828
|
-
'name': 'userId'
|
|
829
|
-
},
|
|
830
|
-
{
|
|
831
|
-
'name': 'userSecret'
|
|
832
|
-
},
|
|
833
|
-
{
|
|
834
|
-
'name': 'accountId'
|
|
835
|
-
},
|
|
836
|
-
{
|
|
837
|
-
'name': 'base'
|
|
838
|
-
},
|
|
839
|
-
{
|
|
840
|
-
'name': 'quote'
|
|
841
|
-
},
|
|
842
|
-
]
|
|
843
|
-
},
|
|
844
844
|
'/activities-GET': {
|
|
845
845
|
'parameters': [
|
|
846
846
|
{
|
|
@@ -45,7 +45,6 @@ class PathValues(str, enum.Enum):
|
|
|
45
45
|
ACCOUNTS_ACCOUNT_ID_TRADING_SIMPLE = "/accounts/{accountId}/trading/simple"
|
|
46
46
|
ACCOUNTS_ACCOUNT_ID_TRADING_SIMPLE_BROKERAGE_ORDER_ID_CANCEL = "/accounts/{accountId}/trading/simple/{brokerageOrderId}/cancel"
|
|
47
47
|
ACCOUNTS_ACCOUNT_ID_TRADING_SIMPLE_PREVIEW = "/accounts/{accountId}/trading/simple/preview"
|
|
48
|
-
ACCOUNTS_ACCOUNT_ID_TRADING_INSTRUMENTS_CRYPTOCURRENCY_PAIRS = "/accounts/{accountId}/trading/instruments/cryptocurrencyPairs"
|
|
49
48
|
ACCOUNTS_ACCOUNT_ID_TRADING_INSTRUMENTS_CRYPTOCURRENCY_PAIRS_INSTRUMENT_SYMBOL_QUOTE = "/accounts/{accountId}/trading/instruments/cryptocurrencyPairs/{instrumentSymbol}/quote"
|
|
50
49
|
ACCOUNTS_ACCOUNT_ID_TRADING_OPTIONS = "/accounts/{accountId}/trading/options"
|
|
51
50
|
SNAP_TRADE_PARTNERS = "/snapTrade/partners"
|
|
@@ -59,3 +58,4 @@ class PathValues(str, enum.Enum):
|
|
|
59
58
|
SECURITY_TYPES = "/securityTypes"
|
|
60
59
|
SYMBOLS = "/symbols"
|
|
61
60
|
SYMBOLS_QUERY = "/symbols/{query}"
|
|
61
|
+
ACCOUNTS_ACCOUNT_ID_TRADING_INSTRUMENTS_CRYPTOCURRENCY_PAIRS = "/accounts/{accountId}/trading/instruments/cryptocurrencyPairs"
|
|
@@ -565,7 +565,7 @@ class PlaceMlegOrder(BaseApi):
|
|
|
565
565
|
ApiResponseFor200,
|
|
566
566
|
api_client.ApiResponseWithoutDeserialization,
|
|
567
567
|
]:
|
|
568
|
-
""" Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
|
568
|
+
""" Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support """
|
|
569
569
|
args = self._place_mleg_order_mapped_args(
|
|
570
570
|
body=body,
|
|
571
571
|
query_params=query_params,
|
|
@@ -648,7 +648,7 @@ class ApiForpost(BaseApi):
|
|
|
648
648
|
ApiResponseFor200,
|
|
649
649
|
api_client.ApiResponseWithoutDeserialization,
|
|
650
650
|
]:
|
|
651
|
-
""" Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
|
651
|
+
""" Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support """
|
|
652
652
|
args = self._place_mleg_order_mapped_args(
|
|
653
653
|
body=body,
|
|
654
654
|
query_params=query_params,
|
|
@@ -553,7 +553,7 @@ class PlaceMlegOrder(BaseApi):
|
|
|
553
553
|
ApiResponseFor200,
|
|
554
554
|
api_client.ApiResponseWithoutDeserialization,
|
|
555
555
|
]:
|
|
556
|
-
""" Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
|
556
|
+
""" Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support """
|
|
557
557
|
args = self._place_mleg_order_mapped_args(
|
|
558
558
|
body=body,
|
|
559
559
|
query_params=query_params,
|
|
@@ -636,7 +636,7 @@ class ApiForpost(BaseApi):
|
|
|
636
636
|
ApiResponseFor200,
|
|
637
637
|
api_client.ApiResponseWithoutDeserialization,
|
|
638
638
|
]:
|
|
639
|
-
""" Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
|
639
|
+
""" Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support """
|
|
640
640
|
args = self._place_mleg_order_mapped_args(
|
|
641
641
|
body=body,
|
|
642
642
|
query_params=query_params,
|
{snaptrade_python_sdk-11.0.109.dist-info → snaptrade_python_sdk-11.0.110.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.110
|
|
4
4
|
Summary: Client for SnapTrade
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: SnapTrade
|
|
@@ -17,7 +17,7 @@ Requires-Dist: certifi (>=2023.7.22)
|
|
|
17
17
|
Requires-Dist: cryptography (>=43.0.3,<44.0.0)
|
|
18
18
|
Requires-Dist: frozendict (>=2.3.4,<3.0.0)
|
|
19
19
|
Requires-Dist: python-dateutil (>=2.8.2,<3.0.0)
|
|
20
|
-
Requires-Dist: typing_extensions (
|
|
20
|
+
Requires-Dist: typing_extensions (==4.13.2)
|
|
21
21
|
Requires-Dist: urllib3 (>=1.26.18,<3.0.0)
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
23
23
|
|
|
@@ -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.110)
|
|
34
34
|
[](https://github.com/passiv/snaptrade-sdks/tree/master/sdks/python#readme)
|
|
35
35
|
[](https://snaptrade.com/)
|
|
36
36
|
|
|
@@ -69,6 +69,7 @@ Connect brokerage accounts to your app for live positions and trading
|
|
|
69
69
|
* [`snaptrade.connections.remove_brokerage_authorization`](#snaptradeconnectionsremove_brokerage_authorization)
|
|
70
70
|
* [`snaptrade.connections.return_rates`](#snaptradeconnectionsreturn_rates)
|
|
71
71
|
* [`snaptrade.connections.session_events`](#snaptradeconnectionssession_events)
|
|
72
|
+
* [`snaptrade.crypto_trading.search_cryptocurrency_pair_instruments`](#snaptradecrypto_tradingsearch_cryptocurrency_pair_instruments)
|
|
72
73
|
* [`snaptrade.options.get_option_strategy`](#snaptradeoptionsget_option_strategy)
|
|
73
74
|
* [`snaptrade.options.get_options_chain`](#snaptradeoptionsget_options_chain)
|
|
74
75
|
* [`snaptrade.options.get_options_strategy_quote`](#snaptradeoptionsget_options_strategy_quote)
|
|
@@ -97,7 +98,6 @@ Connect brokerage accounts to your app for live positions and trading
|
|
|
97
98
|
* [`snaptrade.trading.place_simple_order`](#snaptradetradingplace_simple_order)
|
|
98
99
|
* [`snaptrade.trading.preview_simple_order`](#snaptradetradingpreview_simple_order)
|
|
99
100
|
* [`snaptrade.trading.replace_order`](#snaptradetradingreplace_order)
|
|
100
|
-
* [`snaptrade.trading.search_cryptocurrency_pair_instruments`](#snaptradetradingsearch_cryptocurrency_pair_instruments)
|
|
101
101
|
* [`snaptrade.transactions_and_reporting.get_activities`](#snaptradetransactions_and_reportingget_activities)
|
|
102
102
|
* [`snaptrade.transactions_and_reporting.get_reporting_custom_range`](#snaptradetransactions_and_reportingget_reporting_custom_range)
|
|
103
103
|
|
|
@@ -110,7 +110,7 @@ Python >=3.8
|
|
|
110
110
|
## Installation<a id="installation"></a>
|
|
111
111
|
|
|
112
112
|
```sh
|
|
113
|
-
pip install snaptrade-python-sdk==11.0.
|
|
113
|
+
pip install snaptrade-python-sdk==11.0.110
|
|
114
114
|
```
|
|
115
115
|
|
|
116
116
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -160,7 +160,6 @@ deleted_response = snaptrade.authentication.delete_snap_trade_user(
|
|
|
160
160
|
query_params={"userId": user_id}
|
|
161
161
|
)
|
|
162
162
|
pprint(deleted_response.body)
|
|
163
|
-
|
|
164
163
|
```
|
|
165
164
|
|
|
166
165
|
## Async<a id="async"></a>
|
|
@@ -168,7 +167,6 @@ pprint(deleted_response.body)
|
|
|
168
167
|
`async` support is available by prepending `a` to any method.
|
|
169
168
|
|
|
170
169
|
```python
|
|
171
|
-
|
|
172
170
|
import asyncio
|
|
173
171
|
from pprint import pprint
|
|
174
172
|
from snaptrade_client import SnapTrade, ApiException
|
|
@@ -178,18 +176,21 @@ snaptrade = SnapTrade(
|
|
|
178
176
|
client_id="YOUR_CLIENT_ID",
|
|
179
177
|
)
|
|
180
178
|
|
|
179
|
+
|
|
181
180
|
async def main():
|
|
182
181
|
try:
|
|
183
182
|
# List account activities
|
|
184
|
-
get_account_activities_response =
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
183
|
+
get_account_activities_response = (
|
|
184
|
+
await snaptrade.account_information.aget_account_activities(
|
|
185
|
+
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
186
|
+
user_id="snaptrade-user-123",
|
|
187
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
188
|
+
start_date="2022-01-24",
|
|
189
|
+
end_date="2022-01-24",
|
|
190
|
+
offset=0,
|
|
191
|
+
limit=1,
|
|
192
|
+
type="BUY,SELL,DIVIDEND",
|
|
193
|
+
)
|
|
193
194
|
)
|
|
194
195
|
pprint(get_account_activities_response.body)
|
|
195
196
|
pprint(get_account_activities_response.body["data"])
|
|
@@ -198,13 +199,17 @@ async def main():
|
|
|
198
199
|
pprint(get_account_activities_response.status)
|
|
199
200
|
pprint(get_account_activities_response.round_trip_time)
|
|
200
201
|
except ApiException as e:
|
|
201
|
-
print(
|
|
202
|
+
print(
|
|
203
|
+
"Exception when calling AccountInformationApi.get_account_activities: %s\n"
|
|
204
|
+
% e
|
|
205
|
+
)
|
|
202
206
|
pprint(e.body)
|
|
203
207
|
pprint(e.headers)
|
|
204
208
|
pprint(e.status)
|
|
205
209
|
pprint(e.reason)
|
|
206
210
|
pprint(e.round_trip_time)
|
|
207
211
|
|
|
212
|
+
|
|
208
213
|
asyncio.run(main())
|
|
209
214
|
```
|
|
210
215
|
|
|
@@ -327,10 +332,12 @@ The data returned here is cached. How long the data is cached for varies by brok
|
|
|
327
332
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
328
333
|
|
|
329
334
|
```python
|
|
330
|
-
get_user_account_balance_response =
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
335
|
+
get_user_account_balance_response = (
|
|
336
|
+
snaptrade.account_information.get_user_account_balance(
|
|
337
|
+
user_id="snaptrade-user-123",
|
|
338
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
339
|
+
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
340
|
+
)
|
|
334
341
|
)
|
|
335
342
|
```
|
|
336
343
|
|
|
@@ -364,10 +371,12 @@ The data returned here is always cached and refreshed once a day. **If you need
|
|
|
364
371
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
365
372
|
|
|
366
373
|
```python
|
|
367
|
-
get_user_account_details_response =
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
374
|
+
get_user_account_details_response = (
|
|
375
|
+
snaptrade.account_information.get_user_account_details(
|
|
376
|
+
user_id="snaptrade-user-123",
|
|
377
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
378
|
+
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
379
|
+
)
|
|
371
380
|
)
|
|
372
381
|
```
|
|
373
382
|
|
|
@@ -401,12 +410,14 @@ The data returned here is cached. How long the data is cached for varies by brok
|
|
|
401
410
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
402
411
|
|
|
403
412
|
```python
|
|
404
|
-
get_user_account_orders_response =
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
413
|
+
get_user_account_orders_response = (
|
|
414
|
+
snaptrade.account_information.get_user_account_orders(
|
|
415
|
+
user_id="snaptrade-user-123",
|
|
416
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
417
|
+
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
418
|
+
state="all",
|
|
419
|
+
days=30,
|
|
420
|
+
)
|
|
410
421
|
)
|
|
411
422
|
```
|
|
412
423
|
|
|
@@ -448,10 +459,12 @@ The data returned here is cached. How long the data is cached for varies by brok
|
|
|
448
459
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
449
460
|
|
|
450
461
|
```python
|
|
451
|
-
get_user_account_positions_response =
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
462
|
+
get_user_account_positions_response = (
|
|
463
|
+
snaptrade.account_information.get_user_account_positions(
|
|
464
|
+
user_id="snaptrade-user-123",
|
|
465
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
466
|
+
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
467
|
+
)
|
|
455
468
|
)
|
|
456
469
|
```
|
|
457
470
|
|
|
@@ -487,11 +500,13 @@ By default only returns executed orders, but that can be changed by setting *onl
|
|
|
487
500
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
488
501
|
|
|
489
502
|
```python
|
|
490
|
-
get_user_account_recent_orders_response =
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
503
|
+
get_user_account_recent_orders_response = (
|
|
504
|
+
snaptrade.account_information.get_user_account_recent_orders(
|
|
505
|
+
user_id="snaptrade-user-123",
|
|
506
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
507
|
+
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
508
|
+
only_executed=True,
|
|
509
|
+
)
|
|
495
510
|
)
|
|
496
511
|
```
|
|
497
512
|
|
|
@@ -527,10 +542,12 @@ Returns a list of rate of return percents for a given account. Will include time
|
|
|
527
542
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
528
543
|
|
|
529
544
|
```python
|
|
530
|
-
get_user_account_return_rates_response =
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
545
|
+
get_user_account_return_rates_response = (
|
|
546
|
+
snaptrade.account_information.get_user_account_return_rates(
|
|
547
|
+
user_id="snaptrade-user-123",
|
|
548
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
549
|
+
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
550
|
+
)
|
|
534
551
|
)
|
|
535
552
|
```
|
|
536
553
|
|
|
@@ -839,9 +856,11 @@ Rotates the secret for a SnapTrade user. You might use this if `userSecret` is c
|
|
|
839
856
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
840
857
|
|
|
841
858
|
```python
|
|
842
|
-
reset_snap_trade_user_secret_response =
|
|
843
|
-
|
|
844
|
-
|
|
859
|
+
reset_snap_trade_user_secret_response = (
|
|
860
|
+
snaptrade.authentication.reset_snap_trade_user_secret(
|
|
861
|
+
user_id="snaptrade-user-123",
|
|
862
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
863
|
+
)
|
|
845
864
|
)
|
|
846
865
|
```
|
|
847
866
|
|
|
@@ -877,10 +896,12 @@ Returns a single connection for the specified ID.
|
|
|
877
896
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
878
897
|
|
|
879
898
|
```python
|
|
880
|
-
detail_brokerage_authorization_response =
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
899
|
+
detail_brokerage_authorization_response = (
|
|
900
|
+
snaptrade.connections.detail_brokerage_authorization(
|
|
901
|
+
authorization_id="87b24961-b51e-4db8-9226-f198f6518a89",
|
|
902
|
+
user_id="snaptrade-user-123",
|
|
903
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
904
|
+
)
|
|
884
905
|
)
|
|
885
906
|
```
|
|
886
907
|
|
|
@@ -915,10 +936,12 @@ This endpoint is available on test keys. If you would like it enabled on product
|
|
|
915
936
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
916
937
|
|
|
917
938
|
```python
|
|
918
|
-
disable_brokerage_authorization_response =
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
939
|
+
disable_brokerage_authorization_response = (
|
|
940
|
+
snaptrade.connections.disable_brokerage_authorization(
|
|
941
|
+
authorization_id="87b24961-b51e-4db8-9226-f198f6518a89",
|
|
942
|
+
user_id="snaptrade-user-123",
|
|
943
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
944
|
+
)
|
|
922
945
|
)
|
|
923
946
|
```
|
|
924
947
|
|
|
@@ -954,9 +977,11 @@ SnapTrade performs de-duping on connections for a given user. If the user has an
|
|
|
954
977
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
955
978
|
|
|
956
979
|
```python
|
|
957
|
-
list_brokerage_authorizations_response =
|
|
958
|
-
|
|
959
|
-
|
|
980
|
+
list_brokerage_authorizations_response = (
|
|
981
|
+
snaptrade.connections.list_brokerage_authorizations(
|
|
982
|
+
user_id="snaptrade-user-123",
|
|
983
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
984
|
+
)
|
|
960
985
|
)
|
|
961
986
|
```
|
|
962
987
|
|
|
@@ -989,10 +1014,12 @@ This endpoint will also trigger a transaction sync for the past day if one has n
|
|
|
989
1014
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
990
1015
|
|
|
991
1016
|
```python
|
|
992
|
-
refresh_brokerage_authorization_response =
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
1017
|
+
refresh_brokerage_authorization_response = (
|
|
1018
|
+
snaptrade.connections.refresh_brokerage_authorization(
|
|
1019
|
+
authorization_id="87b24961-b51e-4db8-9226-f198f6518a89",
|
|
1020
|
+
user_id="snaptrade-user-123",
|
|
1021
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
1022
|
+
)
|
|
996
1023
|
)
|
|
997
1024
|
```
|
|
998
1025
|
|
|
@@ -1115,6 +1142,45 @@ Optional comma separated list of session IDs used to filter the request on speci
|
|
|
1115
1142
|
|
|
1116
1143
|
---
|
|
1117
1144
|
|
|
1145
|
+
### `snaptrade.crypto_trading.search_cryptocurrency_pair_instruments`<a id="snaptradecrypto_tradingsearch_cryptocurrency_pair_instruments"></a>
|
|
1146
|
+
|
|
1147
|
+
Searches cryptocurrency pairs instruments accessible to the specified account.
|
|
1148
|
+
|
|
1149
|
+
|
|
1150
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1151
|
+
|
|
1152
|
+
```python
|
|
1153
|
+
search_cryptocurrency_pair_instruments_response = (
|
|
1154
|
+
snaptrade.crypto_trading.search_cryptocurrency_pair_instruments(
|
|
1155
|
+
user_id="snaptrade-user-123",
|
|
1156
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
1157
|
+
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
1158
|
+
base="BTC",
|
|
1159
|
+
quote="USD",
|
|
1160
|
+
)
|
|
1161
|
+
)
|
|
1162
|
+
```
|
|
1163
|
+
|
|
1164
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
|
1165
|
+
|
|
1166
|
+
##### user_id: `str`<a id="user_id-str"></a>
|
|
1167
|
+
|
|
1168
|
+
##### user_secret: `str`<a id="user_secret-str"></a>
|
|
1169
|
+
|
|
1170
|
+
##### account_id: `str`<a id="account_id-str"></a>
|
|
1171
|
+
|
|
1172
|
+
##### base: `str`<a id="base-str"></a>
|
|
1173
|
+
|
|
1174
|
+
##### quote: `str`<a id="quote-str"></a>
|
|
1175
|
+
|
|
1176
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
|
1177
|
+
|
|
1178
|
+
`/accounts/{accountId}/trading/instruments/cryptocurrencyPairs` `get`
|
|
1179
|
+
|
|
1180
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
|
1181
|
+
|
|
1182
|
+
---
|
|
1183
|
+
|
|
1118
1184
|
### `snaptrade.options.get_option_strategy`<a id="snaptradeoptionsget_option_strategy"></a>
|
|
1119
1185
|
|
|
1120
1186
|
Creates an option strategy object that will be used to place an option strategy order.
|
|
@@ -1350,8 +1416,10 @@ Returns an Exchange Rate Pair object for the specified Currency Pair.
|
|
|
1350
1416
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1351
1417
|
|
|
1352
1418
|
```python
|
|
1353
|
-
get_currency_exchange_rate_pair_response =
|
|
1354
|
-
|
|
1419
|
+
get_currency_exchange_rate_pair_response = (
|
|
1420
|
+
snaptrade.reference_data.get_currency_exchange_rate_pair(
|
|
1421
|
+
currency_pair="currencyPair_example",
|
|
1422
|
+
)
|
|
1355
1423
|
)
|
|
1356
1424
|
```
|
|
1357
1425
|
|
|
@@ -1511,8 +1579,10 @@ Returns a list of all defined Brokerage authorization Type objects.
|
|
|
1511
1579
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1512
1580
|
|
|
1513
1581
|
```python
|
|
1514
|
-
list_all_brokerage_authorization_type_response =
|
|
1515
|
-
|
|
1582
|
+
list_all_brokerage_authorization_type_response = (
|
|
1583
|
+
snaptrade.reference_data.list_all_brokerage_authorization_type(
|
|
1584
|
+
brokerage="QUESTRADE,ALPACA",
|
|
1585
|
+
)
|
|
1516
1586
|
)
|
|
1517
1587
|
```
|
|
1518
1588
|
|
|
@@ -1585,7 +1655,9 @@ Returns a list of all Exchange Rate Pairs for all supported Currencies.
|
|
|
1585
1655
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1586
1656
|
|
|
1587
1657
|
```python
|
|
1588
|
-
list_all_currencies_rates_response =
|
|
1658
|
+
list_all_currencies_rates_response = (
|
|
1659
|
+
snaptrade.reference_data.list_all_currencies_rates()
|
|
1660
|
+
)
|
|
1589
1661
|
```
|
|
1590
1662
|
|
|
1591
1663
|
#### 🔄 Return<a id="🔄-return"></a>
|
|
@@ -1610,11 +1682,13 @@ The search results are further limited to the symbols supported by the brokerage
|
|
|
1610
1682
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1611
1683
|
|
|
1612
1684
|
```python
|
|
1613
|
-
symbol_search_user_account_response =
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1685
|
+
symbol_search_user_account_response = (
|
|
1686
|
+
snaptrade.reference_data.symbol_search_user_account(
|
|
1687
|
+
user_id="snaptrade-user-123",
|
|
1688
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
1689
|
+
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
1690
|
+
substring="AAPL",
|
|
1691
|
+
)
|
|
1618
1692
|
)
|
|
1619
1693
|
```
|
|
1620
1694
|
|
|
@@ -1734,11 +1808,13 @@ Gets a quote for the specified account.
|
|
|
1734
1808
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1735
1809
|
|
|
1736
1810
|
```python
|
|
1737
|
-
get_cryptocurrency_pair_quote_response =
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1811
|
+
get_cryptocurrency_pair_quote_response = (
|
|
1812
|
+
snaptrade.trading.get_cryptocurrency_pair_quote(
|
|
1813
|
+
user_id="snaptrade-user-123",
|
|
1814
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
1815
|
+
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
1816
|
+
instrument_symbol="BTC-USD",
|
|
1817
|
+
)
|
|
1742
1818
|
)
|
|
1743
1819
|
```
|
|
1744
1820
|
|
|
@@ -2050,7 +2126,7 @@ For Equity orders, this represents the number of shares for the order. This can
|
|
|
2050
2126
|
|
|
2051
2127
|
### `snaptrade.trading.place_mleg_order`<a id="snaptradetradingplace_mleg_order"></a>
|
|
2052
2128
|
|
|
2053
|
-
Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
|
2129
|
+
Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
|
2054
2130
|
|
|
2055
2131
|
|
|
2056
2132
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
@@ -2405,43 +2481,6 @@ The price at which a stop order is triggered for `Stop` and `StopLimit` orders.
|
|
|
2405
2481
|
|
|
2406
2482
|
---
|
|
2407
2483
|
|
|
2408
|
-
### `snaptrade.trading.search_cryptocurrency_pair_instruments`<a id="snaptradetradingsearch_cryptocurrency_pair_instruments"></a>
|
|
2409
|
-
|
|
2410
|
-
Searches cryptocurrency pairs instruments accessible to the specified account.
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
2414
|
-
|
|
2415
|
-
```python
|
|
2416
|
-
search_cryptocurrency_pair_instruments_response = snaptrade.trading.search_cryptocurrency_pair_instruments(
|
|
2417
|
-
user_id="snaptrade-user-123",
|
|
2418
|
-
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
2419
|
-
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
2420
|
-
base="BTC",
|
|
2421
|
-
quote="USD",
|
|
2422
|
-
)
|
|
2423
|
-
```
|
|
2424
|
-
|
|
2425
|
-
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
|
2426
|
-
|
|
2427
|
-
##### user_id: `str`<a id="user_id-str"></a>
|
|
2428
|
-
|
|
2429
|
-
##### user_secret: `str`<a id="user_secret-str"></a>
|
|
2430
|
-
|
|
2431
|
-
##### account_id: `str`<a id="account_id-str"></a>
|
|
2432
|
-
|
|
2433
|
-
##### base: `str`<a id="base-str"></a>
|
|
2434
|
-
|
|
2435
|
-
##### quote: `str`<a id="quote-str"></a>
|
|
2436
|
-
|
|
2437
|
-
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
|
2438
|
-
|
|
2439
|
-
`/accounts/{accountId}/trading/instruments/cryptocurrencyPairs` `get`
|
|
2440
|
-
|
|
2441
|
-
[🔙 **Back to Table of Contents**](#table-of-contents)
|
|
2442
|
-
|
|
2443
|
-
---
|
|
2444
|
-
|
|
2445
2484
|
### `snaptrade.transactions_and_reporting.get_activities`<a id="snaptradetransactions_and_reportingget_activities"></a>
|
|
2446
2485
|

|
|
2447
2486
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
snaptrade_client/__init__.py,sha256=
|
|
2
|
-
snaptrade_client/api_client.py,sha256=
|
|
1
|
+
snaptrade_client/__init__.py,sha256=fRkRi29GYhfNF_KYSpInHVuT3bImHT6ZuGw0ylUJ0DE,820
|
|
2
|
+
snaptrade_client/api_client.py,sha256=sNhPcpQazFPI9z2ObrFNas9mQjyVPL7OBsOp08he0Ok,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=z1BNp4LLLCgcM2ivh0TAhKNyeSf49EAk2DcTIt7KRo8,13189
|
|
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
|
|
@@ -57,8 +57,8 @@ snaptrade_client/apis/paths/symbols_query.py,sha256=A8docGGmlT-C-DqhATL5eXMP2WEQ
|
|
|
57
57
|
snaptrade_client/apis/paths/trade_impact.py,sha256=IPndLeDc_GS9wJmB5jTpnRZhJAdbbNiCf58CyLzDN-k,113
|
|
58
58
|
snaptrade_client/apis/paths/trade_place.py,sha256=ejaerOFMV2hpLsWk7f5-jq_xNN8v2ekuwpGKeZ7yDbE,111
|
|
59
59
|
snaptrade_client/apis/paths/trade_trade_id.py,sha256=obGSPVLZRpWmozwuCrxnDL2NQzNNUMJ_QppjrljIjKo,116
|
|
60
|
-
snaptrade_client/apis/tag_to_api.py,sha256=
|
|
61
|
-
snaptrade_client/apis/tags/__init__.py,sha256=
|
|
60
|
+
snaptrade_client/apis/tag_to_api.py,sha256=XNujjY0lOEEIRKhwxQZGcKl89yw8r8pzMVphyrsz2ZA,1780
|
|
61
|
+
snaptrade_client/apis/tags/__init__.py,sha256=sAfoG_-vWoBzOD8ZvrnbakQgEk-fJn4URrvjWXzC3OU,623
|
|
62
62
|
snaptrade_client/apis/tags/account_information_api.py,sha256=lbGNEG6xu9Y7xjiQnNKxafMIMwx2NA-kJraqymyd-j4,192
|
|
63
63
|
snaptrade_client/apis/tags/account_information_api_generated.py,sha256=V6d-xrAxstKYhHDvw-qtUDMUNhYTl96lC7PMy-EFjrM,1594
|
|
64
64
|
snaptrade_client/apis/tags/api_status_api.py,sha256=N4rdI4EmxVg5mxhu-Q2UVkIKgDKrZWhRmO7R_T1IkZw,156
|
|
@@ -67,18 +67,20 @@ snaptrade_client/apis/tags/authentication_api.py,sha256=9QKQmKP326PcQusLJaW5XDaC
|
|
|
67
67
|
snaptrade_client/apis/tags/authentication_api_generated.py,sha256=Gt6muDG-vWm-Z8tkCPG3Ae2Dh0C-LhuTMG33czSpl9I,921
|
|
68
68
|
snaptrade_client/apis/tags/connections_api.py,sha256=pNGuSjvX2Fg2IJymMvM3DcoUllKUmUQQpTtLVbY2Yi8,163
|
|
69
69
|
snaptrade_client/apis/tags/connections_api_generated.py,sha256=inWc0qR9q4SFyTWsfw_iI8foMNGaQ6oeZ1LaQy_qnjQ,1242
|
|
70
|
+
snaptrade_client/apis/tags/crypto_trading_api.py,sha256=fUyKom0ogKuy8bLpsFoGExyzrW0P89B4QgxAlWY656E,172
|
|
71
|
+
snaptrade_client/apis/tags/crypto_trading_api_generated.py,sha256=VXCLOVyPYxwBV6O54tLLm8F_xG8UtR8yxuWPkec0acc,545
|
|
70
72
|
snaptrade_client/apis/tags/options_api.py,sha256=tl2HI1JChvEGrE5mcSLN85Ah5AHtjVa4n8Hx7GY-ZNA,147
|
|
71
73
|
snaptrade_client/apis/tags/options_api_generated.py,sha256=NehERRdEJhPpg2Q2XaHZc4bVMX7LOlguLQr-4feIH6o,994
|
|
72
74
|
snaptrade_client/apis/tags/reference_data_api.py,sha256=DdmRsoiG7nLk8EgXWT1KvurcQnPYAlr1Dz0kdpdWGRQ,172
|
|
73
75
|
snaptrade_client/apis/tags/reference_data_api_generated.py,sha256=0QKGp2TcqDmuYsuPuXL0Wf14aIihWLYXpnHTFT9oKwY,1499
|
|
74
76
|
snaptrade_client/apis/tags/trading_api.py,sha256=J0L9w7V4uoH3_fkvmJhpVQTIUQCACBgrb_QQ7VTILqI,147
|
|
75
|
-
snaptrade_client/apis/tags/trading_api_generated.py,sha256=
|
|
77
|
+
snaptrade_client/apis/tags/trading_api_generated.py,sha256=xtiw235nHJZspu0FygOLM9zF6blJinDL_eKB0YfbHrs,1774
|
|
76
78
|
snaptrade_client/apis/tags/transactions_and_reporting_api.py,sha256=4qC3MPU73Cj2ePSxD_GIjrvvxLbjEEsan2VcDqVZXd4,217
|
|
77
79
|
snaptrade_client/apis/tags/transactions_and_reporting_api_generated.py,sha256=Tw43o6-dzwGDnD5hPtc5Vz2f7EdM-yFw8FQkLI5suak,573
|
|
78
|
-
snaptrade_client/client.py,sha256=
|
|
79
|
-
snaptrade_client/client.pyi,sha256=
|
|
80
|
+
snaptrade_client/client.py,sha256=2h-c4LP4Uzoa3vjdb9rhwaviFad8agKZjQ0xQ62x96c,2268
|
|
81
|
+
snaptrade_client/client.pyi,sha256=2h-c4LP4Uzoa3vjdb9rhwaviFad8agKZjQ0xQ62x96c,2268
|
|
80
82
|
snaptrade_client/client_custom.py,sha256=Jx9ulCzelMFlESjzVFQSjBlYcH4dWxSJJWZDMPLyetM,745
|
|
81
|
-
snaptrade_client/configuration.py,sha256=
|
|
83
|
+
snaptrade_client/configuration.py,sha256=NFLqWXeuVEtJXmm7VKIz5HepUzdMwcmoCXoXRXex-RE,19262
|
|
82
84
|
snaptrade_client/exceptions.py,sha256=X0apI_sgQpGpa-qIqPUClReCdHAxeSuA6GW0YH_RsWg,7771
|
|
83
85
|
snaptrade_client/exceptions_base.py,sha256=LAQkaC5C61-SdBLfyMjb0K7AYJkWVuLmg2uCvHa71FM,2274
|
|
84
86
|
snaptrade_client/model/__init__.py,sha256=ayi2MIzcf0eAIsY13ToiNplV9tW-pMBFrC0I9yckGM8,350
|
|
@@ -409,8 +411,8 @@ snaptrade_client/model/user_secret.pyi,sha256=7xf__S566WtTq7VthmdVtrCBIfgpnYWYqE
|
|
|
409
411
|
snaptrade_client/model/validated_trade_body.py,sha256=NkTel1ulgSjBd6K7vur6puEbfrg3u1vdmtUKArOu8ws,3085
|
|
410
412
|
snaptrade_client/model/validated_trade_body.pyi,sha256=NkTel1ulgSjBd6K7vur6puEbfrg3u1vdmtUKArOu8ws,3085
|
|
411
413
|
snaptrade_client/models/__init__.py,sha256=I1pwuDZgpx0vWGPJmEqsldM5F9Pd101iA31xsd9S7Oo,12749
|
|
412
|
-
snaptrade_client/operation_parameter_map.py,sha256=
|
|
413
|
-
snaptrade_client/paths/__init__.py,sha256=
|
|
414
|
+
snaptrade_client/operation_parameter_map.py,sha256=1iqUbnE-SEOpbBClZLatx7RFOXPSsOSFeJpMOup2s24,19229
|
|
415
|
+
snaptrade_client/paths/__init__.py,sha256=rBN9OxTEL86k2_UJ2zF2DdCzreO059TufMQSq1oHtdw,3811
|
|
414
416
|
snaptrade_client/paths/accounts/__init__.py,sha256=_Bqi6B13A-kgd0AOpqmcE1vTxJDfoz-r3Hwf-AmwW6A,307
|
|
415
417
|
snaptrade_client/paths/accounts/get.py,sha256=MDE_4VCylBroYDkMQe9II1qCGf6gTTDGCShFyGLXf00,16463
|
|
416
418
|
snaptrade_client/paths/accounts/get.pyi,sha256=gna7qIU-95WqOFl6qTsP18ZY7SKi9CYEBAbARPAPPF4,16261
|
|
@@ -474,8 +476,8 @@ snaptrade_client/paths/accounts_account_id_trading_instruments_cryptocurrency_pa
|
|
|
474
476
|
snaptrade_client/paths/accounts_account_id_trading_instruments_cryptocurrency_pairs_instrument_symbol_quote/get.py,sha256=oNzuvtIHAIpoFe8L7cg6ReqjZeR4NGCOrX4MGDQ7D9A,19938
|
|
475
477
|
snaptrade_client/paths/accounts_account_id_trading_instruments_cryptocurrency_pairs_instrument_symbol_quote/get.pyi,sha256=DVoKhxO1njO4Z-f_mqdOqF1uhAn1D2jb-emqLKHp6lc,19714
|
|
476
478
|
snaptrade_client/paths/accounts_account_id_trading_options/__init__.py,sha256=W4DH_sVnEgWCOwhFuJ05O-L0iN0HNDQ3QmVhC4uTzxE,361
|
|
477
|
-
snaptrade_client/paths/accounts_account_id_trading_options/post.py,sha256=
|
|
478
|
-
snaptrade_client/paths/accounts_account_id_trading_options/post.pyi,sha256=
|
|
479
|
+
snaptrade_client/paths/accounts_account_id_trading_options/post.py,sha256=PD0GAZs1vG9ModhGRDXL72e0BVxi47iHHXMw7HrmuO0,25375
|
|
480
|
+
snaptrade_client/paths/accounts_account_id_trading_options/post.pyi,sha256=vVwgbPJYIz_qF38RBfJA3B65senCndjwCGnm_ZPNkRw,25151
|
|
479
481
|
snaptrade_client/paths/accounts_account_id_trading_simple/__init__.py,sha256=1kfuRO4L1XUyRnv-XbLhv5SrvJ4UqjzjKDfRR9EIu9Y,359
|
|
480
482
|
snaptrade_client/paths/accounts_account_id_trading_simple/post.py,sha256=Zai93YFZyIGtJ29ekg7C7zrMdcjFGkCbTYQ6EoiTQhk,25855
|
|
481
483
|
snaptrade_client/paths/accounts_account_id_trading_simple/post.pyi,sha256=0R2cRYCioI6TyibrI827Ew2AA2kiOBz54f_YykzAiz0,25631
|
|
@@ -746,7 +748,7 @@ snaptrade_client/type/user_secret.py,sha256=pKCVhqf1rROHwa6tvoyA5OAKXCBAmNDvIQCf
|
|
|
746
748
|
snaptrade_client/type/validated_trade_body.py,sha256=ZIPBQWii_a-9zHaBCJ6bQtmL1_I7AG0zwuvkY-ZQ6R4,890
|
|
747
749
|
snaptrade_client/type_util.py,sha256=JIrMYgJzd4IJ8Ne2vqcahlPA9dVmphL9sn8gwccCB4Y,563
|
|
748
750
|
snaptrade_client/validation_metadata.py,sha256=VTN5y-NudHXok1X468J4PnGze_tGEAcs1v3gsXmcrb0,3172
|
|
749
|
-
snaptrade_python_sdk-11.0.
|
|
750
|
-
snaptrade_python_sdk-11.0.
|
|
751
|
-
snaptrade_python_sdk-11.0.
|
|
752
|
-
snaptrade_python_sdk-11.0.
|
|
751
|
+
snaptrade_python_sdk-11.0.110.dist-info/LICENSE,sha256=W_1kcxEzOnZXIYJ1GVUipbmUu6dNLt-Pc-OI55h3k-A,1081
|
|
752
|
+
snaptrade_python_sdk-11.0.110.dist-info/METADATA,sha256=Yd0rV9yrMu5KuyFoI5p0gRIERoooQ2MIeMFv6NbGVe8,94731
|
|
753
|
+
snaptrade_python_sdk-11.0.110.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
754
|
+
snaptrade_python_sdk-11.0.110.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|