{"id":23541,"date":"2022-07-28T15:42:47","date_gmt":"2022-07-28T10:12:47","guid":{"rendered":"http:\/\/www.pythonpool.com\/?p=23541"},"modified":"2022-07-28T15:48:36","modified_gmt":"2022-07-28T10:18:36","slug":"webull-package-in-python","status":"publish","type":"post","link":"https:\/\/www.pythonpool.com\/webull-package-in-python\/","title":{"rendered":"How To Use the Webull Package in Python"},"content":{"rendered":"\n<p>This article will examine Webull and how we can use the Webull Python package. <\/p>\n\n\n\n<p>Before we get into the specifics, we must know what an API is.<\/p>\n\n\n\n<p>API or Application Programming Interface is an interface that allows the interaction between 2 applications without the need for user interference. An API consists of various functions and tasks. These API features can be effectively used through code. Therefore, an API is a code that allows 2 different programs to transfer information or data. <\/p>\n\n\n\n<p><strong>But what is Webull?<\/strong><\/p>\n\n\n\n<p>Webull LLC is a stockbroker company that provides users a platform for trading stocks, exchange-traded funds, cryptocurrencies, etc.  This company powers the API within the Webull Module. The module provides analytical data for over 6000 stocks and various functions to purchase stocks. <\/p>\n\n\n\n<p><strong>What is the need for such automation?<\/strong><\/p>\n\n\n\n<p>Stock markets can be a volatile space. Buying or selling a certain stock at the right time could result in profits if done correctly. <\/p>\n\n\n\n<p>Let&#8217;s see how much precision can be achieved using the Webull API and Python.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_74 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #990303;color:#990303\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #990303;color:#990303\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#Installing_the_Package\" >Installing the Package<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#Logging_Into_Your_Webull_Account\" >Logging Into Your Webull Account<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#Standard_Login\" >Standard Login<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#Mobile_Login\" >Mobile Login<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#How_to_Buy_or_Sell_Stock_Using_Webull_Python_Package\" >How to Buy or Sell Stock Using Webull Python Package<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#How_To_Buy_Or_Sell_Cryptocurrencies_Using_Webull\" >How To Buy Or Sell Cryptocurrencies Using Webull<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#How_To_Verify_Your_Standing_Orders_in_Webull_Python_Module\" >How To Verify Your Standing Orders in Webull Python Module<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#How_to_Modify_Your_Standing_Orders_in_Webull_Python_Module\" >How to Modify Your Standing Orders in Webull Python Module<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#How_To_Call_Off_Your_Standing_Orders_in_Webull_Python_Module\" >How To Call Off Your Standing Orders in Webull Python Module?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#How_To_Display_ETF_Holdings_For_Each_Stock\" >How To Display ETF Holdings For Each Stock<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#How_To_Display_Institutional_Holdings_for_Each_Stock\" >How To Display Institutional Holdings for Each Stock<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#How_To_Display_Financial_Information_of_a_Stock\" >How To Display Financial Information of a Stock<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#How_To_Display_Your_Order_History_in_Webull_Python_Module\" >How To Display Your Order History in Webull Python Module<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#FAQs_on_Webull_Python_Package\" >FAQs on Webull Python Package<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#Conclusion\" >Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#Trending_Now\" >Trending Now<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-installing-the-package\"><span class=\"ez-toc-section\" id=\"Installing_the_Package\"><\/span>Installing the Package<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>This module is NOT a part of the Python Standard Library. Download the package manually using PIP. This package is an open-source project, refer to it <a href=\"https:\/\/github.com\/tedchou12\/webull\">here<\/a>.<\/p>\n\n\n\n<p><strong>Installation Command for Webull 0.4.7<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>pip install webull<\/code>\n\nor \n<code>\npython3 -m pip install webull<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-logging-into-your-webull-account\"><span class=\"ez-toc-section\" id=\"Logging_Into_Your_Webull_Account\"><\/span>Logging Into Your Webull Account<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-standard-login\"><span class=\"ez-toc-section\" id=\"Standard_Login\"><\/span>Standard Login<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>You must log in to your Webull account in order to perform any operation. Let&#8217;s refer to the following program. <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nfrom webull import webull \nwb = webull()\nwb.login('sample@account.com', 'myPassword2022')\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-mobile-login\"><span class=\"ez-toc-section\" id=\"Mobile_Login\"><\/span>Mobile Login<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>For accounts associated with mobile numbers, run this command<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nfrom webull import webull # for paper trading, import 'paper_webull'\n\nwb = webull()\nwb.login('+91 1234567890', 'myPassword2022') \n<\/pre><\/div>\n\n\n<p>The phone number must be in the following format<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> +[country code]-[phone number]<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-buy-or-sell-stock-using-webull-python-package\"><span class=\"ez-toc-section\" id=\"How_to_Buy_or_Sell_Stock_Using_Webull_Python_Package\"><\/span>How to Buy or Sell Stock Using Webull Python Package<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Let&#8217;s look at how we can order stocks in the Webull platform using the module. <\/p>\n\n\n\n<p>With the help of  <code>.place_order()<\/code> from the Webull python package, this is achieved. The function takes 3 parameters &#8211; stock, price, and qty <\/p>\n\n\n\n<p>The <strong>stock<\/strong> parameter requires the company&#8217;s ticker or stock symbol (ex: AAPL &#8211; Apple Inc.)<\/p>\n\n\n\n<p>The <strong>price <\/strong>parameter should mention the amount invested in ordering the stock. Expects a <code>float<\/code> value.<\/p>\n\n\n\n<p>The <strong>qty<\/strong> parameter represents the number of ordered stocks. Expects an <code>int<\/code> value<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>NOTE<\/strong>:  A valid Webull Trade Token is required for upcoming operations. <\/pre>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nfrom webull import webull\nwb = webull()\nwb.login('sample@account.com', 'myPassword2022')\n\nwb.get_trade_token('220725')\nwb.place_order(stock='TSLA', price=90.0, qty=3)\n<\/pre><\/div>\n\n\n<p>To <strong>sell<\/strong> Stocks, set <code>action<\/code> to <code>SELL<\/code>. Specify <code>ordertype<\/code> as <code>LMT<\/code>(<strong>Limit Orders<\/strong>),  <code>MKT<\/code>(<strong>Market Orders<\/strong>) ,  <code>STP<\/code>(<strong>Straight Through Processing<\/strong>) , <code>STP LMT<\/code> (<strong>Stop Limit Order<\/strong>), or <code>STP TRAIL<\/code> (<strong>Trailing Stop<\/strong>). <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-buy-or-sell-cryptocurrencies-using-webull\"><span class=\"ez-toc-section\" id=\"How_To_Buy_Or_Sell_Cryptocurrencies_Using_Webull\"><\/span>How To Buy Or Sell Cryptocurrencies Using Webull<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Python Webull provides options to buy block-chain verified Cryptocurrencies. Let&#8217;s how this is achieved using the <code>place_order_crypto()<\/code> function. <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nfrom webull import webull\nwb = webull()\nwb.login('sample@account.com', 'myPassword2022')\nwb.get_trade_token('220725')\n\nwb.place_order_crypto(stock='ETH-USD', price='1500.50', quant='1.5', action='BUY', entrust_type='QTY') # Buying Ethereum (USD)\n<\/pre><\/div>\n\n\n<p>To <strong>sell<\/strong> Crypto set <code>action<\/code> to <code>SELL<\/code>. Specify <code>ordertype<\/code> as <code>LMT<\/code>(Limit Orders) or <code>MKT<\/code>(Market Orders) as well. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-verify-your-standing-orders-in-webull-python-module\"><span class=\"ez-toc-section\" id=\"How_To_Verify_Your_Standing_Orders_in_Webull_Python_Module\"><\/span>How To Verify Your Standing Orders in Webull Python Module<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>After ordering, you can view all your orders using <code>.get_current_orders()<\/code> function.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nfrom webull import webull\nwb = webull()\nwb.login('sample@account.com', 'myPassword2022')\nwb.get_trade_token('220725')\nmyOrders = wb.get_current_orders()\n<\/pre><\/div>\n\n\n<p>The <code>myOrders<\/code> variable will consist of all information on current orders. <\/p>\n\n\n<div class=\"monsterinsights-inline-popular-posts monsterinsights-inline-popular-posts-kilo monsterinsights-popular-posts-styled\" ><div class=\"monsterinsights-inline-popular-posts-text\"><span class=\"monsterinsights-inline-popular-posts-label\" >Popular now<\/span><span class=\"monsterinsights-inline-popular-posts-border\" ><\/span><span class=\"monsterinsights-inline-popular-posts-border-2\" ><\/span><div class=\"monsterinsights-inline-popular-posts-post\"><a class=\"monsterinsights-inline-popular-posts-title\"  href=\"https:\/\/www.pythonpool.com\/fixed-typeerror-cant-compare-datetime-datetime-to-datetime-date\/\">[Fixed] typeerror can&#8217;t compare datetime.datetime to datetime.date<\/a><\/div><\/div><\/div><p><\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-modify-your-standing-orders-in-webull-python-module\"><span class=\"ez-toc-section\" id=\"How_to_Modify_Your_Standing_Orders_in_Webull_Python_Module\"><\/span>How to Modify Your Standing Orders in Webull Python Module<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>You can change the details of your standing orders using the <code>modify_order()<\/code> function. Let&#8217;s refer to the following program. <\/p>\n\n\n\n<p>Modifiable parameters are:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><code>action<\/code> &#8211; BUY \/ SELL<\/li><li><code>ordertype<\/code> &#8211; LMT \/ MKT \/ STP \/ STP LMT \/ STP TRAIL<\/li><li><code>timeinforce<\/code> &#8211; GTC \/ DAY \/ IOC<\/li><li><code>outsideRegularTradingHour<\/code> &#8211; <code>True<\/code> \/ <code>False<\/code><\/li><\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nfrom webull import webull\nwb = webull()\nwb.login('sample@account.com', 'myPassword2022')\nwb.get_trade_token('220725') # Example Token\n\nwb.modify_order(order_id='ID_2232345', action='BUY', ordertype='MKT', timeinforce='GTC', outsideRegularTradingHour=True) # Example order_id\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-call-off-your-standing-orders-in-webull-python-module\"><span class=\"ez-toc-section\" id=\"How_To_Call_Off_Your_Standing_Orders_in_Webull_Python_Module\"><\/span>How To Call Off Your Standing Orders in Webull Python Module?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Cancel a standing order using <code>cancel_order()<\/code> function. Expects only one parameter <code>order_id<\/code><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nfrom webull import webull\nwb = webull()\nwb.login('sample@account.com', 'myPassword2022')\nwb.get_trade_token('220725')\n\nwb.cancel_order(order_id='ID_2232345') # Example ID\n<\/pre><\/div>\n\n\n<pre class=\"wp-block-preformatted\"><strong>NOTE<\/strong>: Only one order can be canceled per function call<\/pre>\n\n\n\n<p>If you&#8217;ve decided to cancel all standing orders, you can do so by using the <code>.cancel_all_orders()<\/code>. Does <strong>NOT<\/strong> expect any parameters. <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nfrom webull import webull\nwb = webull()\nwb.login('sample@account.com', 'myPassword2022')\nwb.get_trade_token('220725')\n\nwb.cancel_all_orders()\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-display-etf-holdings-for-each-stock\"><span class=\"ez-toc-section\" id=\"How_To_Display_ETF_Holdings_For_Each_Stock\"><\/span>How To Display ETF Holdings For Each Stock<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Exchange Traded Funds(ETF) for each stock can be displayed using the <code>get_etf_holding()<\/code> function. Let&#8217;s refer to the following program. <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nfrom webull import webull\nwb = webull()\nwb.login('sample@account.com', 'myPassword2022')\nwb.get_trade_token('220725')\n\nwb.get_etf_holding(stock='AAPL', has_num=0, count=20)\n<\/pre><\/div>\n\n\n<p>This will generate a list of ETF holdings for <em>Apple Inc.<\/em> <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-display-institutional-holdings-for-each-stock\"><span class=\"ez-toc-section\" id=\"How_To_Display_Institutional_Holdings_for_Each_Stock\"><\/span>How To Display Institutional Holdings for Each Stock<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Institutional Holdings are stocks owned by mutual funds, investment firms, insurance companies, private foundations, or other large corporations that manage funds. Using <code>get_institutional_holding()<\/code>, we can display the information. <\/p>\n\n\n\n<p>The function expects either a stock symbol or stock ID.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nfrom webull import webull\nwb = webull()\nwb.login('sample@account.com', 'myPassword2022')\nwb.get_trade_token('220725')\n\nwb.get_institutional_holding(stock='AAPL')\n\n<\/pre><\/div>\n\n\n<p>This program generates a list of institutional holdings for <em>Apple Inc.<\/em> <\/p>\n\n\n<div class=\"monsterinsights-inline-popular-posts monsterinsights-inline-popular-posts-golf monsterinsights-popular-posts-styled\" ><div class=\"monsterinsights-inline-popular-posts-text\"><span class=\"monsterinsights-inline-popular-posts-label\" >Popular now<\/span><span class=\"monsterinsights-inline-popular-posts-border\" ><\/span><span class=\"monsterinsights-inline-popular-posts-border-2\" ><\/span><div class=\"monsterinsights-inline-popular-posts-post\"><a class=\"monsterinsights-inline-popular-posts-title\"  href=\"https:\/\/www.pythonpool.com\/fixed-nameerror-name-unicode-is-not-defined\/\">[Fixed] nameerror: name Unicode is not defined<\/a><\/div><\/div><\/div><p><\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-display-financial-information-of-a-stock\"><span class=\"ez-toc-section\" id=\"How_To_Display_Financial_Information_of_a_Stock\"><\/span>How To Display Financial Information of a Stock<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><code>get_financials()<\/code> displays the financial information of stock. The function expects one parameter <code>stock<\/code> or <code>tId<\/code>.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nfrom webull import webull\nwb = webull()\nwb.login('sample@account.com', 'myPassword2022')\nwb.get_trade_token('220725')\n\nwb.get_financials(stock='GOOGL')\n<\/pre><\/div>\n\n\n<p>Generates a dictionary of financial information for <em>Alphabet Inc.<\/em> shares. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-display-your-order-history-in-webull-python-module\"><span class=\"ez-toc-section\" id=\"How_To_Display_Your_Order_History_in_Webull_Python_Module\"><\/span>How To Display Your Order History in Webull Python Module<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><code>get_history_orders()<\/code> provides information on all orders placed on your Webull account. <\/p>\n\n\n\n<p>The orders can be filtered based on their current standing using <code>status<\/code>. The options are:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Canceled<\/li><li>Filled<\/li><li>Working<\/li><li>Partially Filled<\/li><li>Pending<\/li><li>Failed<\/li><li>All<\/li><\/ul>\n\n\n\n<p><code>count<\/code> represents the maximum number of orders to be displayed. <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nfrom webull import webull\nwb = webull()\nwb.login('sample@account.com', 'myPassword2022')\nwb.get_trade_token('220725')\n\nwb.get_history_orders(status='All', count=20)\n<\/pre><\/div>\n\n\n<p>The program returns a <a href=\"http:\/\/www.pythonpool.com\/jsondecodeerror-expecting-value-line-1-column-1-char-0\/\"><span style=\"text-decoration: underline;\"><strong>JSON<\/strong><\/span><\/a> response consisting of a maximum of 20 order histories.<\/p>\n\n\n<div class=\"monsterinsights-inline-popular-posts monsterinsights-inline-popular-posts-alpha monsterinsights-popular-posts-styled\" ><div class=\"monsterinsights-inline-popular-posts-text\"><span class=\"monsterinsights-inline-popular-posts-label\" >Trending<\/span><div class=\"monsterinsights-inline-popular-posts-post\"><a class=\"monsterinsights-inline-popular-posts-title\"  href=\"https:\/\/www.pythonpool.com\/solved-runtimeerror-cuda-error-invalid-device-ordinal\/\">[Solved] runtimeerror: cuda error: invalid device ordinal<\/a><\/div><\/div><\/div><p><\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-faqs-on-webull-python-package\"><span class=\"ez-toc-section\" id=\"FAQs_on_Webull_Python_Package\"><\/span>FAQs on Webull Python Package<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1658820444978\"><strong class=\"schema-faq-question\">How to cancel orders using Webull Python Package?<\/strong> <p class=\"schema-faq-answer\"><code>cancel_order()<\/code> cancels a single order whereas <code>cancel_all_orders()<\/code> cancels all standing orders. <\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1658820538925\"><strong class=\"schema-faq-question\">How to add price alerts using Webull Python Package?<\/strong> <p class=\"schema-faq-answer\"><code>alerts_add()<\/code> allows you to create alerts based on the financial information of a share. The frequency of the alert can be modified to your needs.  <\/p> <\/div> <\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>This article has gone through the Python Webull module. Webull provides an API that allows us to automate stock purchases and provides real-time information on the stock. This module can be essential in the stock markets as correctly timed purchases with accurate information are essential. <\/p>\n\n\n<div class=\"monsterinsights-widget-popular-posts monsterinsights-widget-popular-posts-delta monsterinsights-popular-posts-styled monsterinsights-widget-popular-posts-columns-2\"><h2 class=\"monsterinsights-widget-popular-posts-widget-title\"><span class=\"ez-toc-section\" id=\"Trending_Now\"><\/span>Trending Now<span class=\"ez-toc-section-end\"><\/span><\/h2><ul class=\"monsterinsights-widget-popular-posts-list\"><li ><a href=\"https:\/\/www.pythonpool.com\/fixed-typeerror-cant-compare-datetime-datetime-to-datetime-date\/\"><div class=\"monsterinsights-widget-popular-posts-image\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_.webp 1200w \" alt=\"[Fixed] typeerror can&#8217;t compare datetime.datetime to datetime.date\" \/><\/div><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" >[Fixed] typeerror can&#8217;t compare datetime.datetime to datetime.date<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><span class=\"monsterinsights-widget-popular-posts-author\">by Namrata Gulati<\/span><span>&#9679;<\/span><span class=\"monsterinsights-widget-popular-posts-date\">January 11, 2024<\/span><\/div><\/div><\/a><\/li><li ><a href=\"https:\/\/www.pythonpool.com\/fixed-nameerror-name-unicode-is-not-defined\/\"><div class=\"monsterinsights-widget-popular-posts-image\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined.webp 1200w \" alt=\"[Fixed] nameerror: name Unicode is not defined\" \/><\/div><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" >[Fixed] nameerror: name Unicode is not defined<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><span class=\"monsterinsights-widget-popular-posts-author\">by Namrata Gulati<\/span><span>&#9679;<\/span><span class=\"monsterinsights-widget-popular-posts-date\">January 2, 2024<\/span><\/div><\/div><\/a><\/li><li ><a href=\"https:\/\/www.pythonpool.com\/solved-runtimeerror-cuda-error-invalid-device-ordinal\/\"><div class=\"monsterinsights-widget-popular-posts-image\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal.webp 1200w \" alt=\"[Solved] runtimeerror: cuda error: invalid device ordinal\" \/><\/div><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" >[Solved] runtimeerror: cuda error: invalid device ordinal<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><span class=\"monsterinsights-widget-popular-posts-author\">by Namrata Gulati<\/span><span>&#9679;<\/span><span class=\"monsterinsights-widget-popular-posts-date\">January 2, 2024<\/span><\/div><\/div><\/a><\/li><li ><a href=\"https:\/\/www.pythonpool.com\/fixed-typeerror-type-numpy-ndarray-doesnt-define-__round__-method\/\"><div class=\"monsterinsights-widget-popular-posts-image\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method.webp 1200w \" alt=\"[Fixed] typeerror: type numpy.ndarray doesn&#8217;t define __round__ method\" \/><\/div><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" >[Fixed] typeerror: type numpy.ndarray doesn&#8217;t define __round__ method<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><span class=\"monsterinsights-widget-popular-posts-author\">by Namrata Gulati<\/span><span>&#9679;<\/span><span class=\"monsterinsights-widget-popular-posts-date\">January 2, 2024<\/span><\/div><\/div><\/a><\/li><\/ul><\/div><p><\/p>","protected":false},"excerpt":{"rendered":"<p>This article will examine Webull and how we can use the Webull Python package. Before we get into the specifics, we must know what an &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How To Use the Webull Package in Python\" class=\"read-more button\" href=\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#more-23541\" aria-label=\"More on How To Use the Webull Package in Python\">Read more<\/a><\/p>\n","protected":false},"author":28,"featured_media":23640,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[296,4345],"tags":[5315,5317,5316],"class_list":["post-23541","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to","category-module","tag-does-webull-have-an-api","tag-webull-python","tag-webull-python-api","infinite-scroll-item"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.1 (Yoast SEO v25.0) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How To Use the Webull Package in Python - Python Pool<\/title>\n<meta name=\"description\" content=\"This article will look at Webull and how we can use the Webull Python package. It provides users a platform to trade Stocks, Crypto, etc.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.pythonpool.com\/webull-package-in-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Use the Webull Package in Python\" \/>\n<meta property=\"og:description\" content=\"This article will examine Webull and how we can use the Webull Python package. Before we get into the specifics, we must know what an API is. API or\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pythonpool.com\/webull-package-in-python\/\" \/>\n<meta property=\"og:site_name\" content=\"Python Pool\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-28T10:12:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-28T10:18:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2022\/07\/webull-python-package.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Vishnu Venkatesh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pythonpool\" \/>\n<meta name=\"twitter:site\" content=\"@pythonpool\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vishnu Venkatesh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/webull-package-in-python\/\"},\"author\":{\"name\":\"Vishnu Venkatesh\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/5e8aa48e7557450d345c829305550688\"},\"headline\":\"How To Use the Webull Package in Python\",\"datePublished\":\"2022-07-28T10:12:47+00:00\",\"dateModified\":\"2022-07-28T10:18:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/webull-package-in-python\/\"},\"wordCount\":812,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.pythonpool.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2022\/07\/webull-python-package.webp\",\"keywords\":[\"does webull have an api\",\"webull python\",\"webull python api\"],\"articleSection\":[\"How to\",\"Module\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#respond\"]}]},{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\/\/www.pythonpool.com\/webull-package-in-python\/\",\"url\":\"https:\/\/www.pythonpool.com\/webull-package-in-python\/\",\"name\":\"How To Use the Webull Package in Python - Python Pool\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2022\/07\/webull-python-package.webp\",\"datePublished\":\"2022-07-28T10:12:47+00:00\",\"dateModified\":\"2022-07-28T10:18:36+00:00\",\"description\":\"This article will look at Webull and how we can use the Webull Python package. It provides users a platform to trade Stocks, Crypto, etc.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#breadcrumb\"},\"mainEntity\":[{\"@id\":\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#faq-question-1658820444978\"},{\"@id\":\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#faq-question-1658820538925\"}],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.pythonpool.com\/webull-package-in-python\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#primaryimage\",\"url\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2022\/07\/webull-python-package.webp\",\"contentUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2022\/07\/webull-python-package.webp\",\"width\":1200,\"height\":628,\"caption\":\"webull python package\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.pythonpool.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Use the Webull Package in Python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.pythonpool.com\/#website\",\"url\":\"https:\/\/www.pythonpool.com\/\",\"name\":\"Python Pool\",\"description\":\"Your One-Stop Python Learning Destination\",\"publisher\":{\"@id\":\"https:\/\/www.pythonpool.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.pythonpool.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.pythonpool.com\/#organization\",\"name\":\"Python Pool\",\"url\":\"https:\/\/www.pythonpool.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png\",\"contentUrl\":\"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png\",\"width\":452,\"height\":185,\"caption\":\"Python Pool\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/pythonpool\",\"https:\/\/www.youtube.com\/c\/pythonpool\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/5e8aa48e7557450d345c829305550688\",\"name\":\"Vishnu Venkatesh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8d399a4488a19871b08a11ebd884e233b04c76d12edc4c7278a79d69df853d75?s=96&d=wavatar&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8d399a4488a19871b08a11ebd884e233b04c76d12edc4c7278a79d69df853d75?s=96&d=wavatar&r=g\",\"caption\":\"Vishnu Venkatesh\"}},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#faq-question-1658820444978\",\"position\":1,\"url\":\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#faq-question-1658820444978\",\"name\":\"How to cancel orders using Webull Python Package?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"cancel_order() cancels a single order whereas cancel_all_orders() cancels all standing orders. \",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#faq-question-1658820538925\",\"position\":2,\"url\":\"https:\/\/www.pythonpool.com\/webull-package-in-python\/#faq-question-1658820538925\",\"name\":\"How to add price alerts using Webull Python Package?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"alerts_add() allows you to create alerts based on the financial information of a share. The frequency of the alert can be modified to your needs.  \",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How To Use the Webull Package in Python - Python Pool","description":"This article will look at Webull and how we can use the Webull Python package. It provides users a platform to trade Stocks, Crypto, etc.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.pythonpool.com\/webull-package-in-python\/","og_locale":"en_US","og_type":"article","og_title":"How To Use the Webull Package in Python","og_description":"This article will examine Webull and how we can use the Webull Python package. Before we get into the specifics, we must know what an API is. API or","og_url":"https:\/\/www.pythonpool.com\/webull-package-in-python\/","og_site_name":"Python Pool","article_published_time":"2022-07-28T10:12:47+00:00","article_modified_time":"2022-07-28T10:18:36+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2022\/07\/webull-python-package.webp","type":"image\/webp"}],"author":"Vishnu Venkatesh","twitter_card":"summary_large_image","twitter_creator":"@pythonpool","twitter_site":"@pythonpool","twitter_misc":{"Written by":"Vishnu Venkatesh","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pythonpool.com\/webull-package-in-python\/#article","isPartOf":{"@id":"https:\/\/www.pythonpool.com\/webull-package-in-python\/"},"author":{"name":"Vishnu Venkatesh","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/5e8aa48e7557450d345c829305550688"},"headline":"How To Use the Webull Package in Python","datePublished":"2022-07-28T10:12:47+00:00","dateModified":"2022-07-28T10:18:36+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pythonpool.com\/webull-package-in-python\/"},"wordCount":812,"commentCount":0,"publisher":{"@id":"https:\/\/www.pythonpool.com\/#organization"},"image":{"@id":"https:\/\/www.pythonpool.com\/webull-package-in-python\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2022\/07\/webull-python-package.webp","keywords":["does webull have an api","webull python","webull python api"],"articleSection":["How to","Module"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pythonpool.com\/webull-package-in-python\/#respond"]}]},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/www.pythonpool.com\/webull-package-in-python\/","url":"https:\/\/www.pythonpool.com\/webull-package-in-python\/","name":"How To Use the Webull Package in Python - Python Pool","isPartOf":{"@id":"https:\/\/www.pythonpool.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.pythonpool.com\/webull-package-in-python\/#primaryimage"},"image":{"@id":"https:\/\/www.pythonpool.com\/webull-package-in-python\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2022\/07\/webull-python-package.webp","datePublished":"2022-07-28T10:12:47+00:00","dateModified":"2022-07-28T10:18:36+00:00","description":"This article will look at Webull and how we can use the Webull Python package. It provides users a platform to trade Stocks, Crypto, etc.","breadcrumb":{"@id":"https:\/\/www.pythonpool.com\/webull-package-in-python\/#breadcrumb"},"mainEntity":[{"@id":"https:\/\/www.pythonpool.com\/webull-package-in-python\/#faq-question-1658820444978"},{"@id":"https:\/\/www.pythonpool.com\/webull-package-in-python\/#faq-question-1658820538925"}],"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pythonpool.com\/webull-package-in-python\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/webull-package-in-python\/#primaryimage","url":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2022\/07\/webull-python-package.webp","contentUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2022\/07\/webull-python-package.webp","width":1200,"height":628,"caption":"webull python package"},{"@type":"BreadcrumbList","@id":"https:\/\/www.pythonpool.com\/webull-package-in-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pythonpool.com\/"},{"@type":"ListItem","position":2,"name":"How To Use the Webull Package in Python"}]},{"@type":"WebSite","@id":"https:\/\/www.pythonpool.com\/#website","url":"https:\/\/www.pythonpool.com\/","name":"Python Pool","description":"Your One-Stop Python Learning Destination","publisher":{"@id":"https:\/\/www.pythonpool.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pythonpool.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.pythonpool.com\/#organization","name":"Python Pool","url":"https:\/\/www.pythonpool.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/","url":"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png","contentUrl":"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png","width":452,"height":185,"caption":"Python Pool"},"image":{"@id":"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/pythonpool","https:\/\/www.youtube.com\/c\/pythonpool"]},{"@type":"Person","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/5e8aa48e7557450d345c829305550688","name":"Vishnu Venkatesh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8d399a4488a19871b08a11ebd884e233b04c76d12edc4c7278a79d69df853d75?s=96&d=wavatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8d399a4488a19871b08a11ebd884e233b04c76d12edc4c7278a79d69df853d75?s=96&d=wavatar&r=g","caption":"Vishnu Venkatesh"}},{"@type":"Question","@id":"https:\/\/www.pythonpool.com\/webull-package-in-python\/#faq-question-1658820444978","position":1,"url":"https:\/\/www.pythonpool.com\/webull-package-in-python\/#faq-question-1658820444978","name":"How to cancel orders using Webull Python Package?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"cancel_order() cancels a single order whereas cancel_all_orders() cancels all standing orders. ","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.pythonpool.com\/webull-package-in-python\/#faq-question-1658820538925","position":2,"url":"https:\/\/www.pythonpool.com\/webull-package-in-python\/#faq-question-1658820538925","name":"How to add price alerts using Webull Python Package?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"alerts_add() allows you to create alerts based on the financial information of a share. The frequency of the alert can be modified to your needs.  ","inLanguage":"en-US"},"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/23541","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/comments?post=23541"}],"version-history":[{"count":27,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/23541\/revisions"}],"predecessor-version":[{"id":23639,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/23541\/revisions\/23639"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media\/23640"}],"wp:attachment":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media?parent=23541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/categories?post=23541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/tags?post=23541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}