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
- Get Exchange and Index Data
- CAT Wrapper
- Wikipediia Stocks
- Responsible Data Usage
Available Functions
- Get Exchange & Index Data - Utilizing various sources (free or with API key) to provide ticker data for exchanges.
Available Wrappers
- CAT Wrapper - Conolidated Audit Trail (CAT) for exchange data provided by CAT Webpage
- Wikipedia Stocks - For obtaining various stock data from Wikipedia (various pages)
Get Exchange and Index Data
Tickers Import
from lukhed_stocks import tickers
Get Exchange Data Functions
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 Index Data Functions
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 |
CAT Wrapper
Documentation coming soon.
Wikipediia 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.
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: 'https://www.tradingview.com/policies/
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lukhed_stocks-0.0.1.tar.gz.
File metadata
- Download URL: lukhed_stocks-0.0.1.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
182382ab5c9c8160910a8dcde1ab01c500aa69c84caf84e864369336527de67a
|
|
| MD5 |
8131827ac246651e67fc358acc06ef0e
|
|
| BLAKE2b-256 |
4da62e16d093366594eab0b54e99ad796917589d8256d7ac79df626bd07ef2ed
|
File details
Details for the file lukhed_stocks-0.0.1-py3-none-any.whl.
File metadata
- Download URL: lukhed_stocks-0.0.1-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e82ca44fbe3cebbbc66a395aa11337347ae714b734f6afc7ff53b8d4f6a0dd4
|
|
| MD5 |
89f7ef1f0068afa4e39d59394f96fb7c
|
|
| BLAKE2b-256 |
03af8e580dd8cb1c12c9ee9af8b0814641cc0521a7b130787398878e94807af6
|