def withdraw(trade_account, order): ta = trade_account t = Trader(ta.exchange, ta.login_name, ta.login_password) r = t.withdraw(order) return r, t.last_error