unicex 0.13.17__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.
- unicex/__init__.py +200 -0
- unicex/_abc/__init__.py +11 -0
- unicex/_abc/exchange_info.py +216 -0
- unicex/_abc/uni_client.py +329 -0
- unicex/_abc/uni_websocket_manager.py +294 -0
- unicex/_base/__init__.py +9 -0
- unicex/_base/client.py +214 -0
- unicex/_base/websocket.py +261 -0
- unicex/binance/__init__.py +27 -0
- unicex/binance/adapter.py +202 -0
- unicex/binance/client.py +1577 -0
- unicex/binance/exchange_info.py +62 -0
- unicex/binance/uni_client.py +188 -0
- unicex/binance/uni_websocket_manager.py +166 -0
- unicex/binance/user_websocket.py +186 -0
- unicex/binance/websocket_manager.py +912 -0
- unicex/bitget/__init__.py +27 -0
- unicex/bitget/adapter.py +188 -0
- unicex/bitget/client.py +2514 -0
- unicex/bitget/exchange_info.py +48 -0
- unicex/bitget/uni_client.py +198 -0
- unicex/bitget/uni_websocket_manager.py +275 -0
- unicex/bitget/user_websocket.py +7 -0
- unicex/bitget/websocket_manager.py +232 -0
- unicex/bybit/__init__.py +27 -0
- unicex/bybit/adapter.py +208 -0
- unicex/bybit/client.py +1876 -0
- unicex/bybit/exchange_info.py +53 -0
- unicex/bybit/uni_client.py +200 -0
- unicex/bybit/uni_websocket_manager.py +291 -0
- unicex/bybit/user_websocket.py +7 -0
- unicex/bybit/websocket_manager.py +339 -0
- unicex/enums.py +273 -0
- unicex/exceptions.py +64 -0
- unicex/extra.py +335 -0
- unicex/gate/__init__.py +27 -0
- unicex/gate/adapter.py +178 -0
- unicex/gate/client.py +1667 -0
- unicex/gate/exchange_info.py +55 -0
- unicex/gate/uni_client.py +214 -0
- unicex/gate/uni_websocket_manager.py +269 -0
- unicex/gate/user_websocket.py +7 -0
- unicex/gate/websocket_manager.py +513 -0
- unicex/hyperliquid/__init__.py +27 -0
- unicex/hyperliquid/adapter.py +261 -0
- unicex/hyperliquid/client.py +2315 -0
- unicex/hyperliquid/exchange_info.py +119 -0
- unicex/hyperliquid/uni_client.py +325 -0
- unicex/hyperliquid/uni_websocket_manager.py +269 -0
- unicex/hyperliquid/user_websocket.py +7 -0
- unicex/hyperliquid/websocket_manager.py +393 -0
- unicex/mapper.py +111 -0
- unicex/mexc/__init__.py +27 -0
- unicex/mexc/_spot_ws_proto/PrivateAccountV3Api_pb2.py +38 -0
- unicex/mexc/_spot_ws_proto/PrivateDealsV3Api_pb2.py +38 -0
- unicex/mexc/_spot_ws_proto/PrivateOrdersV3Api_pb2.py +38 -0
- unicex/mexc/_spot_ws_proto/PublicAggreBookTickerV3Api_pb2.py +38 -0
- unicex/mexc/_spot_ws_proto/PublicAggreDealsV3Api_pb2.py +40 -0
- unicex/mexc/_spot_ws_proto/PublicAggreDepthsV3Api_pb2.py +40 -0
- unicex/mexc/_spot_ws_proto/PublicBookTickerBatchV3Api_pb2.py +38 -0
- unicex/mexc/_spot_ws_proto/PublicBookTickerV3Api_pb2.py +38 -0
- unicex/mexc/_spot_ws_proto/PublicDealsV3Api_pb2.py +40 -0
- unicex/mexc/_spot_ws_proto/PublicFuture_pb2.py +103 -0
- unicex/mexc/_spot_ws_proto/PublicIncreaseDepthsBatchV3Api_pb2.py +38 -0
- unicex/mexc/_spot_ws_proto/PublicIncreaseDepthsV3Api_pb2.py +40 -0
- unicex/mexc/_spot_ws_proto/PublicLimitDepthsV3Api_pb2.py +40 -0
- unicex/mexc/_spot_ws_proto/PublicMiniTickerV3Api_pb2.py +38 -0
- unicex/mexc/_spot_ws_proto/PublicMiniTickersV3Api_pb2.py +38 -0
- unicex/mexc/_spot_ws_proto/PublicSpotKlineV3Api_pb2.py +38 -0
- unicex/mexc/_spot_ws_proto/PushDataV3ApiWrapper_pb2.py +38 -0
- unicex/mexc/_spot_ws_proto/__init__.py +335 -0
- unicex/mexc/adapter.py +239 -0
- unicex/mexc/client.py +846 -0
- unicex/mexc/exchange_info.py +47 -0
- unicex/mexc/uni_client.py +211 -0
- unicex/mexc/uni_websocket_manager.py +269 -0
- unicex/mexc/user_websocket.py +7 -0
- unicex/mexc/websocket_manager.py +456 -0
- unicex/okx/__init__.py +27 -0
- unicex/okx/adapter.py +150 -0
- unicex/okx/client.py +2864 -0
- unicex/okx/exchange_info.py +47 -0
- unicex/okx/uni_client.py +202 -0
- unicex/okx/uni_websocket_manager.py +269 -0
- unicex/okx/user_websocket.py +7 -0
- unicex/okx/websocket_manager.py +743 -0
- unicex/types.py +164 -0
- unicex/utils.py +218 -0
- unicex-0.13.17.dist-info/METADATA +243 -0
- unicex-0.13.17.dist-info/RECORD +93 -0
- unicex-0.13.17.dist-info/WHEEL +5 -0
- unicex-0.13.17.dist-info/licenses/LICENSE +28 -0
- unicex-0.13.17.dist-info/top_level.txt +1 -0
unicex/mapper.py
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"""Модуль, который предоставляет мапперы для унифицированных клиентов и вебсокет-менеджеров."""
|
|
2
|
+
|
|
3
|
+
__all__ = [
|
|
4
|
+
"get_uni_client",
|
|
5
|
+
"get_uni_websocket_manager",
|
|
6
|
+
"get_exchange_info",
|
|
7
|
+
]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
from ._abc import IExchangeInfo, IUniClient, IUniWebsocketManager
|
|
11
|
+
from .binance import ExchangeInfo as BinanceExchangeInfo
|
|
12
|
+
from .binance import UniClient as BinanceUniClient
|
|
13
|
+
from .binance import UniWebsocketManager as BinanceUniWebsocketManager
|
|
14
|
+
from .bitget import ExchangeInfo as BitgetExchangeInfo
|
|
15
|
+
from .bitget import UniClient as BitgetUniClient
|
|
16
|
+
from .bitget import UniWebsocketManager as BitgetUniWebsocketManager
|
|
17
|
+
from .bybit import ExchangeInfo as BybitExchangeInfo
|
|
18
|
+
from .bybit import UniClient as BybitUniClient
|
|
19
|
+
from .bybit import UniWebsocketManager as BybitUniWebsocketManager
|
|
20
|
+
from .enums import Exchange
|
|
21
|
+
from .exceptions import NotSupported
|
|
22
|
+
from .gate import ExchangeInfo as GateioExchangeInfo
|
|
23
|
+
from .gate import UniClient as GateioUniClient
|
|
24
|
+
from .gate import UniWebsocketManager as GateioUniWebsocketManager
|
|
25
|
+
from .hyperliquid import ExchangeInfo as HyperliquidExchangeInfo
|
|
26
|
+
from .hyperliquid import UniClient as HyperliquidUniClient
|
|
27
|
+
from .hyperliquid import UniWebsocketManager as HyperliquidUniWebsocketManager
|
|
28
|
+
from .mexc import ExchangeInfo as MexcExchangeInfo
|
|
29
|
+
from .mexc import UniClient as MexcUniClient
|
|
30
|
+
from .mexc import UniWebsocketManager as MexcUniWebsocketManager
|
|
31
|
+
from .okx import ExchangeInfo as OkxExchangeInfo
|
|
32
|
+
from .okx import UniClient as OkxUniClient
|
|
33
|
+
from .okx import UniWebsocketManager as OkxUniWebsocketManager
|
|
34
|
+
|
|
35
|
+
_UNI_CLIENT_MAPPER: dict[Exchange, type[IUniClient]] = {
|
|
36
|
+
Exchange.BINANCE: BinanceUniClient,
|
|
37
|
+
Exchange.BITGET: BitgetUniClient,
|
|
38
|
+
Exchange.BYBIT: BybitUniClient,
|
|
39
|
+
Exchange.GATE: GateioUniClient,
|
|
40
|
+
Exchange.HYPERLIQUID: HyperliquidUniClient,
|
|
41
|
+
Exchange.MEXC: MexcUniClient,
|
|
42
|
+
Exchange.OKX: OkxUniClient,
|
|
43
|
+
}
|
|
44
|
+
"""Маппер, который связывает биржу и реализацию унифицированного клиента."""
|
|
45
|
+
|
|
46
|
+
_UNI_WS_MANAGER_MAPPER: dict[Exchange, type[IUniWebsocketManager]] = {
|
|
47
|
+
Exchange.BINANCE: BinanceUniWebsocketManager,
|
|
48
|
+
Exchange.BITGET: BitgetUniWebsocketManager,
|
|
49
|
+
Exchange.BYBIT: BybitUniWebsocketManager,
|
|
50
|
+
Exchange.GATE: GateioUniWebsocketManager,
|
|
51
|
+
Exchange.HYPERLIQUID: HyperliquidUniWebsocketManager,
|
|
52
|
+
Exchange.MEXC: MexcUniWebsocketManager,
|
|
53
|
+
Exchange.OKX: OkxUniWebsocketManager,
|
|
54
|
+
}
|
|
55
|
+
"""Маппер, который связывает биржу и реализацию унифицированного вебсокет-менеджера."""
|
|
56
|
+
|
|
57
|
+
_EXCHANGE_INFO_MAPPER: dict[Exchange, type[IExchangeInfo]] = {
|
|
58
|
+
Exchange.BINANCE: BinanceExchangeInfo,
|
|
59
|
+
Exchange.BITGET: BitgetExchangeInfo,
|
|
60
|
+
Exchange.BYBIT: BybitExchangeInfo,
|
|
61
|
+
Exchange.GATE: GateioExchangeInfo,
|
|
62
|
+
Exchange.HYPERLIQUID: HyperliquidExchangeInfo,
|
|
63
|
+
Exchange.MEXC: MexcExchangeInfo,
|
|
64
|
+
Exchange.OKX: OkxExchangeInfo,
|
|
65
|
+
}
|
|
66
|
+
"""Маппер, который связывает биржу и реализацию сборщика информации о тикерах на бирже."""
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def get_uni_client(exchange: Exchange) -> type[IUniClient]:
|
|
70
|
+
"""Возвращает унифицированный клиент для указанной биржи.
|
|
71
|
+
|
|
72
|
+
Параметры:
|
|
73
|
+
exchange (`Exchange`): Биржа.
|
|
74
|
+
|
|
75
|
+
Возвращает:
|
|
76
|
+
`type[IUniClient]`: Унифицированный клиент для указанной биржи.
|
|
77
|
+
"""
|
|
78
|
+
try:
|
|
79
|
+
return _UNI_CLIENT_MAPPER[exchange]
|
|
80
|
+
except KeyError as e:
|
|
81
|
+
raise NotSupported(f"Unsupported exchange: {exchange}") from e
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
def get_uni_websocket_manager(exchange: Exchange) -> type[IUniWebsocketManager]:
|
|
85
|
+
"""Возвращает унифицированный вебсокет-менеджер для указанной биржи.
|
|
86
|
+
|
|
87
|
+
Параметры:
|
|
88
|
+
exchange (`Exchange`): Биржа.
|
|
89
|
+
|
|
90
|
+
Возвращает:
|
|
91
|
+
`type[IUniWebsocketManager]`: Унифицированный вебсокет-менеджер для указанной биржи.
|
|
92
|
+
"""
|
|
93
|
+
try:
|
|
94
|
+
return _UNI_WS_MANAGER_MAPPER[exchange]
|
|
95
|
+
except KeyError as e:
|
|
96
|
+
raise NotSupported(f"Unsupported exchange: {exchange}") from e
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
def get_exchange_info(exchange: Exchange) -> type[IExchangeInfo]:
|
|
100
|
+
"""Возвращает унифицированный интерфейс для получения информации о бирже.
|
|
101
|
+
|
|
102
|
+
Параметры:
|
|
103
|
+
exchange (`Exchange`): Биржа.
|
|
104
|
+
|
|
105
|
+
Возвращает:
|
|
106
|
+
`type[IExchangeInfo]`: Унифицированный интерфейс для получения информации о бирже.
|
|
107
|
+
"""
|
|
108
|
+
try:
|
|
109
|
+
return _EXCHANGE_INFO_MAPPER[exchange]
|
|
110
|
+
except KeyError as e:
|
|
111
|
+
raise NotSupported(f"Unsupported exchange: {exchange}") from e
|
unicex/mexc/__init__.py
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""Пакет, содержащий реализации клиентов и менеджеров для работы с биржей Mexc."""
|
|
2
|
+
|
|
3
|
+
__all__ = [
|
|
4
|
+
"Client",
|
|
5
|
+
"UniClient",
|
|
6
|
+
"UserWebsocket",
|
|
7
|
+
"WebsocketManager",
|
|
8
|
+
"UniWebsocketManager",
|
|
9
|
+
"ExchangeInfo",
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
from .client import Client
|
|
13
|
+
from .exchange_info import ExchangeInfo
|
|
14
|
+
from .uni_client import UniClient
|
|
15
|
+
from .uni_websocket_manager import UniWebsocketManager
|
|
16
|
+
from .user_websocket import UserWebsocket
|
|
17
|
+
from .websocket_manager import WebsocketManager
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
async def load_exchange_info() -> None:
|
|
21
|
+
"""Загружает информацию о бирже Mexc."""
|
|
22
|
+
await ExchangeInfo.load_exchange_info()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
async def start_exchange_info(parse_interval_seconds: int = 60 * 60) -> None:
|
|
26
|
+
"""Запускает процесс обновления информации о бирже Mexc."""
|
|
27
|
+
await ExchangeInfo.start(parse_interval_seconds)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: PrivateAccountV3Api.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
|
|
8
|
+
from google.protobuf import descriptor as _descriptor
|
|
9
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
10
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
11
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
12
|
+
from google.protobuf.internal import builder as _builder
|
|
13
|
+
|
|
14
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
15
|
+
_runtime_version.Domain.PUBLIC, 6, 31, 1, "", "PrivateAccountV3Api.proto"
|
|
16
|
+
)
|
|
17
|
+
# @@protoc_insertion_point(imports)
|
|
18
|
+
|
|
19
|
+
_sym_db = _symbol_database.Default()
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
23
|
+
b'\n\x19PrivateAccountV3Api.proto"\xba\x01\n\x13PrivateAccountV3Api\x12\x11\n\tvcoinName\x18\x01 \x01(\t\x12\x0e\n\x06\x63oinId\x18\x02 \x01(\t\x12\x15\n\rbalanceAmount\x18\x03 \x01(\t\x12\x1b\n\x13\x62\x61lanceAmountChange\x18\x04 \x01(\t\x12\x14\n\x0c\x66rozenAmount\x18\x05 \x01(\t\x12\x1a\n\x12\x66rozenAmountChange\x18\x06 \x01(\t\x12\x0c\n\x04type\x18\x07 \x01(\t\x12\x0c\n\x04time\x18\x08 \x01(\x03\x42<\n\x1c\x63om.mxc.push.common.protobufB\x18PrivateAccountV3ApiProtoH\x01P\x01\x62\x06proto3'
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
_globals = globals()
|
|
27
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
28
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "PrivateAccountV3Api_pb2", _globals)
|
|
29
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
30
|
+
_globals["DESCRIPTOR"]._loaded_options = None
|
|
31
|
+
_globals[
|
|
32
|
+
"DESCRIPTOR"
|
|
33
|
+
]._serialized_options = (
|
|
34
|
+
b"\n\034com.mxc.push.common.protobufB\030PrivateAccountV3ApiProtoH\001P\001"
|
|
35
|
+
)
|
|
36
|
+
_globals["_PRIVATEACCOUNTV3API"]._serialized_start = 30
|
|
37
|
+
_globals["_PRIVATEACCOUNTV3API"]._serialized_end = 216
|
|
38
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: PrivateDealsV3Api.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
|
|
8
|
+
from google.protobuf import descriptor as _descriptor
|
|
9
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
10
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
11
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
12
|
+
from google.protobuf.internal import builder as _builder
|
|
13
|
+
|
|
14
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
15
|
+
_runtime_version.Domain.PUBLIC, 6, 31, 1, "", "PrivateDealsV3Api.proto"
|
|
16
|
+
)
|
|
17
|
+
# @@protoc_insertion_point(imports)
|
|
18
|
+
|
|
19
|
+
_sym_db = _symbol_database.Default()
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
23
|
+
b'\n\x17PrivateDealsV3Api.proto"\xec\x01\n\x11PrivateDealsV3Api\x12\r\n\x05price\x18\x01 \x01(\t\x12\x10\n\x08quantity\x18\x02 \x01(\t\x12\x0e\n\x06\x61mount\x18\x03 \x01(\t\x12\x11\n\ttradeType\x18\x04 \x01(\x05\x12\x0f\n\x07isMaker\x18\x05 \x01(\x08\x12\x13\n\x0bisSelfTrade\x18\x06 \x01(\x08\x12\x0f\n\x07tradeId\x18\x07 \x01(\t\x12\x15\n\rclientOrderId\x18\x08 \x01(\t\x12\x0f\n\x07orderId\x18\t \x01(\t\x12\x11\n\tfeeAmount\x18\n \x01(\t\x12\x13\n\x0b\x66\x65\x65\x43urrency\x18\x0b \x01(\t\x12\x0c\n\x04time\x18\x0c \x01(\x03\x42:\n\x1c\x63om.mxc.push.common.protobufB\x16PrivateDealsV3ApiProtoH\x01P\x01\x62\x06proto3'
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
_globals = globals()
|
|
27
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
28
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "PrivateDealsV3Api_pb2", _globals)
|
|
29
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
30
|
+
_globals["DESCRIPTOR"]._loaded_options = None
|
|
31
|
+
_globals[
|
|
32
|
+
"DESCRIPTOR"
|
|
33
|
+
]._serialized_options = (
|
|
34
|
+
b"\n\034com.mxc.push.common.protobufB\026PrivateDealsV3ApiProtoH\001P\001"
|
|
35
|
+
)
|
|
36
|
+
_globals["_PRIVATEDEALSV3API"]._serialized_start = 28
|
|
37
|
+
_globals["_PRIVATEDEALSV3API"]._serialized_end = 264
|
|
38
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: PrivateOrdersV3Api.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
|
|
8
|
+
from google.protobuf import descriptor as _descriptor
|
|
9
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
10
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
11
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
12
|
+
from google.protobuf.internal import builder as _builder
|
|
13
|
+
|
|
14
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
15
|
+
_runtime_version.Domain.PUBLIC, 6, 31, 1, "", "PrivateOrdersV3Api.proto"
|
|
16
|
+
)
|
|
17
|
+
# @@protoc_insertion_point(imports)
|
|
18
|
+
|
|
19
|
+
_sym_db = _symbol_database.Default()
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
23
|
+
b'\n\x18PrivateOrdersV3Api.proto"\xe8\x05\n\x12PrivateOrdersV3Api\x12\n\n\x02id\x18\x01 \x01(\t\x12\x10\n\x08\x63lientId\x18\x02 \x01(\t\x12\r\n\x05price\x18\x03 \x01(\t\x12\x10\n\x08quantity\x18\x04 \x01(\t\x12\x0e\n\x06\x61mount\x18\x05 \x01(\t\x12\x10\n\x08\x61vgPrice\x18\x06 \x01(\t\x12\x11\n\torderType\x18\x07 \x01(\x05\x12\x11\n\ttradeType\x18\x08 \x01(\x05\x12\x0f\n\x07isMaker\x18\t \x01(\x08\x12\x14\n\x0cremainAmount\x18\n \x01(\t\x12\x16\n\x0eremainQuantity\x18\x0b \x01(\t\x12\x1d\n\x10lastDealQuantity\x18\x0c \x01(\tH\x00\x88\x01\x01\x12\x1a\n\x12\x63umulativeQuantity\x18\r \x01(\t\x12\x18\n\x10\x63umulativeAmount\x18\x0e \x01(\t\x12\x0e\n\x06status\x18\x0f \x01(\x05\x12\x12\n\ncreateTime\x18\x10 \x01(\x03\x12\x13\n\x06market\x18\x11 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0btriggerType\x18\x12 \x01(\x05H\x02\x88\x01\x01\x12\x19\n\x0ctriggerPrice\x18\x13 \x01(\tH\x03\x88\x01\x01\x12\x12\n\x05state\x18\x14 \x01(\x05H\x04\x88\x01\x01\x12\x12\n\x05ocoId\x18\x15 \x01(\tH\x05\x88\x01\x01\x12\x18\n\x0brouteFactor\x18\x16 \x01(\tH\x06\x88\x01\x01\x12\x15\n\x08symbolId\x18\x17 \x01(\tH\x07\x88\x01\x01\x12\x15\n\x08marketId\x18\x18 \x01(\tH\x08\x88\x01\x01\x12\x1d\n\x10marketCurrencyId\x18\x19 \x01(\tH\t\x88\x01\x01\x12\x17\n\ncurrencyId\x18\x1a \x01(\tH\n\x88\x01\x01\x42\x13\n\x11_lastDealQuantityB\t\n\x07_marketB\x0e\n\x0c_triggerTypeB\x0f\n\r_triggerPriceB\x08\n\x06_stateB\x08\n\x06_ocoIdB\x0e\n\x0c_routeFactorB\x0b\n\t_symbolIdB\x0b\n\t_marketIdB\x13\n\x11_marketCurrencyIdB\r\n\x0b_currencyIdB;\n\x1c\x63om.mxc.push.common.protobufB\x17PrivateOrdersV3ApiProtoH\x01P\x01\x62\x06proto3'
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
_globals = globals()
|
|
27
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
28
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "PrivateOrdersV3Api_pb2", _globals)
|
|
29
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
30
|
+
_globals["DESCRIPTOR"]._loaded_options = None
|
|
31
|
+
_globals[
|
|
32
|
+
"DESCRIPTOR"
|
|
33
|
+
]._serialized_options = (
|
|
34
|
+
b"\n\034com.mxc.push.common.protobufB\027PrivateOrdersV3ApiProtoH\001P\001"
|
|
35
|
+
)
|
|
36
|
+
_globals["_PRIVATEORDERSV3API"]._serialized_start = 29
|
|
37
|
+
_globals["_PRIVATEORDERSV3API"]._serialized_end = 773
|
|
38
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: PublicAggreBookTickerV3Api.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
|
|
8
|
+
from google.protobuf import descriptor as _descriptor
|
|
9
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
10
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
11
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
12
|
+
from google.protobuf.internal import builder as _builder
|
|
13
|
+
|
|
14
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
15
|
+
_runtime_version.Domain.PUBLIC, 6, 31, 1, "", "PublicAggreBookTickerV3Api.proto"
|
|
16
|
+
)
|
|
17
|
+
# @@protoc_insertion_point(imports)
|
|
18
|
+
|
|
19
|
+
_sym_db = _symbol_database.Default()
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
23
|
+
b'\n PublicAggreBookTickerV3Api.proto"j\n\x1aPublicAggreBookTickerV3Api\x12\x10\n\x08\x62idPrice\x18\x01 \x01(\t\x12\x13\n\x0b\x62idQuantity\x18\x02 \x01(\t\x12\x10\n\x08\x61skPrice\x18\x03 \x01(\t\x12\x13\n\x0b\x61skQuantity\x18\x04 \x01(\tBC\n\x1c\x63om.mxc.push.common.protobufB\x1fPublicAggreBookTickerV3ApiProtoH\x01P\x01\x62\x06proto3'
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
_globals = globals()
|
|
27
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
28
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "PublicAggreBookTickerV3Api_pb2", _globals)
|
|
29
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
30
|
+
_globals["DESCRIPTOR"]._loaded_options = None
|
|
31
|
+
_globals[
|
|
32
|
+
"DESCRIPTOR"
|
|
33
|
+
]._serialized_options = (
|
|
34
|
+
b"\n\034com.mxc.push.common.protobufB\037PublicAggreBookTickerV3ApiProtoH\001P\001"
|
|
35
|
+
)
|
|
36
|
+
_globals["_PUBLICAGGREBOOKTICKERV3API"]._serialized_start = 36
|
|
37
|
+
_globals["_PUBLICAGGREBOOKTICKERV3API"]._serialized_end = 142
|
|
38
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: PublicAggreDealsV3Api.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
|
|
8
|
+
from google.protobuf import descriptor as _descriptor
|
|
9
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
10
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
11
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
12
|
+
from google.protobuf.internal import builder as _builder
|
|
13
|
+
|
|
14
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
15
|
+
_runtime_version.Domain.PUBLIC, 6, 31, 1, "", "PublicAggreDealsV3Api.proto"
|
|
16
|
+
)
|
|
17
|
+
# @@protoc_insertion_point(imports)
|
|
18
|
+
|
|
19
|
+
_sym_db = _symbol_database.Default()
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
23
|
+
b'\n\x1bPublicAggreDealsV3Api.proto"U\n\x15PublicAggreDealsV3Api\x12)\n\x05\x64\x65\x61ls\x18\x01 \x03(\x0b\x32\x1a.PublicAggreDealsV3ApiItem\x12\x11\n\teventType\x18\x02 \x01(\t"]\n\x19PublicAggreDealsV3ApiItem\x12\r\n\x05price\x18\x01 \x01(\t\x12\x10\n\x08quantity\x18\x02 \x01(\t\x12\x11\n\ttradeType\x18\x03 \x01(\x05\x12\x0c\n\x04time\x18\x04 \x01(\x03\x42>\n\x1c\x63om.mxc.push.common.protobufB\x1aPublicAggreDealsV3ApiProtoH\x01P\x01\x62\x06proto3'
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
_globals = globals()
|
|
27
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
28
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "PublicAggreDealsV3Api_pb2", _globals)
|
|
29
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
30
|
+
_globals["DESCRIPTOR"]._loaded_options = None
|
|
31
|
+
_globals[
|
|
32
|
+
"DESCRIPTOR"
|
|
33
|
+
]._serialized_options = (
|
|
34
|
+
b"\n\034com.mxc.push.common.protobufB\032PublicAggreDealsV3ApiProtoH\001P\001"
|
|
35
|
+
)
|
|
36
|
+
_globals["_PUBLICAGGREDEALSV3API"]._serialized_start = 31
|
|
37
|
+
_globals["_PUBLICAGGREDEALSV3API"]._serialized_end = 116
|
|
38
|
+
_globals["_PUBLICAGGREDEALSV3APIITEM"]._serialized_start = 118
|
|
39
|
+
_globals["_PUBLICAGGREDEALSV3APIITEM"]._serialized_end = 211
|
|
40
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: PublicAggreDepthsV3Api.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
|
|
8
|
+
from google.protobuf import descriptor as _descriptor
|
|
9
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
10
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
11
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
12
|
+
from google.protobuf.internal import builder as _builder
|
|
13
|
+
|
|
14
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
15
|
+
_runtime_version.Domain.PUBLIC, 6, 31, 1, "", "PublicAggreDepthsV3Api.proto"
|
|
16
|
+
)
|
|
17
|
+
# @@protoc_insertion_point(imports)
|
|
18
|
+
|
|
19
|
+
_sym_db = _symbol_database.Default()
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
23
|
+
b'\n\x1cPublicAggreDepthsV3Api.proto"\xa7\x01\n\x16PublicAggreDepthsV3Api\x12(\n\x04\x61sks\x18\x01 \x03(\x0b\x32\x1a.PublicAggreDepthV3ApiItem\x12(\n\x04\x62ids\x18\x02 \x03(\x0b\x32\x1a.PublicAggreDepthV3ApiItem\x12\x11\n\teventType\x18\x03 \x01(\t\x12\x13\n\x0b\x66romVersion\x18\x04 \x01(\t\x12\x11\n\ttoVersion\x18\x05 \x01(\t"<\n\x19PublicAggreDepthV3ApiItem\x12\r\n\x05price\x18\x01 \x01(\t\x12\x10\n\x08quantity\x18\x02 \x01(\tB?\n\x1c\x63om.mxc.push.common.protobufB\x1bPublicAggreDepthsV3ApiProtoH\x01P\x01\x62\x06proto3'
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
_globals = globals()
|
|
27
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
28
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "PublicAggreDepthsV3Api_pb2", _globals)
|
|
29
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
30
|
+
_globals["DESCRIPTOR"]._loaded_options = None
|
|
31
|
+
_globals[
|
|
32
|
+
"DESCRIPTOR"
|
|
33
|
+
]._serialized_options = (
|
|
34
|
+
b"\n\034com.mxc.push.common.protobufB\033PublicAggreDepthsV3ApiProtoH\001P\001"
|
|
35
|
+
)
|
|
36
|
+
_globals["_PUBLICAGGREDEPTHSV3API"]._serialized_start = 33
|
|
37
|
+
_globals["_PUBLICAGGREDEPTHSV3API"]._serialized_end = 200
|
|
38
|
+
_globals["_PUBLICAGGREDEPTHV3APIITEM"]._serialized_start = 202
|
|
39
|
+
_globals["_PUBLICAGGREDEPTHV3APIITEM"]._serialized_end = 262
|
|
40
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: PublicBookTickerBatchV3Api.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
|
|
8
|
+
from google.protobuf import descriptor as _descriptor
|
|
9
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
10
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
11
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
12
|
+
from google.protobuf.internal import builder as _builder
|
|
13
|
+
|
|
14
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
15
|
+
_runtime_version.Domain.PUBLIC, 6, 31, 1, "", "PublicBookTickerBatchV3Api.proto"
|
|
16
|
+
)
|
|
17
|
+
# @@protoc_insertion_point(imports)
|
|
18
|
+
|
|
19
|
+
_sym_db = _symbol_database.Default()
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
23
|
+
b'\n PublicBookTickerBatchV3Api.proto\x1a\x1bPublicBookTickerV3Api.proto"C\n\x1aPublicBookTickerBatchV3Api\x12%\n\x05items\x18\x01 \x03(\x0b\x32\x16.PublicBookTickerV3ApiBC\n\x1c\x63om.mxc.push.common.protobufB\x1fPublicBookTickerBatchV3ApiProtoH\x01P\x01\x62\x06proto3'
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
_globals = globals()
|
|
27
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
28
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "PublicBookTickerBatchV3Api_pb2", _globals)
|
|
29
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
30
|
+
_globals["DESCRIPTOR"]._loaded_options = None
|
|
31
|
+
_globals[
|
|
32
|
+
"DESCRIPTOR"
|
|
33
|
+
]._serialized_options = (
|
|
34
|
+
b"\n\034com.mxc.push.common.protobufB\037PublicBookTickerBatchV3ApiProtoH\001P\001"
|
|
35
|
+
)
|
|
36
|
+
_globals["_PUBLICBOOKTICKERBATCHV3API"]._serialized_start = 65
|
|
37
|
+
_globals["_PUBLICBOOKTICKERBATCHV3API"]._serialized_end = 132
|
|
38
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: PublicBookTickerV3Api.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
|
|
8
|
+
from google.protobuf import descriptor as _descriptor
|
|
9
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
10
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
11
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
12
|
+
from google.protobuf.internal import builder as _builder
|
|
13
|
+
|
|
14
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
15
|
+
_runtime_version.Domain.PUBLIC, 6, 31, 1, "", "PublicBookTickerV3Api.proto"
|
|
16
|
+
)
|
|
17
|
+
# @@protoc_insertion_point(imports)
|
|
18
|
+
|
|
19
|
+
_sym_db = _symbol_database.Default()
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
23
|
+
b'\n\x1bPublicBookTickerV3Api.proto"e\n\x15PublicBookTickerV3Api\x12\x10\n\x08\x62idPrice\x18\x01 \x01(\t\x12\x13\n\x0b\x62idQuantity\x18\x02 \x01(\t\x12\x10\n\x08\x61skPrice\x18\x03 \x01(\t\x12\x13\n\x0b\x61skQuantity\x18\x04 \x01(\tB>\n\x1c\x63om.mxc.push.common.protobufB\x1aPublicBookTickerV3ApiProtoH\x01P\x01\x62\x06proto3'
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
_globals = globals()
|
|
27
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
28
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "PublicBookTickerV3Api_pb2", _globals)
|
|
29
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
30
|
+
_globals["DESCRIPTOR"]._loaded_options = None
|
|
31
|
+
_globals[
|
|
32
|
+
"DESCRIPTOR"
|
|
33
|
+
]._serialized_options = (
|
|
34
|
+
b"\n\034com.mxc.push.common.protobufB\032PublicBookTickerV3ApiProtoH\001P\001"
|
|
35
|
+
)
|
|
36
|
+
_globals["_PUBLICBOOKTICKERV3API"]._serialized_start = 31
|
|
37
|
+
_globals["_PUBLICBOOKTICKERV3API"]._serialized_end = 132
|
|
38
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: PublicDealsV3Api.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
|
|
8
|
+
from google.protobuf import descriptor as _descriptor
|
|
9
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
10
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
11
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
12
|
+
from google.protobuf.internal import builder as _builder
|
|
13
|
+
|
|
14
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
15
|
+
_runtime_version.Domain.PUBLIC, 6, 31, 1, "", "PublicDealsV3Api.proto"
|
|
16
|
+
)
|
|
17
|
+
# @@protoc_insertion_point(imports)
|
|
18
|
+
|
|
19
|
+
_sym_db = _symbol_database.Default()
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
23
|
+
b'\n\x16PublicDealsV3Api.proto"K\n\x10PublicDealsV3Api\x12$\n\x05\x64\x65\x61ls\x18\x01 \x03(\x0b\x32\x15.PublicDealsV3ApiItem\x12\x11\n\teventType\x18\x02 \x01(\t"X\n\x14PublicDealsV3ApiItem\x12\r\n\x05price\x18\x01 \x01(\t\x12\x10\n\x08quantity\x18\x02 \x01(\t\x12\x11\n\ttradeType\x18\x03 \x01(\x05\x12\x0c\n\x04time\x18\x04 \x01(\x03\x42\x39\n\x1c\x63om.mxc.push.common.protobufB\x15PublicDealsV3ApiProtoH\x01P\x01\x62\x06proto3'
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
_globals = globals()
|
|
27
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
28
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "PublicDealsV3Api_pb2", _globals)
|
|
29
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
30
|
+
_globals["DESCRIPTOR"]._loaded_options = None
|
|
31
|
+
_globals[
|
|
32
|
+
"DESCRIPTOR"
|
|
33
|
+
]._serialized_options = (
|
|
34
|
+
b"\n\034com.mxc.push.common.protobufB\025PublicDealsV3ApiProtoH\001P\001"
|
|
35
|
+
)
|
|
36
|
+
_globals["_PUBLICDEALSV3API"]._serialized_start = 26
|
|
37
|
+
_globals["_PUBLICDEALSV3API"]._serialized_end = 101
|
|
38
|
+
_globals["_PUBLICDEALSV3APIITEM"]._serialized_start = 103
|
|
39
|
+
_globals["_PUBLICDEALSV3APIITEM"]._serialized_end = 191
|
|
40
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: PublicFuture.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
|
|
8
|
+
from google.protobuf import descriptor as _descriptor
|
|
9
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
10
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
11
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
12
|
+
from google.protobuf.internal import builder as _builder
|
|
13
|
+
|
|
14
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
15
|
+
_runtime_version.Domain.PUBLIC, 6, 31, 1, "", "PublicFuture.proto"
|
|
16
|
+
)
|
|
17
|
+
# @@protoc_insertion_point(imports)
|
|
18
|
+
|
|
19
|
+
_sym_db = _symbol_database.Default()
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
23
|
+
b'\n\x12PublicFuture.proto"\xd3\x0b\n\x0f\x43ontractWrapper\x12\x0e\n\x06symbol\x18\x01 \x01(\t\x12\x0f\n\x07\x63hannel\x18\x02 \x01(\t\x12\n\n\x02ts\x18\x03 \x01(\x03\x12$\n\x0borderChange\x18\xe9\x07 \x01(\x0b\x32\x0c.OrderChangeH\x00\x12$\n\x0b\x61ssetChange\x18\xea\x07 \x01(\x0b\x32\x0c.AssetChangeH\x00\x12$\n\x0b\x62onusNotify\x18\xeb\x07 \x01(\x0b\x32\x0c.BonusNotifyH\x00\x12&\n\x0cleverageMode\x18\xec\x07 \x01(\x0b\x32\r.LeverageModeH\x00\x12(\n\rnotifyGeneric\x18\xed\x07 \x01(\x0b\x32\x0e.NotifyGenericH\x00\x12\x34\n\x13liquidateRiskChange\x18\xee\x07 \x01(\x0b\x32\x14.LiquidateRiskChangeH\x00\x12,\n\x0fmarketOrderDeal\x18\xef\x07 \x01(\x0b\x32\x10.MarketOrderDealH\x00\x12,\n\x0forderDealDetail\x18\xf0\x07 \x01(\x0b\x32\x10.OrderDealDetailH\x00\x12\x30\n\x11\x63ontractPlanOrder\x18\xf1\x07 \x01(\x0b\x32\x12.ContractPlanOrderH\x00\x12\x32\n\x12positionModeResult\x18\xf2\x07 \x01(\x0b\x32\x13.PositionModeResultH\x00\x12*\n\x0epositionChange\x18\xf3\x07 \x01(\x0b\x32\x0f.PositionChangeH\x00\x12\x38\n\x15positionReverseChange\x18\xf4\x07 \x01(\x0b\x32\x16.PositionReverseChangeH\x00\x12*\n\x0euserPreference\x18\xf5\x07 \x01(\x0b\x32\x0f.UserPreferenceH\x00\x12\x30\n\x11\x63ontractStopOrder\x18\xf6\x07 \x01(\x0b\x32\x12.ContractStopOrderH\x00\x12\x38\n\x15\x63ontractUserRiskLimit\x18\xf7\x07 \x01(\x0b\x32\x16.ContractUserRiskLimitH\x00\x12\x38\n\x15\x63ontractStopPlanOrder\x18\xf8\x07 \x01(\x0b\x32\x16.ContractStopPlanOrderH\x00\x12\x32\n\x12\x63ontractTrackOrder\x18\xf9\x07 \x01(\x0b\x32\x13.ContractTrackOrderH\x00\x12"\n\norderChase\x18\xfa\x07 \x01(\x0b\x32\x0b.OrderChaseH\x00\x12"\n\nindexPrice\x18\xd1\x0f \x01(\x0b\x32\x0b.IndexPriceH\x00\x12&\n\x0c\x63ommonConfig\x18\xd2\x0f \x01(\x0b\x32\r.CommonConfigH\x00\x12(\n\rcontractExtra\x18\xd3\x0f \x01(\x0b\x32\x0e.ContractExtraH\x00\x12\x1e\n\x08\x63ontract\x18\xd4\x0f \x01(\x0b\x32\t.ContractH\x00\x12\x16\n\x04\x64\x65\x61l\x18\xd5\x0f \x01(\x0b\x32\x05.DealH\x00\x12\x18\n\x05\x64\x65\x61ls\x18\xd6\x0f \x01(\x0b\x32\x06.DealsH\x00\x12\x32\n\x12marketOrderSetting\x18\xb4\x10 \x01(\x0b\x32\x13.MarketOrderSettingH\x00\x12\x1c\n\x07wsKline\x18\xb5\x10 \x01(\x0b\x32\x08.WsKLineH\x00\x12$\n\x0b\x66undingRate\x18\xb6\x10 \x01(\x0b\x32\x0c.FundingRateH\x00\x12 \n\tfairPrice\x18\xdd\x0f \x01(\x0b\x32\n.FairPriceH\x00\x12(\n\rdepthStepInfo\x18\xde\x0f \x01(\x0b\x32\x0e.DepthStepInfoH\x00\x12 \n\tdepthInfo\x18\xdf\x0f \x01(\x0b\x32\n.DepthInfoH\x00\x12"\n\ndepthMerge\x18\xe0\x0f \x01(\x0b\x32\x0b.DepthMergeH\x00\x12&\n\x0ctickerDetail\x18\xe1\x0f \x01(\x0b\x32\r.TickerDetailH\x00\x12"\n\ntickerList\x18\xe2\x0f \x01(\x0b\x32\x0b.TickerListH\x00\x12\x1e\n\x08tickList\x18\xe3\x0f \x01(\x0b\x32\t.TickListH\x00\x42\t\n\x07payload"M\n\tDepthInfo\x12\x14\n\x04\x62ids\x18\x01 \x03(\x0b\x32\x06.Order\x12\x14\n\x04\x61sks\x18\x02 \x03(\x0b\x32\x06.Order\x12\x14\n\x0clastUpdateId\x18\x03 \x01(\x03"8\n\nDepthMerge\x12\x14\n\x04\x62ids\x18\x01 \x03(\x0b\x32\x06.Order\x12\x14\n\x04\x61sks\x18\x02 \x03(\x0b\x32\x06.Order"(\n\x05Order\x12\r\n\x05price\x18\x01 \x01(\t\x12\x10\n\x08quantity\x18\x02 \x01(\t"\x99\x03\n\x0cTickerDetail\x12\x0e\n\x06symbol\x18\x01 \x01(\t\x12\x11\n\tlastPrice\x18\x02 \x01(\t\x12\x14\n\x0criseFallRate\x18\x03 \x01(\t\x12\x11\n\tfairPrice\x18\x04 \x01(\t\x12\x12\n\nindexPrice\x18\x05 \x01(\t\x12\x10\n\x08volume24\x18\x06 \x01(\t\x12\x10\n\x08\x61mount24\x18\x07 \x01(\t\x12\x13\n\x0bmaxBidPrice\x18\x08 \x01(\t\x12\x13\n\x0bminAskPrice\x18\t \x01(\t\x12\x14\n\x0clower24Price\x18\n \x01(\t\x12\x13\n\x0bhigh24Price\x18\x0b \x01(\t\x12\x11\n\ttimestamp\x18\x0c \x01(\x03\x12\x0c\n\x04\x62id1\x18\r \x01(\t\x12\x0c\n\x04\x61sk1\x18\x0e \x01(\t\x12\x0f\n\x07holdVol\x18\x0f \x01(\t\x12\x15\n\rriseFallValue\x18\x10 \x01(\t\x12\x13\n\x0b\x66undingRate\x18\x11 \x01(\t\x12\x0c\n\x04zone\x18\x12 \x01(\t\x12\x15\n\rriseFallRates\x18\x13 \x03(\t\x12\x1f\n\x17riseFallRatesOfTimezone\x18\x14 \x03(\t",\n\nTickerList\x12\x1e\n\x07tickers\x18\x01 \x03(\x0b\x32\r.TickerDetail"D\n\x0b\x46undingRate\x12\x0e\n\x06symbol\x18\x01 \x01(\t\x12\x0c\n\x04rate\x18\x02 \x01(\t\x12\x17\n\x0fnextFundingTime\x18\x03 \x01(\x03"+\n\nIndexPrice\x12\x0e\n\x06symbol\x18\x01 \x01(\t\x12\r\n\x05price\x18\x02 \x01(\t"*\n\tFairPrice\x12\x0e\n\x06symbol\x18\x01 \x01(\t\x12\r\n\x05price\x18\x02 \x01(\t"O\n\x0bOrderChange\x12\x0f\n\x07orderId\x18\x01 \x01(\t\x12\x0e\n\x06status\x18\x02 \x01(\t\x12\r\n\x05price\x18\x03 \x01(\t\x12\x10\n\x08quantity\x18\x04 \x01(\t"3\n\x0b\x41ssetChange\x12\r\n\x05\x61sset\x18\x01 \x01(\t\x12\x15\n\rbalanceChange\x18\x02 \x01(\t"S\n\x0fMarketOrderDeal\x12\x0e\n\x06\x64\x65\x61lId\x18\x01 \x01(\t\x12\x0f\n\x07orderId\x18\x02 \x01(\t\x12\r\n\x05price\x18\x03 \x01(\t\x12\x10\n\x08quantity\x18\x04 \x01(\t"F\n\x0ePositionChange\x12\x12\n\npositionId\x18\x01 \x01(\t\x12\x0e\n\x06symbol\x18\x02 \x01(\t\x12\x10\n\x08quantity\x18\x03 \x01(\t"\x1d\n\x05\x44\x65\x61ls\x12\x14\n\x05\x64\x65\x61ls\x18\x01 \x03(\x0b\x32\x05.Deal"I\n\x04\x44\x65\x61l\x12\t\n\x01p\x18\x01 \x01(\t\x12\t\n\x01v\x18\x02 \x01(\t\x12\t\n\x01t\x18\x03 \x01(\x05\x12\t\n\x01o\x18\x04 \x01(\x05\x12\t\n\x01m\x18\x05 \x01(\x05\x12\n\n\x02ts\x18\x06 \x01(\x03"L\n\x0b\x42onusNotify\x12\x0f\n\x07\x62onusId\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x0e\n\x06\x61mount\x18\x03 \x01(\t\x12\x0e\n\x06status\x18\x04 \x01(\t",\n\x0cLeverageMode\x12\x0e\n\x06symbol\x18\x01 \x01(\t\x12\x0c\n\x04mode\x18\x02 \x01(\t"A\n\rNotifyGeneric\x12\x11\n\tmessageId\x18\x01 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x03 \x01(\t"L\n\x13LiquidateRiskChange\x12\x0e\n\x06symbol\x18\x01 \x01(\t\x12\x11\n\triskLevel\x18\x02 \x01(\t\x12\x12\n\nmarginCall\x18\x03 \x01(\t"T\n\x0fOrderDealDetail\x12\x0f\n\x07orderId\x18\x01 \x01(\t\x12\x0f\n\x07tradeId\x18\x02 \x01(\t\x12\r\n\x05price\x18\x03 \x01(\t\x12\x10\n\x08quantity\x18\x04 \x01(\t"4\n\x11\x43ontractPlanOrder\x12\x0f\n\x07orderId\x18\x01 \x01(\t\x12\x0e\n\x06status\x18\x02 \x01(\t""\n\x12PositionModeResult\x12\x0c\n\x04mode\x18\x01 \x01(\t"A\n\x15PositionReverseChange\x12\x12\n\npositionId\x18\x01 \x01(\t\x12\x14\n\x0c\x63hangeAmount\x18\x02 \x01(\t"2\n\x0eUserPreference\x12\x0e\n\x06userId\x18\x01 \x01(\t\x12\x10\n\x08settings\x18\x02 \x01(\t"7\n\x11\x43ontractStopOrder\x12\x0f\n\x07orderId\x18\x01 \x01(\t\x12\x11\n\tstopPrice\x18\x02 \x01(\t":\n\x15\x43ontractUserRiskLimit\x12\x0e\n\x06userId\x18\x01 \x01(\t\x12\x11\n\triskLimit\x18\x02 \x01(\t">\n\x15\x43ontractStopPlanOrder\x12\x0f\n\x07orderId\x18\x01 \x01(\t\x12\x14\n\x0ctriggerPrice\x18\x02 \x01(\t"9\n\x12\x43ontractTrackOrder\x12\x0f\n\x07orderId\x18\x01 \x01(\t\x12\x12\n\ntrackPrice\x18\x02 \x01(\t"1\n\nOrderChase\x12\x0f\n\x07orderId\x18\x01 \x01(\t\x12\x12\n\nchasePrice\x18\x02 \x01(\t"*\n\x0c\x43ommonConfig\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t"5\n\rContractExtra\x12\x12\n\ncontractId\x18\x01 \x01(\t\x12\x10\n\x08leverage\x18\x02 \x01(\t".\n\x08\x43ontract\x12\x12\n\ncontractId\x18\x01 \x01(\t\x12\x0e\n\x06symbol\x18\x02 \x01(\t"6\n\x12MarketOrderSetting\x12\x11\n\tsettingId\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t"a\n\x07WsKLine\x12\x0e\n\x06symbol\x18\x01 \x01(\t\x12\x0c\n\x04open\x18\x02 \x01(\t\x12\x0c\n\x04high\x18\x03 \x01(\t\x12\x0b\n\x03low\x18\x04 \x01(\t\x12\r\n\x05\x63lose\x18\x05 \x01(\t\x12\x0e\n\x06volume\x18\x06 \x01(\t",\n\rDepthStepInfo\x12\x0c\n\x04step\x18\x01 \x01(\t\x12\r\n\x05\x63ount\x18\x02 \x01(\t"(\n\x08TickList\x12\x1c\n\x05ticks\x18\x01 \x03(\x0b\x32\r.TickerDetailb\x06proto3'
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
_globals = globals()
|
|
27
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
28
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "PublicFuture_pb2", _globals)
|
|
29
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
30
|
+
DESCRIPTOR._loaded_options = None
|
|
31
|
+
_globals["_CONTRACTWRAPPER"]._serialized_start = 23
|
|
32
|
+
_globals["_CONTRACTWRAPPER"]._serialized_end = 1514
|
|
33
|
+
_globals["_DEPTHINFO"]._serialized_start = 1516
|
|
34
|
+
_globals["_DEPTHINFO"]._serialized_end = 1593
|
|
35
|
+
_globals["_DEPTHMERGE"]._serialized_start = 1595
|
|
36
|
+
_globals["_DEPTHMERGE"]._serialized_end = 1651
|
|
37
|
+
_globals["_ORDER"]._serialized_start = 1653
|
|
38
|
+
_globals["_ORDER"]._serialized_end = 1693
|
|
39
|
+
_globals["_TICKERDETAIL"]._serialized_start = 1696
|
|
40
|
+
_globals["_TICKERDETAIL"]._serialized_end = 2105
|
|
41
|
+
_globals["_TICKERLIST"]._serialized_start = 2107
|
|
42
|
+
_globals["_TICKERLIST"]._serialized_end = 2151
|
|
43
|
+
_globals["_FUNDINGRATE"]._serialized_start = 2153
|
|
44
|
+
_globals["_FUNDINGRATE"]._serialized_end = 2221
|
|
45
|
+
_globals["_INDEXPRICE"]._serialized_start = 2223
|
|
46
|
+
_globals["_INDEXPRICE"]._serialized_end = 2266
|
|
47
|
+
_globals["_FAIRPRICE"]._serialized_start = 2268
|
|
48
|
+
_globals["_FAIRPRICE"]._serialized_end = 2310
|
|
49
|
+
_globals["_ORDERCHANGE"]._serialized_start = 2312
|
|
50
|
+
_globals["_ORDERCHANGE"]._serialized_end = 2391
|
|
51
|
+
_globals["_ASSETCHANGE"]._serialized_start = 2393
|
|
52
|
+
_globals["_ASSETCHANGE"]._serialized_end = 2444
|
|
53
|
+
_globals["_MARKETORDERDEAL"]._serialized_start = 2446
|
|
54
|
+
_globals["_MARKETORDERDEAL"]._serialized_end = 2529
|
|
55
|
+
_globals["_POSITIONCHANGE"]._serialized_start = 2531
|
|
56
|
+
_globals["_POSITIONCHANGE"]._serialized_end = 2601
|
|
57
|
+
_globals["_DEALS"]._serialized_start = 2603
|
|
58
|
+
_globals["_DEALS"]._serialized_end = 2632
|
|
59
|
+
_globals["_DEAL"]._serialized_start = 2634
|
|
60
|
+
_globals["_DEAL"]._serialized_end = 2707
|
|
61
|
+
_globals["_BONUSNOTIFY"]._serialized_start = 2709
|
|
62
|
+
_globals["_BONUSNOTIFY"]._serialized_end = 2785
|
|
63
|
+
_globals["_LEVERAGEMODE"]._serialized_start = 2787
|
|
64
|
+
_globals["_LEVERAGEMODE"]._serialized_end = 2831
|
|
65
|
+
_globals["_NOTIFYGENERIC"]._serialized_start = 2833
|
|
66
|
+
_globals["_NOTIFYGENERIC"]._serialized_end = 2898
|
|
67
|
+
_globals["_LIQUIDATERISKCHANGE"]._serialized_start = 2900
|
|
68
|
+
_globals["_LIQUIDATERISKCHANGE"]._serialized_end = 2976
|
|
69
|
+
_globals["_ORDERDEALDETAIL"]._serialized_start = 2978
|
|
70
|
+
_globals["_ORDERDEALDETAIL"]._serialized_end = 3062
|
|
71
|
+
_globals["_CONTRACTPLANORDER"]._serialized_start = 3064
|
|
72
|
+
_globals["_CONTRACTPLANORDER"]._serialized_end = 3116
|
|
73
|
+
_globals["_POSITIONMODERESULT"]._serialized_start = 3118
|
|
74
|
+
_globals["_POSITIONMODERESULT"]._serialized_end = 3152
|
|
75
|
+
_globals["_POSITIONREVERSECHANGE"]._serialized_start = 3154
|
|
76
|
+
_globals["_POSITIONREVERSECHANGE"]._serialized_end = 3219
|
|
77
|
+
_globals["_USERPREFERENCE"]._serialized_start = 3221
|
|
78
|
+
_globals["_USERPREFERENCE"]._serialized_end = 3271
|
|
79
|
+
_globals["_CONTRACTSTOPORDER"]._serialized_start = 3273
|
|
80
|
+
_globals["_CONTRACTSTOPORDER"]._serialized_end = 3328
|
|
81
|
+
_globals["_CONTRACTUSERRISKLIMIT"]._serialized_start = 3330
|
|
82
|
+
_globals["_CONTRACTUSERRISKLIMIT"]._serialized_end = 3388
|
|
83
|
+
_globals["_CONTRACTSTOPPLANORDER"]._serialized_start = 3390
|
|
84
|
+
_globals["_CONTRACTSTOPPLANORDER"]._serialized_end = 3452
|
|
85
|
+
_globals["_CONTRACTTRACKORDER"]._serialized_start = 3454
|
|
86
|
+
_globals["_CONTRACTTRACKORDER"]._serialized_end = 3511
|
|
87
|
+
_globals["_ORDERCHASE"]._serialized_start = 3513
|
|
88
|
+
_globals["_ORDERCHASE"]._serialized_end = 3562
|
|
89
|
+
_globals["_COMMONCONFIG"]._serialized_start = 3564
|
|
90
|
+
_globals["_COMMONCONFIG"]._serialized_end = 3606
|
|
91
|
+
_globals["_CONTRACTEXTRA"]._serialized_start = 3608
|
|
92
|
+
_globals["_CONTRACTEXTRA"]._serialized_end = 3661
|
|
93
|
+
_globals["_CONTRACT"]._serialized_start = 3663
|
|
94
|
+
_globals["_CONTRACT"]._serialized_end = 3709
|
|
95
|
+
_globals["_MARKETORDERSETTING"]._serialized_start = 3711
|
|
96
|
+
_globals["_MARKETORDERSETTING"]._serialized_end = 3765
|
|
97
|
+
_globals["_WSKLINE"]._serialized_start = 3767
|
|
98
|
+
_globals["_WSKLINE"]._serialized_end = 3864
|
|
99
|
+
_globals["_DEPTHSTEPINFO"]._serialized_start = 3866
|
|
100
|
+
_globals["_DEPTHSTEPINFO"]._serialized_end = 3910
|
|
101
|
+
_globals["_TICKLIST"]._serialized_start = 3912
|
|
102
|
+
_globals["_TICKLIST"]._serialized_end = 3952
|
|
103
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: PublicIncreaseDepthsBatchV3Api.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
|
|
8
|
+
from google.protobuf import descriptor as _descriptor
|
|
9
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
10
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
11
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
12
|
+
from google.protobuf.internal import builder as _builder
|
|
13
|
+
|
|
14
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
15
|
+
_runtime_version.Domain.PUBLIC, 6, 31, 1, "", "PublicIncreaseDepthsBatchV3Api.proto"
|
|
16
|
+
)
|
|
17
|
+
# @@protoc_insertion_point(imports)
|
|
18
|
+
|
|
19
|
+
_sym_db = _symbol_database.Default()
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
23
|
+
b'\n$PublicIncreaseDepthsBatchV3Api.proto\x1a\x1fPublicIncreaseDepthsV3Api.proto"^\n\x1ePublicIncreaseDepthsBatchV3Api\x12)\n\x05items\x18\x01 \x03(\x0b\x32\x1a.PublicIncreaseDepthsV3Api\x12\x11\n\teventType\x18\x02 \x01(\tBG\n\x1c\x63om.mxc.push.common.protobufB#PublicIncreaseDepthsBatchV3ApiProtoH\x01P\x01\x62\x06proto3'
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
_globals = globals()
|
|
27
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
28
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "PublicIncreaseDepthsBatchV3Api_pb2", _globals)
|
|
29
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
30
|
+
_globals["DESCRIPTOR"]._loaded_options = None
|
|
31
|
+
_globals[
|
|
32
|
+
"DESCRIPTOR"
|
|
33
|
+
]._serialized_options = (
|
|
34
|
+
b"\n\034com.mxc.push.common.protobufB#PublicIncreaseDepthsBatchV3ApiProtoH\001P\001"
|
|
35
|
+
)
|
|
36
|
+
_globals["_PUBLICINCREASEDEPTHSBATCHV3API"]._serialized_start = 73
|
|
37
|
+
_globals["_PUBLICINCREASEDEPTHSBATCHV3API"]._serialized_end = 167
|
|
38
|
+
# @@protoc_insertion_point(module_scope)
|