pytickersymbols provides access to google and yahoo ticker symbols
Project description
pytickersymbols
pytickersymbols provides access to google and yahoo ticker symbols for all stocks of the following indices:
- AEX
- BEL 20
- CAC 40
- DAX
- DOW JONES
- FTSE 100
- IBEX 35
- MDAX
- NASDAQ 100
- OMX Helsinki 15
- OMX Helsinki 25
- OMX Stockholm 30
- S&P 100
- S&P 500
- SDAX
- SMI
- TECDAX
- MOEX
install
pip3 install pytickersymbols
quick start
Get all countries, indices and industries as follows:
from pytickersymbols import PyTickerSymbols
stock_data = PyTickerSymbols()
countries = stock_data.get_all_countries()
indices = stock_data.get_all_indices()
industries = stock_data.get_all_industries()
You can select all stocks of an index as follows:
from pytickersymbols import PyTickerSymbols
stock_data = PyTickerSymbols()
german_stocks = stock_data.get_stocks_by_index('DAX')
uk_stocks = stock_data.get_stocks_by_index('FTSE 100')
print(list(uk_stocks))
If you are only interested in ticker symbols, then you should have a look at the following lines:
from pytickersymbols import PyTickerSymbols
stock_data = PyTickerSymbols()
# the naming conversation is get_{index_name}_{exchange_city}_{yahoo or google}_tickers
dax_google = stock_data.get_dax_frankfurt_google_tickers()
dax_yahoo = stock_data.get_dax_frankfurt_yahoo_tickers()
sp100_yahoo = stock_data.get_sp_100_nyc_yahoo_tickers()
sp500_google = stock_data.get_sp_500_nyc_google_tickers()
dow_yahoo = stock_data.get_dow_jones_nyc_yahoo_tickers()
# there are too many combination. Here is a complete list of all getters
all_ticker_getter_names = list(filter(
lambda x: (
x.endswith('_google_tickers') or x.endswith('_yahoo_tickers')
),
dir(stock_data),
))
print(all_ticker_getter_names)
issue tracker
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
pytickersymbols-1.15.0.tar.gz
(77.5 kB
view details)
Built Distribution
File details
Details for the file pytickersymbols-1.15.0.tar.gz
.
File metadata
- Download URL: pytickersymbols-1.15.0.tar.gz
- Upload date:
- Size: 77.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c34c90ebfb291e4a4f7469f4e70e3fbf4f515f0f76fd20ea4190b43ebad78cb |
|
MD5 | 8cb67a1e010d20218087b0de3d0c3c99 |
|
BLAKE2b-256 | 6e164944501bf1f8c08bc1a852553e78945cc44be4d525c312f4faa0c9636c04 |
File details
Details for the file pytickersymbols-1.15.0-py3-none-any.whl
.
File metadata
- Download URL: pytickersymbols-1.15.0-py3-none-any.whl
- Upload date:
- Size: 79.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3b2df2ebf0d46acbe210560fde93133b332d40f8a4e6749b08bf8b1ed588974 |
|
MD5 | 1e11c88c32e3598e175631cb33c63a0c |
|
BLAKE2b-256 | 6e8253c60fe410b1aff52f4edb87bb7791eb574f1db57526f44b1e8942e30016 |