Metadata-Version: 2.1
Name: webull
Version: 0.0.7
Summary: The unofficial python interface for the WeBull API
Home-page: https://github.com/tedchou12/webull.git
Author: ted chou
Author-email: ted.chou12@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: certifi (>=2020.4.5.1)
Requires-Dist: chardet (>=3.0.4)
Requires-Dist: idna (>=2.9)
Requires-Dist: numpy (>=1.18.4)
Requires-Dist: pandas (>=0.25.3)
Requires-Dist: python-dateutil (>=2.8.1)
Requires-Dist: pytz (>=2020.1)
Requires-Dist: requests (>=2.23.0)
Requires-Dist: six (>=1.14.0)
Requires-Dist: urllib3 (>=1.25.9)
Requires-Dist: email-validator (>=1.1.0)

# Webull
APIs for webull, you are free to use, but code not extensively checked and Webull may update the APIs or the endpoints at any time.
https://www.webull.com/


# Install

```
pip install webull
```

# Usage

How to login and get account details
```

from webull import webull # for paper trading, import 'paper-webull'

webull = webull.webull()
webull.login('test@test.com', 'pa$$w0rd')
webull.get_trade_token('123456') # your 6-digit pin
print(webull.get_account())
```

How to order stock
```
from webull import webull
webull = webull.webull()
webull.login('test@test.com', 'pa$$w0rd')
webull.get_trade_token('123456')
webull.place_order('NDAQ', 90.0, 2) //stock_ticker_symbol, price, quantity
```

How to check standing orders
```
from webull import webull
webull = webull.webull()
webull.login('test@test.com', 'pa$$w0rd')
webull.get_trade_token('123456')
orders = webull.get_current_orders()
for order in orders :
  print(order)
```

How to cancel standing orders
```
from webull import webull
webull = webull.webull()
webull.login('test@test.com', 'pa$$w0rd')
webull.get_trade_token('123456')
orders = webull.get_current_orders()
for order in orders :
  if order['statusCode'] == 'Working' :
    webull.cancel_order(order['orderId'])
```

# Stream Quotes
https://github.com/tedchou12/webull/wiki/How-to-use-Streaming-Quotes%3F

# Disclaimer
This software is not extensively tested, please use at your own risk.

# Developers
If you are interested to join and help me improve this, feel free to message me.


