snaptrade-python-sdk 11.0.114__py3-none-any.whl → 11.0.116__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 +3 -3
- snaptrade_client/apis/paths/accounts_account_id_trading_cancel.py +7 -0
- snaptrade_client/apis/tags/trading_api_generated.py +1 -1
- snaptrade_client/configuration.py +1 -1
- snaptrade_client/model/cancel_order_response.py +96 -0
- snaptrade_client/model/cancel_order_response.pyi +96 -0
- snaptrade_client/model/cancel_order_response_raw_response.py +62 -0
- snaptrade_client/model/cancel_order_response_raw_response.pyi +62 -0
- snaptrade_client/model/mleg_price_effect_strict.py +22 -1
- snaptrade_client/model/mleg_price_effect_strict.pyi +22 -1
- snaptrade_client/model/mleg_price_effect_strict_nullable.py +22 -1
- snaptrade_client/model/mleg_price_effect_strict_nullable.pyi +22 -1
- snaptrade_client/models/__init__.py +2 -0
- snaptrade_client/operation_parameter_map.py +2 -2
- snaptrade_client/paths/__init__.py +1 -1
- snaptrade_client/paths/{accounts_account_id_trading_simple_brokerage_order_id_cancel → accounts_account_id_trading_cancel}/__init__.py +2 -2
- snaptrade_client/paths/{accounts_account_id_trading_simple_brokerage_order_id_cancel → accounts_account_id_trading_cancel}/post.py +120 -19
- snaptrade_client/paths/{accounts_account_id_trading_simple_brokerage_order_id_cancel → accounts_account_id_trading_cancel}/post.pyi +120 -19
- snaptrade_client/type/cancel_order_response.py +29 -0
- snaptrade_client/type/cancel_order_response_raw_response.py +19 -0
- snaptrade_client/type/mleg_price_effect_strict.py +1 -1
- snaptrade_client/type/mleg_price_effect_strict_nullable.py +1 -1
- snaptrade_client/type/mleg_trade_form.py +1 -1
- {snaptrade_python_sdk-11.0.114.dist-info → snaptrade_python_sdk-11.0.116.dist-info}/METADATA +10 -5
- {snaptrade_python_sdk-11.0.114.dist-info → snaptrade_python_sdk-11.0.116.dist-info}/RECORD +29 -23
- snaptrade_client/apis/paths/accounts_account_id_trading_simple_brokerage_order_id_cancel.py +0 -7
- {snaptrade_python_sdk-11.0.114.dist-info → snaptrade_python_sdk-11.0.116.dist-info}/LICENSE +0 -0
- {snaptrade_python_sdk-11.0.114.dist-info → snaptrade_python_sdk-11.0.116.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.116/python'
|
|
1159
1159
|
|
|
1160
1160
|
def __enter__(self):
|
|
1161
1161
|
return self
|
|
@@ -42,7 +42,7 @@ from snaptrade_client.apis.paths.accounts_account_id_trading_simple_preview impo
|
|
|
42
42
|
from snaptrade_client.apis.paths.accounts_account_id_trading_instruments_cryptocurrency_pairs_instrument_symbol_quote import AccountsAccountIdTradingInstrumentsCryptocurrencyPairsInstrumentSymbolQuote
|
|
43
43
|
from snaptrade_client.apis.paths.accounts_account_id_trading_simple import AccountsAccountIdTradingSimple
|
|
44
44
|
from snaptrade_client.apis.paths.accounts_account_id_trading_simple_brokerage_order_id_replace import AccountsAccountIdTradingSimpleBrokerageOrderIdReplace
|
|
45
|
-
from snaptrade_client.apis.paths.
|
|
45
|
+
from snaptrade_client.apis.paths.accounts_account_id_trading_cancel import AccountsAccountIdTradingCancel
|
|
46
46
|
from snaptrade_client.apis.paths.snap_trade_partners import SnapTradePartners
|
|
47
47
|
from snaptrade_client.apis.paths.accounts_account_id_symbols import AccountsAccountIdSymbols
|
|
48
48
|
from snaptrade_client.apis.paths.brokerages import Brokerages
|
|
@@ -99,7 +99,7 @@ PathToApi = typing_extensions.TypedDict(
|
|
|
99
99
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_INSTRUMENTS_CRYPTOCURRENCY_PAIRS_INSTRUMENT_SYMBOL_QUOTE: AccountsAccountIdTradingInstrumentsCryptocurrencyPairsInstrumentSymbolQuote,
|
|
100
100
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_SIMPLE: AccountsAccountIdTradingSimple,
|
|
101
101
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_SIMPLE_BROKERAGE_ORDER_ID_REPLACE: AccountsAccountIdTradingSimpleBrokerageOrderIdReplace,
|
|
102
|
-
PathValues.
|
|
102
|
+
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_CANCEL: AccountsAccountIdTradingCancel,
|
|
103
103
|
PathValues.SNAP_TRADE_PARTNERS: SnapTradePartners,
|
|
104
104
|
PathValues.ACCOUNTS_ACCOUNT_ID_SYMBOLS: AccountsAccountIdSymbols,
|
|
105
105
|
PathValues.BROKERAGES: Brokerages,
|
|
@@ -157,7 +157,7 @@ path_to_api = PathToApi(
|
|
|
157
157
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_INSTRUMENTS_CRYPTOCURRENCY_PAIRS_INSTRUMENT_SYMBOL_QUOTE: AccountsAccountIdTradingInstrumentsCryptocurrencyPairsInstrumentSymbolQuote,
|
|
158
158
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_SIMPLE: AccountsAccountIdTradingSimple,
|
|
159
159
|
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_SIMPLE_BROKERAGE_ORDER_ID_REPLACE: AccountsAccountIdTradingSimpleBrokerageOrderIdReplace,
|
|
160
|
-
PathValues.
|
|
160
|
+
PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_CANCEL: AccountsAccountIdTradingCancel,
|
|
161
161
|
PathValues.SNAP_TRADE_PARTNERS: SnapTradePartners,
|
|
162
162
|
PathValues.ACCOUNTS_ACCOUNT_ID_SYMBOLS: AccountsAccountIdSymbols,
|
|
163
163
|
PathValues.BROKERAGES: Brokerages,
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
Created by: https://snaptrade.com/
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
|
-
from snaptrade_client.paths.
|
|
12
|
+
from snaptrade_client.paths.accounts_account_id_trading_cancel.post import CancelOrder
|
|
13
13
|
from snaptrade_client.paths.accounts_account_id_orders_cancel.post import CancelUserAccountOrder
|
|
14
14
|
from snaptrade_client.paths.accounts_account_id_trading_instruments_cryptocurrency_pairs_instrument_symbol_quote.get import GetCryptocurrencyPairQuote
|
|
15
15
|
from snaptrade_client.paths.trade_impact.post import GetOrderImpact
|
|
@@ -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.116".\
|
|
442
442
|
format(env=sys.platform, pyversion=sys.version)
|
|
443
443
|
|
|
444
444
|
def get_host_settings(self):
|
|
@@ -0,0 +1,96 @@
|
|
|
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 CancelOrderResponse(
|
|
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
|
+
"brokerage_order_id",
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
class properties:
|
|
41
|
+
brokerage_order_id = schemas.StrSchema
|
|
42
|
+
|
|
43
|
+
@staticmethod
|
|
44
|
+
def raw_response() -> typing.Type['CancelOrderResponseRawResponse']:
|
|
45
|
+
return CancelOrderResponseRawResponse
|
|
46
|
+
__annotations__ = {
|
|
47
|
+
"brokerage_order_id": brokerage_order_id,
|
|
48
|
+
"raw_response": raw_response,
|
|
49
|
+
}
|
|
50
|
+
additional_properties = schemas.AnyTypeSchema
|
|
51
|
+
|
|
52
|
+
brokerage_order_id: MetaOapg.properties.brokerage_order_id
|
|
53
|
+
|
|
54
|
+
@typing.overload
|
|
55
|
+
def __getitem__(self, name: typing_extensions.Literal["brokerage_order_id"]) -> MetaOapg.properties.brokerage_order_id: ...
|
|
56
|
+
|
|
57
|
+
@typing.overload
|
|
58
|
+
def __getitem__(self, name: typing_extensions.Literal["raw_response"]) -> 'CancelOrderResponseRawResponse': ...
|
|
59
|
+
|
|
60
|
+
@typing.overload
|
|
61
|
+
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
|
62
|
+
|
|
63
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["brokerage_order_id"], typing_extensions.Literal["raw_response"], str, ]):
|
|
64
|
+
# dict_instance[name] accessor
|
|
65
|
+
return super().__getitem__(name)
|
|
66
|
+
|
|
67
|
+
@typing.overload
|
|
68
|
+
def get_item_oapg(self, name: typing_extensions.Literal["brokerage_order_id"]) -> MetaOapg.properties.brokerage_order_id: ...
|
|
69
|
+
|
|
70
|
+
@typing.overload
|
|
71
|
+
def get_item_oapg(self, name: typing_extensions.Literal["raw_response"]) -> typing.Union['CancelOrderResponseRawResponse', schemas.Unset]: ...
|
|
72
|
+
|
|
73
|
+
@typing.overload
|
|
74
|
+
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
|
75
|
+
|
|
76
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["brokerage_order_id"], typing_extensions.Literal["raw_response"], str, ]):
|
|
77
|
+
return super().get_item_oapg(name)
|
|
78
|
+
|
|
79
|
+
def __new__(
|
|
80
|
+
cls,
|
|
81
|
+
*args: typing.Union[dict, frozendict.frozendict, ],
|
|
82
|
+
brokerage_order_id: typing.Union[MetaOapg.properties.brokerage_order_id, str, ],
|
|
83
|
+
raw_response: typing.Union['CancelOrderResponseRawResponse', schemas.Unset] = schemas.unset,
|
|
84
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
85
|
+
**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, ],
|
|
86
|
+
) -> 'CancelOrderResponse':
|
|
87
|
+
return super().__new__(
|
|
88
|
+
cls,
|
|
89
|
+
*args,
|
|
90
|
+
brokerage_order_id=brokerage_order_id,
|
|
91
|
+
raw_response=raw_response,
|
|
92
|
+
_configuration=_configuration,
|
|
93
|
+
**kwargs,
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
from snaptrade_client.model.cancel_order_response_raw_response import CancelOrderResponseRawResponse
|
|
@@ -0,0 +1,96 @@
|
|
|
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 CancelOrderResponse(
|
|
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
|
+
"brokerage_order_id",
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
class properties:
|
|
41
|
+
brokerage_order_id = schemas.StrSchema
|
|
42
|
+
|
|
43
|
+
@staticmethod
|
|
44
|
+
def raw_response() -> typing.Type['CancelOrderResponseRawResponse']:
|
|
45
|
+
return CancelOrderResponseRawResponse
|
|
46
|
+
__annotations__ = {
|
|
47
|
+
"brokerage_order_id": brokerage_order_id,
|
|
48
|
+
"raw_response": raw_response,
|
|
49
|
+
}
|
|
50
|
+
additional_properties = schemas.AnyTypeSchema
|
|
51
|
+
|
|
52
|
+
brokerage_order_id: MetaOapg.properties.brokerage_order_id
|
|
53
|
+
|
|
54
|
+
@typing.overload
|
|
55
|
+
def __getitem__(self, name: typing_extensions.Literal["brokerage_order_id"]) -> MetaOapg.properties.brokerage_order_id: ...
|
|
56
|
+
|
|
57
|
+
@typing.overload
|
|
58
|
+
def __getitem__(self, name: typing_extensions.Literal["raw_response"]) -> 'CancelOrderResponseRawResponse': ...
|
|
59
|
+
|
|
60
|
+
@typing.overload
|
|
61
|
+
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
|
62
|
+
|
|
63
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["brokerage_order_id"], typing_extensions.Literal["raw_response"], str, ]):
|
|
64
|
+
# dict_instance[name] accessor
|
|
65
|
+
return super().__getitem__(name)
|
|
66
|
+
|
|
67
|
+
@typing.overload
|
|
68
|
+
def get_item_oapg(self, name: typing_extensions.Literal["brokerage_order_id"]) -> MetaOapg.properties.brokerage_order_id: ...
|
|
69
|
+
|
|
70
|
+
@typing.overload
|
|
71
|
+
def get_item_oapg(self, name: typing_extensions.Literal["raw_response"]) -> typing.Union['CancelOrderResponseRawResponse', schemas.Unset]: ...
|
|
72
|
+
|
|
73
|
+
@typing.overload
|
|
74
|
+
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
|
75
|
+
|
|
76
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["brokerage_order_id"], typing_extensions.Literal["raw_response"], str, ]):
|
|
77
|
+
return super().get_item_oapg(name)
|
|
78
|
+
|
|
79
|
+
def __new__(
|
|
80
|
+
cls,
|
|
81
|
+
*args: typing.Union[dict, frozendict.frozendict, ],
|
|
82
|
+
brokerage_order_id: typing.Union[MetaOapg.properties.brokerage_order_id, str, ],
|
|
83
|
+
raw_response: typing.Union['CancelOrderResponseRawResponse', schemas.Unset] = schemas.unset,
|
|
84
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
85
|
+
**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, ],
|
|
86
|
+
) -> 'CancelOrderResponse':
|
|
87
|
+
return super().__new__(
|
|
88
|
+
cls,
|
|
89
|
+
*args,
|
|
90
|
+
brokerage_order_id=brokerage_order_id,
|
|
91
|
+
raw_response=raw_response,
|
|
92
|
+
_configuration=_configuration,
|
|
93
|
+
**kwargs,
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
from snaptrade_client.model.cancel_order_response_raw_response import CancelOrderResponseRawResponse
|
|
@@ -0,0 +1,62 @@
|
|
|
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 CancelOrderResponseRawResponse(
|
|
28
|
+
schemas.DictBase,
|
|
29
|
+
schemas.NoneBase,
|
|
30
|
+
schemas.Schema,
|
|
31
|
+
schemas.NoneFrozenDictMixin
|
|
32
|
+
):
|
|
33
|
+
"""
|
|
34
|
+
This class is auto generated by Konfig (https://konfigthis.com)
|
|
35
|
+
|
|
36
|
+
The raw response from the brokerage.
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class MetaOapg:
|
|
41
|
+
additional_properties = schemas.AnyTypeSchema
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties:
|
|
45
|
+
# dict_instance[name] accessor
|
|
46
|
+
return super().__getitem__(name)
|
|
47
|
+
|
|
48
|
+
def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties:
|
|
49
|
+
return super().get_item_oapg(name)
|
|
50
|
+
|
|
51
|
+
def __new__(
|
|
52
|
+
cls,
|
|
53
|
+
*args: typing.Union[dict, frozendict.frozendict, None, ],
|
|
54
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
55
|
+
**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, ],
|
|
56
|
+
) -> 'CancelOrderResponseRawResponse':
|
|
57
|
+
return super().__new__(
|
|
58
|
+
cls,
|
|
59
|
+
*args,
|
|
60
|
+
_configuration=_configuration,
|
|
61
|
+
**kwargs,
|
|
62
|
+
)
|
|
@@ -0,0 +1,62 @@
|
|
|
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 CancelOrderResponseRawResponse(
|
|
28
|
+
schemas.DictBase,
|
|
29
|
+
schemas.NoneBase,
|
|
30
|
+
schemas.Schema,
|
|
31
|
+
schemas.NoneFrozenDictMixin
|
|
32
|
+
):
|
|
33
|
+
"""
|
|
34
|
+
This class is auto generated by Konfig (https://konfigthis.com)
|
|
35
|
+
|
|
36
|
+
The raw response from the brokerage.
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class MetaOapg:
|
|
41
|
+
additional_properties = schemas.AnyTypeSchema
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties:
|
|
45
|
+
# dict_instance[name] accessor
|
|
46
|
+
return super().__getitem__(name)
|
|
47
|
+
|
|
48
|
+
def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties:
|
|
49
|
+
return super().get_item_oapg(name)
|
|
50
|
+
|
|
51
|
+
def __new__(
|
|
52
|
+
cls,
|
|
53
|
+
*args: typing.Union[dict, frozendict.frozendict, None, ],
|
|
54
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
55
|
+
**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, ],
|
|
56
|
+
) -> 'CancelOrderResponseRawResponse':
|
|
57
|
+
return super().__new__(
|
|
58
|
+
cls,
|
|
59
|
+
*args,
|
|
60
|
+
_configuration=_configuration,
|
|
61
|
+
**kwargs,
|
|
62
|
+
)
|
|
@@ -25,6 +25,7 @@ from snaptrade_client import schemas # noqa: F401
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
class MlegPriceEffectStrict(
|
|
28
|
+
schemas.EnumBase,
|
|
28
29
|
schemas.StrBase,
|
|
29
30
|
schemas.NoneBase,
|
|
30
31
|
schemas.Schema,
|
|
@@ -33,10 +34,30 @@ class MlegPriceEffectStrict(
|
|
|
33
34
|
"""
|
|
34
35
|
This class is auto generated by Konfig (https://konfigthis.com)
|
|
35
36
|
|
|
36
|
-
The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders. Only required for certain brokerages like ETrade.
|
|
37
|
+
The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders. Only required for certain brokerages like ETrade.
|
|
37
38
|
"""
|
|
38
39
|
|
|
39
40
|
|
|
41
|
+
class MetaOapg:
|
|
42
|
+
enum_value_to_name = {
|
|
43
|
+
"CREDIT": "CREDIT",
|
|
44
|
+
"DEBIT": "DEBIT",
|
|
45
|
+
"EVEN": "EVEN",
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@schemas.classproperty
|
|
49
|
+
def CREDIT(cls):
|
|
50
|
+
return cls("CREDIT")
|
|
51
|
+
|
|
52
|
+
@schemas.classproperty
|
|
53
|
+
def DEBIT(cls):
|
|
54
|
+
return cls("DEBIT")
|
|
55
|
+
|
|
56
|
+
@schemas.classproperty
|
|
57
|
+
def EVEN(cls):
|
|
58
|
+
return cls("EVEN")
|
|
59
|
+
|
|
60
|
+
|
|
40
61
|
def __new__(
|
|
41
62
|
cls,
|
|
42
63
|
*args: typing.Union[None, str, ],
|
|
@@ -25,6 +25,7 @@ from snaptrade_client import schemas # noqa: F401
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
class MlegPriceEffectStrict(
|
|
28
|
+
schemas.EnumBase,
|
|
28
29
|
schemas.StrBase,
|
|
29
30
|
schemas.NoneBase,
|
|
30
31
|
schemas.Schema,
|
|
@@ -33,10 +34,30 @@ class MlegPriceEffectStrict(
|
|
|
33
34
|
"""
|
|
34
35
|
This class is auto generated by Konfig (https://konfigthis.com)
|
|
35
36
|
|
|
36
|
-
The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders. Only required for certain brokerages like ETrade.
|
|
37
|
+
The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders. Only required for certain brokerages like ETrade.
|
|
37
38
|
"""
|
|
38
39
|
|
|
39
40
|
|
|
41
|
+
class MetaOapg:
|
|
42
|
+
enum_value_to_name = {
|
|
43
|
+
"CREDIT": "CREDIT",
|
|
44
|
+
"DEBIT": "DEBIT",
|
|
45
|
+
"EVEN": "EVEN",
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@schemas.classproperty
|
|
49
|
+
def CREDIT(cls):
|
|
50
|
+
return cls("CREDIT")
|
|
51
|
+
|
|
52
|
+
@schemas.classproperty
|
|
53
|
+
def DEBIT(cls):
|
|
54
|
+
return cls("DEBIT")
|
|
55
|
+
|
|
56
|
+
@schemas.classproperty
|
|
57
|
+
def EVEN(cls):
|
|
58
|
+
return cls("EVEN")
|
|
59
|
+
|
|
60
|
+
|
|
40
61
|
def __new__(
|
|
41
62
|
cls,
|
|
42
63
|
*args: typing.Union[None, str, ],
|
|
@@ -25,6 +25,7 @@ from snaptrade_client import schemas # noqa: F401
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
class MlegPriceEffectStrictNullable(
|
|
28
|
+
schemas.EnumBase,
|
|
28
29
|
schemas.StrBase,
|
|
29
30
|
schemas.NoneBase,
|
|
30
31
|
schemas.Schema,
|
|
@@ -33,10 +34,30 @@ class MlegPriceEffectStrictNullable(
|
|
|
33
34
|
"""
|
|
34
35
|
This class is auto generated by Konfig (https://konfigthis.com)
|
|
35
36
|
|
|
36
|
-
The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders. Only required for certain brokerages like ETrade.
|
|
37
|
+
The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders. Only required for certain brokerages like ETrade.
|
|
37
38
|
"""
|
|
38
39
|
|
|
39
40
|
|
|
41
|
+
class MetaOapg:
|
|
42
|
+
enum_value_to_name = {
|
|
43
|
+
"CREDIT": "CREDIT",
|
|
44
|
+
"DEBIT": "DEBIT",
|
|
45
|
+
"EVEN": "EVEN",
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@schemas.classproperty
|
|
49
|
+
def CREDIT(cls):
|
|
50
|
+
return cls("CREDIT")
|
|
51
|
+
|
|
52
|
+
@schemas.classproperty
|
|
53
|
+
def DEBIT(cls):
|
|
54
|
+
return cls("DEBIT")
|
|
55
|
+
|
|
56
|
+
@schemas.classproperty
|
|
57
|
+
def EVEN(cls):
|
|
58
|
+
return cls("EVEN")
|
|
59
|
+
|
|
60
|
+
|
|
40
61
|
def __new__(
|
|
41
62
|
cls,
|
|
42
63
|
*args: typing.Union[None, str, ],
|
|
@@ -25,6 +25,7 @@ from snaptrade_client import schemas # noqa: F401
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
class MlegPriceEffectStrictNullable(
|
|
28
|
+
schemas.EnumBase,
|
|
28
29
|
schemas.StrBase,
|
|
29
30
|
schemas.NoneBase,
|
|
30
31
|
schemas.Schema,
|
|
@@ -33,10 +34,30 @@ class MlegPriceEffectStrictNullable(
|
|
|
33
34
|
"""
|
|
34
35
|
This class is auto generated by Konfig (https://konfigthis.com)
|
|
35
36
|
|
|
36
|
-
The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders. Only required for certain brokerages like ETrade.
|
|
37
|
+
The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders. Only required for certain brokerages like ETrade.
|
|
37
38
|
"""
|
|
38
39
|
|
|
39
40
|
|
|
41
|
+
class MetaOapg:
|
|
42
|
+
enum_value_to_name = {
|
|
43
|
+
"CREDIT": "CREDIT",
|
|
44
|
+
"DEBIT": "DEBIT",
|
|
45
|
+
"EVEN": "EVEN",
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@schemas.classproperty
|
|
49
|
+
def CREDIT(cls):
|
|
50
|
+
return cls("CREDIT")
|
|
51
|
+
|
|
52
|
+
@schemas.classproperty
|
|
53
|
+
def DEBIT(cls):
|
|
54
|
+
return cls("DEBIT")
|
|
55
|
+
|
|
56
|
+
@schemas.classproperty
|
|
57
|
+
def EVEN(cls):
|
|
58
|
+
return cls("EVEN")
|
|
59
|
+
|
|
60
|
+
|
|
40
61
|
def __new__(
|
|
41
62
|
cls,
|
|
42
63
|
*args: typing.Union[None, str, ],
|
|
@@ -41,6 +41,8 @@ from snaptrade_client.model.brokerage_exchanges import BrokerageExchanges
|
|
|
41
41
|
from snaptrade_client.model.brokerage_order_id import BrokerageOrderID
|
|
42
42
|
from snaptrade_client.model.brokerage_symbol_id import BrokerageSymbolID
|
|
43
43
|
from snaptrade_client.model.brokerage_type import BrokerageType
|
|
44
|
+
from snaptrade_client.model.cancel_order_response import CancelOrderResponse
|
|
45
|
+
from snaptrade_client.model.cancel_order_response_raw_response import CancelOrderResponseRawResponse
|
|
44
46
|
from snaptrade_client.model.child_brokerage_order_ids import ChildBrokerageOrderIDs
|
|
45
47
|
from snaptrade_client.model.child_brokerage_order_ids_nullable import ChildBrokerageOrderIDsNullable
|
|
46
48
|
from snaptrade_client.model.client_id import ClientID
|
|
@@ -471,7 +471,7 @@ operation_parameter_map = {
|
|
|
471
471
|
},
|
|
472
472
|
]
|
|
473
473
|
},
|
|
474
|
-
'/accounts/{accountId}/trading/
|
|
474
|
+
'/accounts/{accountId}/trading/cancel-POST': {
|
|
475
475
|
'parameters': [
|
|
476
476
|
{
|
|
477
477
|
'name': 'userId'
|
|
@@ -483,7 +483,7 @@ operation_parameter_map = {
|
|
|
483
483
|
'name': 'accountId'
|
|
484
484
|
},
|
|
485
485
|
{
|
|
486
|
-
'name': '
|
|
486
|
+
'name': 'brokerage_order_id'
|
|
487
487
|
},
|
|
488
488
|
]
|
|
489
489
|
},
|
|
@@ -47,7 +47,7 @@ class PathValues(str, enum.Enum):
|
|
|
47
47
|
ACCOUNTS_ACCOUNT_ID_TRADING_INSTRUMENTS_CRYPTOCURRENCY_PAIRS_INSTRUMENT_SYMBOL_QUOTE = "/accounts/{accountId}/trading/instruments/cryptocurrencyPairs/{instrumentSymbol}/quote"
|
|
48
48
|
ACCOUNTS_ACCOUNT_ID_TRADING_SIMPLE = "/accounts/{accountId}/trading/simple"
|
|
49
49
|
ACCOUNTS_ACCOUNT_ID_TRADING_SIMPLE_BROKERAGE_ORDER_ID_REPLACE = "/accounts/{accountId}/trading/simple/{brokerageOrderId}/replace"
|
|
50
|
-
|
|
50
|
+
ACCOUNTS_ACCOUNT_ID_TRADING_CANCEL = "/accounts/{accountId}/trading/cancel"
|
|
51
51
|
SNAP_TRADE_PARTNERS = "/snapTrade/partners"
|
|
52
52
|
ACCOUNTS_ACCOUNT_ID_SYMBOLS = "/accounts/{accountId}/symbols"
|
|
53
53
|
BROKERAGES = "/brokerages"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# do not import all endpoints into this module because that uses a lot of memory and stack frames
|
|
2
2
|
# if you need the ability to import all endpoints from this module, import them with
|
|
3
|
-
# from snaptrade_client.paths.
|
|
3
|
+
# from snaptrade_client.paths.accounts_account_id_trading_cancel import Api
|
|
4
4
|
|
|
5
5
|
from snaptrade_client.paths import PathValues
|
|
6
6
|
|
|
7
|
-
path = PathValues.
|
|
7
|
+
path = PathValues.ACCOUNTS_ACCOUNT_ID_TRADING_CANCEL
|