def quote_detail(trade_account, symbol): ta = trade_account t = Trader(ta.exchange, ta.login_name, ta.login_password) qd = t.quote_detail(symbol) ci = t.list_collection(symbol)[0] qd['highest'] = ci['highest'] qd['lowest'] = ci['lowest'] return qd