Skip to main content

show stock info

Project description

# stock-quote-cli

> 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:

## Install
pip install stock-quote-cli
## Usage
<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:


You can get the list of exchanges from the following URL:

## 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%"

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for stock-quote-cli, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size stock_quote_cli-1.0.0-py2-none-any.whl (4.9 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size stock-quote-cli-1.0.0.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page