def __init__(self, credentials): Session.login(credentials) self.portfolio = Parsers.get_portfolio() self.open_orders = self.portfolio.open_orders
def __init__(self, auth_cookie): Session.login(auth_cookie) self.portfolio = Parsers.get_portfolio() self.open_orders = self.portfolio.open_orders