An unofficial API for Vanguard Invest
Project description
vanguard-api
A reverse-engineered python API to interact with the Vanguard Trading platform.
This is not an official api! This api's functionality may change at any time.
This api provides a means of buying and selling stocks through Vanguard. It uses playwright to scrape data and to interact with the website.
Contribution
I am new to coding and new to open-source. I would love any help and suggestions!
Disclaimer
I am not a financial advisor and not affiliated with Vanguard in any way. Use this tool at your own risk. I am not responsible for any losses or damages you may incur by using this project. This tool is provided as-is with no warranty.
Setup
Install using pypi:
pip install vanguard-api
This package requires playwright. After installing vanguard-api, you will need to finish the install of playwright. You can do this in most cases by running the command:
playwright install
If you would like some more information on this, you can find it here.
Quickstart
Checkout test.py
for a quickstart example it will:
- Login and print account info.
- Print out Holdings.
- Place a dry run market order for 'INTC' on the first account in the
account_numbers
list - Print out the order confirmation
Implemented Features
- Login
- Login with MFA
- Get Account Data
- Place Market Orders
- Get Currently Held Positions
- Get Quotes
- Place Limit Orders
TO DO
- Get Order Status
- Cancel placed orders
- Options
- Give me some Ideas!
If you would like to support me, you can do so here:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file vanguard_api-0.2.5.tar.gz
.
File metadata
- Download URL: vanguard_api-0.2.5.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58454e558cf820db8d0345623fade42d39c7a1e25b2de2b22524df99d6bef9f7 |
|
MD5 | 09ab738d9b5023462cfdf2c298644569 |
|
BLAKE2b-256 | a825a43e34c139add69eecfeff48d4d3d2f916990457f44350beb61e519136e1 |
File details
Details for the file vanguard_api-0.2.5-py3-none-any.whl
.
File metadata
- Download URL: vanguard_api-0.2.5-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25dcd4e80c7155b9df35157ba57ac5a9c79ce16f616d52f4fe576fa77e13f175 |
|
MD5 | 0da9d410a937d2b809786e7b678f0886 |
|
BLAKE2b-256 | 73a7e119629663d5123f4d9ce23bc8b562cb151ad49b3ba9b40c19eeb1d5333c |