Skip to main content

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


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.6.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

quiverquant-0.1.6-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file quiverquant-0.1.6.tar.gz.

File metadata

  • Download URL: quiverquant-0.1.6.tar.gz
  • Upload date:
  • Size: 2.7 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

Hashes for quiverquant-0.1.6.tar.gz
Algorithm Hash digest
SHA256 4b26fd498d902ec7e42fbd088dfa5451af8b666a27a386f867286ec929dd0bf3
MD5 d83be9492663883a13d23754f1531630
BLAKE2b-256 2320dfdbc64e970b18212ba1e46a95aa43eb4ba92ae14d097b407916d41d855b

See more details on using hashes here.

File details

Details for the file quiverquant-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: quiverquant-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 3.6 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

Hashes for quiverquant-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2efeb5a8e50fb8593c97253904958bfe2a08a7144a021213265b6540e77175b7
MD5 49606f4d9d1384727c61677d86f14cca
BLAKE2b-256 4d03e8e5cafecd804d90c923a47165a2445039eaa38f58c6e3f7ae05714249b2

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 Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page