snaptrade-python-sdk 11.0.118__py3-none-any.whl → 11.0.120__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 +9 -9
- snaptrade_client/apis/paths/accounts_account_id_trading_crypto.py +7 -0
- snaptrade_client/apis/paths/accounts_account_id_trading_crypto_preview.py +7 -0
- snaptrade_client/apis/paths/accounts_account_id_trading_replace.py +7 -0
- snaptrade_client/apis/tags/trading_api_generated.py +5 -5
- snaptrade_client/configuration.py +1 -1
- snaptrade_client/model/crypto_order_form.py +249 -0
- snaptrade_client/model/crypto_order_form.pyi +229 -0
- snaptrade_client/model/{simple_order_preview.pyi → crypto_order_preview.py} +8 -8
- snaptrade_client/model/{simple_order_preview.py → crypto_order_preview.pyi} +8 -8
- snaptrade_client/model/{simple_order_preview_estimated_fee.py → crypto_order_preview_estimated_fee.py} +2 -2
- snaptrade_client/model/{simple_order_preview_estimated_fee.pyi → crypto_order_preview_estimated_fee.pyi} +2 -2
- snaptrade_client/model/crypto_trading_instrument.py +113 -0
- snaptrade_client/model/crypto_trading_instrument.pyi +106 -0
- snaptrade_client/model/manual_trade_replace_form.py +15 -3
- snaptrade_client/model/manual_trade_replace_form.pyi +15 -3
- snaptrade_client/model/simple_order_form.py +14 -15
- snaptrade_client/model/simple_order_form.pyi +14 -15
- snaptrade_client/models/__init__.py +4 -2
- snaptrade_client/operation_parameter_map.py +43 -43
- snaptrade_client/paths/__init__.py +3 -3
- snaptrade_client/paths/accounts_account_id_orders_cancel/post.py +6 -2
- snaptrade_client/paths/accounts_account_id_orders_cancel/post.pyi +6 -2
- snaptrade_client/paths/accounts_account_id_trading_cancel/post.py +2 -2
- snaptrade_client/paths/accounts_account_id_trading_cancel/post.pyi +2 -2
- snaptrade_client/paths/{accounts_account_id_trading_simple → accounts_account_id_trading_crypto}/__init__.py +2 -2
- snaptrade_client/paths/{accounts_account_id_trading_simple → accounts_account_id_trading_crypto}/post.py +34 -34
- snaptrade_client/paths/{accounts_account_id_trading_simple → accounts_account_id_trading_crypto}/post.pyi +34 -34
- snaptrade_client/paths/{accounts_account_id_trading_simple_preview → accounts_account_id_trading_crypto_preview}/__init__.py +2 -2
- snaptrade_client/paths/{accounts_account_id_trading_simple_preview → accounts_account_id_trading_crypto_preview}/post.py +39 -39
- snaptrade_client/paths/{accounts_account_id_trading_simple_preview → accounts_account_id_trading_crypto_preview}/post.pyi +39 -39
- snaptrade_client/paths/{accounts_account_id_trading_simple_brokerage_order_id_replace → accounts_account_id_trading_replace}/__init__.py +2 -2
- snaptrade_client/paths/{accounts_account_id_trading_simple_brokerage_order_id_replace/patch.py → accounts_account_id_trading_replace/post.py} +18 -28
- snaptrade_client/paths/{accounts_account_id_trading_simple_brokerage_order_id_replace/patch.pyi → accounts_account_id_trading_replace/post.pyi} +18 -28
- snaptrade_client/type/crypto_order_form.py +50 -0
- snaptrade_client/type/{simple_order_preview.py → crypto_order_preview.py} +5 -5
- snaptrade_client/type/{simple_order_preview_estimated_fee.py → crypto_order_preview_estimated_fee.py} +3 -3
- snaptrade_client/type/crypto_trading_instrument.py +30 -0
- snaptrade_client/type/manual_trade_form_with_options.py +1 -1
- snaptrade_client/type/manual_trade_replace_form.py +3 -0
- {snaptrade_python_sdk-11.0.118.dist-info → snaptrade_python_sdk-11.0.120.dist-info}/METADATA +108 -106
- {snaptrade_python_sdk-11.0.118.dist-info → snaptrade_python_sdk-11.0.120.dist-info}/RECORD +46 -40
- snaptrade_client/apis/paths/accounts_account_id_trading_simple.py +0 -7
- snaptrade_client/apis/paths/accounts_account_id_trading_simple_brokerage_order_id_replace.py +0 -7
- snaptrade_client/apis/paths/accounts_account_id_trading_simple_preview.py +0 -7
- {snaptrade_python_sdk-11.0.118.dist-info → snaptrade_python_sdk-11.0.120.dist-info}/LICENSE +0 -0
- {snaptrade_python_sdk-11.0.118.dist-info → snaptrade_python_sdk-11.0.120.dist-info}/WHEEL +0 -0
|
@@ -24,7 +24,7 @@ import frozendict # noqa: F401
|
|
|
24
24
|
from snaptrade_client import schemas # noqa: F401
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
class
|
|
27
|
+
class CryptoOrderPreview(
|
|
28
28
|
schemas.DictSchema
|
|
29
29
|
):
|
|
30
30
|
"""
|
|
@@ -39,15 +39,15 @@ class SimpleOrderPreview(
|
|
|
39
39
|
class properties:
|
|
40
40
|
|
|
41
41
|
@staticmethod
|
|
42
|
-
def estimated_fee() -> typing.Type['
|
|
43
|
-
return
|
|
42
|
+
def estimated_fee() -> typing.Type['CryptoOrderPreviewEstimatedFee']:
|
|
43
|
+
return CryptoOrderPreviewEstimatedFee
|
|
44
44
|
__annotations__ = {
|
|
45
45
|
"estimated_fee": estimated_fee,
|
|
46
46
|
}
|
|
47
47
|
additional_properties = schemas.AnyTypeSchema
|
|
48
48
|
|
|
49
49
|
@typing.overload
|
|
50
|
-
def __getitem__(self, name: typing_extensions.Literal["estimated_fee"]) -> '
|
|
50
|
+
def __getitem__(self, name: typing_extensions.Literal["estimated_fee"]) -> 'CryptoOrderPreviewEstimatedFee': ...
|
|
51
51
|
|
|
52
52
|
@typing.overload
|
|
53
53
|
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
|
@@ -57,7 +57,7 @@ class SimpleOrderPreview(
|
|
|
57
57
|
return super().__getitem__(name)
|
|
58
58
|
|
|
59
59
|
@typing.overload
|
|
60
|
-
def get_item_oapg(self, name: typing_extensions.Literal["estimated_fee"]) -> typing.Union['
|
|
60
|
+
def get_item_oapg(self, name: typing_extensions.Literal["estimated_fee"]) -> typing.Union['CryptoOrderPreviewEstimatedFee', schemas.Unset]: ...
|
|
61
61
|
|
|
62
62
|
@typing.overload
|
|
63
63
|
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
|
@@ -68,10 +68,10 @@ class SimpleOrderPreview(
|
|
|
68
68
|
def __new__(
|
|
69
69
|
cls,
|
|
70
70
|
*args: typing.Union[dict, frozendict.frozendict, ],
|
|
71
|
-
estimated_fee: typing.Union['
|
|
71
|
+
estimated_fee: typing.Union['CryptoOrderPreviewEstimatedFee', schemas.Unset] = schemas.unset,
|
|
72
72
|
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
73
73
|
**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, ],
|
|
74
|
-
) -> '
|
|
74
|
+
) -> 'CryptoOrderPreview':
|
|
75
75
|
return super().__new__(
|
|
76
76
|
cls,
|
|
77
77
|
*args,
|
|
@@ -80,4 +80,4 @@ class SimpleOrderPreview(
|
|
|
80
80
|
**kwargs,
|
|
81
81
|
)
|
|
82
82
|
|
|
83
|
-
from snaptrade_client.model.
|
|
83
|
+
from snaptrade_client.model.crypto_order_preview_estimated_fee import CryptoOrderPreviewEstimatedFee
|
|
@@ -24,7 +24,7 @@ import frozendict # noqa: F401
|
|
|
24
24
|
from snaptrade_client import schemas # noqa: F401
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
class
|
|
27
|
+
class CryptoOrderPreviewEstimatedFee(
|
|
28
28
|
schemas.DictSchema
|
|
29
29
|
):
|
|
30
30
|
"""
|
|
@@ -84,7 +84,7 @@ class SimpleOrderPreviewEstimatedFee(
|
|
|
84
84
|
currency: typing.Union[MetaOapg.properties.currency, str, ],
|
|
85
85
|
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
86
86
|
**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, ],
|
|
87
|
-
) -> '
|
|
87
|
+
) -> 'CryptoOrderPreviewEstimatedFee':
|
|
88
88
|
return super().__new__(
|
|
89
89
|
cls,
|
|
90
90
|
*args,
|
|
@@ -24,7 +24,7 @@ import frozendict # noqa: F401
|
|
|
24
24
|
from snaptrade_client import schemas # noqa: F401
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
class
|
|
27
|
+
class CryptoOrderPreviewEstimatedFee(
|
|
28
28
|
schemas.DictSchema
|
|
29
29
|
):
|
|
30
30
|
"""
|
|
@@ -84,7 +84,7 @@ class SimpleOrderPreviewEstimatedFee(
|
|
|
84
84
|
currency: typing.Union[MetaOapg.properties.currency, str, ],
|
|
85
85
|
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
86
86
|
**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, ],
|
|
87
|
-
) -> '
|
|
87
|
+
) -> 'CryptoOrderPreviewEstimatedFee':
|
|
88
88
|
return super().__new__(
|
|
89
89
|
cls,
|
|
90
90
|
*args,
|
|
@@ -0,0 +1,113 @@
|
|
|
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 CryptoTradingInstrument(
|
|
28
|
+
schemas.DictSchema
|
|
29
|
+
):
|
|
30
|
+
"""
|
|
31
|
+
This class is auto generated by Konfig (https://konfigthis.com)
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class MetaOapg:
|
|
36
|
+
required = {
|
|
37
|
+
"symbol",
|
|
38
|
+
"type",
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
class properties:
|
|
42
|
+
symbol = schemas.StrSchema
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class type(
|
|
46
|
+
schemas.EnumBase,
|
|
47
|
+
schemas.StrSchema
|
|
48
|
+
):
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class MetaOapg:
|
|
52
|
+
enum_value_to_name = {
|
|
53
|
+
"CRYPTOCURRENCY": "CRYPTOCURRENCY",
|
|
54
|
+
"CRYPTOCURRENCY_PAIR": "CRYPTOCURRENCY_PAIR",
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@schemas.classproperty
|
|
58
|
+
def CRYPTOCURRENCY(cls):
|
|
59
|
+
return cls("CRYPTOCURRENCY")
|
|
60
|
+
|
|
61
|
+
@schemas.classproperty
|
|
62
|
+
def CRYPTOCURRENCY_PAIR(cls):
|
|
63
|
+
return cls("CRYPTOCURRENCY_PAIR")
|
|
64
|
+
__annotations__ = {
|
|
65
|
+
"symbol": symbol,
|
|
66
|
+
"type": type,
|
|
67
|
+
}
|
|
68
|
+
additional_properties = schemas.AnyTypeSchema
|
|
69
|
+
|
|
70
|
+
symbol: MetaOapg.properties.symbol
|
|
71
|
+
type: MetaOapg.properties.type
|
|
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["type"]) -> MetaOapg.properties.type: ...
|
|
78
|
+
|
|
79
|
+
@typing.overload
|
|
80
|
+
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
|
81
|
+
|
|
82
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["type"], 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["symbol"]) -> MetaOapg.properties.symbol: ...
|
|
88
|
+
|
|
89
|
+
@typing.overload
|
|
90
|
+
def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...
|
|
91
|
+
|
|
92
|
+
@typing.overload
|
|
93
|
+
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
|
94
|
+
|
|
95
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["type"], str, ]):
|
|
96
|
+
return super().get_item_oapg(name)
|
|
97
|
+
|
|
98
|
+
def __new__(
|
|
99
|
+
cls,
|
|
100
|
+
*args: typing.Union[dict, frozendict.frozendict, ],
|
|
101
|
+
symbol: typing.Union[MetaOapg.properties.symbol, str, ],
|
|
102
|
+
type: typing.Union[MetaOapg.properties.type, str, ],
|
|
103
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
104
|
+
**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, ],
|
|
105
|
+
) -> 'CryptoTradingInstrument':
|
|
106
|
+
return super().__new__(
|
|
107
|
+
cls,
|
|
108
|
+
*args,
|
|
109
|
+
symbol=symbol,
|
|
110
|
+
type=type,
|
|
111
|
+
_configuration=_configuration,
|
|
112
|
+
**kwargs,
|
|
113
|
+
)
|
|
@@ -0,0 +1,106 @@
|
|
|
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 CryptoTradingInstrument(
|
|
28
|
+
schemas.DictSchema
|
|
29
|
+
):
|
|
30
|
+
"""
|
|
31
|
+
This class is auto generated by Konfig (https://konfigthis.com)
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class MetaOapg:
|
|
36
|
+
required = {
|
|
37
|
+
"symbol",
|
|
38
|
+
"type",
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
class properties:
|
|
42
|
+
symbol = schemas.StrSchema
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class type(
|
|
46
|
+
schemas.EnumBase,
|
|
47
|
+
schemas.StrSchema
|
|
48
|
+
):
|
|
49
|
+
|
|
50
|
+
@schemas.classproperty
|
|
51
|
+
def CRYPTOCURRENCY(cls):
|
|
52
|
+
return cls("CRYPTOCURRENCY")
|
|
53
|
+
|
|
54
|
+
@schemas.classproperty
|
|
55
|
+
def CRYPTOCURRENCY_PAIR(cls):
|
|
56
|
+
return cls("CRYPTOCURRENCY_PAIR")
|
|
57
|
+
__annotations__ = {
|
|
58
|
+
"symbol": symbol,
|
|
59
|
+
"type": type,
|
|
60
|
+
}
|
|
61
|
+
additional_properties = schemas.AnyTypeSchema
|
|
62
|
+
|
|
63
|
+
symbol: MetaOapg.properties.symbol
|
|
64
|
+
type: MetaOapg.properties.type
|
|
65
|
+
|
|
66
|
+
@typing.overload
|
|
67
|
+
def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ...
|
|
68
|
+
|
|
69
|
+
@typing.overload
|
|
70
|
+
def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...
|
|
71
|
+
|
|
72
|
+
@typing.overload
|
|
73
|
+
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
|
74
|
+
|
|
75
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["type"], str, ]):
|
|
76
|
+
# dict_instance[name] accessor
|
|
77
|
+
return super().__getitem__(name)
|
|
78
|
+
|
|
79
|
+
@typing.overload
|
|
80
|
+
def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ...
|
|
81
|
+
|
|
82
|
+
@typing.overload
|
|
83
|
+
def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...
|
|
84
|
+
|
|
85
|
+
@typing.overload
|
|
86
|
+
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
|
87
|
+
|
|
88
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["type"], str, ]):
|
|
89
|
+
return super().get_item_oapg(name)
|
|
90
|
+
|
|
91
|
+
def __new__(
|
|
92
|
+
cls,
|
|
93
|
+
*args: typing.Union[dict, frozendict.frozendict, ],
|
|
94
|
+
symbol: typing.Union[MetaOapg.properties.symbol, str, ],
|
|
95
|
+
type: typing.Union[MetaOapg.properties.type, str, ],
|
|
96
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
97
|
+
**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, ],
|
|
98
|
+
) -> 'CryptoTradingInstrument':
|
|
99
|
+
return super().__new__(
|
|
100
|
+
cls,
|
|
101
|
+
*args,
|
|
102
|
+
symbol=symbol,
|
|
103
|
+
type=type,
|
|
104
|
+
_configuration=_configuration,
|
|
105
|
+
**kwargs,
|
|
106
|
+
)
|
|
@@ -30,7 +30,7 @@ class ManualTradeReplaceForm(
|
|
|
30
30
|
"""
|
|
31
31
|
This class is auto generated by Konfig (https://konfigthis.com)
|
|
32
32
|
|
|
33
|
-
Inputs for
|
|
33
|
+
Inputs for replacing an order with the brokerage.
|
|
34
34
|
"""
|
|
35
35
|
|
|
36
36
|
|
|
@@ -38,10 +38,12 @@ class ManualTradeReplaceForm(
|
|
|
38
38
|
required = {
|
|
39
39
|
"time_in_force",
|
|
40
40
|
"action",
|
|
41
|
+
"brokerage_order_id",
|
|
41
42
|
"order_type",
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
class properties:
|
|
46
|
+
brokerage_order_id = schemas.StrSchema
|
|
45
47
|
|
|
46
48
|
@staticmethod
|
|
47
49
|
def action() -> typing.Type['ActionStrict']:
|
|
@@ -100,6 +102,7 @@ class ManualTradeReplaceForm(
|
|
|
100
102
|
def units() -> typing.Type['UnitsNullable']:
|
|
101
103
|
return UnitsNullable
|
|
102
104
|
__annotations__ = {
|
|
105
|
+
"brokerage_order_id": brokerage_order_id,
|
|
103
106
|
"action": action,
|
|
104
107
|
"order_type": order_type,
|
|
105
108
|
"time_in_force": time_in_force,
|
|
@@ -111,8 +114,12 @@ class ManualTradeReplaceForm(
|
|
|
111
114
|
|
|
112
115
|
time_in_force: 'TimeInForceStrict'
|
|
113
116
|
action: 'ActionStrict'
|
|
117
|
+
brokerage_order_id: MetaOapg.properties.brokerage_order_id
|
|
114
118
|
order_type: 'OrderTypeStrict'
|
|
115
119
|
|
|
120
|
+
@typing.overload
|
|
121
|
+
def __getitem__(self, name: typing_extensions.Literal["brokerage_order_id"]) -> MetaOapg.properties.brokerage_order_id: ...
|
|
122
|
+
|
|
116
123
|
@typing.overload
|
|
117
124
|
def __getitem__(self, name: typing_extensions.Literal["action"]) -> 'ActionStrict': ...
|
|
118
125
|
|
|
@@ -137,11 +144,14 @@ class ManualTradeReplaceForm(
|
|
|
137
144
|
@typing.overload
|
|
138
145
|
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
|
|
139
146
|
|
|
140
|
-
def __getitem__(self, name: typing.Union[typing_extensions.Literal["action", "order_type", "time_in_force", "price", "symbol", "stop", "units", ], str]):
|
|
147
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["brokerage_order_id", "action", "order_type", "time_in_force", "price", "symbol", "stop", "units", ], str]):
|
|
141
148
|
# dict_instance[name] accessor
|
|
142
149
|
return super().__getitem__(name)
|
|
143
150
|
|
|
144
151
|
|
|
152
|
+
@typing.overload
|
|
153
|
+
def get_item_oapg(self, name: typing_extensions.Literal["brokerage_order_id"]) -> MetaOapg.properties.brokerage_order_id: ...
|
|
154
|
+
|
|
145
155
|
@typing.overload
|
|
146
156
|
def get_item_oapg(self, name: typing_extensions.Literal["action"]) -> 'ActionStrict': ...
|
|
147
157
|
|
|
@@ -166,7 +176,7 @@ class ManualTradeReplaceForm(
|
|
|
166
176
|
@typing.overload
|
|
167
177
|
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
|
|
168
178
|
|
|
169
|
-
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["action", "order_type", "time_in_force", "price", "symbol", "stop", "units", ], str]):
|
|
179
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["brokerage_order_id", "action", "order_type", "time_in_force", "price", "symbol", "stop", "units", ], str]):
|
|
170
180
|
return super().get_item_oapg(name)
|
|
171
181
|
|
|
172
182
|
|
|
@@ -175,6 +185,7 @@ class ManualTradeReplaceForm(
|
|
|
175
185
|
*args: typing.Union[dict, frozendict.frozendict, ],
|
|
176
186
|
time_in_force: 'TimeInForceStrict',
|
|
177
187
|
action: 'ActionStrict',
|
|
188
|
+
brokerage_order_id: typing.Union[MetaOapg.properties.brokerage_order_id, str, ],
|
|
178
189
|
order_type: 'OrderTypeStrict',
|
|
179
190
|
price: typing.Union[MetaOapg.properties.price, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset,
|
|
180
191
|
symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset,
|
|
@@ -188,6 +199,7 @@ class ManualTradeReplaceForm(
|
|
|
188
199
|
*args,
|
|
189
200
|
time_in_force=time_in_force,
|
|
190
201
|
action=action,
|
|
202
|
+
brokerage_order_id=brokerage_order_id,
|
|
191
203
|
order_type=order_type,
|
|
192
204
|
price=price,
|
|
193
205
|
symbol=symbol,
|
|
@@ -30,7 +30,7 @@ class ManualTradeReplaceForm(
|
|
|
30
30
|
"""
|
|
31
31
|
This class is auto generated by Konfig (https://konfigthis.com)
|
|
32
32
|
|
|
33
|
-
Inputs for
|
|
33
|
+
Inputs for replacing an order with the brokerage.
|
|
34
34
|
"""
|
|
35
35
|
|
|
36
36
|
|
|
@@ -38,10 +38,12 @@ class ManualTradeReplaceForm(
|
|
|
38
38
|
required = {
|
|
39
39
|
"time_in_force",
|
|
40
40
|
"action",
|
|
41
|
+
"brokerage_order_id",
|
|
41
42
|
"order_type",
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
class properties:
|
|
46
|
+
brokerage_order_id = schemas.StrSchema
|
|
45
47
|
|
|
46
48
|
@staticmethod
|
|
47
49
|
def action() -> typing.Type['ActionStrict']:
|
|
@@ -100,6 +102,7 @@ class ManualTradeReplaceForm(
|
|
|
100
102
|
def units() -> typing.Type['UnitsNullable']:
|
|
101
103
|
return UnitsNullable
|
|
102
104
|
__annotations__ = {
|
|
105
|
+
"brokerage_order_id": brokerage_order_id,
|
|
103
106
|
"action": action,
|
|
104
107
|
"order_type": order_type,
|
|
105
108
|
"time_in_force": time_in_force,
|
|
@@ -111,8 +114,12 @@ class ManualTradeReplaceForm(
|
|
|
111
114
|
|
|
112
115
|
time_in_force: 'TimeInForceStrict'
|
|
113
116
|
action: 'ActionStrict'
|
|
117
|
+
brokerage_order_id: MetaOapg.properties.brokerage_order_id
|
|
114
118
|
order_type: 'OrderTypeStrict'
|
|
115
119
|
|
|
120
|
+
@typing.overload
|
|
121
|
+
def __getitem__(self, name: typing_extensions.Literal["brokerage_order_id"]) -> MetaOapg.properties.brokerage_order_id: ...
|
|
122
|
+
|
|
116
123
|
@typing.overload
|
|
117
124
|
def __getitem__(self, name: typing_extensions.Literal["action"]) -> 'ActionStrict': ...
|
|
118
125
|
|
|
@@ -137,11 +144,14 @@ class ManualTradeReplaceForm(
|
|
|
137
144
|
@typing.overload
|
|
138
145
|
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
|
|
139
146
|
|
|
140
|
-
def __getitem__(self, name: typing.Union[typing_extensions.Literal["action", "order_type", "time_in_force", "price", "symbol", "stop", "units", ], str]):
|
|
147
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["brokerage_order_id", "action", "order_type", "time_in_force", "price", "symbol", "stop", "units", ], str]):
|
|
141
148
|
# dict_instance[name] accessor
|
|
142
149
|
return super().__getitem__(name)
|
|
143
150
|
|
|
144
151
|
|
|
152
|
+
@typing.overload
|
|
153
|
+
def get_item_oapg(self, name: typing_extensions.Literal["brokerage_order_id"]) -> MetaOapg.properties.brokerage_order_id: ...
|
|
154
|
+
|
|
145
155
|
@typing.overload
|
|
146
156
|
def get_item_oapg(self, name: typing_extensions.Literal["action"]) -> 'ActionStrict': ...
|
|
147
157
|
|
|
@@ -166,7 +176,7 @@ class ManualTradeReplaceForm(
|
|
|
166
176
|
@typing.overload
|
|
167
177
|
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
|
|
168
178
|
|
|
169
|
-
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["action", "order_type", "time_in_force", "price", "symbol", "stop", "units", ], str]):
|
|
179
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["brokerage_order_id", "action", "order_type", "time_in_force", "price", "symbol", "stop", "units", ], str]):
|
|
170
180
|
return super().get_item_oapg(name)
|
|
171
181
|
|
|
172
182
|
|
|
@@ -175,6 +185,7 @@ class ManualTradeReplaceForm(
|
|
|
175
185
|
*args: typing.Union[dict, frozendict.frozendict, ],
|
|
176
186
|
time_in_force: 'TimeInForceStrict',
|
|
177
187
|
action: 'ActionStrict',
|
|
188
|
+
brokerage_order_id: typing.Union[MetaOapg.properties.brokerage_order_id, str, ],
|
|
178
189
|
order_type: 'OrderTypeStrict',
|
|
179
190
|
price: typing.Union[MetaOapg.properties.price, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset,
|
|
180
191
|
symbol: typing.Union[MetaOapg.properties.symbol, str, schemas.Unset] = schemas.unset,
|
|
@@ -188,6 +199,7 @@ class ManualTradeReplaceForm(
|
|
|
188
199
|
*args,
|
|
189
200
|
time_in_force=time_in_force,
|
|
190
201
|
action=action,
|
|
202
|
+
brokerage_order_id=brokerage_order_id,
|
|
191
203
|
order_type=order_type,
|
|
192
204
|
price=price,
|
|
193
205
|
symbol=symbol,
|
|
@@ -138,6 +138,7 @@ class SimpleOrderForm(
|
|
|
138
138
|
"post_only": post_only,
|
|
139
139
|
"expiration_date": expiration_date,
|
|
140
140
|
}
|
|
141
|
+
additional_properties = schemas.AnyTypeSchema
|
|
141
142
|
|
|
142
143
|
amount: MetaOapg.properties.amount
|
|
143
144
|
side: 'ActionStrict'
|
|
@@ -146,19 +147,19 @@ class SimpleOrderForm(
|
|
|
146
147
|
type: MetaOapg.properties.type
|
|
147
148
|
|
|
148
149
|
@typing.overload
|
|
149
|
-
def __getitem__(self, name: typing_extensions.Literal["
|
|
150
|
+
def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ...
|
|
150
151
|
|
|
151
152
|
@typing.overload
|
|
152
153
|
def __getitem__(self, name: typing_extensions.Literal["side"]) -> 'ActionStrict': ...
|
|
153
154
|
|
|
154
155
|
@typing.overload
|
|
155
|
-
def __getitem__(self, name: typing_extensions.Literal["
|
|
156
|
+
def __getitem__(self, name: typing_extensions.Literal["time_in_force"]) -> MetaOapg.properties.time_in_force: ...
|
|
156
157
|
|
|
157
158
|
@typing.overload
|
|
158
|
-
def __getitem__(self, name: typing_extensions.Literal["
|
|
159
|
+
def __getitem__(self, name: typing_extensions.Literal["instrument"]) -> 'TradingInstrument': ...
|
|
159
160
|
|
|
160
161
|
@typing.overload
|
|
161
|
-
def __getitem__(self, name: typing_extensions.Literal["
|
|
162
|
+
def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...
|
|
162
163
|
|
|
163
164
|
@typing.overload
|
|
164
165
|
def __getitem__(self, name: typing_extensions.Literal["limit_price"]) -> MetaOapg.properties.limit_price: ...
|
|
@@ -173,27 +174,26 @@ class SimpleOrderForm(
|
|
|
173
174
|
def __getitem__(self, name: typing_extensions.Literal["expiration_date"]) -> MetaOapg.properties.expiration_date: ...
|
|
174
175
|
|
|
175
176
|
@typing.overload
|
|
176
|
-
def __getitem__(self, name: str) ->
|
|
177
|
+
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
|
177
178
|
|
|
178
|
-
def __getitem__(self, name: typing.Union[typing_extensions.Literal["
|
|
179
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount"], typing_extensions.Literal["side"], typing_extensions.Literal["time_in_force"], typing_extensions.Literal["instrument"], typing_extensions.Literal["type"], typing_extensions.Literal["limit_price"], typing_extensions.Literal["stop_price"], typing_extensions.Literal["post_only"], typing_extensions.Literal["expiration_date"], str, ]):
|
|
179
180
|
# dict_instance[name] accessor
|
|
180
181
|
return super().__getitem__(name)
|
|
181
182
|
|
|
182
|
-
|
|
183
183
|
@typing.overload
|
|
184
|
-
def get_item_oapg(self, name: typing_extensions.Literal["
|
|
184
|
+
def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ...
|
|
185
185
|
|
|
186
186
|
@typing.overload
|
|
187
187
|
def get_item_oapg(self, name: typing_extensions.Literal["side"]) -> 'ActionStrict': ...
|
|
188
188
|
|
|
189
189
|
@typing.overload
|
|
190
|
-
def get_item_oapg(self, name: typing_extensions.Literal["
|
|
190
|
+
def get_item_oapg(self, name: typing_extensions.Literal["time_in_force"]) -> MetaOapg.properties.time_in_force: ...
|
|
191
191
|
|
|
192
192
|
@typing.overload
|
|
193
|
-
def get_item_oapg(self, name: typing_extensions.Literal["
|
|
193
|
+
def get_item_oapg(self, name: typing_extensions.Literal["instrument"]) -> 'TradingInstrument': ...
|
|
194
194
|
|
|
195
195
|
@typing.overload
|
|
196
|
-
def get_item_oapg(self, name: typing_extensions.Literal["
|
|
196
|
+
def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...
|
|
197
197
|
|
|
198
198
|
@typing.overload
|
|
199
199
|
def get_item_oapg(self, name: typing_extensions.Literal["limit_price"]) -> typing.Union[MetaOapg.properties.limit_price, schemas.Unset]: ...
|
|
@@ -208,11 +208,10 @@ class SimpleOrderForm(
|
|
|
208
208
|
def get_item_oapg(self, name: typing_extensions.Literal["expiration_date"]) -> typing.Union[MetaOapg.properties.expiration_date, schemas.Unset]: ...
|
|
209
209
|
|
|
210
210
|
@typing.overload
|
|
211
|
-
def get_item_oapg(self, name: str) -> typing.Union[
|
|
211
|
+
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
|
212
212
|
|
|
213
|
-
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["
|
|
213
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount"], typing_extensions.Literal["side"], typing_extensions.Literal["time_in_force"], typing_extensions.Literal["instrument"], typing_extensions.Literal["type"], typing_extensions.Literal["limit_price"], typing_extensions.Literal["stop_price"], typing_extensions.Literal["post_only"], typing_extensions.Literal["expiration_date"], str, ]):
|
|
214
214
|
return super().get_item_oapg(name)
|
|
215
|
-
|
|
216
215
|
|
|
217
216
|
def __new__(
|
|
218
217
|
cls,
|
|
@@ -227,7 +226,7 @@ class SimpleOrderForm(
|
|
|
227
226
|
post_only: typing.Union[MetaOapg.properties.post_only, bool, schemas.Unset] = schemas.unset,
|
|
228
227
|
expiration_date: typing.Union[MetaOapg.properties.expiration_date, str, datetime, schemas.Unset] = schemas.unset,
|
|
229
228
|
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
230
|
-
**kwargs: typing.Union[
|
|
229
|
+
**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, ],
|
|
231
230
|
) -> 'SimpleOrderForm':
|
|
232
231
|
return super().__new__(
|
|
233
232
|
cls,
|
|
@@ -118,6 +118,7 @@ class SimpleOrderForm(
|
|
|
118
118
|
"post_only": post_only,
|
|
119
119
|
"expiration_date": expiration_date,
|
|
120
120
|
}
|
|
121
|
+
additional_properties = schemas.AnyTypeSchema
|
|
121
122
|
|
|
122
123
|
amount: MetaOapg.properties.amount
|
|
123
124
|
side: 'ActionStrict'
|
|
@@ -126,19 +127,19 @@ class SimpleOrderForm(
|
|
|
126
127
|
type: MetaOapg.properties.type
|
|
127
128
|
|
|
128
129
|
@typing.overload
|
|
129
|
-
def __getitem__(self, name: typing_extensions.Literal["
|
|
130
|
+
def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ...
|
|
130
131
|
|
|
131
132
|
@typing.overload
|
|
132
133
|
def __getitem__(self, name: typing_extensions.Literal["side"]) -> 'ActionStrict': ...
|
|
133
134
|
|
|
134
135
|
@typing.overload
|
|
135
|
-
def __getitem__(self, name: typing_extensions.Literal["
|
|
136
|
+
def __getitem__(self, name: typing_extensions.Literal["time_in_force"]) -> MetaOapg.properties.time_in_force: ...
|
|
136
137
|
|
|
137
138
|
@typing.overload
|
|
138
|
-
def __getitem__(self, name: typing_extensions.Literal["
|
|
139
|
+
def __getitem__(self, name: typing_extensions.Literal["instrument"]) -> 'TradingInstrument': ...
|
|
139
140
|
|
|
140
141
|
@typing.overload
|
|
141
|
-
def __getitem__(self, name: typing_extensions.Literal["
|
|
142
|
+
def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...
|
|
142
143
|
|
|
143
144
|
@typing.overload
|
|
144
145
|
def __getitem__(self, name: typing_extensions.Literal["limit_price"]) -> MetaOapg.properties.limit_price: ...
|
|
@@ -153,27 +154,26 @@ class SimpleOrderForm(
|
|
|
153
154
|
def __getitem__(self, name: typing_extensions.Literal["expiration_date"]) -> MetaOapg.properties.expiration_date: ...
|
|
154
155
|
|
|
155
156
|
@typing.overload
|
|
156
|
-
def __getitem__(self, name: str) ->
|
|
157
|
+
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
|
157
158
|
|
|
158
|
-
def __getitem__(self, name: typing.Union[typing_extensions.Literal["
|
|
159
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount"], typing_extensions.Literal["side"], typing_extensions.Literal["time_in_force"], typing_extensions.Literal["instrument"], typing_extensions.Literal["type"], typing_extensions.Literal["limit_price"], typing_extensions.Literal["stop_price"], typing_extensions.Literal["post_only"], typing_extensions.Literal["expiration_date"], str, ]):
|
|
159
160
|
# dict_instance[name] accessor
|
|
160
161
|
return super().__getitem__(name)
|
|
161
162
|
|
|
162
|
-
|
|
163
163
|
@typing.overload
|
|
164
|
-
def get_item_oapg(self, name: typing_extensions.Literal["
|
|
164
|
+
def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ...
|
|
165
165
|
|
|
166
166
|
@typing.overload
|
|
167
167
|
def get_item_oapg(self, name: typing_extensions.Literal["side"]) -> 'ActionStrict': ...
|
|
168
168
|
|
|
169
169
|
@typing.overload
|
|
170
|
-
def get_item_oapg(self, name: typing_extensions.Literal["
|
|
170
|
+
def get_item_oapg(self, name: typing_extensions.Literal["time_in_force"]) -> MetaOapg.properties.time_in_force: ...
|
|
171
171
|
|
|
172
172
|
@typing.overload
|
|
173
|
-
def get_item_oapg(self, name: typing_extensions.Literal["
|
|
173
|
+
def get_item_oapg(self, name: typing_extensions.Literal["instrument"]) -> 'TradingInstrument': ...
|
|
174
174
|
|
|
175
175
|
@typing.overload
|
|
176
|
-
def get_item_oapg(self, name: typing_extensions.Literal["
|
|
176
|
+
def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...
|
|
177
177
|
|
|
178
178
|
@typing.overload
|
|
179
179
|
def get_item_oapg(self, name: typing_extensions.Literal["limit_price"]) -> typing.Union[MetaOapg.properties.limit_price, schemas.Unset]: ...
|
|
@@ -188,11 +188,10 @@ class SimpleOrderForm(
|
|
|
188
188
|
def get_item_oapg(self, name: typing_extensions.Literal["expiration_date"]) -> typing.Union[MetaOapg.properties.expiration_date, schemas.Unset]: ...
|
|
189
189
|
|
|
190
190
|
@typing.overload
|
|
191
|
-
def get_item_oapg(self, name: str) -> typing.Union[
|
|
191
|
+
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
|
192
192
|
|
|
193
|
-
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["
|
|
193
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount"], typing_extensions.Literal["side"], typing_extensions.Literal["time_in_force"], typing_extensions.Literal["instrument"], typing_extensions.Literal["type"], typing_extensions.Literal["limit_price"], typing_extensions.Literal["stop_price"], typing_extensions.Literal["post_only"], typing_extensions.Literal["expiration_date"], str, ]):
|
|
194
194
|
return super().get_item_oapg(name)
|
|
195
|
-
|
|
196
195
|
|
|
197
196
|
def __new__(
|
|
198
197
|
cls,
|
|
@@ -207,7 +206,7 @@ class SimpleOrderForm(
|
|
|
207
206
|
post_only: typing.Union[MetaOapg.properties.post_only, bool, schemas.Unset] = schemas.unset,
|
|
208
207
|
expiration_date: typing.Union[MetaOapg.properties.expiration_date, str, datetime, schemas.Unset] = schemas.unset,
|
|
209
208
|
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
210
|
-
**kwargs: typing.Union[
|
|
209
|
+
**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, ],
|
|
211
210
|
) -> 'SimpleOrderForm':
|
|
212
211
|
return super().__new__(
|
|
213
212
|
cls,
|