> Real time stock data retrieved from yahoo finance.
## Info
Supports all the Exchanges listed on yahoo finance.
Yahoo finance provides stock price and details for stocks using a particular Id and extension. For instance, Hdfc Bank Ltd. listed in NSE(National Stock Exchange India) has symbol as HDFCBANK and extension as NS. Similarly, in BSE the symbol is same but the extension is BO. Please check the Usage section for more detailed usage.
You can get the list of exchanges from the following URL:
```
https://help.yahoo.com/kb/SLN2311.html
```
## Install
```
pip install stock-quote-cli
```
## Usage
```
stock <SYMBOL> <EXCHANGE>
<EXCHANGE> to be provided only if the stock is not listed on NYSE
```
To get stock quote of Google listed in NASDAQ, use the following code snippet:
```
stock GOOGL
```
To get stock quote of Biocon listed in Bombay Stock Exchange, use the following code snippet:
```
stock BIOCON BO
```
You can get the list of exchanges from the following URL:
```
https://help.yahoo.com/kb/SLN2310.html
```
## Data Format
The data returned when the promise is resolved will have the following format:
{
"symbol": "GOOGL",
"currency": "USD",
"currentPrice": "1,217.41",
"totalRevenue": "123.9B",
"ebitda": "38.21B",
"cashPerShare": "146.99",
"currentRatio": "4.15",
"quickRatio": "4.00",
"debtToEquity": "2.46",
"revenuePerShare": "178.41",
"grossProfits": "65.27B",
"grossMargins": "57.41%",
"operatingMargins": "24.48%",
"profitMargins": "13.16%",
"ebitdaMargins": "30.84%"
}
Metadata
Release files for stock-quote-cli 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stock-quote-cli-1.0.0.tar.gz | 2.7 kB | Without provenance | Details for stock-quote-cli-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stock_quote_cli-1.0.0-py2-none-any.whl | Python 2 | none | any | Details for stock_quote_cli-1.0.0-py2-none-any.whl |
Total release size: 7.6 kB
Release files / stock-quote-cli-1.0.0.tar.gz
| Download URL | stock-quote-cli-1.0.0.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c4dedd976670bd30cc2a0569f10ba7f51b70967ae2d64677252955051fd5cd5
|
|
BLAKE2b-256 checksum How to use checksums |
38edd10fd183fb8ee0d3e45116177abbd8f57f0f08089046fb6b4507f0225845
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/38.4.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.14
|
Release files / stock_quote_cli-1.0.0-py2-none-any.whl
| Download URL | stock_quote_cli-1.0.0-py2-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
b4734a624e8b2249b8ca14bef05d5516c897456a598b2750ec5d07e9e8e82bc5
|
|
BLAKE2b-256 checksum How to use checksums |
47e2eefd77356a2ddb5b2c84ef6694e1030ec16bac9da435423eac881d0e933f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/38.4.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.14
|
Security for stock-quote-cli 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.