snaptrade-python-sdk 11.0.110__py3-none-any.whl → 11.0.111__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 +0 -3
- snaptrade_client/apis/tags/__init__.py +0 -1
- snaptrade_client/apis/tags/trading_api_generated.py +2 -0
- snaptrade_client/client.py +0 -2
- snaptrade_client/client.pyi +0 -2
- snaptrade_client/configuration.py +1 -1
- snaptrade_client/operation_parameter_map.py +19 -19
- snaptrade_client/paths/__init__.py +1 -1
- {snaptrade_python_sdk-11.0.110.dist-info → snaptrade_python_sdk-11.0.111.dist-info}/METADATA +43 -43
- {snaptrade_python_sdk-11.0.110.dist-info → snaptrade_python_sdk-11.0.111.dist-info}/RECORD +15 -17
- snaptrade_client/apis/tags/crypto_trading_api.py +0 -6
- snaptrade_client/apis/tags/crypto_trading_api_generated.py +0 -21
- {snaptrade_python_sdk-11.0.110.dist-info → snaptrade_python_sdk-11.0.111.dist-info}/LICENSE +0 -0
- {snaptrade_python_sdk-11.0.110.dist-info → snaptrade_python_sdk-11.0.111.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.111/python'
|
|
1159
1159
|
|
|
1160
1160
|
def __enter__(self):
|
|
1161
1161
|
return self
|
|
@@ -40,6 +40,7 @@ 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
|
|
43
44
|
from snaptrade_client.apis.paths.accounts_account_id_trading_instruments_cryptocurrency_pairs_instrument_symbol_quote import AccountsAccountIdTradingInstrumentsCryptocurrencyPairsInstrumentSymbolQuote
|
|
44
45
|
from snaptrade_client.apis.paths.accounts_account_id_trading_options import AccountsAccountIdTradingOptions
|
|
45
46
|
from snaptrade_client.apis.paths.snap_trade_partners import SnapTradePartners
|
|
@@ -53,7 +54,6 @@ from snaptrade_client.apis.paths.exchanges import Exchanges
|
|
|
53
54
|
from snaptrade_client.apis.paths.security_types import SecurityTypes
|
|
54
55
|
from snaptrade_client.apis.paths.symbols import Symbols
|
|
55
56
|
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,6 +97,7 @@ 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,
|
|
100
101
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_INSTRUMENTS_CRYPTOCURRENCY_PAIRS_INSTRUMENT_SYMBOL_QUOTE: AccountsAccountIdTradingInstrumentsCryptocurrencyPairsInstrumentSymbolQuote,
|
|
101
102
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_OPTIONS: AccountsAccountIdTradingOptions,
|
|
102
103
|
PathValues.SNAP_TRADE_PARTNERS: SnapTradePartners,
|
|
@@ -110,7 +111,6 @@ PathToApi = typing_extensions.TypedDict(
|
|
|
110
111
|
PathValues.SECURITY_TYPES: SecurityTypes,
|
|
111
112
|
PathValues.SYMBOLS: Symbols,
|
|
112
113
|
PathValues.SYMBOLS_QUERY: SymbolsQuery,
|
|
113
|
-
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_INSTRUMENTS_CRYPTOCURRENCY_PAIRS: AccountsAccountIdTradingInstrumentsCryptocurrencyPairs,
|
|
114
114
|
}
|
|
115
115
|
)
|
|
116
116
|
|
|
@@ -155,6 +155,7 @@ 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,
|
|
158
159
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_INSTRUMENTS_CRYPTOCURRENCY_PAIRS_INSTRUMENT_SYMBOL_QUOTE: AccountsAccountIdTradingInstrumentsCryptocurrencyPairsInstrumentSymbolQuote,
|
|
159
160
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_OPTIONS: AccountsAccountIdTradingOptions,
|
|
160
161
|
PathValues.SNAP_TRADE_PARTNERS: SnapTradePartners,
|
|
@@ -168,6 +169,5 @@ path_to_api = PathToApi(
|
|
|
168
169
|
PathValues.SECURITY_TYPES: SecurityTypes,
|
|
169
170
|
PathValues.SYMBOLS: Symbols,
|
|
170
171
|
PathValues.SYMBOLS_QUERY: SymbolsQuery,
|
|
171
|
-
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_INSTRUMENTS_CRYPTOCURRENCY_PAIRS: AccountsAccountIdTradingInstrumentsCryptocurrencyPairs,
|
|
172
172
|
}
|
|
173
173
|
)
|
|
@@ -8,7 +8,6 @@ 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
|
|
12
11
|
from snaptrade_client.apis.tags.reference_data_api import ReferenceDataApi
|
|
13
12
|
|
|
14
13
|
TagToApi = typing_extensions.TypedDict(
|
|
@@ -21,7 +20,6 @@ TagToApi = typing_extensions.TypedDict(
|
|
|
21
20
|
TagValues.OPTIONS: OptionsApi,
|
|
22
21
|
TagValues.TRANSACTIONS_AND_REPORTING: TransactionsAndReportingApi,
|
|
23
22
|
TagValues.TRADING: TradingApi,
|
|
24
|
-
TagValues.CRYPTO_TRADING: CryptoTradingApi,
|
|
25
23
|
TagValues.REFERENCE_DATA: ReferenceDataApi,
|
|
26
24
|
}
|
|
27
25
|
)
|
|
@@ -35,7 +33,6 @@ tag_to_api = TagToApi(
|
|
|
35
33
|
TagValues.OPTIONS: OptionsApi,
|
|
36
34
|
TagValues.TRANSACTIONS_AND_REPORTING: TransactionsAndReportingApi,
|
|
37
35
|
TagValues.TRADING: TradingApi,
|
|
38
|
-
TagValues.CRYPTO_TRADING: CryptoTradingApi,
|
|
39
36
|
TagValues.REFERENCE_DATA: ReferenceDataApi,
|
|
40
37
|
}
|
|
41
38
|
)
|
|
@@ -21,6 +21,7 @@ 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
|
|
24
25
|
|
|
25
26
|
|
|
26
27
|
class TradingApiGenerated(
|
|
@@ -36,6 +37,7 @@ class TradingApiGenerated(
|
|
|
36
37
|
PlaceSimpleOrder,
|
|
37
38
|
PreviewSimpleOrder,
|
|
38
39
|
ReplaceOrder,
|
|
40
|
+
SearchCryptocurrencyPairInstruments,
|
|
39
41
|
):
|
|
40
42
|
"""NOTE:
|
|
41
43
|
This class is auto generated by Konfig (https://konfigthis.com)
|
snaptrade_client/client.py
CHANGED
|
@@ -20,7 +20,6 @@ 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
|
|
24
23
|
from snaptrade_client.apis.tags.options_api import OptionsApi
|
|
25
24
|
from snaptrade_client.apis.tags.reference_data_api import ReferenceDataApi
|
|
26
25
|
from snaptrade_client.apis.tags.trading_api import TradingApi
|
|
@@ -41,7 +40,6 @@ class SnapTrade(ClientCustom):
|
|
|
41
40
|
self.api_status: APIStatusApi = APIStatusApi(api_client)
|
|
42
41
|
self.authentication: AuthenticationApi = AuthenticationApi(api_client)
|
|
43
42
|
self.connections: ConnectionsApi = ConnectionsApi(api_client)
|
|
44
|
-
self.crypto_trading: CryptoTradingApi = CryptoTradingApi(api_client)
|
|
45
43
|
self.options: OptionsApi = OptionsApi(api_client)
|
|
46
44
|
self.reference_data: ReferenceDataApi = ReferenceDataApi(api_client)
|
|
47
45
|
self.trading: TradingApi = TradingApi(api_client)
|
snaptrade_client/client.pyi
CHANGED
|
@@ -20,7 +20,6 @@ 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
|
|
24
23
|
from snaptrade_client.apis.tags.options_api import OptionsApi
|
|
25
24
|
from snaptrade_client.apis.tags.reference_data_api import ReferenceDataApi
|
|
26
25
|
from snaptrade_client.apis.tags.trading_api import TradingApi
|
|
@@ -41,7 +40,6 @@ class SnapTrade(ClientCustom):
|
|
|
41
40
|
self.api_status: APIStatusApi = APIStatusApi(api_client)
|
|
42
41
|
self.authentication: AuthenticationApi = AuthenticationApi(api_client)
|
|
43
42
|
self.connections: ConnectionsApi = ConnectionsApi(api_client)
|
|
44
|
-
self.crypto_trading: CryptoTradingApi = CryptoTradingApi(api_client)
|
|
45
43
|
self.options: OptionsApi = OptionsApi(api_client)
|
|
46
44
|
self.reference_data: ReferenceDataApi = ReferenceDataApi(api_client)
|
|
47
45
|
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.111".\
|
|
442
442
|
format(env=sys.platform, pyversion=sys.version)
|
|
443
443
|
|
|
444
444
|
def get_host_settings(self):
|
|
@@ -311,25 +311,6 @@ 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
|
-
},
|
|
333
314
|
'/accounts/{accountId}/optionStrategy-POST': {
|
|
334
315
|
'parameters': [
|
|
335
316
|
{
|
|
@@ -841,6 +822,25 @@ operation_parameter_map = {
|
|
|
841
822
|
},
|
|
842
823
|
]
|
|
843
824
|
},
|
|
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,6 +45,7 @@ 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"
|
|
48
49
|
ACCOUNTS_ACCOUNT_ID_TRADING_INSTRUMENTS_CRYPTOCURRENCY_PAIRS_INSTRUMENT_SYMBOL_QUOTE = "/accounts/{accountId}/trading/instruments/cryptocurrencyPairs/{instrumentSymbol}/quote"
|
|
49
50
|
ACCOUNTS_ACCOUNT_ID_TRADING_OPTIONS = "/accounts/{accountId}/trading/options"
|
|
50
51
|
SNAP_TRADE_PARTNERS = "/snapTrade/partners"
|
|
@@ -58,4 +59,3 @@ class PathValues(str, enum.Enum):
|
|
|
58
59
|
SECURITY_TYPES = "/securityTypes"
|
|
59
60
|
SYMBOLS = "/symbols"
|
|
60
61
|
SYMBOLS_QUERY = "/symbols/{query}"
|
|
61
|
-
ACCOUNTS_ACCOUNT_ID_TRADING_INSTRUMENTS_CRYPTOCURRENCY_PAIRS = "/accounts/{accountId}/trading/instruments/cryptocurrencyPairs"
|
{snaptrade_python_sdk-11.0.110.dist-info → snaptrade_python_sdk-11.0.111.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.111
|
|
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.111)
|
|
34
34
|
[](https://github.com/passiv/snaptrade-sdks/tree/master/sdks/python#readme)
|
|
35
35
|
[](https://snaptrade.com/)
|
|
36
36
|
|
|
@@ -69,7 +69,6 @@ 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)
|
|
73
72
|
* [`snaptrade.options.get_option_strategy`](#snaptradeoptionsget_option_strategy)
|
|
74
73
|
* [`snaptrade.options.get_options_chain`](#snaptradeoptionsget_options_chain)
|
|
75
74
|
* [`snaptrade.options.get_options_strategy_quote`](#snaptradeoptionsget_options_strategy_quote)
|
|
@@ -98,6 +97,7 @@ Connect brokerage accounts to your app for live positions and trading
|
|
|
98
97
|
* [`snaptrade.trading.place_simple_order`](#snaptradetradingplace_simple_order)
|
|
99
98
|
* [`snaptrade.trading.preview_simple_order`](#snaptradetradingpreview_simple_order)
|
|
100
99
|
* [`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.111
|
|
114
114
|
```
|
|
115
115
|
|
|
116
116
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -1142,45 +1142,6 @@ Optional comma separated list of session IDs used to filter the request on speci
|
|
|
1142
1142
|
|
|
1143
1143
|
---
|
|
1144
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
|
-
|
|
1184
1145
|
### `snaptrade.options.get_option_strategy`<a id="snaptradeoptionsget_option_strategy"></a>
|
|
1185
1146
|
|
|
1186
1147
|
Creates an option strategy object that will be used to place an option strategy order.
|
|
@@ -2481,6 +2442,45 @@ The price at which a stop order is triggered for `Stop` and `StopLimit` orders.
|
|
|
2481
2442
|
|
|
2482
2443
|
---
|
|
2483
2444
|
|
|
2445
|
+
### `snaptrade.trading.search_cryptocurrency_pair_instruments`<a id="snaptradetradingsearch_cryptocurrency_pair_instruments"></a>
|
|
2446
|
+
|
|
2447
|
+
Searches cryptocurrency pairs instruments accessible to the specified account.
|
|
2448
|
+
|
|
2449
|
+
|
|
2450
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
2451
|
+
|
|
2452
|
+
```python
|
|
2453
|
+
search_cryptocurrency_pair_instruments_response = (
|
|
2454
|
+
snaptrade.trading.search_cryptocurrency_pair_instruments(
|
|
2455
|
+
user_id="snaptrade-user-123",
|
|
2456
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
2457
|
+
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
2458
|
+
base="BTC",
|
|
2459
|
+
quote="USD",
|
|
2460
|
+
)
|
|
2461
|
+
)
|
|
2462
|
+
```
|
|
2463
|
+
|
|
2464
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
|
2465
|
+
|
|
2466
|
+
##### user_id: `str`<a id="user_id-str"></a>
|
|
2467
|
+
|
|
2468
|
+
##### user_secret: `str`<a id="user_secret-str"></a>
|
|
2469
|
+
|
|
2470
|
+
##### account_id: `str`<a id="account_id-str"></a>
|
|
2471
|
+
|
|
2472
|
+
##### base: `str`<a id="base-str"></a>
|
|
2473
|
+
|
|
2474
|
+
##### quote: `str`<a id="quote-str"></a>
|
|
2475
|
+
|
|
2476
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
|
2477
|
+
|
|
2478
|
+
`/accounts/{accountId}/trading/instruments/cryptocurrencyPairs` `get`
|
|
2479
|
+
|
|
2480
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
|
2481
|
+
|
|
2482
|
+
---
|
|
2483
|
+
|
|
2484
2484
|
### `snaptrade.transactions_and_reporting.get_activities`<a id="snaptradetransactions_and_reportingget_activities"></a>
|
|
2485
2485
|

|
|
2486
2486
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
snaptrade_client/__init__.py,sha256=
|
|
2
|
-
snaptrade_client/api_client.py,sha256=
|
|
1
|
+
snaptrade_client/__init__.py,sha256=gGE-rYkdjZVHOWSu8Qg0VJu-UlTf4eMzzItLQzlQgrg,820
|
|
2
|
+
snaptrade_client/api_client.py,sha256=_Gsd7hSizmJMq8DM0ZajTNhJtd7QOEtfeE6BJpIrRgY,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=fDtFd8AqFO8oDYvdEAFTO9PrVL_qMSjlch1YRVeidlk,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=4kBzm9kk13yI5s3At61eiaZ-B6suxtPv9Oq1z--nBks,1601
|
|
61
|
+
snaptrade_client/apis/tags/__init__.py,sha256=0gw9bF8gMwlrWqLRqYHijltHnho9T8l83Pobtm194pw,585
|
|
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,20 +67,18 @@ 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
|
|
72
70
|
snaptrade_client/apis/tags/options_api.py,sha256=tl2HI1JChvEGrE5mcSLN85Ah5AHtjVa4n8Hx7GY-ZNA,147
|
|
73
71
|
snaptrade_client/apis/tags/options_api_generated.py,sha256=NehERRdEJhPpg2Q2XaHZc4bVMX7LOlguLQr-4feIH6o,994
|
|
74
72
|
snaptrade_client/apis/tags/reference_data_api.py,sha256=DdmRsoiG7nLk8EgXWT1KvurcQnPYAlr1Dz0kdpdWGRQ,172
|
|
75
73
|
snaptrade_client/apis/tags/reference_data_api_generated.py,sha256=0QKGp2TcqDmuYsuPuXL0Wf14aIihWLYXpnHTFT9oKwY,1499
|
|
76
74
|
snaptrade_client/apis/tags/trading_api.py,sha256=J0L9w7V4uoH3_fkvmJhpVQTIUQCACBgrb_QQ7VTILqI,147
|
|
77
|
-
snaptrade_client/apis/tags/trading_api_generated.py,sha256=
|
|
75
|
+
snaptrade_client/apis/tags/trading_api_generated.py,sha256=YMq2FI3cyZIY_mEPRmESMua-Ps1kgyxfsVsDGsTMYjw,1951
|
|
78
76
|
snaptrade_client/apis/tags/transactions_and_reporting_api.py,sha256=4qC3MPU73Cj2ePSxD_GIjrvvxLbjEEsan2VcDqVZXd4,217
|
|
79
77
|
snaptrade_client/apis/tags/transactions_and_reporting_api_generated.py,sha256=Tw43o6-dzwGDnD5hPtc5Vz2f7EdM-yFw8FQkLI5suak,573
|
|
80
|
-
snaptrade_client/client.py,sha256=
|
|
81
|
-
snaptrade_client/client.pyi,sha256=
|
|
78
|
+
snaptrade_client/client.py,sha256=goDwWRv9909OPXDnGGYst_mr53bg6RUs4PwIvnrl_kE,2116
|
|
79
|
+
snaptrade_client/client.pyi,sha256=goDwWRv9909OPXDnGGYst_mr53bg6RUs4PwIvnrl_kE,2116
|
|
82
80
|
snaptrade_client/client_custom.py,sha256=Jx9ulCzelMFlESjzVFQSjBlYcH4dWxSJJWZDMPLyetM,745
|
|
83
|
-
snaptrade_client/configuration.py,sha256=
|
|
81
|
+
snaptrade_client/configuration.py,sha256=cVV--301R_kGWBy86v2uFt7AdyFjnF2zeEVDr7zbA7A,19262
|
|
84
82
|
snaptrade_client/exceptions.py,sha256=X0apI_sgQpGpa-qIqPUClReCdHAxeSuA6GW0YH_RsWg,7771
|
|
85
83
|
snaptrade_client/exceptions_base.py,sha256=LAQkaC5C61-SdBLfyMjb0K7AYJkWVuLmg2uCvHa71FM,2274
|
|
86
84
|
snaptrade_client/model/__init__.py,sha256=ayi2MIzcf0eAIsY13ToiNplV9tW-pMBFrC0I9yckGM8,350
|
|
@@ -411,8 +409,8 @@ snaptrade_client/model/user_secret.pyi,sha256=7xf__S566WtTq7VthmdVtrCBIfgpnYWYqE
|
|
|
411
409
|
snaptrade_client/model/validated_trade_body.py,sha256=NkTel1ulgSjBd6K7vur6puEbfrg3u1vdmtUKArOu8ws,3085
|
|
412
410
|
snaptrade_client/model/validated_trade_body.pyi,sha256=NkTel1ulgSjBd6K7vur6puEbfrg3u1vdmtUKArOu8ws,3085
|
|
413
411
|
snaptrade_client/models/__init__.py,sha256=I1pwuDZgpx0vWGPJmEqsldM5F9Pd101iA31xsd9S7Oo,12749
|
|
414
|
-
snaptrade_client/operation_parameter_map.py,sha256=
|
|
415
|
-
snaptrade_client/paths/__init__.py,sha256=
|
|
412
|
+
snaptrade_client/operation_parameter_map.py,sha256=O_ANBpVX1Bn3WgFNggL1sVZr4VuPbVJiF4YBwK_uleM,19229
|
|
413
|
+
snaptrade_client/paths/__init__.py,sha256=K056tD_Vj-bOiQnxSdL8DBksTpYdcSykFS7dUclcdR4,3811
|
|
416
414
|
snaptrade_client/paths/accounts/__init__.py,sha256=_Bqi6B13A-kgd0AOpqmcE1vTxJDfoz-r3Hwf-AmwW6A,307
|
|
417
415
|
snaptrade_client/paths/accounts/get.py,sha256=MDE_4VCylBroYDkMQe9II1qCGf6gTTDGCShFyGLXf00,16463
|
|
418
416
|
snaptrade_client/paths/accounts/get.pyi,sha256=gna7qIU-95WqOFl6qTsP18ZY7SKi9CYEBAbARPAPPF4,16261
|
|
@@ -748,7 +746,7 @@ snaptrade_client/type/user_secret.py,sha256=pKCVhqf1rROHwa6tvoyA5OAKXCBAmNDvIQCf
|
|
|
748
746
|
snaptrade_client/type/validated_trade_body.py,sha256=ZIPBQWii_a-9zHaBCJ6bQtmL1_I7AG0zwuvkY-ZQ6R4,890
|
|
749
747
|
snaptrade_client/type_util.py,sha256=JIrMYgJzd4IJ8Ne2vqcahlPA9dVmphL9sn8gwccCB4Y,563
|
|
750
748
|
snaptrade_client/validation_metadata.py,sha256=VTN5y-NudHXok1X468J4PnGze_tGEAcs1v3gsXmcrb0,3172
|
|
751
|
-
snaptrade_python_sdk-11.0.
|
|
752
|
-
snaptrade_python_sdk-11.0.
|
|
753
|
-
snaptrade_python_sdk-11.0.
|
|
754
|
-
snaptrade_python_sdk-11.0.
|
|
749
|
+
snaptrade_python_sdk-11.0.111.dist-info/LICENSE,sha256=W_1kcxEzOnZXIYJ1GVUipbmUu6dNLt-Pc-OI55h3k-A,1081
|
|
750
|
+
snaptrade_python_sdk-11.0.111.dist-info/METADATA,sha256=U50BwSJCHMVPipj8yllvpZPgn08Y5gBAP4O_i2-iUlY,94696
|
|
751
|
+
snaptrade_python_sdk-11.0.111.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
752
|
+
snaptrade_python_sdk-11.0.111.dist-info/RECORD,,
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
|
File without changes
|
|
File without changes
|