Skip to main content

API wrapper and utils for QuantAQ, Inc.

Project description

PyPI version run and build codecov License

py-quantaq

A python wrapper for the QuantAQ RESTful API

Installation

Install directly from PyPI:

$ pip install -U py-quantaq

Or, install the library directly from GitHub:

$ pip install git+https://github.com/quant-aq/py-quantaq.git

Docs

Documentation is in progress, but can be found here.

Authentication

To use the API, you must first have an API key. You can obtain an API key from the user dashboard. Once you create a new API key, make sure to keep it secret! The easiest way to do this is to save your key as an environment variable. This process is unique to each OS, but many tutorials exist online. For Mac, do the following:

Using your editor of choice, open up your .bash_profile:

# open up your bash profile
$ nano ~/.bash_profile

Next, save the API key as an environment variable:

# add a line with your API Key
export QUANTAQ_APIKEY=<your-api-key-goes-here>

Finally, source your .bash_profile:

$ source ~/.bash_profile

Now, you shouldn't ever have to touch this again or remember the key!

Tests

To run the unittests:

$ poetry run pytest tests

or, with coverage

$ poetry run pytest tests --cov=quantaq --cov-report term-missing -s

Tests are automagically run via github actions on each build. Results and coverage are tracked via Code Coverage which can be viewed by clicking on the badge above.

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

py_quantaq-1.3.0.tar.gz (12.1 kB view hashes)

Uploaded Source

Built Distribution

py_quantaq-1.3.0-py3-none-any.whl (16.4 kB view hashes)

Uploaded Python 3

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