Skip to main content

qt-api

PyPI Tests Changelog License

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

Metadata

Release files for qt-api 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qt-api 0.2.5
File Size Uploaded
qt_api-0.2.5.tar.gz 11.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qt-api 0.2.5
File Interpreter ABI Platform
qt_api-0.2.5-py3-none-any.whl Python 3 none any Details

Total release size: 20.8 kB

Release files / qt_api-0.2.5.tar.gz

Download URL qt_api-0.2.5.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6b8b78544c46f3504b6d9cbde8ff80c37348afe54035cb953c9ebeaf219dfef5
BLAKE2b-256 checksum
How to use checksums
60be8a76a05ad7214c0025eb0c2efbed7ad58d55541ae45320338f3b13a59403
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / qt_api-0.2.5-py3-none-any.whl

Download URL qt_api-0.2.5-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e8136bf9f9bd13d23bc2852e9bd8e7c9afd3662fa54e5ae6c4d90e3dab2ebb3e
BLAKE2b-256 checksum
How to use checksums
f60fea5a39f60d722ed841e010081ca449a2fe6f98fc193c1fd729d658f6b81e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Release history Release notifications | RSS feed

This release

0.2.5 This release

2 release files

0.2.4

2 release files

0.2.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page