Skip to main content

A library for loading stock data from Seeking Alpha API

Project description

Stock Data Loader

A Python library for loading stock data from the Seeking Alpha API.

Installation

You can install the Stock Data Loader using pip:

pip install stock-data-loader

How to Use StockDataLoader

[Previous usage instructions remain the same]

Output Columns

The load_symbol_data method returns a pandas DataFrame with the following columns:

  • id: Unique identifier for the stock
  • type: Type of the data (usually "ticker")
  • symbol: Stock symbol
  • name: Full name of the company
  • followersCount: Number of followers on Seeking Alpha
  • exchange: Stock exchange where the stock is listed
  • analysis: Number of analysis articles
  • related_analysis: Number of related analysis articles
  • transcripts: Number of earnings call transcripts
  • earning_slides: Number of earning slides available
  • news: Number of news articles
  • partnerNews: Number of partner news articles
  • pressReleases: Number of press releases
  • bulls_say: Number of bullish opinions
  • bears_say: Number of bearish opinions
  • market_open: Market open status (may be empty)
  • market_open_time: Market open time (may be empty)
  • analysis_count: Another count of analysis articles (may differ from analysis)
  • news_count: Another count of news articles (may differ from news)
  • transcripts_count: Another count of transcripts (may differ from transcripts)

Note: Some columns may be empty or have different values than expected due to variations in the API response.

Example Output

Here's a sample of what the output might look like:

print(result_df.head())
      id    type symbol  name  followersCount exchange  analysis  related_analysis  transcripts  earning_slides   news  partnerNews  pressReleases  bulls_say  bears_say
0    146  ticker   AAPL  AAPL        2713202   NASDAQ    10037            27710            81                0  10753        13829            242          3          3
1  16123  ticker   TSLA  TSLA        1151910   NASDAQ     5929             8495            85               20   5737        16194            322          3          3
2 148893  ticker  GOOGL  GOOGL        459787   NASDAQ     1974            10468            33                1   4592         4273             97          3          1

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

stock_data_loader-0.1.2.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

stock_data_loader-0.1.2-py3-none-any.whl (5.3 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