Skip to main content

Python wrapper for Questrade API

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qt_api-0.2.4.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

qt_api-0.2.4-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file qt_api-0.2.4.tar.gz.

File metadata

  • Download URL: qt_api-0.2.4.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

Hashes for qt_api-0.2.4.tar.gz
Algorithm Hash digest
SHA256 63a7549a729c739c321cb2544aa4a9108cd63b8c84c0e40b76b1fe6e207ab3b1
MD5 33c80ce4f70d90c1217bc327e1a4965a
BLAKE2b-256 36d9ca5fe525877d513af5a1bd6bef2340c185bad8a12111aca041edbaf77f10

See more details on using hashes here.

File details

Details for the file qt_api-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: qt_api-0.2.4-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

Hashes for qt_api-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0b498b64f10638335309ec3e484a53dc80943d6563395d03fca13e987827eb2c
MD5 57b250104eab5c76fb59e3eebeab67b5
BLAKE2b-256 e99a58f5b4c785001c245dc6aedaf84961e74d7bb5ce976a024a4459627dd13e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page