snaptrade-python-sdk 11.0.123__py3-none-any.whl → 11.0.124__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 +0 -9
- snaptrade_client/apis/tags/options_api_generated.py +0 -6
- snaptrade_client/configuration.py +1 -1
- snaptrade_client/operation_parameter_map.py +0 -63
- snaptrade_client/paths/__init__.py +0 -3
- {snaptrade_python_sdk-11.0.123.dist-info → snaptrade_python_sdk-11.0.124.dist-info}/METADATA +3 -156
- {snaptrade_python_sdk-11.0.123.dist-info → snaptrade_python_sdk-11.0.124.dist-info}/RECORD +11 -23
- snaptrade_client/apis/paths/accounts_account_id_option_strategy.py +0 -7
- snaptrade_client/apis/paths/accounts_account_id_option_strategy_option_strategy_id.py +0 -7
- snaptrade_client/apis/paths/accounts_account_id_option_strategy_option_strategy_id_execute.py +0 -7
- snaptrade_client/paths/accounts_account_id_option_strategy/__init__.py +0 -7
- snaptrade_client/paths/accounts_account_id_option_strategy/post.py +0 -731
- snaptrade_client/paths/accounts_account_id_option_strategy/post.pyi +0 -714
- snaptrade_client/paths/accounts_account_id_option_strategy_option_strategy_id/__init__.py +0 -7
- snaptrade_client/paths/accounts_account_id_option_strategy_option_strategy_id/get.py +0 -537
- snaptrade_client/paths/accounts_account_id_option_strategy_option_strategy_id/get.pyi +0 -526
- snaptrade_client/paths/accounts_account_id_option_strategy_option_strategy_id_execute/__init__.py +0 -7
- snaptrade_client/paths/accounts_account_id_option_strategy_option_strategy_id_execute/post.py +0 -723
- snaptrade_client/paths/accounts_account_id_option_strategy_option_strategy_id_execute/post.pyi +0 -712
- {snaptrade_python_sdk-11.0.123.dist-info → snaptrade_python_sdk-11.0.124.dist-info}/LICENSE +0 -0
- {snaptrade_python_sdk-11.0.123.dist-info → snaptrade_python_sdk-11.0.124.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.124/python'
|
|
1159
1159
|
|
|
1160
1160
|
def __enter__(self):
|
|
1161
1161
|
return self
|
|
@@ -26,9 +26,6 @@ from snaptrade_client.apis.paths.accounts_account_id_return_rates import Account
|
|
|
26
26
|
from snaptrade_client.apis.paths.accounts_account_id_activities import AccountsAccountIdActivities
|
|
27
27
|
from snaptrade_client.apis.paths.accounts_account_id_options import AccountsAccountIdOptions
|
|
28
28
|
from snaptrade_client.apis.paths.accounts_account_id_options_chain import AccountsAccountIdOptionsChain
|
|
29
|
-
from snaptrade_client.apis.paths.accounts_account_id_option_strategy import AccountsAccountIdOptionStrategy
|
|
30
|
-
from snaptrade_client.apis.paths.accounts_account_id_option_strategy_option_strategy_id import AccountsAccountIdOptionStrategyOptionStrategyId
|
|
31
|
-
from snaptrade_client.apis.paths.accounts_account_id_option_strategy_option_strategy_id_execute import AccountsAccountIdOptionStrategyOptionStrategyIdExecute
|
|
32
29
|
from snaptrade_client.apis.paths.activities import Activities
|
|
33
30
|
from snaptrade_client.apis.paths.performance_custom import PerformanceCustom
|
|
34
31
|
from snaptrade_client.apis.paths.accounts_account_id_quotes import AccountsAccountIdQuotes
|
|
@@ -85,9 +82,6 @@ PathToApi = typing_extensions.TypedDict(
|
|
|
85
82
|
PathValues.ACCOUNTS_ACCOUNT_ID_ACTIVITIES: AccountsAccountIdActivities,
|
|
86
83
|
PathValues.ACCOUNTS_ACCOUNT_ID_OPTIONS: AccountsAccountIdOptions,
|
|
87
84
|
PathValues.ACCOUNTS_ACCOUNT_ID_OPTIONS_CHAIN: AccountsAccountIdOptionsChain,
|
|
88
|
-
PathValues.ACCOUNTS_ACCOUNT_ID_OPTION_STRATEGY: AccountsAccountIdOptionStrategy,
|
|
89
|
-
PathValues.ACCOUNTS_ACCOUNT_ID_OPTION_STRATEGY_OPTION_STRATEGY_ID: AccountsAccountIdOptionStrategyOptionStrategyId,
|
|
90
|
-
PathValues.ACCOUNTS_ACCOUNT_ID_OPTION_STRATEGY_OPTION_STRATEGY_ID_EXECUTE: AccountsAccountIdOptionStrategyOptionStrategyIdExecute,
|
|
91
85
|
PathValues.ACTIVITIES: Activities,
|
|
92
86
|
PathValues.PERFORMANCE_CUSTOM: PerformanceCustom,
|
|
93
87
|
PathValues.ACCOUNTS_ACCOUNT_ID_QUOTES: AccountsAccountIdQuotes,
|
|
@@ -145,9 +139,6 @@ path_to_api = PathToApi(
|
|
|
145
139
|
PathValues.ACCOUNTS_ACCOUNT_ID_ACTIVITIES: AccountsAccountIdActivities,
|
|
146
140
|
PathValues.ACCOUNTS_ACCOUNT_ID_OPTIONS: AccountsAccountIdOptions,
|
|
147
141
|
PathValues.ACCOUNTS_ACCOUNT_ID_OPTIONS_CHAIN: AccountsAccountIdOptionsChain,
|
|
148
|
-
PathValues.ACCOUNTS_ACCOUNT_ID_OPTION_STRATEGY: AccountsAccountIdOptionStrategy,
|
|
149
|
-
PathValues.ACCOUNTS_ACCOUNT_ID_OPTION_STRATEGY_OPTION_STRATEGY_ID: AccountsAccountIdOptionStrategyOptionStrategyId,
|
|
150
|
-
PathValues.ACCOUNTS_ACCOUNT_ID_OPTION_STRATEGY_OPTION_STRATEGY_ID_EXECUTE: AccountsAccountIdOptionStrategyOptionStrategyIdExecute,
|
|
151
142
|
PathValues.ACTIVITIES: Activities,
|
|
152
143
|
PathValues.PERFORMANCE_CUSTOM: PerformanceCustom,
|
|
153
144
|
PathValues.ACCOUNTS_ACCOUNT_ID_QUOTES: AccountsAccountIdQuotes,
|
|
@@ -9,19 +9,13 @@
|
|
|
9
9
|
Created by: https://snaptrade.com/
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
|
-
from snaptrade_client.paths.accounts_account_id_option_strategy.post import GetOptionStrategy
|
|
13
12
|
from snaptrade_client.paths.accounts_account_id_options_chain.get import GetOptionsChain
|
|
14
|
-
from snaptrade_client.paths.accounts_account_id_option_strategy_option_strategy_id.get import GetOptionsStrategyQuote
|
|
15
13
|
from snaptrade_client.paths.accounts_account_id_options.get import ListOptionHoldings
|
|
16
|
-
from snaptrade_client.paths.accounts_account_id_option_strategy_option_strategy_id_execute.post import PlaceOptionStrategy
|
|
17
14
|
|
|
18
15
|
|
|
19
16
|
class OptionsApiGenerated(
|
|
20
|
-
GetOptionStrategy,
|
|
21
17
|
GetOptionsChain,
|
|
22
|
-
GetOptionsStrategyQuote,
|
|
23
18
|
ListOptionHoldings,
|
|
24
|
-
PlaceOptionStrategy,
|
|
25
19
|
):
|
|
26
20
|
"""NOTE:
|
|
27
21
|
This class is auto generated by Konfig (https://konfigthis.com)
|
|
@@ -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.124".\
|
|
442
442
|
format(env=sys.platform, pyversion=sys.version)
|
|
443
443
|
|
|
444
444
|
def get_host_settings(self):
|
|
@@ -327,28 +327,6 @@ operation_parameter_map = {
|
|
|
327
327
|
},
|
|
328
328
|
]
|
|
329
329
|
},
|
|
330
|
-
'/accounts/{accountId}/optionStrategy-POST': {
|
|
331
|
-
'parameters': [
|
|
332
|
-
{
|
|
333
|
-
'name': 'underlying_symbol_id'
|
|
334
|
-
},
|
|
335
|
-
{
|
|
336
|
-
'name': 'legs'
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
'name': 'strategy_type'
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
'name': 'userId'
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
'name': 'userSecret'
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
'name': 'accountId'
|
|
349
|
-
},
|
|
350
|
-
]
|
|
351
|
-
},
|
|
352
330
|
'/accounts/{accountId}/optionsChain-GET': {
|
|
353
331
|
'parameters': [
|
|
354
332
|
{
|
|
@@ -365,22 +343,6 @@ operation_parameter_map = {
|
|
|
365
343
|
},
|
|
366
344
|
]
|
|
367
345
|
},
|
|
368
|
-
'/accounts/{accountId}/optionStrategy/{optionStrategyId}-GET': {
|
|
369
|
-
'parameters': [
|
|
370
|
-
{
|
|
371
|
-
'name': 'userId'
|
|
372
|
-
},
|
|
373
|
-
{
|
|
374
|
-
'name': 'userSecret'
|
|
375
|
-
},
|
|
376
|
-
{
|
|
377
|
-
'name': 'accountId'
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
'name': 'optionStrategyId'
|
|
381
|
-
},
|
|
382
|
-
]
|
|
383
|
-
},
|
|
384
346
|
'/accounts/{accountId}/options-GET': {
|
|
385
347
|
'parameters': [
|
|
386
348
|
{
|
|
@@ -394,31 +356,6 @@ operation_parameter_map = {
|
|
|
394
356
|
},
|
|
395
357
|
]
|
|
396
358
|
},
|
|
397
|
-
'/accounts/{accountId}/optionStrategy/{optionStrategyId}/execute-POST': {
|
|
398
|
-
'parameters': [
|
|
399
|
-
{
|
|
400
|
-
'name': 'order_type'
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
'name': 'time_in_force'
|
|
404
|
-
},
|
|
405
|
-
{
|
|
406
|
-
'name': 'userId'
|
|
407
|
-
},
|
|
408
|
-
{
|
|
409
|
-
'name': 'userSecret'
|
|
410
|
-
},
|
|
411
|
-
{
|
|
412
|
-
'name': 'accountId'
|
|
413
|
-
},
|
|
414
|
-
{
|
|
415
|
-
'name': 'optionStrategyId'
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
'name': 'price'
|
|
419
|
-
},
|
|
420
|
-
]
|
|
421
|
-
},
|
|
422
359
|
'/currencies/rates/{currencyPair}-GET': {
|
|
423
360
|
'parameters': [
|
|
424
361
|
{
|
|
@@ -31,9 +31,6 @@ class PathValues(str, enum.Enum):
|
|
|
31
31
|
ACCOUNTS_ACCOUNT_ID_ACTIVITIES = "/accounts/{accountId}/activities"
|
|
32
32
|
ACCOUNTS_ACCOUNT_ID_OPTIONS = "/accounts/{accountId}/options"
|
|
33
33
|
ACCOUNTS_ACCOUNT_ID_OPTIONS_CHAIN = "/accounts/{accountId}/optionsChain"
|
|
34
|
-
ACCOUNTS_ACCOUNT_ID_OPTION_STRATEGY = "/accounts/{accountId}/optionStrategy"
|
|
35
|
-
ACCOUNTS_ACCOUNT_ID_OPTION_STRATEGY_OPTION_STRATEGY_ID = "/accounts/{accountId}/optionStrategy/{optionStrategyId}"
|
|
36
|
-
ACCOUNTS_ACCOUNT_ID_OPTION_STRATEGY_OPTION_STRATEGY_ID_EXECUTE = "/accounts/{accountId}/optionStrategy/{optionStrategyId}/execute"
|
|
37
34
|
ACTIVITIES = "/activities"
|
|
38
35
|
PERFORMANCE_CUSTOM = "/performance/custom"
|
|
39
36
|
ACCOUNTS_ACCOUNT_ID_QUOTES = "/accounts/{accountId}/quotes"
|
{snaptrade_python_sdk-11.0.123.dist-info → snaptrade_python_sdk-11.0.124.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.124
|
|
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.124)
|
|
34
34
|
[](https://github.com/passiv/snaptrade-sdks/tree/master/sdks/python#readme)
|
|
35
35
|
[](https://snaptrade.com/)
|
|
36
36
|
|
|
@@ -70,11 +70,8 @@ Connect brokerage accounts to your app for live positions and trading
|
|
|
70
70
|
* [`snaptrade.connections.remove_brokerage_authorization`](#snaptradeconnectionsremove_brokerage_authorization)
|
|
71
71
|
* [`snaptrade.connections.return_rates`](#snaptradeconnectionsreturn_rates)
|
|
72
72
|
* [`snaptrade.connections.session_events`](#snaptradeconnectionssession_events)
|
|
73
|
-
* [`snaptrade.options.get_option_strategy`](#snaptradeoptionsget_option_strategy)
|
|
74
73
|
* [`snaptrade.options.get_options_chain`](#snaptradeoptionsget_options_chain)
|
|
75
|
-
* [`snaptrade.options.get_options_strategy_quote`](#snaptradeoptionsget_options_strategy_quote)
|
|
76
74
|
* [`snaptrade.options.list_option_holdings`](#snaptradeoptionslist_option_holdings)
|
|
77
|
-
* [`snaptrade.options.place_option_strategy`](#snaptradeoptionsplace_option_strategy)
|
|
78
75
|
* [`snaptrade.reference_data.get_currency_exchange_rate_pair`](#snaptradereference_dataget_currency_exchange_rate_pair)
|
|
79
76
|
* [`snaptrade.reference_data.get_partner_info`](#snaptradereference_dataget_partner_info)
|
|
80
77
|
* [`snaptrade.reference_data.get_security_types`](#snaptradereference_dataget_security_types)
|
|
@@ -112,7 +109,7 @@ Python >=3.8
|
|
|
112
109
|
## Installation<a id="installation"></a>
|
|
113
110
|
|
|
114
111
|
```sh
|
|
115
|
-
pip install snaptrade-python-sdk==11.0.
|
|
112
|
+
pip install snaptrade-python-sdk==11.0.124
|
|
116
113
|
```
|
|
117
114
|
|
|
118
115
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -1184,61 +1181,6 @@ Optional comma separated list of session IDs used to filter the request on speci
|
|
|
1184
1181
|
|
|
1185
1182
|
---
|
|
1186
1183
|
|
|
1187
|
-
### `snaptrade.options.get_option_strategy`<a id="snaptradeoptionsget_option_strategy"></a>
|
|
1188
|
-
|
|
1189
|
-
Creates an option strategy object that will be used to place an option strategy order.
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1193
|
-
|
|
1194
|
-
```python
|
|
1195
|
-
get_option_strategy_response = snaptrade.options.get_option_strategy(
|
|
1196
|
-
underlying_symbol_id="2bcd7cc3-e922-4976-bce1-9858296801c3",
|
|
1197
|
-
legs=[
|
|
1198
|
-
{
|
|
1199
|
-
"action": "BUY_TO_OPEN",
|
|
1200
|
-
"option_symbol_id": "SPY220819P00200000",
|
|
1201
|
-
"quantity": 1,
|
|
1202
|
-
}
|
|
1203
|
-
],
|
|
1204
|
-
strategy_type="CUSTOM",
|
|
1205
|
-
user_id="snaptrade-user-123",
|
|
1206
|
-
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
1207
|
-
account_id="accountId_example",
|
|
1208
|
-
)
|
|
1209
|
-
```
|
|
1210
|
-
|
|
1211
|
-
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
|
1212
|
-
|
|
1213
|
-
##### underlying_symbol_id: `str`<a id="underlying_symbol_id-str"></a>
|
|
1214
|
-
|
|
1215
|
-
##### legs: List[`OptionLeg`]<a id="legs-listoptionleg"></a>
|
|
1216
|
-
|
|
1217
|
-
##### strategy_type: `str`<a id="strategy_type-str"></a>
|
|
1218
|
-
|
|
1219
|
-
##### user_id: `str`<a id="user_id-str"></a>
|
|
1220
|
-
|
|
1221
|
-
##### user_secret: `str`<a id="user_secret-str"></a>
|
|
1222
|
-
|
|
1223
|
-
##### account_id: `str`<a id="account_id-str"></a>
|
|
1224
|
-
|
|
1225
|
-
The ID of the account to create the option strategy object in.
|
|
1226
|
-
|
|
1227
|
-
#### ⚙️ Request Body<a id="⚙️-request-body"></a>
|
|
1228
|
-
|
|
1229
|
-
[`Any`](./snaptrade_client/type/typing_any.py)
|
|
1230
|
-
#### 🔄 Return<a id="🔄-return"></a>
|
|
1231
|
-
|
|
1232
|
-
[`StrategyQuotes`](./snaptrade_client/type/strategy_quotes.py)
|
|
1233
|
-
|
|
1234
|
-
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
|
1235
|
-
|
|
1236
|
-
`/accounts/{accountId}/optionStrategy` `post`
|
|
1237
|
-
|
|
1238
|
-
[🔙 **Back to Table of Contents**](#table-of-contents)
|
|
1239
|
-
|
|
1240
|
-
---
|
|
1241
|
-
|
|
1242
1184
|
### `snaptrade.options.get_options_chain`<a id="snaptradeoptionsget_options_chain"></a>
|
|
1243
1185
|
|
|
1244
1186
|
Returns the option chain for the specified symbol in the specified account.
|
|
@@ -1280,48 +1222,6 @@ Universal symbol ID if symbol
|
|
|
1280
1222
|
|
|
1281
1223
|
---
|
|
1282
1224
|
|
|
1283
|
-
### `snaptrade.options.get_options_strategy_quote`<a id="snaptradeoptionsget_options_strategy_quote"></a>
|
|
1284
|
-
|
|
1285
|
-
Returns a Strategy Quotes object which has latest market data of the specified option strategy.
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1289
|
-
|
|
1290
|
-
```python
|
|
1291
|
-
get_options_strategy_quote_response = snaptrade.options.get_options_strategy_quote(
|
|
1292
|
-
user_id="snaptrade-user-123",
|
|
1293
|
-
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
1294
|
-
account_id="accountId_example",
|
|
1295
|
-
option_strategy_id="2bcd7cc3-e922-4976-bce1-9858296801c3",
|
|
1296
|
-
)
|
|
1297
|
-
```
|
|
1298
|
-
|
|
1299
|
-
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
|
1300
|
-
|
|
1301
|
-
##### user_id: `str`<a id="user_id-str"></a>
|
|
1302
|
-
|
|
1303
|
-
##### user_secret: `str`<a id="user_secret-str"></a>
|
|
1304
|
-
|
|
1305
|
-
##### account_id: `str`<a id="account_id-str"></a>
|
|
1306
|
-
|
|
1307
|
-
The ID of the account the strategy will be placed in.
|
|
1308
|
-
|
|
1309
|
-
##### option_strategy_id: `str`<a id="option_strategy_id-str"></a>
|
|
1310
|
-
|
|
1311
|
-
Option strategy id obtained from response when creating option strategy object
|
|
1312
|
-
|
|
1313
|
-
#### 🔄 Return<a id="🔄-return"></a>
|
|
1314
|
-
|
|
1315
|
-
[`StrategyQuotes`](./snaptrade_client/type/strategy_quotes.py)
|
|
1316
|
-
|
|
1317
|
-
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
|
1318
|
-
|
|
1319
|
-
`/accounts/{accountId}/optionStrategy/{optionStrategyId}` `get`
|
|
1320
|
-
|
|
1321
|
-
[🔙 **Back to Table of Contents**](#table-of-contents)
|
|
1322
|
-
|
|
1323
|
-
---
|
|
1324
|
-
|
|
1325
1225
|
### `snaptrade.options.list_option_holdings`<a id="snaptradeoptionslist_option_holdings"></a>
|
|
1326
1226
|
|
|
1327
1227
|
Returns a list of option positions in the specified account. For stock/ETF/crypto/mutual fund positions, please use the [positions endpoint](/reference/Account%20Information/AccountInformation_getUserAccountPositions).
|
|
@@ -1359,59 +1259,6 @@ list_option_holdings_response = snaptrade.options.list_option_holdings(
|
|
|
1359
1259
|
|
|
1360
1260
|
---
|
|
1361
1261
|
|
|
1362
|
-
### `snaptrade.options.place_option_strategy`<a id="snaptradeoptionsplace_option_strategy"></a>
|
|
1363
|
-
|
|
1364
|
-
Places the option strategy order and returns the order record received from the brokerage.
|
|
1365
|
-
|
|
1366
|
-
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1367
|
-
|
|
1368
|
-
```python
|
|
1369
|
-
place_option_strategy_response = snaptrade.options.place_option_strategy(
|
|
1370
|
-
order_type="Market",
|
|
1371
|
-
time_in_force="Day",
|
|
1372
|
-
user_id="snaptrade-user-123",
|
|
1373
|
-
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
1374
|
-
account_id="2bcd7cc3-e922-4976-bce1-9858296801c3",
|
|
1375
|
-
option_strategy_id="2bcd7cc3-e922-4976-bce1-9858296801c3",
|
|
1376
|
-
price=31.33,
|
|
1377
|
-
)
|
|
1378
|
-
```
|
|
1379
|
-
|
|
1380
|
-
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
|
1381
|
-
|
|
1382
|
-
##### order_type: [`OrderTypeStrict`](./snaptrade_client/type/order_type_strict.py)<a id="order_type-ordertypestrictsnaptrade_clienttypeorder_type_strictpy"></a>
|
|
1383
|
-
|
|
1384
|
-
##### time_in_force: [`TimeInForceStrict`](./snaptrade_client/type/time_in_force_strict.py)<a id="time_in_force-timeinforcestrictsnaptrade_clienttypetime_in_force_strictpy"></a>
|
|
1385
|
-
|
|
1386
|
-
##### user_id: `str`<a id="user_id-str"></a>
|
|
1387
|
-
|
|
1388
|
-
##### user_secret: `str`<a id="user_secret-str"></a>
|
|
1389
|
-
|
|
1390
|
-
##### account_id: `str`<a id="account_id-str"></a>
|
|
1391
|
-
|
|
1392
|
-
The ID of the account to execute the strategy in.
|
|
1393
|
-
|
|
1394
|
-
##### option_strategy_id: `str`<a id="option_strategy_id-str"></a>
|
|
1395
|
-
|
|
1396
|
-
Option strategy id obtained from response when creating option strategy object
|
|
1397
|
-
|
|
1398
|
-
##### price: [`Price`](./snaptrade_client/type/price.py)<a id="price-pricesnaptrade_clienttypepricepy"></a>
|
|
1399
|
-
|
|
1400
|
-
#### ⚙️ Request Body<a id="⚙️-request-body"></a>
|
|
1401
|
-
|
|
1402
|
-
[`Any`](./snaptrade_client/type/typing_any.py)
|
|
1403
|
-
#### 🔄 Return<a id="🔄-return"></a>
|
|
1404
|
-
|
|
1405
|
-
[`StrategyOrderRecord`](./snaptrade_client/type/strategy_order_record.py)
|
|
1406
|
-
|
|
1407
|
-
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
|
1408
|
-
|
|
1409
|
-
`/accounts/{accountId}/optionStrategy/{optionStrategyId}/execute` `post`
|
|
1410
|
-
|
|
1411
|
-
[🔙 **Back to Table of Contents**](#table-of-contents)
|
|
1412
|
-
|
|
1413
|
-
---
|
|
1414
|
-
|
|
1415
1262
|
### `snaptrade.reference_data.get_currency_exchange_rate_pair`<a id="snaptradereference_dataget_currency_exchange_rate_pair"></a>
|
|
1416
1263
|
|
|
1417
1264
|
Returns an Exchange Rate Pair object for the specified Currency Pair.
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
snaptrade_client/__init__.py,sha256=
|
|
2
|
-
snaptrade_client/api_client.py,sha256=
|
|
1
|
+
snaptrade_client/__init__.py,sha256=Er-hSlwhAkZ5nFqkoxwycoGnyVLd8xZmMs6UyU5sWkQ,820
|
|
2
|
+
snaptrade_client/api_client.py,sha256=ks_wfSwO67ILPBMEV3WPxCuGo3POJZb0JWphhB0fcuY,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=TAkgurFDUikq9Y0iZNyipgF_-Lz2RQtesp80-ZRw1C0,12417
|
|
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
|
|
9
9
|
snaptrade_client/apis/paths/accounts_account_id_activities.py,sha256=ZzMgswkVGj_a9X3IoTm_wQ8yyHOMCVM2FVXlC2p7ntM,144
|
|
10
10
|
snaptrade_client/apis/paths/accounts_account_id_balances.py,sha256=dxrBnM_kJmk-yawUtuhDDzbbARl9s0DUStB4VdRWQCY,140
|
|
11
11
|
snaptrade_client/apis/paths/accounts_account_id_holdings.py,sha256=QCqmgaPTw1AhlKeS0d0Wjcp7juKTjvmLte2iZr6ue7M,140
|
|
12
|
-
snaptrade_client/apis/paths/accounts_account_id_option_strategy.py,sha256=UA4KKdFD0gU5sfP9IXPZJn4sgGbzq-nVKqfUEQer3i0,156
|
|
13
|
-
snaptrade_client/apis/paths/accounts_account_id_option_strategy_option_strategy_id.py,sha256=b_qgQ0FG2SVG4z2tnzMUvbrAqoPWOYM6vUsQfdcBmZE,188
|
|
14
|
-
snaptrade_client/apis/paths/accounts_account_id_option_strategy_option_strategy_id_execute.py,sha256=G5-xavqn_Hxe4SynfmG_BLF2qWxDO_dExaAdycnybIg,206
|
|
15
12
|
snaptrade_client/apis/paths/accounts_account_id_options.py,sha256=Q2BpJm_phHSqbhC-fSqsnCkL2GTGhaoHuVC51x_pLoI,138
|
|
16
13
|
snaptrade_client/apis/paths/accounts_account_id_options_chain.py,sha256=0x2p_tMUy8K8Kx1R0KQVdp5M03qwddDufPS2aZbtqO8,149
|
|
17
14
|
snaptrade_client/apis/paths/accounts_account_id_orders.py,sha256=2rP-vnv9VQm1Acdw0d8iaFYGFI5XqiP0XBYXeJ9kHaw,136
|
|
@@ -70,7 +67,7 @@ snaptrade_client/apis/tags/authentication_api_generated.py,sha256=Gt6muDG-vWm-Z8
|
|
|
70
67
|
snaptrade_client/apis/tags/connections_api.py,sha256=pNGuSjvX2Fg2IJymMvM3DcoUllKUmUQQpTtLVbY2Yi8,163
|
|
71
68
|
snaptrade_client/apis/tags/connections_api_generated.py,sha256=inWc0qR9q4SFyTWsfw_iI8foMNGaQ6oeZ1LaQy_qnjQ,1242
|
|
72
69
|
snaptrade_client/apis/tags/options_api.py,sha256=tl2HI1JChvEGrE5mcSLN85Ah5AHtjVa4n8Hx7GY-ZNA,147
|
|
73
|
-
snaptrade_client/apis/tags/options_api_generated.py,sha256=
|
|
70
|
+
snaptrade_client/apis/tags/options_api_generated.py,sha256=cZibnPAKx1t5eoDBuMrjE1Gty5Kso9jqzTsUhE-M4Jg,582
|
|
74
71
|
snaptrade_client/apis/tags/reference_data_api.py,sha256=DdmRsoiG7nLk8EgXWT1KvurcQnPYAlr1Dz0kdpdWGRQ,172
|
|
75
72
|
snaptrade_client/apis/tags/reference_data_api_generated.py,sha256=F5uv2WsIYX7z8P86b8W8gjMjJU46L6GWs6WFJjKW17Y,1635
|
|
76
73
|
snaptrade_client/apis/tags/trading_api.py,sha256=J0L9w7V4uoH3_fkvmJhpVQTIUQCACBgrb_QQ7VTILqI,147
|
|
@@ -80,7 +77,7 @@ snaptrade_client/apis/tags/transactions_and_reporting_api_generated.py,sha256=Tw
|
|
|
80
77
|
snaptrade_client/client.py,sha256=goDwWRv9909OPXDnGGYst_mr53bg6RUs4PwIvnrl_kE,2116
|
|
81
78
|
snaptrade_client/client.pyi,sha256=goDwWRv9909OPXDnGGYst_mr53bg6RUs4PwIvnrl_kE,2116
|
|
82
79
|
snaptrade_client/client_custom.py,sha256=Jx9ulCzelMFlESjzVFQSjBlYcH4dWxSJJWZDMPLyetM,745
|
|
83
|
-
snaptrade_client/configuration.py,sha256=
|
|
80
|
+
snaptrade_client/configuration.py,sha256=uwzLU7V5PKqV4OcLAtvjJzi3cnEcMuPY14nueTIi8-A,19262
|
|
84
81
|
snaptrade_client/exceptions.py,sha256=X0apI_sgQpGpa-qIqPUClReCdHAxeSuA6GW0YH_RsWg,7771
|
|
85
82
|
snaptrade_client/exceptions_base.py,sha256=LAQkaC5C61-SdBLfyMjb0K7AYJkWVuLmg2uCvHa71FM,2274
|
|
86
83
|
snaptrade_client/model/__init__.py,sha256=ayi2MIzcf0eAIsY13ToiNplV9tW-pMBFrC0I9yckGM8,350
|
|
@@ -425,8 +422,8 @@ snaptrade_client/model/user_secret.pyi,sha256=7xf__S566WtTq7VthmdVtrCBIfgpnYWYqE
|
|
|
425
422
|
snaptrade_client/model/validated_trade_body.py,sha256=NkTel1ulgSjBd6K7vur6puEbfrg3u1vdmtUKArOu8ws,3085
|
|
426
423
|
snaptrade_client/model/validated_trade_body.pyi,sha256=NkTel1ulgSjBd6K7vur6puEbfrg3u1vdmtUKArOu8ws,3085
|
|
427
424
|
snaptrade_client/models/__init__.py,sha256=nEO5bHCM19h-AQp0rl6XNHrTZ4Aw4ffqVOPRYOPOr_I,13312
|
|
428
|
-
snaptrade_client/operation_parameter_map.py,sha256=
|
|
429
|
-
snaptrade_client/paths/__init__.py,sha256=
|
|
425
|
+
snaptrade_client/operation_parameter_map.py,sha256=aXkhPW_v25cynvWzMJv_wU1sC9jXILRekK0kXdg4s1E,18261
|
|
426
|
+
snaptrade_client/paths/__init__.py,sha256=pcsKbVvTXfw8DZBrryYmzOi4vIFJc9ZPjdYk9Z2NWVc,3556
|
|
430
427
|
snaptrade_client/paths/accounts/__init__.py,sha256=_Bqi6B13A-kgd0AOpqmcE1vTxJDfoz-r3Hwf-AmwW6A,307
|
|
431
428
|
snaptrade_client/paths/accounts/get.py,sha256=MDE_4VCylBroYDkMQe9II1qCGf6gTTDGCShFyGLXf00,16463
|
|
432
429
|
snaptrade_client/paths/accounts/get.pyi,sha256=gna7qIU-95WqOFl6qTsP18ZY7SKi9CYEBAbARPAPPF4,16261
|
|
@@ -444,15 +441,6 @@ snaptrade_client/paths/accounts_account_id_balances/get.pyi,sha256=pQlaEfeXDY54g
|
|
|
444
441
|
snaptrade_client/paths/accounts_account_id_holdings/__init__.py,sha256=EkzRO4nxKZWuVWU5PkA0nQsIcAupunq2k_d_Vnc3X0M,347
|
|
445
442
|
snaptrade_client/paths/accounts_account_id_holdings/get.py,sha256=vWl7i6q7QfNg6MTe-f2ru6hUfz8sNeHX0xN7rQpaiuQ,22278
|
|
446
443
|
snaptrade_client/paths/accounts_account_id_holdings/get.pyi,sha256=jLqtCn7zB5R-S3PzqsJTkmJGIAjozugdMDKlRotBffQ,21994
|
|
447
|
-
snaptrade_client/paths/accounts_account_id_option_strategy/__init__.py,sha256=aFDN3JIm4g9X2B-i7vZkRKwdztdB78Ed1VfIV6zjBbE,361
|
|
448
|
-
snaptrade_client/paths/accounts_account_id_option_strategy/post.py,sha256=_kTczP_ajfD3Y4S8dkV3OVxE9Qm_wy4_hSuiMuVHibc,26705
|
|
449
|
-
snaptrade_client/paths/accounts_account_id_option_strategy/post.pyi,sha256=ku06Wjc73YadgzIfQts61LGrYC0r5k0CK1ges1mAsHg,26344
|
|
450
|
-
snaptrade_client/paths/accounts_account_id_option_strategy_option_strategy_id/__init__.py,sha256=QYccRHHPlpyZdjj2QTvLdOjCHLLiL13Dgd4lCk5QHjg,399
|
|
451
|
-
snaptrade_client/paths/accounts_account_id_option_strategy_option_strategy_id/get.py,sha256=I_JXXcTkykOcUPtztdGJTVv12SlwatMP0M_oqS7X2OA,19567
|
|
452
|
-
snaptrade_client/paths/accounts_account_id_option_strategy_option_strategy_id/get.pyi,sha256=PbKAVG6n55yUoSaelu5EFDb2M1D4h6E3uql1356c-_I,19373
|
|
453
|
-
snaptrade_client/paths/accounts_account_id_option_strategy_option_strategy_id_execute/__init__.py,sha256=Xy7rBnDDwAvVB7PRDOlVUr0VThHszLehz5tCDoY7GV4,415
|
|
454
|
-
snaptrade_client/paths/accounts_account_id_option_strategy_option_strategy_id_execute/post.py,sha256=9A1z8nf3Fzgxgb7wN0VUqQYC6LH8thy9x-yuh3iLhBY,26707
|
|
455
|
-
snaptrade_client/paths/accounts_account_id_option_strategy_option_strategy_id_execute/post.pyi,sha256=kqAk9ZEbwPFhLzikucrovL0T-LtSyS3gfsNMcabodBg,26513
|
|
456
444
|
snaptrade_client/paths/accounts_account_id_options/__init__.py,sha256=lo1mHnLsrOOIWOjzgIxryXLAXohM1empUmzef0JxjKI,345
|
|
457
445
|
snaptrade_client/paths/accounts_account_id_options/get.py,sha256=AqhezvFIo6LY5EfOJBrv4ArKT1X5ls5Wq2RLfv-GbVs,20237
|
|
458
446
|
snaptrade_client/paths/accounts_account_id_options/get.pyi,sha256=ksbiMPjTnYBYSslVmbtslODY48SHGSQmMaWJOd0U6m0,20043
|
|
@@ -775,7 +763,7 @@ snaptrade_client/type/user_secret.py,sha256=pKCVhqf1rROHwa6tvoyA5OAKXCBAmNDvIQCf
|
|
|
775
763
|
snaptrade_client/type/validated_trade_body.py,sha256=ZIPBQWii_a-9zHaBCJ6bQtmL1_I7AG0zwuvkY-ZQ6R4,890
|
|
776
764
|
snaptrade_client/type_util.py,sha256=JIrMYgJzd4IJ8Ne2vqcahlPA9dVmphL9sn8gwccCB4Y,563
|
|
777
765
|
snaptrade_client/validation_metadata.py,sha256=VTN5y-NudHXok1X468J4PnGze_tGEAcs1v3gsXmcrb0,3172
|
|
778
|
-
snaptrade_python_sdk-11.0.
|
|
779
|
-
snaptrade_python_sdk-11.0.
|
|
780
|
-
snaptrade_python_sdk-11.0.
|
|
781
|
-
snaptrade_python_sdk-11.0.
|
|
766
|
+
snaptrade_python_sdk-11.0.124.dist-info/LICENSE,sha256=W_1kcxEzOnZXIYJ1GVUipbmUu6dNLt-Pc-OI55h3k-A,1081
|
|
767
|
+
snaptrade_python_sdk-11.0.124.dist-info/METADATA,sha256=b7NyQwDXVjsM_watMV_kPF-0AIoJdQRrs4RI7Oh6uus,92370
|
|
768
|
+
snaptrade_python_sdk-11.0.124.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
769
|
+
snaptrade_python_sdk-11.0.124.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
# do not import all endpoints into this module because that uses a lot of memory and stack frames
|
|
2
|
-
# if you need the ability to import all endpoints from this module, import them with
|
|
3
|
-
# from snaptrade_client.paths.accounts_account_id_option_strategy import Api
|
|
4
|
-
|
|
5
|
-
from snaptrade_client.paths import PathValues
|
|
6
|
-
|
|
7
|
-
path = PathValues.ACCOUNTS_ACCOUNT_ID_OPTION_STRATEGY
|