What is the Wsimple project?
Welcome! This project is an API and Web interface(In-development) for Wealthsimple Trade. The main goal of this project is to give developers the ability to create projects while hooking them straight into their Wealthsimple Trade account. Click Here for API wrapper documentation. When looking for a specific function use the left navbar to find it.
Before using the API, please read the disclamer, and due to the nature of this project and goodwill, specific endpoints aren't available.
This library was created with non-coders in mind and needs a minimal understand of python to get started.
Getting Started
Project Status
v3.0.0 - Indefinite pause on further development
This project is in the pre-alpha stage. if you find any bugs please submit an issue.
Prerequisites
- python3+, pip and node are required to use wsimple
- to download pip and python go to "Download Python"
- to download node go to "Download Node"
Project Ideas
- Buy/sell a stock as the end of every month.
- Automatically create a deposit/withdrawal order every month.
- Create a internal transfer order to your wealthsimple TSFA, invest accounts every month.
- Automatically send tax and monthly trading statements to your email.
- Create a system to do dollar cost averaging (DCA) or dividend reinvestment plan (DRIP)
Install
pip install wsimple
start website (Not finished)
wsimple start
API
Usage
from wsimple.api import Wsimple
def get_otp():
return input("Enter otpnumber: \n>>>")
email = str(input("Enter email: \n>>>"))
password = str(input("Enter password: \n>>>"))
ws = Wsimple(email, password, otp_callback=get_otp)
# always check if wealthsimple is working (return True if working or an error)
if ws.is_operational():
# check the current operation status of internal Wealthsimple Trade
print(ws.current_status())
# return a list of securities that include GOOG and GOOGL
print(ws.find_securities("GOOG"))
# create deposit order for 2000 CAD into your account
ws.make_deposit(2000)
# create withdrawal order for 6000 CAD into your account
ws.make_withdrawal(6000)
# return opening and closing of the exchange NYSE
print(ws.get_market_hours(exchange="NYSE"))
Disclaimer
This software is provided so you can use Wealthsimple trade on your computer. This software is not built or maintained by Wealthsimple Trade or the company Wealthsimple. Remember your responsibility to not engage in illegal or unethical trading behaviours that can disrupt orderly market functions. Flooding the API/web-app with orders in a short time-frame may result in getting banned or locked out by Wealthsimple Trade.
Remember when using this website and/or api you are still under Wealthsimple Trade services and they reserve the right to terminate anyone.
Wealthsimple Trade reserves the right to monitor anyone's trading activity and block transactions if the trading activity is determined to be inappropriate
Users of wstrade-api have observed that trades in excess of 7 per hour are rejected by the WealthSimple Trade servers. You can use this observation as a baseline of how many trades you can perform on an hourly basis.
This product was built with security in mind. This software was made to run personal and local webserver and to assure no data/credentials is being sent out.
The use of this software is done at your own discretion and risk and with the agreement that you will be solely responsible for any damages. By using this software you agree that you are solely responsible for any damages incurred to you or your account, and that I will not be liable for any damages that you may suffer in connection with downloading, installing, using, modifying or distributing this software.
This content, software and/or any comments are not intended to be investment advice or any other kind of professional advice.
Parts of this disclaimer are adapted from wstrade-api
Metadata
Release files for wsimple 3.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wsimple-3.0.1.tar.gz | 16.9 kB | Without provenance | Details for wsimple-3.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wsimple-3.0.1-py3-none-any.whl | Python 3 | none | any | Details for wsimple-3.0.1-py3-none-any.whl |
Total release size: 33.7 kB
Release files / wsimple-3.0.1.tar.gz
| Download URL | wsimple-3.0.1.tar.gz |
|---|---|
| Size | 16.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7af097ac442432946923c5fa705365cd983402ab2fab4f4523c9863c21369432
|
|
BLAKE2b-256 checksum How to use checksums |
a5a8c38bc3c7a5d11ba73fe5e0b172b7760eba7f1abc0154a4267a87c4cb42ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
|
Release files / wsimple-3.0.1-py3-none-any.whl
| Download URL | wsimple-3.0.1-py3-none-any.whl |
|---|---|
| Size | 16.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8584923eeced70f8c092afff74a8a99ea6962b0d8e9a82bae01a001812b4c31f
|
|
BLAKE2b-256 checksum How to use checksums |
4deb168577efef19022066f77c7e233246ad6f25dd92f636a004829f6ef8516b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
|
Security for wsimple 3.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.