Coder Social home page Coder Social logo

vanguard-api's Introduction

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:

GitHub Sponsors

vanguard-api's People

Contributors

deepsource-autofix[bot] avatar maxxrk avatar terose73 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

terose73

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.