snaptrade-python-sdk 11.0.107__py3-none-any.whl → 11.0.109__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/configuration.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.107.dist-info → snaptrade_python_sdk-11.0.109.dist-info}/METADATA +82 -121
- {snaptrade_python_sdk-11.0.107.dist-info → snaptrade_python_sdk-11.0.109.dist-info}/RECORD +9 -9
- {snaptrade_python_sdk-11.0.107.dist-info → snaptrade_python_sdk-11.0.109.dist-info}/LICENSE +0 -0
- {snaptrade_python_sdk-11.0.107.dist-info → snaptrade_python_sdk-11.0.109.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.109/python'
|
|
1159
1159
|
|
|
1160
1160
|
def __enter__(self):
|
|
1161
1161
|
return self
|
|
@@ -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.109".\
|
|
442
442
|
format(env=sys.platform, pyversion=sys.version)
|
|
443
443
|
|
|
444
444
|
def get_host_settings(self):
|
|
@@ -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.107.dist-info → snaptrade_python_sdk-11.0.109.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.109
|
|
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.109)
|
|
34
34
|
[](https://github.com/passiv/snaptrade-sdks/tree/master/sdks/python#readme)
|
|
35
35
|
[](https://snaptrade.com/)
|
|
36
36
|
|
|
@@ -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.109
|
|
114
114
|
```
|
|
115
115
|
|
|
116
116
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -160,6 +160,7 @@ deleted_response = snaptrade.authentication.delete_snap_trade_user(
|
|
|
160
160
|
query_params={"userId": user_id}
|
|
161
161
|
)
|
|
162
162
|
pprint(deleted_response.body)
|
|
163
|
+
|
|
163
164
|
```
|
|
164
165
|
|
|
165
166
|
## Async<a id="async"></a>
|
|
@@ -167,6 +168,7 @@ pprint(deleted_response.body)
|
|
|
167
168
|
`async` support is available by prepending `a` to any method.
|
|
168
169
|
|
|
169
170
|
```python
|
|
171
|
+
|
|
170
172
|
import asyncio
|
|
171
173
|
from pprint import pprint
|
|
172
174
|
from snaptrade_client import SnapTrade, ApiException
|
|
@@ -176,21 +178,18 @@ snaptrade = SnapTrade(
|
|
|
176
178
|
client_id="YOUR_CLIENT_ID",
|
|
177
179
|
)
|
|
178
180
|
|
|
179
|
-
|
|
180
181
|
async def main():
|
|
181
182
|
try:
|
|
182
183
|
# List account activities
|
|
183
|
-
get_account_activities_response = (
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
type="BUY,SELL,DIVIDEND",
|
|
193
|
-
)
|
|
184
|
+
get_account_activities_response = 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",
|
|
194
193
|
)
|
|
195
194
|
pprint(get_account_activities_response.body)
|
|
196
195
|
pprint(get_account_activities_response.body["data"])
|
|
@@ -199,17 +198,13 @@ async def main():
|
|
|
199
198
|
pprint(get_account_activities_response.status)
|
|
200
199
|
pprint(get_account_activities_response.round_trip_time)
|
|
201
200
|
except ApiException as e:
|
|
202
|
-
print(
|
|
203
|
-
"Exception when calling AccountInformationApi.get_account_activities: %s\n"
|
|
204
|
-
% e
|
|
205
|
-
)
|
|
201
|
+
print("Exception when calling AccountInformationApi.get_account_activities: %s\n" % e)
|
|
206
202
|
pprint(e.body)
|
|
207
203
|
pprint(e.headers)
|
|
208
204
|
pprint(e.status)
|
|
209
205
|
pprint(e.reason)
|
|
210
206
|
pprint(e.round_trip_time)
|
|
211
207
|
|
|
212
|
-
|
|
213
208
|
asyncio.run(main())
|
|
214
209
|
```
|
|
215
210
|
|
|
@@ -332,12 +327,10 @@ The data returned here is cached. How long the data is cached for varies by brok
|
|
|
332
327
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
333
328
|
|
|
334
329
|
```python
|
|
335
|
-
get_user_account_balance_response = (
|
|
336
|
-
snaptrade
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
340
|
-
)
|
|
330
|
+
get_user_account_balance_response = snaptrade.account_information.get_user_account_balance(
|
|
331
|
+
user_id="snaptrade-user-123",
|
|
332
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
333
|
+
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
341
334
|
)
|
|
342
335
|
```
|
|
343
336
|
|
|
@@ -371,12 +364,10 @@ The data returned here is always cached and refreshed once a day. **If you need
|
|
|
371
364
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
372
365
|
|
|
373
366
|
```python
|
|
374
|
-
get_user_account_details_response = (
|
|
375
|
-
snaptrade
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
379
|
-
)
|
|
367
|
+
get_user_account_details_response = snaptrade.account_information.get_user_account_details(
|
|
368
|
+
user_id="snaptrade-user-123",
|
|
369
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
370
|
+
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
380
371
|
)
|
|
381
372
|
```
|
|
382
373
|
|
|
@@ -410,14 +401,12 @@ The data returned here is cached. How long the data is cached for varies by brok
|
|
|
410
401
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
411
402
|
|
|
412
403
|
```python
|
|
413
|
-
get_user_account_orders_response = (
|
|
414
|
-
snaptrade
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
days=30,
|
|
420
|
-
)
|
|
404
|
+
get_user_account_orders_response = snaptrade.account_information.get_user_account_orders(
|
|
405
|
+
user_id="snaptrade-user-123",
|
|
406
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
407
|
+
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
408
|
+
state="all",
|
|
409
|
+
days=30,
|
|
421
410
|
)
|
|
422
411
|
```
|
|
423
412
|
|
|
@@ -459,12 +448,10 @@ The data returned here is cached. How long the data is cached for varies by brok
|
|
|
459
448
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
460
449
|
|
|
461
450
|
```python
|
|
462
|
-
get_user_account_positions_response = (
|
|
463
|
-
snaptrade
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
467
|
-
)
|
|
451
|
+
get_user_account_positions_response = snaptrade.account_information.get_user_account_positions(
|
|
452
|
+
user_id="snaptrade-user-123",
|
|
453
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
454
|
+
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
468
455
|
)
|
|
469
456
|
```
|
|
470
457
|
|
|
@@ -500,13 +487,11 @@ By default only returns executed orders, but that can be changed by setting *onl
|
|
|
500
487
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
501
488
|
|
|
502
489
|
```python
|
|
503
|
-
get_user_account_recent_orders_response = (
|
|
504
|
-
snaptrade
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
only_executed=True,
|
|
509
|
-
)
|
|
490
|
+
get_user_account_recent_orders_response = snaptrade.account_information.get_user_account_recent_orders(
|
|
491
|
+
user_id="snaptrade-user-123",
|
|
492
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
493
|
+
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
494
|
+
only_executed=True,
|
|
510
495
|
)
|
|
511
496
|
```
|
|
512
497
|
|
|
@@ -542,12 +527,10 @@ Returns a list of rate of return percents for a given account. Will include time
|
|
|
542
527
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
543
528
|
|
|
544
529
|
```python
|
|
545
|
-
get_user_account_return_rates_response = (
|
|
546
|
-
snaptrade
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
550
|
-
)
|
|
530
|
+
get_user_account_return_rates_response = snaptrade.account_information.get_user_account_return_rates(
|
|
531
|
+
user_id="snaptrade-user-123",
|
|
532
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
533
|
+
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
551
534
|
)
|
|
552
535
|
```
|
|
553
536
|
|
|
@@ -856,11 +839,9 @@ Rotates the secret for a SnapTrade user. You might use this if `userSecret` is c
|
|
|
856
839
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
857
840
|
|
|
858
841
|
```python
|
|
859
|
-
reset_snap_trade_user_secret_response = (
|
|
860
|
-
snaptrade
|
|
861
|
-
|
|
862
|
-
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
863
|
-
)
|
|
842
|
+
reset_snap_trade_user_secret_response = snaptrade.authentication.reset_snap_trade_user_secret(
|
|
843
|
+
user_id="snaptrade-user-123",
|
|
844
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
864
845
|
)
|
|
865
846
|
```
|
|
866
847
|
|
|
@@ -896,12 +877,10 @@ Returns a single connection for the specified ID.
|
|
|
896
877
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
897
878
|
|
|
898
879
|
```python
|
|
899
|
-
detail_brokerage_authorization_response = (
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
904
|
-
)
|
|
880
|
+
detail_brokerage_authorization_response = snaptrade.connections.detail_brokerage_authorization(
|
|
881
|
+
authorization_id="87b24961-b51e-4db8-9226-f198f6518a89",
|
|
882
|
+
user_id="snaptrade-user-123",
|
|
883
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
905
884
|
)
|
|
906
885
|
```
|
|
907
886
|
|
|
@@ -936,12 +915,10 @@ This endpoint is available on test keys. If you would like it enabled on product
|
|
|
936
915
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
937
916
|
|
|
938
917
|
```python
|
|
939
|
-
disable_brokerage_authorization_response = (
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
944
|
-
)
|
|
918
|
+
disable_brokerage_authorization_response = snaptrade.connections.disable_brokerage_authorization(
|
|
919
|
+
authorization_id="87b24961-b51e-4db8-9226-f198f6518a89",
|
|
920
|
+
user_id="snaptrade-user-123",
|
|
921
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
945
922
|
)
|
|
946
923
|
```
|
|
947
924
|
|
|
@@ -977,11 +954,9 @@ SnapTrade performs de-duping on connections for a given user. If the user has an
|
|
|
977
954
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
978
955
|
|
|
979
956
|
```python
|
|
980
|
-
list_brokerage_authorizations_response = (
|
|
981
|
-
snaptrade
|
|
982
|
-
|
|
983
|
-
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
984
|
-
)
|
|
957
|
+
list_brokerage_authorizations_response = snaptrade.connections.list_brokerage_authorizations(
|
|
958
|
+
user_id="snaptrade-user-123",
|
|
959
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
985
960
|
)
|
|
986
961
|
```
|
|
987
962
|
|
|
@@ -1014,12 +989,10 @@ This endpoint will also trigger a transaction sync for the past day if one has n
|
|
|
1014
989
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1015
990
|
|
|
1016
991
|
```python
|
|
1017
|
-
refresh_brokerage_authorization_response = (
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
1022
|
-
)
|
|
992
|
+
refresh_brokerage_authorization_response = snaptrade.connections.refresh_brokerage_authorization(
|
|
993
|
+
authorization_id="87b24961-b51e-4db8-9226-f198f6518a89",
|
|
994
|
+
user_id="snaptrade-user-123",
|
|
995
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
1023
996
|
)
|
|
1024
997
|
```
|
|
1025
998
|
|
|
@@ -1377,10 +1350,8 @@ Returns an Exchange Rate Pair object for the specified Currency Pair.
|
|
|
1377
1350
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1378
1351
|
|
|
1379
1352
|
```python
|
|
1380
|
-
get_currency_exchange_rate_pair_response = (
|
|
1381
|
-
|
|
1382
|
-
currency_pair="currencyPair_example",
|
|
1383
|
-
)
|
|
1353
|
+
get_currency_exchange_rate_pair_response = snaptrade.reference_data.get_currency_exchange_rate_pair(
|
|
1354
|
+
currency_pair="currencyPair_example",
|
|
1384
1355
|
)
|
|
1385
1356
|
```
|
|
1386
1357
|
|
|
@@ -1540,10 +1511,8 @@ Returns a list of all defined Brokerage authorization Type objects.
|
|
|
1540
1511
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1541
1512
|
|
|
1542
1513
|
```python
|
|
1543
|
-
list_all_brokerage_authorization_type_response = (
|
|
1544
|
-
|
|
1545
|
-
brokerage="QUESTRADE,ALPACA",
|
|
1546
|
-
)
|
|
1514
|
+
list_all_brokerage_authorization_type_response = snaptrade.reference_data.list_all_brokerage_authorization_type(
|
|
1515
|
+
brokerage="QUESTRADE,ALPACA",
|
|
1547
1516
|
)
|
|
1548
1517
|
```
|
|
1549
1518
|
|
|
@@ -1616,9 +1585,7 @@ Returns a list of all Exchange Rate Pairs for all supported Currencies.
|
|
|
1616
1585
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1617
1586
|
|
|
1618
1587
|
```python
|
|
1619
|
-
list_all_currencies_rates_response = (
|
|
1620
|
-
snaptrade.reference_data.list_all_currencies_rates()
|
|
1621
|
-
)
|
|
1588
|
+
list_all_currencies_rates_response = snaptrade.reference_data.list_all_currencies_rates()
|
|
1622
1589
|
```
|
|
1623
1590
|
|
|
1624
1591
|
#### 🔄 Return<a id="🔄-return"></a>
|
|
@@ -1643,13 +1610,11 @@ The search results are further limited to the symbols supported by the brokerage
|
|
|
1643
1610
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1644
1611
|
|
|
1645
1612
|
```python
|
|
1646
|
-
symbol_search_user_account_response = (
|
|
1647
|
-
snaptrade
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
substring="AAPL",
|
|
1652
|
-
)
|
|
1613
|
+
symbol_search_user_account_response = snaptrade.reference_data.symbol_search_user_account(
|
|
1614
|
+
user_id="snaptrade-user-123",
|
|
1615
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
1616
|
+
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
1617
|
+
substring="AAPL",
|
|
1653
1618
|
)
|
|
1654
1619
|
```
|
|
1655
1620
|
|
|
@@ -1769,13 +1734,11 @@ Gets a quote for the specified account.
|
|
|
1769
1734
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1770
1735
|
|
|
1771
1736
|
```python
|
|
1772
|
-
get_cryptocurrency_pair_quote_response = (
|
|
1773
|
-
snaptrade
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
instrument_symbol="BTC-USD",
|
|
1778
|
-
)
|
|
1737
|
+
get_cryptocurrency_pair_quote_response = snaptrade.trading.get_cryptocurrency_pair_quote(
|
|
1738
|
+
user_id="snaptrade-user-123",
|
|
1739
|
+
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
1740
|
+
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
1741
|
+
instrument_symbol="BTC-USD",
|
|
1779
1742
|
)
|
|
1780
1743
|
```
|
|
1781
1744
|
|
|
@@ -2087,7 +2050,7 @@ For Equity orders, this represents the number of shares for the order. This can
|
|
|
2087
2050
|
|
|
2088
2051
|
### `snaptrade.trading.place_mleg_order`<a id="snaptradetradingplace_mleg_order"></a>
|
|
2089
2052
|
|
|
2090
|
-
Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
|
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.
|
|
2091
2054
|
|
|
2092
2055
|
|
|
2093
2056
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
@@ -2450,14 +2413,12 @@ Searches cryptocurrency pairs instruments accessible to the specified account.
|
|
|
2450
2413
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
2451
2414
|
|
|
2452
2415
|
```python
|
|
2453
|
-
search_cryptocurrency_pair_instruments_response = (
|
|
2454
|
-
snaptrade
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
quote="USD",
|
|
2460
|
-
)
|
|
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",
|
|
2461
2422
|
)
|
|
2462
2423
|
```
|
|
2463
2424
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
snaptrade_client/__init__.py,sha256=
|
|
2
|
-
snaptrade_client/api_client.py,sha256=
|
|
1
|
+
snaptrade_client/__init__.py,sha256=XZQyvK-3QdZ0E99F2G_xQrO5AugpettZ6nteopDzHds,820
|
|
2
|
+
snaptrade_client/api_client.py,sha256=tKZNAE0nNVt7oskReDIofGCaDyO19V_N04jnJ5_wMBI,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
5
|
snaptrade_client/apis/path_to_api.py,sha256=fDtFd8AqFO8oDYvdEAFTO9PrVL_qMSjlch1YRVeidlk,13189
|
|
@@ -78,7 +78,7 @@ snaptrade_client/apis/tags/transactions_and_reporting_api_generated.py,sha256=Tw
|
|
|
78
78
|
snaptrade_client/client.py,sha256=goDwWRv9909OPXDnGGYst_mr53bg6RUs4PwIvnrl_kE,2116
|
|
79
79
|
snaptrade_client/client.pyi,sha256=goDwWRv9909OPXDnGGYst_mr53bg6RUs4PwIvnrl_kE,2116
|
|
80
80
|
snaptrade_client/client_custom.py,sha256=Jx9ulCzelMFlESjzVFQSjBlYcH4dWxSJJWZDMPLyetM,745
|
|
81
|
-
snaptrade_client/configuration.py,sha256=
|
|
81
|
+
snaptrade_client/configuration.py,sha256=eINW3ZG0o27W9GVM4HlJrcITPqGzr3Mslkh9-Rv1nt8,19262
|
|
82
82
|
snaptrade_client/exceptions.py,sha256=X0apI_sgQpGpa-qIqPUClReCdHAxeSuA6GW0YH_RsWg,7771
|
|
83
83
|
snaptrade_client/exceptions_base.py,sha256=LAQkaC5C61-SdBLfyMjb0K7AYJkWVuLmg2uCvHa71FM,2274
|
|
84
84
|
snaptrade_client/model/__init__.py,sha256=ayi2MIzcf0eAIsY13ToiNplV9tW-pMBFrC0I9yckGM8,350
|
|
@@ -474,8 +474,8 @@ snaptrade_client/paths/accounts_account_id_trading_instruments_cryptocurrency_pa
|
|
|
474
474
|
snaptrade_client/paths/accounts_account_id_trading_instruments_cryptocurrency_pairs_instrument_symbol_quote/get.py,sha256=oNzuvtIHAIpoFe8L7cg6ReqjZeR4NGCOrX4MGDQ7D9A,19938
|
|
475
475
|
snaptrade_client/paths/accounts_account_id_trading_instruments_cryptocurrency_pairs_instrument_symbol_quote/get.pyi,sha256=DVoKhxO1njO4Z-f_mqdOqF1uhAn1D2jb-emqLKHp6lc,19714
|
|
476
476
|
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=
|
|
477
|
+
snaptrade_client/paths/accounts_account_id_trading_options/post.py,sha256=e7tXfuCvdBL9WEv5WgAVA9AhclBsxGjRklHtOXrSJVc,25377
|
|
478
|
+
snaptrade_client/paths/accounts_account_id_trading_options/post.pyi,sha256=G_XIU3xRC6I_8Z1Kn05cpBvKxfIwQUrxCiwQ_SrR7WI,25153
|
|
479
479
|
snaptrade_client/paths/accounts_account_id_trading_simple/__init__.py,sha256=1kfuRO4L1XUyRnv-XbLhv5SrvJ4UqjzjKDfRR9EIu9Y,359
|
|
480
480
|
snaptrade_client/paths/accounts_account_id_trading_simple/post.py,sha256=Zai93YFZyIGtJ29ekg7C7zrMdcjFGkCbTYQ6EoiTQhk,25855
|
|
481
481
|
snaptrade_client/paths/accounts_account_id_trading_simple/post.pyi,sha256=0R2cRYCioI6TyibrI827Ew2AA2kiOBz54f_YykzAiz0,25631
|
|
@@ -746,7 +746,7 @@ snaptrade_client/type/user_secret.py,sha256=pKCVhqf1rROHwa6tvoyA5OAKXCBAmNDvIQCf
|
|
|
746
746
|
snaptrade_client/type/validated_trade_body.py,sha256=ZIPBQWii_a-9zHaBCJ6bQtmL1_I7AG0zwuvkY-ZQ6R4,890
|
|
747
747
|
snaptrade_client/type_util.py,sha256=JIrMYgJzd4IJ8Ne2vqcahlPA9dVmphL9sn8gwccCB4Y,563
|
|
748
748
|
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.
|
|
749
|
+
snaptrade_python_sdk-11.0.109.dist-info/LICENSE,sha256=W_1kcxEzOnZXIYJ1GVUipbmUu6dNLt-Pc-OI55h3k-A,1081
|
|
750
|
+
snaptrade_python_sdk-11.0.109.dist-info/METADATA,sha256=xe_Jwt4BlFq4k0h9KD_EJ5xVDhiCKIqCvj1HrCi1ryE,94213
|
|
751
|
+
snaptrade_python_sdk-11.0.109.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
752
|
+
snaptrade_python_sdk-11.0.109.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|