def get_positions(self): if not self.logged_in: return None resp = self.session.get(Url.positions()) return json.loads(resp.text)['results']