Skip to content

Commit

Permalink
[Fix] typo of vt_symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
vnpy committed Sep 18, 2019
1 parent 8ec0f43 commit 6967a82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vnpy/app/spread_trading/ui/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,12 +439,12 @@ def add_spread(self):
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
}
Expand Down

0 comments on commit 6967a82

Please sign in to comment.