From 99c67e7582bd62535b78b2da58db78bff526e760 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Wed, 14 Feb 2024 13:29:20 +0800 Subject: [PATCH] [Fix] typo --- vnpy/trader/ui/widget.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vnpy/trader/ui/widget.py b/vnpy/trader/ui/widget.py index a1ff783..18c9db9 100644 --- a/vnpy/trader/ui/widget.py +++ b/vnpy/trader/ui/widget.py @@ -446,7 +446,7 @@ class TradeMonitor(BaseMonitor): "tradeid": {"display": "Trade ID ", "cell": BaseCell, "update": False}, "orderid": {"display": "Order ID", "cell": BaseCell, "update": False}, "symbol": {"display": "Symbol", "cell": BaseCell, "update": False}, - "exchange": {"display": "Exchang", "cell": EnumCell, "update": False}, + "exchange": {"display": "Exchange", "cell": EnumCell, "update": False}, "direction": {"display": "Direction", "cell": DirectionCell, "update": False}, "offset": {"display": "Offset", "cell": EnumCell, "update": False}, "price": {"display": "Price", "cell": BaseCell, "update": False}, @@ -469,7 +469,7 @@ class OrderMonitor(BaseMonitor): "orderid": {"display": "Order ID", "cell": BaseCell, "update": False}, "reference": {"display": "Reference", "cell": BaseCell, "update": False}, "symbol": {"display": "Symbol", "cell": BaseCell, "update": False}, - "exchange": {"display": "Exchang", "cell": EnumCell, "update": False}, + "exchange": {"display": "Exchange", "cell": EnumCell, "update": False}, "type": {"display": "Type", "cell": EnumCell, "update": False}, "direction": {"display": "Direction", "cell": DirectionCell, "update": False}, "offset": {"display": "Offset", "cell": EnumCell, "update": False}, @@ -510,7 +510,7 @@ class PositionMonitor(BaseMonitor): headers: dict = { "symbol": {"display": "Symbol", "cell": BaseCell, "update": False}, - "exchange": {"display": "Exchang", "cell": EnumCell, "update": False}, + "exchange": {"display": "Exchange", "cell": EnumCell, "update": False}, "direction": {"display": "Direction", "cell": DirectionCell, "update": False}, "volume": {"display": "Volume", "cell": BaseCell, "update": True}, "yd_volume": {"display": "Yd Volume", "cell": BaseCell, "update": True}, @@ -552,7 +552,7 @@ class QuoteMonitor(BaseMonitor): "quoteid": {"display": "Quote ID", "cell": BaseCell, "update": False}, "reference": {"display": "Reference", "cell": BaseCell, "update": False}, "symbol": {"display": "Symbol", "cell": BaseCell, "update": False}, - "exchange": {"display": "Exchang", "cell": EnumCell, "update": False}, + "exchange": {"display": "Exchange", "cell": EnumCell, "update": False}, "bid_offset": {"display": "Bid Offset", "cell": EnumCell, "update": False}, "bid_volume": {"display": "Bid Volume", "cell": BidCell, "update": False}, "bid_price": {"display": "Bid Price", "cell": BidCell, "update": False}, @@ -737,7 +737,7 @@ def init_ui(self) -> None: cancel_button.clicked.connect(self.cancel_all) grid: QtWidgets.QGridLayout = QtWidgets.QGridLayout() - grid.addWidget(QtWidgets.QLabel("Exchang"), 0, 0) + grid.addWidget(QtWidgets.QLabel("Exchange"), 0, 0) grid.addWidget(QtWidgets.QLabel("Symbol"), 1, 0) grid.addWidget(QtWidgets.QLabel("Name"), 2, 0) grid.addWidget(QtWidgets.QLabel("Direction"), 3, 0) @@ -1059,7 +1059,7 @@ class ContractManager(QtWidgets.QWidget): headers: Dict[str, str] = { "vt_symbol": "Local Symbol", "symbol": "Symbol", - "exchange": "Exchang", + "exchange": "Exchange", "name": "Name", "product": "Product", "size": "Size",