Python wrapper for Questrade API
Project description
qt-api
Python wrapper for Questrade API
Installation
Install this library using pip
:
pip install qt-api
Usage
Use access code from Questrade API. Also optionally you can use acct_flag to create account-specific credentials file.
from qt_api.qt import Questrade
qt = Questrade(access_code="xxx", acct_flag="zz")
Optionally, you can refresh access token like so:
qt.refresh_access_token()
Then you can use any of the provided methods. For example to get a list of all accounts:
accounts = qt.get_account()
... or to get a quote for a list of symbols:
quotes = qt.get_symbol_quote(symbols=["AAPL", "MSFT"])
Development
To contribute to this library, first checkout the code. Then create a new virtual environment:
cd qt-api
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
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 qt_api-0.2.5.tar.gz
.
File metadata
- Download URL: qt_api-0.2.5.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b8b78544c46f3504b6d9cbde8ff80c37348afe54035cb953c9ebeaf219dfef5 |
|
MD5 | 4e49d7a4c42c8780bc10beb5a4f5f949 |
|
BLAKE2b-256 | 60be8a76a05ad7214c0025eb0c2efbed7ad58d55541ae45320338f3b13a59403 |
File details
Details for the file qt_api-0.2.5-py3-none-any.whl
.
File metadata
- Download URL: qt_api-0.2.5-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8136bf9f9bd13d23bc2852e9bd8e7c9afd3662fa54e5ae6c4d90e3dab2ebb3e |
|
MD5 | 315711a69acc906dc55dffe9a18eec82 |
|
BLAKE2b-256 | f60fea5a39f60d722ed841e010081ca449a2fe6f98fc193c1fd729d658f6b81e |