Skip to content

Python wrapper for the Wealthsimple Trade API

License

Notifications You must be signed in to change notification settings

silvavn/Wealthsimple-Trade-Python

 
 

Repository files navigation

Wealthsimple Trade Python

A convenient Python wrapper for the Wealthsimple Trade API. Note that this wrapper is Unofficial and is not in any way affiliated with Wealthsimple. Please use at your own risk.


docs Documentation Status
tests
Travis-CI Build Status Requirements Status
package
Commits since latest release

Installation

pip install wealthsimple-trade-python

You can also install the in-development version with:

pip install https://github.com/seansullivan44/Wealthsimple-Trade-Python/archive/master.zip

Getting Started

Download the Wealthsimple Trade app for iOS or Android and create an account. This API wrapper will use your Wealthsimple Trade login credentials to make successful API calls. After creating an account, use your login credentials to create a WSTrade object:

import wealthsimple
WS = wealthsimple.WSTrade('email', 'password')

If your Wealthsimple Trade account uses two-factor authentication then you must provide the WSTrade object with a callback function as shown in the following example:

import wealthsimple

def my_two_factor_function():
    MFACode = ""
    while not MFACode:
        # Obtain user input and ensure it is not empty
        MFACode = input("Enter 2FA code: ")
    return MFACode

ws = wealthsimple.WSTrade(
    "email",
    "password",
    two_factor_callback=my_two_factor_function,
)

Documentation

https://Wealthsimple-Trade-Python.readthedocs.io/

About

Python wrapper for the Wealthsimple Trade API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%