snaptrade-python-sdk 11.0.115__py3-none-any.whl → 11.0.117__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 -3
- snaptrade_client/apis/paths/accounts_account_id_trading_cancel.py +7 -0
- snaptrade_client/apis/paths/brokerages_brokerage_id_instruments.py +7 -0
- snaptrade_client/apis/tags/reference_data_api_generated.py +2 -0
- snaptrade_client/apis/tags/trading_api_generated.py +1 -1
- snaptrade_client/configuration.py +1 -1
- snaptrade_client/model/brokerage_id.py +25 -0
- snaptrade_client/model/brokerage_id.pyi +25 -0
- snaptrade_client/model/brokerage_instrument.py +197 -0
- snaptrade_client/model/brokerage_instrument.pyi +197 -0
- snaptrade_client/model/brokerage_instruments_response.py +103 -0
- snaptrade_client/model/brokerage_instruments_response.pyi +103 -0
- 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/models/__init__.py +5 -0
- snaptrade_client/operation_parameter_map.py +9 -2
- snaptrade_client/paths/__init__.py +2 -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/paths/brokerages_brokerage_id_instruments/__init__.py +7 -0
- snaptrade_client/paths/brokerages_brokerage_id_instruments/get.py +417 -0
- snaptrade_client/paths/brokerages_brokerage_id_instruments/get.pyi +406 -0
- snaptrade_client/type/brokerage_id.py +19 -0
- snaptrade_client/type/brokerage_instrument.py +39 -0
- snaptrade_client/type/brokerage_instruments_response.py +27 -0
- snaptrade_client/type/cancel_order_response.py +29 -0
- snaptrade_client/type/cancel_order_response_raw_response.py +19 -0
- {snaptrade_python_sdk-11.0.115.dist-info → snaptrade_python_sdk-11.0.117.dist-info}/METADATA +41 -5
- {snaptrade_python_sdk-11.0.115.dist-info → snaptrade_python_sdk-11.0.117.dist-info}/RECORD +36 -17
- snaptrade_client/apis/paths/accounts_account_id_trading_simple_brokerage_order_id_cancel.py +0 -7
- {snaptrade_python_sdk-11.0.115.dist-info → snaptrade_python_sdk-11.0.117.dist-info}/LICENSE +0 -0
- {snaptrade_python_sdk-11.0.115.dist-info → snaptrade_python_sdk-11.0.117.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,103 @@
|
|
|
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 BrokerageInstrumentsResponse(
|
|
28
|
+
schemas.DictSchema
|
|
29
|
+
):
|
|
30
|
+
"""
|
|
31
|
+
This class is auto generated by Konfig (https://konfigthis.com)
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class MetaOapg:
|
|
36
|
+
|
|
37
|
+
class properties:
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class instruments(
|
|
41
|
+
schemas.ListSchema
|
|
42
|
+
):
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class MetaOapg:
|
|
46
|
+
|
|
47
|
+
@staticmethod
|
|
48
|
+
def items() -> typing.Type['BrokerageInstrument']:
|
|
49
|
+
return BrokerageInstrument
|
|
50
|
+
|
|
51
|
+
def __new__(
|
|
52
|
+
cls,
|
|
53
|
+
arg: typing.Union[typing.Tuple['BrokerageInstrument'], typing.List['BrokerageInstrument']],
|
|
54
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
55
|
+
) -> 'instruments':
|
|
56
|
+
return super().__new__(
|
|
57
|
+
cls,
|
|
58
|
+
arg,
|
|
59
|
+
_configuration=_configuration,
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
def __getitem__(self, i: int) -> 'BrokerageInstrument':
|
|
63
|
+
return super().__getitem__(i)
|
|
64
|
+
__annotations__ = {
|
|
65
|
+
"instruments": instruments,
|
|
66
|
+
}
|
|
67
|
+
additional_properties = schemas.AnyTypeSchema
|
|
68
|
+
|
|
69
|
+
@typing.overload
|
|
70
|
+
def __getitem__(self, name: typing_extensions.Literal["instruments"]) -> MetaOapg.properties.instruments: ...
|
|
71
|
+
|
|
72
|
+
@typing.overload
|
|
73
|
+
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
|
74
|
+
|
|
75
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["instruments"], 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["instruments"]) -> typing.Union[MetaOapg.properties.instruments, schemas.Unset]: ...
|
|
81
|
+
|
|
82
|
+
@typing.overload
|
|
83
|
+
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
|
84
|
+
|
|
85
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["instruments"], str, ]):
|
|
86
|
+
return super().get_item_oapg(name)
|
|
87
|
+
|
|
88
|
+
def __new__(
|
|
89
|
+
cls,
|
|
90
|
+
*args: typing.Union[dict, frozendict.frozendict, ],
|
|
91
|
+
instruments: typing.Union[MetaOapg.properties.instruments, list, tuple, schemas.Unset] = schemas.unset,
|
|
92
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
93
|
+
**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, ],
|
|
94
|
+
) -> 'BrokerageInstrumentsResponse':
|
|
95
|
+
return super().__new__(
|
|
96
|
+
cls,
|
|
97
|
+
*args,
|
|
98
|
+
instruments=instruments,
|
|
99
|
+
_configuration=_configuration,
|
|
100
|
+
**kwargs,
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
from snaptrade_client.model.brokerage_instrument import BrokerageInstrument
|
|
@@ -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
|
+
)
|
|
@@ -38,9 +38,14 @@ from snaptrade_client.model.brokerage_authorization_refresh_confirmation import
|
|
|
38
38
|
from snaptrade_client.model.brokerage_authorization_type_read_only import BrokerageAuthorizationTypeReadOnly
|
|
39
39
|
from snaptrade_client.model.brokerage_authorization_type_read_only_brokerage import BrokerageAuthorizationTypeReadOnlyBrokerage
|
|
40
40
|
from snaptrade_client.model.brokerage_exchanges import BrokerageExchanges
|
|
41
|
+
from snaptrade_client.model.brokerage_id import BrokerageID
|
|
42
|
+
from snaptrade_client.model.brokerage_instrument import BrokerageInstrument
|
|
43
|
+
from snaptrade_client.model.brokerage_instruments_response import BrokerageInstrumentsResponse
|
|
41
44
|
from snaptrade_client.model.brokerage_order_id import BrokerageOrderID
|
|
42
45
|
from snaptrade_client.model.brokerage_symbol_id import BrokerageSymbolID
|
|
43
46
|
from snaptrade_client.model.brokerage_type import BrokerageType
|
|
47
|
+
from snaptrade_client.model.cancel_order_response import CancelOrderResponse
|
|
48
|
+
from snaptrade_client.model.cancel_order_response_raw_response import CancelOrderResponseRawResponse
|
|
44
49
|
from snaptrade_client.model.child_brokerage_order_ids import ChildBrokerageOrderIDs
|
|
45
50
|
from snaptrade_client.model.child_brokerage_order_ids_nullable import ChildBrokerageOrderIDsNullable
|
|
46
51
|
from snaptrade_client.model.client_id import ClientID
|
|
@@ -443,6 +443,13 @@ operation_parameter_map = {
|
|
|
443
443
|
},
|
|
444
444
|
]
|
|
445
445
|
},
|
|
446
|
+
'/brokerages/{brokerageId}/instruments-GET': {
|
|
447
|
+
'parameters': [
|
|
448
|
+
{
|
|
449
|
+
'name': 'brokerageId'
|
|
450
|
+
},
|
|
451
|
+
]
|
|
452
|
+
},
|
|
446
453
|
'/brokerages-GET': {
|
|
447
454
|
'parameters': [
|
|
448
455
|
]
|
|
@@ -471,7 +478,7 @@ operation_parameter_map = {
|
|
|
471
478
|
},
|
|
472
479
|
]
|
|
473
480
|
},
|
|
474
|
-
'/accounts/{accountId}/trading/
|
|
481
|
+
'/accounts/{accountId}/trading/cancel-POST': {
|
|
475
482
|
'parameters': [
|
|
476
483
|
{
|
|
477
484
|
'name': 'userId'
|
|
@@ -483,7 +490,7 @@ operation_parameter_map = {
|
|
|
483
490
|
'name': 'accountId'
|
|
484
491
|
},
|
|
485
492
|
{
|
|
486
|
-
'name': '
|
|
493
|
+
'name': 'brokerage_order_id'
|
|
487
494
|
},
|
|
488
495
|
]
|
|
489
496
|
},
|
|
@@ -47,10 +47,11 @@ 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"
|
|
54
|
+
BROKERAGES_BROKERAGE_ID_INSTRUMENTS = "/brokerages/{brokerageId}/instruments"
|
|
54
55
|
BROKERAGE_AUTHORIZATION_TYPES = "/brokerageAuthorizationTypes"
|
|
55
56
|
CURRENCIES = "/currencies"
|
|
56
57
|
CURRENCIES_RATES = "/currencies/rates"
|
|
@@ -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
|