Code Monkey home page Code Monkey logo

stock-quote-cli's Introduction

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:

https://help.yahoo.com/kb/SLN2310.html

Install

pip install stock-quote-cli

Usage

stock <SYMBOL> <EXCHANGE>
<EXCHANGE> to be provided only if the stock is not listed on NYSE/NASDAQ

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

stock-quote-cli's People

Contributors

yvvarun avatar

Stargazers

David Buksbaum avatar

Watchers

 avatar

stock-quote-cli's Issues

Syntax Error

here is the stack trace of the error, please update the version.
screen shot 2018-08-22 at 7 00 45 pm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.