Skip to main content

A collection of stock analysis functions and api wrappers

Project description

lukhed_stocks

A collection of stocks analysis utility functions and API wrappers built with personal use in mind. Basic functionality is available now, and this repo is in development. Please note that you are responsible for how you access and use the data. See the responsible data usage section for more info.

Installation

pip install lukhed-stocks

TOC

Available Functions

Available Wrappers

Ticker Functions

Tickers Import

from lukhed_stocks import tickers

Get Tickers By Exchange

Provides a list of stock data for the given exchange. Each function can optionally be called with 'tickers_only' parameter to return a list of strings only. These functions utilize CAT data by default and do not require an API key.

nasdaq = tickers.get_nasdaq_stocks()
nyse = tickers.get_nyse_stocks(tickers_only=True)
otc = tickers.get_otc_stocks()
iex = tickers.get_iex_stocks(tickers_only=True)
Function Default Source
tickers.get_nasdaq_stocks CAT
tickers.get_nyse_stocks CAT
tickers.get_otc_stocks CAT
tickers.get_iex_stocks CAT

Get Tickers By Index

Provides a list of stock data for the given index. Each function can optionally be called with 'tickers_only' parameter to return a list of strings only. The default source for each function does not require an API key.

sp500 = tickers.get_sp500_stocks()
djia = tickers.get_dow_stocks(tickers_only=True)
otc = tickers.get_russell2000_stocks()
Function Default Source
tickers.get_sp500_stocks Wikipedia
tickers.get_dow_stocks Wikipedia
tickers.get_russell2000_stocks TradingView

Get Company Logo by Ticker

logo_url = tickers.get_company_logo('ALLT')
logo_url_with_download = tickers.get_company_logo('WAY', output_file='way.png')
Function Default Source
tickers.get_company_log Synth

CAT Wrapper

Documentation coming soon.

Wikipedia Stocks

Documentation coming soon.

Responsible Data Usage

  • Each method or wrapper in the documentation lists the source that is utilized by default
  • Below is information related to data retrieval and usage for each source

CAT Data Usage

CAT Data is pulled from this page. They provide a legal notice here.

Wikipedia Data Usage

Wikipedia content is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License. For more details on the terms of use, please refer to the Wikimedia Foundation's Terms of Use.

Synth

Full Synth terms are found here. This library provides access to synth:

  • Images, free to use if attribution is provided (please confirm with synthfinance.com or the terms above)

Tradingview Data Usage

I am currently trying to remove trading view as a source, as their policy is restrictive and confusing. Please read trading view policies here

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

lukhed_stocks-0.0.3.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lukhed_stocks-0.0.3-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

Details for the file lukhed_stocks-0.0.3.tar.gz.

File metadata

  • Download URL: lukhed_stocks-0.0.3.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for lukhed_stocks-0.0.3.tar.gz
Algorithm Hash digest
SHA256 01e7558bf425f7ef4b92d1441a230a2f853f61a41986272ec4fd390e5f4cfb80
MD5 b7889d26ee0572821b2c4eadf73875d5
BLAKE2b-256 348d4b75b9ec9d3dafba88083ad28fcef92550337cc9b48ac39e987704a0a08a

See more details on using hashes here.

File details

Details for the file lukhed_stocks-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: lukhed_stocks-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 20.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for lukhed_stocks-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b89e1362cc1af19403819fb153839846ce2a494ccf654646ec8df970b1521b3e
MD5 814cfccc94925b674b4952a0636ac1ba
BLAKE2b-256 4396785ad17156a52df15181752dc1543fc72cf6a029a7444b2f18527874835b

See more details on using hashes here.

Supported by

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