Giter VIP home page Giter VIP logo

finlib's Introduction

finlib

With this library you can: gather fundamental data, historical price data, earnings data, as well as compute financial ratios. This library is built upon yahoofinancials by user JECSand, and adds significant functionality as well as hopefully simplicity.

DISCLAIMER

Use at your own risk. The author will not, in any way whatsoever, be responsible for your use of the information produced or contained with this library. This library is not intended to be a source of advice with respect to investment. Accordingly, any decision made in connection with funds, instruments, or transactions and the use of the library will not be the responsibility of the author. Additionally, the author cannot guarantee the validity of any figures, quantitative, or qualitative measures produced by this library.

Dependencies

yahoofinancials + yf dependencies (pytz and bs4)

https://github.com/JECSand/yahoofinancials

pandas

https://pandas.pydata.org/

requests

https://pypi.org/project/requests/2.7.0/

Module Methods

Getting data

  • get_balance_sheet()
  • get_income_statement()
  • get_cash_flow_statement()
  • get_key_statistics()
  • get_historical_eps()
  • get_price_data()

Getting current figures

  • share_price()
  • market_value()
  • earnings_per_share()
  • pe_ratio()
  • enterprise_value()
  • beta()
  • cost_of_equity()
  • short_ratio()

Getting figures that accept year arguments

  • revenue(year)
  • total_expenses(year)
  • operating_expenses(year)
  • liquid_assets(year)
  • total_debt(year)
  • tax(year)
  • interest(year)
  • depreciation(year)
  • cost_of_revenue(year)
  • total_receivables(year)
  • total_assets(year)
  • total_capital(year)
  • total_equity(year)
  • capital_expenditues(year)
  • net_income(year)
  • gross_profit(year)
  • ebit(year)
  • ebitda(year)
  • quick_ratio(year)
  • income_continuing_operations_margin(year)
  • net_margin(year)
  • return_on_assets(year)
  • return_on_capital(year)
  • return_on_equity(year)
  • cash_flow_operations(year)
  • free_cash_flow(year)
  • gross_profit_margin(year)
  • operating_profit_margin(year)
  • net_profit_margin(year)

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.