A CLI tool for retrieving stock market information.
Project description
ShellMarkets
ShellMarkets is a command-line tool (CLI) for retrieving stock market information. It uses yfinance module to fetch data about specific stocks and provides various options to display detailed information about companies.
Installation
You can install ShellMarkets directly from PyPI using pip
:
pip install shellmarkets
Usage
After installation, you can use the shmkt command to interact with the tool. Below are the available options and usage examples.
Show Version
To display the version of ShellMarkets:
shmkt --version
Get Basic Information
To get basic information about one or more stocks:
shmkt TICKER1 TICKER2 ...
Extended Information
To get extended information about a specific stock:
shmkt TICKER -e
Company Information
To get detailed information about the company:
shmkt TICKER -i
Company News
To get recent news about the company:
shmkt TICKER --n
Show Portfolio
To display the stocks in a portfolio file:
shmkt -p /path/to/portfolio/file
Create a New Portfolio
To create a new portfolio file with an optional list of stocks:
shmkt -c /path/to/new/portfolio/file TICKER1 TICKER2 ...
Add a Stock to the Portfolio
To add a stock to an existing portfolio file:
shmkt -a TICKER /path/to/portfolio/file
Remove a Stock from the Portfolio
To remove a stock from an existing portfolio file:
shmkt -d TICKER /path/to/portfolio/file
Help
shmkt --help
Contributions
Contributions are welcome. Please open an issue or submit a pull request on GitHub.
License
This project is licensed under the GNU General Public License (GPL). See the LICENSE file for details.
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
File details
Details for the file shellmarkets-0.0.3.tar.gz
.
File metadata
- Download URL: shellmarkets-0.0.3.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cb5efcd4b5cb0f97ab64198f2a09f5c175a1a21f7369288dde5ec7106009754 |
|
MD5 | 83f2c2e694fe5dd23b69e52bbbc72f43 |
|
BLAKE2b-256 | 8f203ef46e53e4a62b0c602b707e14406443e3d6383ad547d5e9cc5628d0854b |
File details
Details for the file shellmarkets-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: shellmarkets-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c9cc602f5819405da1fdc301b840036ae45b968d15e4019344d384d6c571be9 |
|
MD5 | 5a2eec3543e4a760643ba268d923e05f |
|
BLAKE2b-256 | 538f2dfad0d5f6a91ccc69c210fd8d5942108a9e3f7b146c9420ebbadb717075 |