Skip to content

LVG77/qt-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Python wrapper for Questrade API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages