How to use the webull.webull.paper_webull function in webull

To help you get started, we’ve selected a few webull examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tedchou12 / webull / webull / webull.py View on Github external
def get_social_home(self, topic, num=100):
        headers = self.build_req_headers()

        response = requests.get(self._urls.social_home(topic, num), headers=headers)
        result = response.json()
        return result


if __name__ == '__main__':
    parser = argparse.ArgumentParser(description='Interface with Webull. Paper trading is not the default.')
    parser.add_argument('-p', '--use-paper', help='Use paper account instead.', action='store_true')
    args = parser.parse_args()

    if args.use_paper:
        wb = paper_webull()
    else:
        wb = webull()

webull

The unofficial python interface for the WeBull API

MIT
Latest version published 2 years ago

Package Health Score

48 / 100
Full package analysis