From 6967a825f2539184d5d3c880766a14e4337853b3 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Wed, 18 Sep 2019 22:51:25 +0800 Subject: [PATCH] [Fix] typo of vt_symbol --- vnpy/app/spread_trading/ui/widget.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vnpy/app/spread_trading/ui/widget.py b/vnpy/app/spread_trading/ui/widget.py index 35415892..00ef63a5 100644 --- a/vnpy/app/spread_trading/ui/widget.py +++ b/vnpy/app/spread_trading/ui/widget.py @@ -439,12 +439,12 @@ class SpreadDataDialog(QtWidgets.QDialog): leg_settings = {} for d in self.leg_widgets: try: - spread_name = d["symbol"].text() + vt_symbol = d["symbol"].text() price_multiplier = int(d["price"].text()) trading_multiplier = int(d["trading"].text()) - leg_settings[spread_name] = { - "spread_name": spread_name, + leg_settings[vt_symbol] = { + "vt_symbol": vt_symbol, "price_multiplier": price_multiplier, "trading_multiplier": trading_multiplier }