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!
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
Hashes for vanguard_api-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ac9e8dc0e5a9de8e4fb22100bfbecbea63b89fd979b8e4c819c539ab78b35d4 |
|
MD5 | 5d4d8d5aeeba11c77d3f984e5f5e565d |
|
BLAKE2b-256 | 733fe68bf5b66e594a4685d7118faf5ea9af46f55c4a0894f48197c7194f8cf5 |