def apply_status(trade_account): ta = trade_account t = Trader(ta.exchange, ta.login_name, ta.login_password) return t.apply_status()