Quiver Quantitative Alternative Data
Project description
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")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
quiverquant-0.1.15.tar.gz
(2.8 kB
view details)
Built Distribution
File details
Details for the file quiverquant-0.1.15.tar.gz
.
File metadata
- Download URL: quiverquant-0.1.15.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9103544e8fbfcddc9bc6e8575200bedb9ac172285b1873cedbe4420f76dfbbd7 |
|
MD5 | 9dd7bfc0e64710088dbbe2fa6406bcb5 |
|
BLAKE2b-256 | f02181fe380bf93eea8718192442d75e89069a4de75965e67d085c475833c32b |
File details
Details for the file quiverquant-0.1.15-py3-none-any.whl
.
File metadata
- Download URL: quiverquant-0.1.15-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7fcf5439b713d932b47486f0dda6048b2b4bb6320c0bd749801c71d3d1c3fcd |
|
MD5 | 8a7adb76a130937185837dc9344a2c39 |
|
BLAKE2b-256 | d70ba192f8408f8547a170b549ef560bb365158d9300a10d5aaf9ef29057f392 |