snaptrade-python-sdk 11.0.143__py3-none-any.whl → 11.0.145__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/get.py +2 -2
- snaptrade_client/paths/accounts/get.pyi +2 -2
- snaptrade_client/paths/accounts_account_id/get.py +2 -2
- snaptrade_client/paths/accounts_account_id/get.pyi +2 -2
- snaptrade_client/paths/accounts_account_id_balances/get.py +2 -2
- snaptrade_client/paths/accounts_account_id_balances/get.pyi +2 -2
- snaptrade_client/paths/accounts_account_id_holdings/get.py +2 -2
- snaptrade_client/paths/accounts_account_id_holdings/get.pyi +2 -2
- snaptrade_client/paths/accounts_account_id_options/get.py +2 -2
- snaptrade_client/paths/accounts_account_id_options/get.pyi +2 -2
- snaptrade_client/paths/accounts_account_id_orders/get.py +2 -2
- snaptrade_client/paths/accounts_account_id_orders/get.pyi +2 -2
- 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_positions/get.py +2 -2
- snaptrade_client/paths/accounts_account_id_positions/get.pyi +2 -2
- 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/paths/authorizations_authorization_id_refresh/post.py +2 -2
- snaptrade_client/paths/authorizations_authorization_id_refresh/post.pyi +2 -2
- 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.145.dist-info}/METADATA +124 -11
- {snaptrade_python_sdk-11.0.143.dist-info → snaptrade_python_sdk-11.0.145.dist-info}/RECORD +62 -31
- {snaptrade_python_sdk-11.0.143.dist-info → snaptrade_python_sdk-11.0.145.dist-info}/LICENSE +0 -0
- {snaptrade_python_sdk-11.0.143.dist-info → snaptrade_python_sdk-11.0.145.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,137 @@
|
|
|
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 AccountOrderRecordLegInstrument(
|
|
28
|
+
schemas.DictSchema
|
|
29
|
+
):
|
|
30
|
+
"""
|
|
31
|
+
This class is auto generated by Konfig (https://konfigthis.com)
|
|
32
|
+
|
|
33
|
+
Instrument metadata for an order leg.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class MetaOapg:
|
|
38
|
+
|
|
39
|
+
class properties:
|
|
40
|
+
symbol = schemas.StrSchema
|
|
41
|
+
description = schemas.StrSchema
|
|
42
|
+
asset_type = schemas.StrSchema
|
|
43
|
+
exchange_mic_code = schemas.StrSchema
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class figi_code(
|
|
47
|
+
schemas.StrBase,
|
|
48
|
+
schemas.NoneBase,
|
|
49
|
+
schemas.Schema,
|
|
50
|
+
schemas.NoneStrMixin
|
|
51
|
+
):
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def __new__(
|
|
55
|
+
cls,
|
|
56
|
+
*args: typing.Union[None, str, ],
|
|
57
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
58
|
+
) -> 'figi_code':
|
|
59
|
+
return super().__new__(
|
|
60
|
+
cls,
|
|
61
|
+
*args,
|
|
62
|
+
_configuration=_configuration,
|
|
63
|
+
)
|
|
64
|
+
__annotations__ = {
|
|
65
|
+
"symbol": symbol,
|
|
66
|
+
"description": description,
|
|
67
|
+
"asset_type": asset_type,
|
|
68
|
+
"exchange_mic_code": exchange_mic_code,
|
|
69
|
+
"figi_code": figi_code,
|
|
70
|
+
}
|
|
71
|
+
additional_properties = schemas.AnyTypeSchema
|
|
72
|
+
|
|
73
|
+
@typing.overload
|
|
74
|
+
def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ...
|
|
75
|
+
|
|
76
|
+
@typing.overload
|
|
77
|
+
def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ...
|
|
78
|
+
|
|
79
|
+
@typing.overload
|
|
80
|
+
def __getitem__(self, name: typing_extensions.Literal["asset_type"]) -> MetaOapg.properties.asset_type: ...
|
|
81
|
+
|
|
82
|
+
@typing.overload
|
|
83
|
+
def __getitem__(self, name: typing_extensions.Literal["exchange_mic_code"]) -> MetaOapg.properties.exchange_mic_code: ...
|
|
84
|
+
|
|
85
|
+
@typing.overload
|
|
86
|
+
def __getitem__(self, name: typing_extensions.Literal["figi_code"]) -> MetaOapg.properties.figi_code: ...
|
|
87
|
+
|
|
88
|
+
@typing.overload
|
|
89
|
+
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
|
90
|
+
|
|
91
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["description"], typing_extensions.Literal["asset_type"], typing_extensions.Literal["exchange_mic_code"], typing_extensions.Literal["figi_code"], str, ]):
|
|
92
|
+
# dict_instance[name] accessor
|
|
93
|
+
return super().__getitem__(name)
|
|
94
|
+
|
|
95
|
+
@typing.overload
|
|
96
|
+
def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ...
|
|
97
|
+
|
|
98
|
+
@typing.overload
|
|
99
|
+
def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ...
|
|
100
|
+
|
|
101
|
+
@typing.overload
|
|
102
|
+
def get_item_oapg(self, name: typing_extensions.Literal["asset_type"]) -> typing.Union[MetaOapg.properties.asset_type, schemas.Unset]: ...
|
|
103
|
+
|
|
104
|
+
@typing.overload
|
|
105
|
+
def get_item_oapg(self, name: typing_extensions.Literal["exchange_mic_code"]) -> typing.Union[MetaOapg.properties.exchange_mic_code, schemas.Unset]: ...
|
|
106
|
+
|
|
107
|
+
@typing.overload
|
|
108
|
+
def get_item_oapg(self, name: typing_extensions.Literal["figi_code"]) -> typing.Union[MetaOapg.properties.figi_code, schemas.Unset]: ...
|
|
109
|
+
|
|
110
|
+
@typing.overload
|
|
111
|
+
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
|
112
|
+
|
|
113
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["description"], typing_extensions.Literal["asset_type"], typing_extensions.Literal["exchange_mic_code"], typing_extensions.Literal["figi_code"], str, ]):
|
|
114
|
+
return super().get_item_oapg(name)
|
|
115
|
+
|
|
116
|
+
def __new__(
|
|
117
|
+
cls,
|
|
118
|
+
*args: typing.Union[dict, frozendict.frozendict, ],
|
|
119
|
+
symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset,
|
|
120
|
+
description: typing.Union[MetaOapg.properties.description, str, schemas.Unset] = schemas.unset,
|
|
121
|
+
asset_type: typing.Union[MetaOapg.properties.asset_type, str, schemas.Unset] = schemas.unset,
|
|
122
|
+
exchange_mic_code: typing.Union[MetaOapg.properties.exchange_mic_code, str, schemas.Unset] = schemas.unset,
|
|
123
|
+
figi_code: typing.Union[MetaOapg.properties.figi_code, None, str, schemas.Unset] = schemas.unset,
|
|
124
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
125
|
+
**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, ],
|
|
126
|
+
) -> 'AccountOrderRecordLegInstrument':
|
|
127
|
+
return super().__new__(
|
|
128
|
+
cls,
|
|
129
|
+
*args,
|
|
130
|
+
symbol=symbol,
|
|
131
|
+
description=description,
|
|
132
|
+
asset_type=asset_type,
|
|
133
|
+
exchange_mic_code=exchange_mic_code,
|
|
134
|
+
figi_code=figi_code,
|
|
135
|
+
_configuration=_configuration,
|
|
136
|
+
**kwargs,
|
|
137
|
+
)
|
|
@@ -0,0 +1,137 @@
|
|
|
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 AccountOrderRecordLegInstrument(
|
|
28
|
+
schemas.DictSchema
|
|
29
|
+
):
|
|
30
|
+
"""
|
|
31
|
+
This class is auto generated by Konfig (https://konfigthis.com)
|
|
32
|
+
|
|
33
|
+
Instrument metadata for an order leg.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class MetaOapg:
|
|
38
|
+
|
|
39
|
+
class properties:
|
|
40
|
+
symbol = schemas.StrSchema
|
|
41
|
+
description = schemas.StrSchema
|
|
42
|
+
asset_type = schemas.StrSchema
|
|
43
|
+
exchange_mic_code = schemas.StrSchema
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class figi_code(
|
|
47
|
+
schemas.StrBase,
|
|
48
|
+
schemas.NoneBase,
|
|
49
|
+
schemas.Schema,
|
|
50
|
+
schemas.NoneStrMixin
|
|
51
|
+
):
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def __new__(
|
|
55
|
+
cls,
|
|
56
|
+
*args: typing.Union[None, str, ],
|
|
57
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
58
|
+
) -> 'figi_code':
|
|
59
|
+
return super().__new__(
|
|
60
|
+
cls,
|
|
61
|
+
*args,
|
|
62
|
+
_configuration=_configuration,
|
|
63
|
+
)
|
|
64
|
+
__annotations__ = {
|
|
65
|
+
"symbol": symbol,
|
|
66
|
+
"description": description,
|
|
67
|
+
"asset_type": asset_type,
|
|
68
|
+
"exchange_mic_code": exchange_mic_code,
|
|
69
|
+
"figi_code": figi_code,
|
|
70
|
+
}
|
|
71
|
+
additional_properties = schemas.AnyTypeSchema
|
|
72
|
+
|
|
73
|
+
@typing.overload
|
|
74
|
+
def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ...
|
|
75
|
+
|
|
76
|
+
@typing.overload
|
|
77
|
+
def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ...
|
|
78
|
+
|
|
79
|
+
@typing.overload
|
|
80
|
+
def __getitem__(self, name: typing_extensions.Literal["asset_type"]) -> MetaOapg.properties.asset_type: ...
|
|
81
|
+
|
|
82
|
+
@typing.overload
|
|
83
|
+
def __getitem__(self, name: typing_extensions.Literal["exchange_mic_code"]) -> MetaOapg.properties.exchange_mic_code: ...
|
|
84
|
+
|
|
85
|
+
@typing.overload
|
|
86
|
+
def __getitem__(self, name: typing_extensions.Literal["figi_code"]) -> MetaOapg.properties.figi_code: ...
|
|
87
|
+
|
|
88
|
+
@typing.overload
|
|
89
|
+
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
|
90
|
+
|
|
91
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["description"], typing_extensions.Literal["asset_type"], typing_extensions.Literal["exchange_mic_code"], typing_extensions.Literal["figi_code"], str, ]):
|
|
92
|
+
# dict_instance[name] accessor
|
|
93
|
+
return super().__getitem__(name)
|
|
94
|
+
|
|
95
|
+
@typing.overload
|
|
96
|
+
def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> typing.Union[MetaOapg.properties.symbol, schemas.Unset]: ...
|
|
97
|
+
|
|
98
|
+
@typing.overload
|
|
99
|
+
def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ...
|
|
100
|
+
|
|
101
|
+
@typing.overload
|
|
102
|
+
def get_item_oapg(self, name: typing_extensions.Literal["asset_type"]) -> typing.Union[MetaOapg.properties.asset_type, schemas.Unset]: ...
|
|
103
|
+
|
|
104
|
+
@typing.overload
|
|
105
|
+
def get_item_oapg(self, name: typing_extensions.Literal["exchange_mic_code"]) -> typing.Union[MetaOapg.properties.exchange_mic_code, schemas.Unset]: ...
|
|
106
|
+
|
|
107
|
+
@typing.overload
|
|
108
|
+
def get_item_oapg(self, name: typing_extensions.Literal["figi_code"]) -> typing.Union[MetaOapg.properties.figi_code, schemas.Unset]: ...
|
|
109
|
+
|
|
110
|
+
@typing.overload
|
|
111
|
+
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
|
112
|
+
|
|
113
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["description"], typing_extensions.Literal["asset_type"], typing_extensions.Literal["exchange_mic_code"], typing_extensions.Literal["figi_code"], str, ]):
|
|
114
|
+
return super().get_item_oapg(name)
|
|
115
|
+
|
|
116
|
+
def __new__(
|
|
117
|
+
cls,
|
|
118
|
+
*args: typing.Union[dict, frozendict.frozendict, ],
|
|
119
|
+
symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset,
|
|
120
|
+
description: typing.Union[MetaOapg.properties.description, str, schemas.Unset] = schemas.unset,
|
|
121
|
+
asset_type: typing.Union[MetaOapg.properties.asset_type, str, schemas.Unset] = schemas.unset,
|
|
122
|
+
exchange_mic_code: typing.Union[MetaOapg.properties.exchange_mic_code, str, schemas.Unset] = schemas.unset,
|
|
123
|
+
figi_code: typing.Union[MetaOapg.properties.figi_code, None, str, schemas.Unset] = schemas.unset,
|
|
124
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
125
|
+
**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, ],
|
|
126
|
+
) -> 'AccountOrderRecordLegInstrument':
|
|
127
|
+
return super().__new__(
|
|
128
|
+
cls,
|
|
129
|
+
*args,
|
|
130
|
+
symbol=symbol,
|
|
131
|
+
description=description,
|
|
132
|
+
asset_type=asset_type,
|
|
133
|
+
exchange_mic_code=exchange_mic_code,
|
|
134
|
+
figi_code=figi_code,
|
|
135
|
+
_configuration=_configuration,
|
|
136
|
+
**kwargs,
|
|
137
|
+
)
|
|
@@ -0,0 +1,90 @@
|
|
|
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 AccountOrderRecordStatusV2(
|
|
28
|
+
schemas.EnumBase,
|
|
29
|
+
schemas.StrSchema
|
|
30
|
+
):
|
|
31
|
+
"""
|
|
32
|
+
This class is auto generated by Konfig (https://konfigthis.com)
|
|
33
|
+
|
|
34
|
+
Indicates the status of an order. SnapTrade does a best effort to map brokerage statuses to statuses in this enum.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class MetaOapg:
|
|
39
|
+
enum_value_to_name = {
|
|
40
|
+
"PENDING": "PENDING",
|
|
41
|
+
"REJECTED": "REJECTED",
|
|
42
|
+
"CANCELED": "CANCELED",
|
|
43
|
+
"CANCEL_PENDING": "CANCEL_PENDING",
|
|
44
|
+
"PARTIAL_CANCELED": "PARTIAL_CANCELED",
|
|
45
|
+
"EXECUTED": "EXECUTED",
|
|
46
|
+
"PARTIALLY_EXECUTED": "PARTIALLY_EXECUTED",
|
|
47
|
+
"REPLACED": "REPLACED",
|
|
48
|
+
"REPLACE_PENDING": "REPLACE_PENDING",
|
|
49
|
+
"EXPIRED": "EXPIRED",
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@schemas.classproperty
|
|
53
|
+
def PENDING(cls):
|
|
54
|
+
return cls("PENDING")
|
|
55
|
+
|
|
56
|
+
@schemas.classproperty
|
|
57
|
+
def REJECTED(cls):
|
|
58
|
+
return cls("REJECTED")
|
|
59
|
+
|
|
60
|
+
@schemas.classproperty
|
|
61
|
+
def CANCELED(cls):
|
|
62
|
+
return cls("CANCELED")
|
|
63
|
+
|
|
64
|
+
@schemas.classproperty
|
|
65
|
+
def CANCEL_PENDING(cls):
|
|
66
|
+
return cls("CANCEL_PENDING")
|
|
67
|
+
|
|
68
|
+
@schemas.classproperty
|
|
69
|
+
def PARTIAL_CANCELED(cls):
|
|
70
|
+
return cls("PARTIAL_CANCELED")
|
|
71
|
+
|
|
72
|
+
@schemas.classproperty
|
|
73
|
+
def EXECUTED(cls):
|
|
74
|
+
return cls("EXECUTED")
|
|
75
|
+
|
|
76
|
+
@schemas.classproperty
|
|
77
|
+
def PARTIALLY_EXECUTED(cls):
|
|
78
|
+
return cls("PARTIALLY_EXECUTED")
|
|
79
|
+
|
|
80
|
+
@schemas.classproperty
|
|
81
|
+
def REPLACED(cls):
|
|
82
|
+
return cls("REPLACED")
|
|
83
|
+
|
|
84
|
+
@schemas.classproperty
|
|
85
|
+
def REPLACE_PENDING(cls):
|
|
86
|
+
return cls("REPLACE_PENDING")
|
|
87
|
+
|
|
88
|
+
@schemas.classproperty
|
|
89
|
+
def EXPIRED(cls):
|
|
90
|
+
return cls("EXPIRED")
|
|
@@ -0,0 +1,75 @@
|
|
|
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 AccountOrderRecordStatusV2(
|
|
28
|
+
schemas.EnumBase,
|
|
29
|
+
schemas.StrSchema
|
|
30
|
+
):
|
|
31
|
+
"""
|
|
32
|
+
This class is auto generated by Konfig (https://konfigthis.com)
|
|
33
|
+
|
|
34
|
+
Indicates the status of an order. SnapTrade does a best effort to map brokerage statuses to statuses in this enum.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
@schemas.classproperty
|
|
38
|
+
def PENDING(cls):
|
|
39
|
+
return cls("PENDING")
|
|
40
|
+
|
|
41
|
+
@schemas.classproperty
|
|
42
|
+
def REJECTED(cls):
|
|
43
|
+
return cls("REJECTED")
|
|
44
|
+
|
|
45
|
+
@schemas.classproperty
|
|
46
|
+
def CANCELED(cls):
|
|
47
|
+
return cls("CANCELED")
|
|
48
|
+
|
|
49
|
+
@schemas.classproperty
|
|
50
|
+
def CANCEL_PENDING(cls):
|
|
51
|
+
return cls("CANCEL_PENDING")
|
|
52
|
+
|
|
53
|
+
@schemas.classproperty
|
|
54
|
+
def PARTIAL_CANCELED(cls):
|
|
55
|
+
return cls("PARTIAL_CANCELED")
|
|
56
|
+
|
|
57
|
+
@schemas.classproperty
|
|
58
|
+
def EXECUTED(cls):
|
|
59
|
+
return cls("EXECUTED")
|
|
60
|
+
|
|
61
|
+
@schemas.classproperty
|
|
62
|
+
def PARTIALLY_EXECUTED(cls):
|
|
63
|
+
return cls("PARTIALLY_EXECUTED")
|
|
64
|
+
|
|
65
|
+
@schemas.classproperty
|
|
66
|
+
def REPLACED(cls):
|
|
67
|
+
return cls("REPLACED")
|
|
68
|
+
|
|
69
|
+
@schemas.classproperty
|
|
70
|
+
def REPLACE_PENDING(cls):
|
|
71
|
+
return cls("REPLACE_PENDING")
|
|
72
|
+
|
|
73
|
+
@schemas.classproperty
|
|
74
|
+
def EXPIRED(cls):
|
|
75
|
+
return cls("EXPIRED")
|
|
@@ -0,0 +1,105 @@
|
|
|
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 AccountOrderRecordStatusV2Nullable(
|
|
28
|
+
schemas.EnumBase,
|
|
29
|
+
schemas.StrBase,
|
|
30
|
+
schemas.NoneBase,
|
|
31
|
+
schemas.Schema,
|
|
32
|
+
schemas.NoneStrMixin
|
|
33
|
+
):
|
|
34
|
+
"""
|
|
35
|
+
This class is auto generated by Konfig (https://konfigthis.com)
|
|
36
|
+
|
|
37
|
+
Indicates the status of an order. SnapTrade does a best effort to map brokerage statuses to statuses in this enum.
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class MetaOapg:
|
|
42
|
+
enum_value_to_name = {
|
|
43
|
+
"PENDING": "PENDING",
|
|
44
|
+
"REJECTED": "REJECTED",
|
|
45
|
+
"CANCELED": "CANCELED",
|
|
46
|
+
"CANCEL_PENDING": "CANCEL_PENDING",
|
|
47
|
+
"PARTIAL_CANCELED": "PARTIAL_CANCELED",
|
|
48
|
+
"EXECUTED": "EXECUTED",
|
|
49
|
+
"PARTIALLY_EXECUTED": "PARTIALLY_EXECUTED",
|
|
50
|
+
"REPLACED": "REPLACED",
|
|
51
|
+
"REPLACE_PENDING": "REPLACE_PENDING",
|
|
52
|
+
"EXPIRED": "EXPIRED",
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@schemas.classproperty
|
|
56
|
+
def PENDING(cls):
|
|
57
|
+
return cls("PENDING")
|
|
58
|
+
|
|
59
|
+
@schemas.classproperty
|
|
60
|
+
def REJECTED(cls):
|
|
61
|
+
return cls("REJECTED")
|
|
62
|
+
|
|
63
|
+
@schemas.classproperty
|
|
64
|
+
def CANCELED(cls):
|
|
65
|
+
return cls("CANCELED")
|
|
66
|
+
|
|
67
|
+
@schemas.classproperty
|
|
68
|
+
def CANCEL_PENDING(cls):
|
|
69
|
+
return cls("CANCEL_PENDING")
|
|
70
|
+
|
|
71
|
+
@schemas.classproperty
|
|
72
|
+
def PARTIAL_CANCELED(cls):
|
|
73
|
+
return cls("PARTIAL_CANCELED")
|
|
74
|
+
|
|
75
|
+
@schemas.classproperty
|
|
76
|
+
def EXECUTED(cls):
|
|
77
|
+
return cls("EXECUTED")
|
|
78
|
+
|
|
79
|
+
@schemas.classproperty
|
|
80
|
+
def PARTIALLY_EXECUTED(cls):
|
|
81
|
+
return cls("PARTIALLY_EXECUTED")
|
|
82
|
+
|
|
83
|
+
@schemas.classproperty
|
|
84
|
+
def REPLACED(cls):
|
|
85
|
+
return cls("REPLACED")
|
|
86
|
+
|
|
87
|
+
@schemas.classproperty
|
|
88
|
+
def REPLACE_PENDING(cls):
|
|
89
|
+
return cls("REPLACE_PENDING")
|
|
90
|
+
|
|
91
|
+
@schemas.classproperty
|
|
92
|
+
def EXPIRED(cls):
|
|
93
|
+
return cls("EXPIRED")
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
def __new__(
|
|
97
|
+
cls,
|
|
98
|
+
*args: typing.Union[None, str, ],
|
|
99
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
100
|
+
) -> 'AccountOrderRecordStatusV2Nullable':
|
|
101
|
+
return super().__new__(
|
|
102
|
+
cls,
|
|
103
|
+
*args,
|
|
104
|
+
_configuration=_configuration,
|
|
105
|
+
)
|
|
@@ -0,0 +1,105 @@
|
|
|
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 AccountOrderRecordStatusV2Nullable(
|
|
28
|
+
schemas.EnumBase,
|
|
29
|
+
schemas.StrBase,
|
|
30
|
+
schemas.NoneBase,
|
|
31
|
+
schemas.Schema,
|
|
32
|
+
schemas.NoneStrMixin
|
|
33
|
+
):
|
|
34
|
+
"""
|
|
35
|
+
This class is auto generated by Konfig (https://konfigthis.com)
|
|
36
|
+
|
|
37
|
+
Indicates the status of an order. SnapTrade does a best effort to map brokerage statuses to statuses in this enum.
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class MetaOapg:
|
|
42
|
+
enum_value_to_name = {
|
|
43
|
+
"PENDING": "PENDING",
|
|
44
|
+
"REJECTED": "REJECTED",
|
|
45
|
+
"CANCELED": "CANCELED",
|
|
46
|
+
"CANCEL_PENDING": "CANCEL_PENDING",
|
|
47
|
+
"PARTIAL_CANCELED": "PARTIAL_CANCELED",
|
|
48
|
+
"EXECUTED": "EXECUTED",
|
|
49
|
+
"PARTIALLY_EXECUTED": "PARTIALLY_EXECUTED",
|
|
50
|
+
"REPLACED": "REPLACED",
|
|
51
|
+
"REPLACE_PENDING": "REPLACE_PENDING",
|
|
52
|
+
"EXPIRED": "EXPIRED",
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@schemas.classproperty
|
|
56
|
+
def PENDING(cls):
|
|
57
|
+
return cls("PENDING")
|
|
58
|
+
|
|
59
|
+
@schemas.classproperty
|
|
60
|
+
def REJECTED(cls):
|
|
61
|
+
return cls("REJECTED")
|
|
62
|
+
|
|
63
|
+
@schemas.classproperty
|
|
64
|
+
def CANCELED(cls):
|
|
65
|
+
return cls("CANCELED")
|
|
66
|
+
|
|
67
|
+
@schemas.classproperty
|
|
68
|
+
def CANCEL_PENDING(cls):
|
|
69
|
+
return cls("CANCEL_PENDING")
|
|
70
|
+
|
|
71
|
+
@schemas.classproperty
|
|
72
|
+
def PARTIAL_CANCELED(cls):
|
|
73
|
+
return cls("PARTIAL_CANCELED")
|
|
74
|
+
|
|
75
|
+
@schemas.classproperty
|
|
76
|
+
def EXECUTED(cls):
|
|
77
|
+
return cls("EXECUTED")
|
|
78
|
+
|
|
79
|
+
@schemas.classproperty
|
|
80
|
+
def PARTIALLY_EXECUTED(cls):
|
|
81
|
+
return cls("PARTIALLY_EXECUTED")
|
|
82
|
+
|
|
83
|
+
@schemas.classproperty
|
|
84
|
+
def REPLACED(cls):
|
|
85
|
+
return cls("REPLACED")
|
|
86
|
+
|
|
87
|
+
@schemas.classproperty
|
|
88
|
+
def REPLACE_PENDING(cls):
|
|
89
|
+
return cls("REPLACE_PENDING")
|
|
90
|
+
|
|
91
|
+
@schemas.classproperty
|
|
92
|
+
def EXPIRED(cls):
|
|
93
|
+
return cls("EXPIRED")
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
def __new__(
|
|
97
|
+
cls,
|
|
98
|
+
*args: typing.Union[None, str, ],
|
|
99
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
100
|
+
) -> 'AccountOrderRecordStatusV2Nullable':
|
|
101
|
+
return super().__new__(
|
|
102
|
+
cls,
|
|
103
|
+
*args,
|
|
104
|
+
_configuration=_configuration,
|
|
105
|
+
)
|