Name | pytickersymbols JSON |
Version |
1.15.0
JSON |
| download |
home_page | |
Summary | pytickersymbols provides access to google and yahoo ticker symbols |
upload_time | 2023-11-17 12:47:52 |
maintainer | |
docs_url | None |
author | SlashGordon |
requires_python | >=3.11,<4.0 |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|


[](https://coveralls.io/github/portfolioplus/pytickersymbols?branch=master)
[](https://www.codacy.com/gh/portfolioplus/pytickersymbols/dashboard?utm_source=github.com&utm_medium=referral&utm_content=portfolioplus/pytickersymbols&utm_campaign=Badge_Grade)
# pytickersymbols
pytickersymbols provides access to google and yahoo ticker symbols for all stocks of the following indices:
- [x] AEX
- [x] BEL 20
- [x] CAC 40
- [x] DAX
- [x] DOW JONES
- [x] FTSE 100
- [x] IBEX 35
- [x] MDAX
- [x] NASDAQ 100
- [x] OMX Helsinki 15
- [x] OMX Helsinki 25
- [x] OMX Stockholm 30
- [x] S&P 100
- [x] S&P 500
- [x] SDAX
- [x] SMI
- [x] TECDAX
- [x] MOEX
## install
```shell
pip3 install pytickersymbols
```
## quick start
Get all countries, indices and industries as follows:
```python
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:
```python
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:
```python
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
https://github.com/portfolioplus/pytickersymbols/issues
Raw data
{
"_id": null,
"home_page": "",
"name": "pytickersymbols",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.11,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "SlashGordon",
"author_email": "slash.gordon.dev@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/6e/16/4944501bf1f8c08bc1a852553e78945cc44be4d525c312f4faa0c9636c04/pytickersymbols-1.15.0.tar.gz",
"platform": null,
"description": "\n\n[](https://coveralls.io/github/portfolioplus/pytickersymbols?branch=master)\n[](https://www.codacy.com/gh/portfolioplus/pytickersymbols/dashboard?utm_source=github.com&utm_medium=referral&utm_content=portfolioplus/pytickersymbols&utm_campaign=Badge_Grade)\n\n# pytickersymbols\n\npytickersymbols provides access to google and yahoo ticker symbols for all stocks of the following indices:\n\n- [x] AEX\n- [x] BEL 20\n- [x] CAC 40\n- [x] DAX\n- [x] DOW JONES\n- [x] FTSE 100\n- [x] IBEX 35\n- [x] MDAX\n- [x] NASDAQ 100\n- [x] OMX Helsinki 15\n- [x] OMX Helsinki 25\n- [x] OMX Stockholm 30\n- [x] S&P 100\n- [x] S&P 500\n- [x] SDAX\n- [x] SMI\n- [x] TECDAX\n- [x] MOEX\n## install\n\n```shell\npip3 install pytickersymbols\n```\n\n## quick start\n\nGet all countries, indices and industries as follows:\n\n```python\nfrom pytickersymbols import PyTickerSymbols\n\nstock_data = PyTickerSymbols()\ncountries = stock_data.get_all_countries()\nindices = stock_data.get_all_indices()\nindustries = stock_data.get_all_industries()\n```\n\nYou can select all stocks of an index as follows:\n\n```python\nfrom pytickersymbols import PyTickerSymbols\n\nstock_data = PyTickerSymbols()\ngerman_stocks = stock_data.get_stocks_by_index('DAX')\nuk_stocks = stock_data.get_stocks_by_index('FTSE 100')\n\nprint(list(uk_stocks))\n\n```\n\nIf you are only interested in ticker symbols, then you should have a look at the following lines:\n\n```python\nfrom pytickersymbols import PyTickerSymbols\n\nstock_data = PyTickerSymbols()\n# the naming conversation is get_{index_name}_{exchange_city}_{yahoo or google}_tickers\ndax_google = stock_data.get_dax_frankfurt_google_tickers()\ndax_yahoo = stock_data.get_dax_frankfurt_yahoo_tickers()\nsp100_yahoo = stock_data.get_sp_100_nyc_yahoo_tickers()\nsp500_google = stock_data.get_sp_500_nyc_google_tickers()\ndow_yahoo = stock_data.get_dow_jones_nyc_yahoo_tickers()\n# there are too many combination. Here is a complete list of all getters\nall_ticker_getter_names = list(filter(\n lambda x: (\n x.endswith('_google_tickers') or x.endswith('_yahoo_tickers')\n ),\n dir(stock_data),\n))\nprint(all_ticker_getter_names)\n```\n\n## issue tracker\n\nhttps://github.com/portfolioplus/pytickersymbols/issues\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "pytickersymbols provides access to google and yahoo ticker symbols",
"version": "1.15.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6e8253c60fe410b1aff52f4edb87bb7791eb574f1db57526f44b1e8942e30016",
"md5": "1e11c88c32e3598e175631cb33c63a0c",
"sha256": "f3b2df2ebf0d46acbe210560fde93133b332d40f8a4e6749b08bf8b1ed588974"
},
"downloads": -1,
"filename": "pytickersymbols-1.15.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "1e11c88c32e3598e175631cb33c63a0c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11,<4.0",
"size": 79702,
"upload_time": "2023-11-17T12:47:49",
"upload_time_iso_8601": "2023-11-17T12:47:49.611752Z",
"url": "https://files.pythonhosted.org/packages/6e/82/53c60fe410b1aff52f4edb87bb7791eb574f1db57526f44b1e8942e30016/pytickersymbols-1.15.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6e164944501bf1f8c08bc1a852553e78945cc44be4d525c312f4faa0c9636c04",
"md5": "8cb67a1e010d20218087b0de3d0c3c99",
"sha256": "8c34c90ebfb291e4a4f7469f4e70e3fbf4f515f0f76fd20ea4190b43ebad78cb"
},
"downloads": -1,
"filename": "pytickersymbols-1.15.0.tar.gz",
"has_sig": false,
"md5_digest": "8cb67a1e010d20218087b0de3d0c3c99",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11,<4.0",
"size": 77508,
"upload_time": "2023-11-17T12:47:52",
"upload_time_iso_8601": "2023-11-17T12:47:52.127078Z",
"url": "https://files.pythonhosted.org/packages/6e/16/4944501bf1f8c08bc1a852553e78945cc44be4d525c312f4faa0c9636c04/pytickersymbols-1.15.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-17 12:47:52",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "pytickersymbols"
}