コード例 #1
0
ファイル: Robinhood.py プロジェクト: arunabh-c/DST
    def positions(self):
        """Returns the user's positions data

            Returns:
                (:object: `dict`): JSON dict from getting positions
        """

        return self.session.get(endpoints.positions(), timeout=15).json()
コード例 #2
0
ファイル: Robinhood.py プロジェクト: s2t2/Robinhood-1
    def securities_owned(self):
        """Returns list of securities' symbols that the user has shares in

            Returns:
                (:object: `dict`): Non-zero positions
        """

        return self.session.get(endpoints.positions() + '?nonzero=true', timeout=15).json()