Skip to main content

Official Stocksera API

Project description

Stocksera API

This is the official API for Stocksera. Visit stocksera at https://stocksera.pythonanywhere.com.

Installation

The package can easily be installed in your terminal by entering

pip install stocksera

Usage

Import the package

import stocksera

Get data from Reddit

reddit = stocksera.Reddit()

# Get total number of mentions on wallstreetbets
df = reddit.wsb_mentions(days=1)

# Get number of mentions of a stock overtime on wallstreetbets
df = reddit.wsb_mentions(ticker="AAPL")

# Get total number of puts/calls mentions on wallstreetbets
df = reddit.wsb_options(days=1)

# Get number of puts/calls mentions of a stock overtime on wallstreetbets
df = reddit.wsb_options(ticker="AAPL")

# Get subreddit count on Reddit
df = reddit.subreddit(ticker="GME")

Get stocks related data

stock = stocksera.Stock()

# Get SEC fillings of a stock
df = stock.sec_fillings(ticker="AAPL")

# Get news and sentiment of a stock
df = stock.news_sentiment(ticker="AAPL")

# Get recent insider trading of all tickers
df = stock.insider_trading(limit=500)

# Get insider trading of a stock
df = stock.insider_trading(ticker="AAPL")

# Get recent insider trading analysis
df = stock.latest_insider_trading_summary()

# Get stocks with recent consistenly high FTD
df = stock.ftd()

# Get FTD of a stock
df = stock.ftd(ticker="AAPL")

# Get earnings calendar of stocks
df = stock.earnings_calendar()

Get government trades data

government = stocksera.Government()

# Get all senate trades
df = government.senate()

# Get senate trades of a specific person
df = government.senate(name="Thomas H Tuberville")

# Get senate trades of a specific ticker
df = government.senate(ticker="AAPL")

# Get all house trades
df = government.house()

# Get house trades of a specific person
df = government.house(name="Hon. Nancy Pelosi")

# Get house trades of a specific ticker
df = government.house(ticker="AAPL")

Get economic data

government = stocksera.Economy()

# Get reverse repo
df = government.reverse_repo()

# Get daily treasury
df = government.daily_treasury()

# Get inflation
df = government.inflation()

# Get initial jobless claims
df = government.jobless_claims()

# Get retail sales
df = government.retail_sales()

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

stocksera-0.1.14.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

stocksera-0.1.14-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file stocksera-0.1.14.tar.gz.

File metadata

  • Download URL: stocksera-0.1.14.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for stocksera-0.1.14.tar.gz
Algorithm Hash digest
SHA256 de854572e0a4f96bdc57466183855d3d312282ef703a6b8e2d87f7751fcaea78
MD5 def0da416575cca1e7fbcdc8a5411120
BLAKE2b-256 546429ba115dac4028b57d4fa65157488bbcc4fcd238da3b26cc56ea198ef7fd

See more details on using hashes here.

File details

Details for the file stocksera-0.1.14-py3-none-any.whl.

File metadata

  • Download URL: stocksera-0.1.14-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for stocksera-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 a4200f7cb46a52bd3dc456251f48f99017dcc9d936188f77a040385f8d32abc6
MD5 ce2432af1fcb7ded543363527f31fe9b
BLAKE2b-256 7eff4fe36bac87b864d835dc84a9e546a9e8214ff435e4de27a4767ef1a5224a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page