snaptrade-python-sdk 11.0.143__py3-none-any.whl → 11.0.144__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 +6 -0
- snaptrade_client/apis/paths/accounts_account_id_orders_v2.py +7 -0
- snaptrade_client/apis/paths/accounts_account_id_recent_orders_v2.py +7 -0
- snaptrade_client/apis/tag_to_api.py +3 -0
- snaptrade_client/apis/tags/__init__.py +1 -0
- snaptrade_client/apis/tags/experimental_endpoints_api.py +6 -0
- snaptrade_client/apis/tags/experimental_endpoints_api_generated.py +23 -0
- snaptrade_client/client.py +2 -0
- snaptrade_client/client.pyi +2 -0
- snaptrade_client/configuration.py +1 -1
- snaptrade_client/model/account_order_record_leg.py +252 -0
- snaptrade_client/model/account_order_record_leg.pyi +252 -0
- snaptrade_client/model/account_order_record_leg_instrument.py +137 -0
- snaptrade_client/model/account_order_record_leg_instrument.pyi +137 -0
- snaptrade_client/model/account_order_record_status_v2.py +90 -0
- snaptrade_client/model/account_order_record_status_v2.pyi +75 -0
- snaptrade_client/model/account_order_record_status_v2_nullable.py +105 -0
- snaptrade_client/model/account_order_record_status_v2_nullable.pyi +105 -0
- snaptrade_client/model/account_order_record_v2.py +309 -0
- snaptrade_client/model/account_order_record_v2.pyi +309 -0
- snaptrade_client/model/account_orders_v2_response.py +110 -0
- snaptrade_client/model/account_orders_v2_response.pyi +110 -0
- snaptrade_client/model/action_strict_v2.py +25 -0
- snaptrade_client/model/action_strict_v2.pyi +25 -0
- snaptrade_client/models/__init__.py +7 -0
- snaptrade_client/operation_parameter_map.py +35 -0
- snaptrade_client/paths/__init__.py +2 -0
- snaptrade_client/paths/accounts_account_id_orders_v2/__init__.py +7 -0
- snaptrade_client/paths/accounts_account_id_orders_v2/get.py +592 -0
- snaptrade_client/paths/accounts_account_id_orders_v2/get.pyi +569 -0
- snaptrade_client/paths/accounts_account_id_recent_orders_v2/__init__.py +7 -0
- snaptrade_client/paths/accounts_account_id_recent_orders_v2/get.py +561 -0
- snaptrade_client/paths/accounts_account_id_recent_orders_v2/get.pyi +549 -0
- snaptrade_client/type/account_order_record_leg.py +48 -0
- snaptrade_client/type/account_order_record_leg_instrument.py +39 -0
- snaptrade_client/type/account_order_record_status_v2.py +19 -0
- snaptrade_client/type/account_order_record_status_v2_nullable.py +19 -0
- snaptrade_client/type/account_order_record_v2.py +58 -0
- snaptrade_client/type/account_orders_v2_response.py +28 -0
- snaptrade_client/type/action_strict_v2.py +19 -0
- {snaptrade_python_sdk-11.0.143.dist-info → snaptrade_python_sdk-11.0.144.dist-info}/METADATA +102 -3
- {snaptrade_python_sdk-11.0.143.dist-info → snaptrade_python_sdk-11.0.144.dist-info}/RECORD +46 -15
- {snaptrade_python_sdk-11.0.143.dist-info → snaptrade_python_sdk-11.0.144.dist-info}/LICENSE +0 -0
- {snaptrade_python_sdk-11.0.143.dist-info → snaptrade_python_sdk-11.0.144.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import date, datetime # noqa: F401
|
|
14
|
+
import decimal # noqa: F401
|
|
15
|
+
import functools # noqa: F401
|
|
16
|
+
import io # noqa: F401
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import typing # noqa: F401
|
|
19
|
+
import typing_extensions # noqa: F401
|
|
20
|
+
import uuid # noqa: F401
|
|
21
|
+
|
|
22
|
+
import frozendict # noqa: F401
|
|
23
|
+
|
|
24
|
+
from snaptrade_client import schemas # noqa: F401
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class AccountOrdersV2Response(
|
|
28
|
+
schemas.DictSchema
|
|
29
|
+
):
|
|
30
|
+
"""
|
|
31
|
+
This class is auto generated by Konfig (https://konfigthis.com)
|
|
32
|
+
|
|
33
|
+
Contains a standardized list of account orders in the V2 format.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class MetaOapg:
|
|
38
|
+
required = {
|
|
39
|
+
"orders",
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
class properties:
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class orders(
|
|
46
|
+
schemas.ListSchema
|
|
47
|
+
):
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class MetaOapg:
|
|
51
|
+
|
|
52
|
+
@staticmethod
|
|
53
|
+
def items() -> typing.Type['AccountOrderRecordV2']:
|
|
54
|
+
return AccountOrderRecordV2
|
|
55
|
+
|
|
56
|
+
def __new__(
|
|
57
|
+
cls,
|
|
58
|
+
arg: typing.Union[typing.Tuple['AccountOrderRecordV2'], typing.List['AccountOrderRecordV2']],
|
|
59
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
60
|
+
) -> 'orders':
|
|
61
|
+
return super().__new__(
|
|
62
|
+
cls,
|
|
63
|
+
arg,
|
|
64
|
+
_configuration=_configuration,
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
def __getitem__(self, i: int) -> 'AccountOrderRecordV2':
|
|
68
|
+
return super().__getitem__(i)
|
|
69
|
+
__annotations__ = {
|
|
70
|
+
"orders": orders,
|
|
71
|
+
}
|
|
72
|
+
additional_properties = schemas.AnyTypeSchema
|
|
73
|
+
|
|
74
|
+
orders: MetaOapg.properties.orders
|
|
75
|
+
|
|
76
|
+
@typing.overload
|
|
77
|
+
def __getitem__(self, name: typing_extensions.Literal["orders"]) -> MetaOapg.properties.orders: ...
|
|
78
|
+
|
|
79
|
+
@typing.overload
|
|
80
|
+
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
|
81
|
+
|
|
82
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["orders"], str, ]):
|
|
83
|
+
# dict_instance[name] accessor
|
|
84
|
+
return super().__getitem__(name)
|
|
85
|
+
|
|
86
|
+
@typing.overload
|
|
87
|
+
def get_item_oapg(self, name: typing_extensions.Literal["orders"]) -> MetaOapg.properties.orders: ...
|
|
88
|
+
|
|
89
|
+
@typing.overload
|
|
90
|
+
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
|
91
|
+
|
|
92
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["orders"], str, ]):
|
|
93
|
+
return super().get_item_oapg(name)
|
|
94
|
+
|
|
95
|
+
def __new__(
|
|
96
|
+
cls,
|
|
97
|
+
*args: typing.Union[dict, frozendict.frozendict, ],
|
|
98
|
+
orders: typing.Union[MetaOapg.properties.orders, list, tuple, ],
|
|
99
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
100
|
+
**kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
|
101
|
+
) -> 'AccountOrdersV2Response':
|
|
102
|
+
return super().__new__(
|
|
103
|
+
cls,
|
|
104
|
+
*args,
|
|
105
|
+
orders=orders,
|
|
106
|
+
_configuration=_configuration,
|
|
107
|
+
**kwargs,
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
from snaptrade_client.model.account_order_record_v2 import AccountOrderRecordV2
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import date, datetime # noqa: F401
|
|
14
|
+
import decimal # noqa: F401
|
|
15
|
+
import functools # noqa: F401
|
|
16
|
+
import io # noqa: F401
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import typing # noqa: F401
|
|
19
|
+
import typing_extensions # noqa: F401
|
|
20
|
+
import uuid # noqa: F401
|
|
21
|
+
|
|
22
|
+
import frozendict # noqa: F401
|
|
23
|
+
|
|
24
|
+
from snaptrade_client import schemas # noqa: F401
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class AccountOrdersV2Response(
|
|
28
|
+
schemas.DictSchema
|
|
29
|
+
):
|
|
30
|
+
"""
|
|
31
|
+
This class is auto generated by Konfig (https://konfigthis.com)
|
|
32
|
+
|
|
33
|
+
Contains a standardized list of account orders in the V2 format.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class MetaOapg:
|
|
38
|
+
required = {
|
|
39
|
+
"orders",
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
class properties:
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class orders(
|
|
46
|
+
schemas.ListSchema
|
|
47
|
+
):
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class MetaOapg:
|
|
51
|
+
|
|
52
|
+
@staticmethod
|
|
53
|
+
def items() -> typing.Type['AccountOrderRecordV2']:
|
|
54
|
+
return AccountOrderRecordV2
|
|
55
|
+
|
|
56
|
+
def __new__(
|
|
57
|
+
cls,
|
|
58
|
+
arg: typing.Union[typing.Tuple['AccountOrderRecordV2'], typing.List['AccountOrderRecordV2']],
|
|
59
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
60
|
+
) -> 'orders':
|
|
61
|
+
return super().__new__(
|
|
62
|
+
cls,
|
|
63
|
+
arg,
|
|
64
|
+
_configuration=_configuration,
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
def __getitem__(self, i: int) -> 'AccountOrderRecordV2':
|
|
68
|
+
return super().__getitem__(i)
|
|
69
|
+
__annotations__ = {
|
|
70
|
+
"orders": orders,
|
|
71
|
+
}
|
|
72
|
+
additional_properties = schemas.AnyTypeSchema
|
|
73
|
+
|
|
74
|
+
orders: MetaOapg.properties.orders
|
|
75
|
+
|
|
76
|
+
@typing.overload
|
|
77
|
+
def __getitem__(self, name: typing_extensions.Literal["orders"]) -> MetaOapg.properties.orders: ...
|
|
78
|
+
|
|
79
|
+
@typing.overload
|
|
80
|
+
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
|
81
|
+
|
|
82
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["orders"], str, ]):
|
|
83
|
+
# dict_instance[name] accessor
|
|
84
|
+
return super().__getitem__(name)
|
|
85
|
+
|
|
86
|
+
@typing.overload
|
|
87
|
+
def get_item_oapg(self, name: typing_extensions.Literal["orders"]) -> MetaOapg.properties.orders: ...
|
|
88
|
+
|
|
89
|
+
@typing.overload
|
|
90
|
+
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
|
91
|
+
|
|
92
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["orders"], str, ]):
|
|
93
|
+
return super().get_item_oapg(name)
|
|
94
|
+
|
|
95
|
+
def __new__(
|
|
96
|
+
cls,
|
|
97
|
+
*args: typing.Union[dict, frozendict.frozendict, ],
|
|
98
|
+
orders: typing.Union[MetaOapg.properties.orders, list, tuple, ],
|
|
99
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
100
|
+
**kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
|
101
|
+
) -> 'AccountOrdersV2Response':
|
|
102
|
+
return super().__new__(
|
|
103
|
+
cls,
|
|
104
|
+
*args,
|
|
105
|
+
orders=orders,
|
|
106
|
+
_configuration=_configuration,
|
|
107
|
+
**kwargs,
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
from snaptrade_client.model.account_order_record_v2 import AccountOrderRecordV2
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import date, datetime # noqa: F401
|
|
14
|
+
import decimal # noqa: F401
|
|
15
|
+
import functools # noqa: F401
|
|
16
|
+
import io # noqa: F401
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import typing # noqa: F401
|
|
19
|
+
import typing_extensions # noqa: F401
|
|
20
|
+
import uuid # noqa: F401
|
|
21
|
+
|
|
22
|
+
import frozendict # noqa: F401
|
|
23
|
+
|
|
24
|
+
from snaptrade_client import schemas # noqa: F401
|
|
25
|
+
ActionStrictV2 = schemas.StrSchema
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import date, datetime # noqa: F401
|
|
14
|
+
import decimal # noqa: F401
|
|
15
|
+
import functools # noqa: F401
|
|
16
|
+
import io # noqa: F401
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import typing # noqa: F401
|
|
19
|
+
import typing_extensions # noqa: F401
|
|
20
|
+
import uuid # noqa: F401
|
|
21
|
+
|
|
22
|
+
import frozendict # noqa: F401
|
|
23
|
+
|
|
24
|
+
from snaptrade_client import schemas # noqa: F401
|
|
25
|
+
ActionStrictV2 = schemas.StrSchema
|
|
@@ -20,12 +20,19 @@ from snaptrade_client.model.account_id import AccountID
|
|
|
20
20
|
from snaptrade_client.model.account_ids import AccountIDs
|
|
21
21
|
from snaptrade_client.model.account_meta import AccountMeta
|
|
22
22
|
from snaptrade_client.model.account_order_record import AccountOrderRecord
|
|
23
|
+
from snaptrade_client.model.account_order_record_leg import AccountOrderRecordLeg
|
|
24
|
+
from snaptrade_client.model.account_order_record_leg_instrument import AccountOrderRecordLegInstrument
|
|
23
25
|
from snaptrade_client.model.account_order_record_status import AccountOrderRecordStatus
|
|
26
|
+
from snaptrade_client.model.account_order_record_status_v2 import AccountOrderRecordStatusV2
|
|
27
|
+
from snaptrade_client.model.account_order_record_status_v2_nullable import AccountOrderRecordStatusV2Nullable
|
|
28
|
+
from snaptrade_client.model.account_order_record_v2 import AccountOrderRecordV2
|
|
29
|
+
from snaptrade_client.model.account_orders_v2_response import AccountOrdersV2Response
|
|
24
30
|
from snaptrade_client.model.account_simple import AccountSimple
|
|
25
31
|
from snaptrade_client.model.account_sync_status import AccountSyncStatus
|
|
26
32
|
from snaptrade_client.model.account_universal_activity import AccountUniversalActivity
|
|
27
33
|
from snaptrade_client.model.action import Action
|
|
28
34
|
from snaptrade_client.model.action_strict import ActionStrict
|
|
35
|
+
from snaptrade_client.model.action_strict_v2 import ActionStrictV2
|
|
29
36
|
from snaptrade_client.model.action_strict_with_options import ActionStrictWithOptions
|
|
30
37
|
from snaptrade_client.model.balance import Balance
|
|
31
38
|
from snaptrade_client.model.brokerage import Brokerage
|
|
@@ -330,6 +330,41 @@ operation_parameter_map = {
|
|
|
330
330
|
},
|
|
331
331
|
]
|
|
332
332
|
},
|
|
333
|
+
'/accounts/{accountId}/orders/v2-GET': {
|
|
334
|
+
'parameters': [
|
|
335
|
+
{
|
|
336
|
+
'name': 'userId'
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
'name': 'userSecret'
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
'name': 'accountId'
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
'name': 'state'
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
'name': 'days'
|
|
349
|
+
},
|
|
350
|
+
]
|
|
351
|
+
},
|
|
352
|
+
'/accounts/{accountId}/recentOrders/v2-GET': {
|
|
353
|
+
'parameters': [
|
|
354
|
+
{
|
|
355
|
+
'name': 'userId'
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
'name': 'userSecret'
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
'name': 'accountId'
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
'name': 'only_executed'
|
|
365
|
+
},
|
|
366
|
+
]
|
|
367
|
+
},
|
|
333
368
|
'/accounts/{accountId}/optionsChain-GET': {
|
|
334
369
|
'parameters': [
|
|
335
370
|
{
|
|
@@ -47,6 +47,8 @@ class PathValues(str, enum.Enum):
|
|
|
47
47
|
ACCOUNTS_ACCOUNT_ID_TRADING_CANCEL = "/accounts/{accountId}/trading/cancel"
|
|
48
48
|
ACCOUNTS_ACCOUNT_ID_TRADING_REPLACE = "/accounts/{accountId}/trading/replace"
|
|
49
49
|
SNAP_TRADE_PARTNERS = "/snapTrade/partners"
|
|
50
|
+
ACCOUNTS_ACCOUNT_ID_ORDERS_V2 = "/accounts/{accountId}/orders/v2"
|
|
51
|
+
ACCOUNTS_ACCOUNT_ID_RECENT_ORDERS_V2 = "/accounts/{accountId}/recentOrders/v2"
|
|
50
52
|
ACCOUNTS_ACCOUNT_ID_SYMBOLS = "/accounts/{accountId}/symbols"
|
|
51
53
|
BROKERAGES = "/brokerages"
|
|
52
54
|
BROKERAGES_SLUG_INSTRUMENTS = "/brokerages/{slug}/instruments"
|
|
@@ -0,0 +1,7 @@
|
|
|
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_orders_v2 import Api
|
|
4
|
+
|
|
5
|
+
from snaptrade_client.paths import PathValues
|
|
6
|
+
|
|
7
|
+
path = PathValues.ACCOUNTS_ACCOUNT_ID_ORDERS_V2
|