Skip to content

Commit

Permalink
Merge pull request #6 from lit26/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
lit26 authored Jan 12, 2021
2 parents 8894bfd + 91bc568 commit 3447ce2
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
author = 'Tianning Li'

# The full version, including alpha/beta/rc tags
release = '0.7.4'
release = '0.7.5'


# -- General configuration ---------------------------------------------------
Expand Down
14 changes: 14 additions & 0 deletions finvizfinance/quote.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,20 @@
"""
QUOTE_URL = 'https://finviz.com/quote.ashx?t={ticker}'

class Quote:
"""quote
Getting current price of the ticker
"""
def getCurrent(self, ticker):
"""Getting current price of the ticker.
Returns:
price(float): price of the ticker
"""
soup = webScrap("https://finviz.com/request_quote.ashx?t={}".format(ticker))
return soup.text

class finvizfinance:
"""finvizfinance
Getting information from the individual ticker.
Expand Down
1 change: 1 addition & 0 deletions release.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
| Date | Version | Comment |
| ------------- | ------------- | ------------- |
| 2021/01/11 | 0.7.5 | Add current price function |
| 2021/01/04 | 0.7.4 | Update progress bar |
| 2020/12/29 | 0.7.3 | Adding stock trading signals in quote, fixing bug in stock fundamental |
| 2020/11/24 | 0.7.2 | Adding optional download for charts |
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

HERE = pathlib.Path(__file__).parent

VERSION = '0.7.4'
VERSION = '0.7.5'
PACKAGE_NAME = 'finvizfinance'
AUTHOR = 'Tianning Li'
AUTHOR_EMAIL = '[email protected]'
Expand Down

0 comments on commit 3447ce2

Please sign in to comment.