webull
awesome-python
Our great sponsors
webull | awesome-python | |
---|---|---|
6 | 85 | |
588 | 204,784 | |
- | - | |
0.0 | 7.1 | |
about 1 month ago | 6 days ago | |
Python | Python | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
webull
-
Hello World Programs for API Stock Trading
### Alpaca #### # pip install alpaca_trade_api # Import Alpaca Package import alpaca_trade_api as tradeapi # Set API Keys api_key = '' secret_key = 'ENTER ALPACA SECRET KEY HERE' # Initialize Alpaca Trading Object alpaca_client = tradeapi.REST(api_key, secret_key, raw_data=True) # Validate Client Object Works print(alpaca_client.get_account()) # Submit a fractional trade (market order only) orderNumber = alpaca_client.submit_order(symbol='AAPL', qty=0.1234, side='buy', type='market', time_in_force='day')['client_order_id'] # Submit a limit order (fractional shares not allowed) orderNumber = alpaca_client.submit_order(symbol='AAPL', qty=5, side='sell', type='limit', limit_price='138.00', time_in_force='gtc')['client_order_id'] ### Tradier ### # pip install tradier-python # Import Tradier Package from tradier_python import TradierAPI # Set API Keys account_id = '' access_token = 'ENTER TRADIER ACCESS TOKEN HERE' # Initialize Tradier Trading Object tradier_client = TradierAPI(token=access_token, default_account_id=account_id, endpoint='https://api.tradier.com/') # Validate Client Object Works print(tradier_client.get_profile()) # Submit a limit order (fractional shares not allowed) orderNumber = order_number = tradier_client.order_equity(symbol='IBM', side='buy', quantity='10', order_type='limit', limit_price='138.00', duration='day' )['id'] ### Ally ### # pip install AllyInvestPy # Import Ally Package from ally import * # Set API Keys account_id = '' token_secret = 'ENTER ALLY TOKEN SECRET HERE' token_key = 'ENTER ALLY TOKEN KEY HERE' api_key = 'ENTER ALLY API KEY HERE' # Initialize Ally Trading Object ally_client = AllyAPI(account_id, token_secret, token_key, api_key, response_format="json") # Validate Client Object Works print(ally_client.get_account(id=account_id)) # Submit a limit order (fractional shares not allowed) orderInfo = ally_client.order_common_stock(ticker='APPL', shares=10, type='Limit', price='138.00', account_nbr=account_id, side='Buy') ### Webull ### # pip install webull # Import Webull Package from webull import webull # It's necessary to get and create below webull credentials file # Follow steps in this URL: https://github.com/tedchou12/webull/wiki/Workaround-for-Login # Tip: You need to enter trade token and do a search for "refreshToken" in order to locate and retrieve extInfo response fh = open('c:/temp/webull_credentials.json', 'r') credential_data = json.load(fh) fh.close() print(credential_data) print(credential_data['refreshToken']) print(credential_data['accessToken']) print(credential_data['tokenExpireTime']) print(credential_data['uuid']) # Initialize Webull Trading Object webull_client = webull() # Set Webull Tokens webull_client._refresh_token = credential_data['refreshToken'] webull_client._access_token = credential_data['accessToken'] webull_client._token_expire = credential_data['tokenExpireTime'] webull_client._uuid = credential_data['uuid'] # Refresh Webull Token to Extend Expiration for 1 Week n_data = webull_client.refresh_login() credential_data['refreshToken'] = n_data['refreshToken'] credential_data['accessToken'] = n_data['accessToken'] credential_data['tokenExpireTime'] = n_data['tokenExpireTime'] # Update credentials file with new values file = open('c:/temp/webull_credentials.json', 'w') json.dump(credential_data, file) file.close() # Validate Client Object Works print(webull_client.get_account_id()) # Submit Order (Fractional Shares Not Allowed) # Enter phone number, password, and trade token information webull_client.login('+1-2125551234', '') webull_client.get_trade_token('123456') # It's annoying but the two lines above, login() and get_trade_token() functions must be executed before EACH trade is placed orderNumber = webull_client.place_order(stock='AAPL', action='BUY', orderType='LMT', quant=10.0, price='138.00')['data']['orderId']
- The Naked Smoking Gun
-
Broker for swing trading
WeBull. No commissions. $5 minimum for fractional shares. 1am ET start of trading APIs here. Caveat is phone app has better UI than the desktop app, imo.
-
Where is the official docs for the webull api?
Apart from their wiki, they don't seem to have official documentation!
-
Where to get pre-market prices?
webull - GitHub - tedchou12/webull: Unofficial APIs for Webull.
awesome-python
-
How I do technology watch
Python: https://github.com/vinta/awesome-python
-
Top 10 GitHub Repositories Every Developer Should Bookmark in 2024
6) Awesome Python: Embrace the power of Python with this extensive collection of awesome libraries, frameworks, resources, and software. Whether you're a seasoned Pythonista or just starting your journey, this repository is your ultimate guide to maximizing the potential of this versatile language. (https://github.com/vinta/awesome-python)
-
Good coding groups for black women?
- https://github.com/vinta/awesome-python
-
Top GitHub Resources to Level Up Your Python game
🎇 Repository Link: Awesome Python
- GitHub - vinta/awesome-python: A curated list of awesome Python frameworks, libraries, software and resources
-
10 Github repositories to achieve Python mastery
Explore here.
-
Alternatives?
I know of curated lists like https://github.com/vinta/awesome-python but they are nowhere close to alternativeto.net in terms of information (relations) and community involvement.
- Help me out.
-
Ask HN: Best place/resource to learn metaprogramming in Python
https://github.com/vinta/awesome-python
-
Which MATLAB course to take for undecided
There are a lot of python packages for engineering and scientific applications (as well as other applications in general, and, thanks to the inherently collaborative nature of free software, they are only growing in quantity and quality. Many MATLAB toolboxes already have Python equivalents.
What are some alternatives?
degiro-api - Unofficial DeGiro stock broker API. See your portfolio and set up orders in the market like wall street
Qtile-Config - This is my configuration of Qtile, a window manager written in python.
lumibot - Backtesting and Trading Bots Made Easy for Crypto, Stocks, Options, Futures, FOREX and more
VeRyPy - A python library with implementations of 15 classical heuristics for the capacitated vehicle routing problem.
best-of-python - 🏆 A ranked list of awesome Python open-source libraries and tools. Updated weekly.
Pyadomd - A pythonic approach to query SSAS data models.
pyrh - Python Framework to make trades with the unofficial Robinhood API
ydata-profiling - 1 Line of code data quality profiling & exploratory data analysis for Pandas and Spark DataFrames.
waldur-mastermind - Waldur MasterMind is a hybrid cloud orchestrator.
DearPyGui - Dear PyGui: A fast and powerful Graphical User Interface Toolkit for Python with minimal dependencies
Box - Python dictionaries with advanced dot notation access
timebudget - Stupidly-simple speed measurements for Python.