Quiver Quantitative Alternative Data
This package allows you to access several alternative data sources which are updated daily and mapped to tickers. These include:
- Trading by US congressmen
- Corporate Lobbying
- Government Contracts
- Companies' Wikipedia page views
- Discussions on Reddit's /r/WallStreetBets
This data can be used for backtesting and implementing trading strategies.
Receiving API Token
You can sign up for a Quiver API token here.
The cost is $10/month, please e-mail me if that is an issue and I may be able to help cover.
Getting Started
Prerequisites
- Python version 3 installed locally
- Pip installed locally
Installation
The package can easily be installed in your terminal by entering
pip install quiverquant
Usage
#Import the package
import quiverquant
#Connect to the API using your token
#Replace <TOKEN> with your token
quiver = quiverquant.quiver("<TOKEN>")
#Get recent trades by members of U.S. Congress
dfCongress = quiver.congress_trading()
#Get trades of a Tesla by members of congress
dfCongress_Tesla = quiver.congress_trading("TSLA")
#Get trades made by U.S. Senator Richard Burr
dfCongress_Burr = quiver.congress_trading("Richard Burr", politician=True)
#Get data on WallStreetBets discussion
dfWSB = quiver.wallstreetbets()
#Get data on WallStreetBets discussion of Virgin Galactic
dfWSB_Virgin = quiver.wallstreetbets("SPCE")
#Get recent corporate lobbying
dfLobbying = quiver.lobbying()
#Get corporate lobbying by Apple
dfLobbying_Apple = quiver.lobbying("AAPL")
#Get data on government contracts
dfContracts = quiver.gov_contracts()
#Get data on government contracts to Lockheed Martin
dfContracts_Lockheed = quiver.gov_contracts("LMT")
#Get data on Wikipedia page views
dfWiki = quiver.wikipedia()
#Get data on Wikipedia page views of Microsoft
dfWiki_Microsoft = quiver.wikipedia("MSFT")
Metadata
Release files for quiverquant 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| quiverquant-0.1.8.tar.gz | 2.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| quiverquant-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.4 kB
Release files / quiverquant-0.1.8.tar.gz
| Download URL | quiverquant-0.1.8.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c8461cb3fe0e829fdc1e468753b28732b6646a53b790e437a05f6ef58a15cb24
|
|
BLAKE2b-256 checksum How to use checksums |
7ff2d4f0bd5f90d47910d9a7674216aa98026b2e66e6b43b5519481e8ad3cab9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
|
Release files / quiverquant-0.1.8-py3-none-any.whl
| Download URL | quiverquant-0.1.8-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
75e038ce12d9653cfc5b39663467f2232e2af0105b9284eb8746e4d69843d007
|
|
BLAKE2b-256 checksum How to use checksums |
2159bbdb5f879a5410401bbb2d8da305d0253e152444c75dc53d7cbb22f0cb43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
|