An open-source entry in TopGit's GitHub warehouse: AI4Finance-Foundation/FinNLP, 1.5k stars, Jupyter Notebook. Democratizing Internet-scale financial data.
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
FinNLP provides a playground for all people interested in LLMs and NLP in Finance. Here we provide full pipelines for LLM training and finetuning in the field of finance.
Ⅰ. How to Use
1. News
US
# Finnhub (Yahoo Finance, Reuters, SeekingAlpha, CNBC...)
from finnlp.data_sources.news.finnhub_date_range import Finnhub_Date_Range
start_date = "2023-01-01"
end_date = "2023-01-03"
config = {
"use_proxy": "us_free", # use proxies to prvent ip blocking
"max_retry": 5,
"proxy_pages": 5,
"token": "YOUR_FINNHUB_TOKEN" # Available at https://finnhub.io/dashboard
}
news_downloader = Finnhub_Date_Range(config) # init
news_downloader.download_date_range_stock(start_date,end_date) # Download headers
news_downloader.gather_content() # Download contents
df = news_downloader.dataframe
selected_columns = ["headline", "content"]
df[selected_columns].head(10)
--------------------
# headline content
# 0 My 26-Stock $349k Portfolio Gets A Nice Petrob... Home\nInvesting Strategy\nPortfolio Strategy\n...
# 1 Apple’s Market Cap Slides Below $2 Trillion fo... Error
# 2 US STOCKS-Wall St starts the year with a dip; ... (For a Reuters live blog on U.S., UK and Europ...
# 3 Buy 4 January Dogs Of The Dow, Watch 4 More Home\nDividends\nDividend Quick Picks\nBuy 4 J...
# 4 Apple's stock market value falls below $2 tril... Jan 3 (Reuters) - Apple Inc's \n(AAPL.O)\n sto...
# 5 CORRECTED-UPDATE 1-Apple's stock market value ... Jan 3 (Reuters) - Apple Inc's \n(AAPL.O)\n sto...
# 6 Apple Stock Falls Amid Report Of Product Order... Apple stock got off to a slow start in 2023 as...
# 7 US STOCKS-Wall St starts the year with a dip; ... Summary\nCompanies\nTesla shares plunge on Q4 ...
# 8 More than $1 trillion wiped off value of Apple... apple store\nMore than $1 trillion has been wi...
# 9 McLean's Iridium inks agreement to put its sat... The company hasn't named its partner, but it's...
# Stocktwits
from finnlp.data_sources.social_media.stocktwits_streaming import Stocktwits_Streaming
pages = 3
stock = "AAPL"
config = {
"use_proxy": "us_free",
"max_retry": 5,
"proxy_pages": 2,
}
downloader = Stocktwits_Streaming(config)
downloader.download_date_range_stock(stock, pages)
selected_columns = ["created_at", "body"]
downloader.dataframe[selected_columns].head(10)
--------------------
# created_at body
# 0 2023-04-07T15:24:22Z NANCY PELOSI JUST BOUGHT 10,000 SHARES OF APPL...
# 1 2023-04-07T15:17:43Z $AAPL $SPY \n \nhttps://amp.scmp.com/news/chi...
# 2 2023-04-07T15:17:25Z $AAPL $GOOG $AMZN I took a Trump today. \n\nH...
# 3 2023-04-07T15:16:54Z $SPY $AAPL will take this baby down, time for ...
# 4 2023-04-07T15:11:37Z $SPY $3T it ALREADY DID - look at the pre-COV...
# 5 2023-04-07T15:10:29Z $AAPL $QQQ $STUDY We are on to the next one! A...
# 6 2023-04-07T15:06:00Z $AAPL was analyzed by 48 analysts. The buy con...
# 7 2023-04-07T14:54:29Z $AAPL both retiring. \n \nCraig....
# 8 2023-04-07T14:40:06Z $SPY $QQQ $TSLA $AAPL SPY 500 HAS STARTED🚀😍 BI...
# 9 2023-04-07T14:38:57Z Nancy 🩵 (Tim) $AAPL
# Reddit Wallstreetbets
from finnlp.data_sources.social_media.reddit_streaming import Reddit_Streaming
pages = 3
config = {
"use_proxy": "us_free",
"max_retry": 5,
"proxy_pages": 2,
}
downloader = Reddit_Streaming(config)
downloader.download_streaming_all(pages)
selected_columns = ["created", "title"]
downloader.dataframe[selected_columns].head(10)
--------------------
# created title
# 0 2023-04-07 15:39:34 Y’all making me feel like spooderman
# 1 2022-12-21 04:09:42 Do you track your investments in a spreadsheet...
# 2 2022-12-21 04:09:42 Do you track your investments in a spreadsheet...
# 3 2023-04-07 15:29:23 Can a Blackberry holder get some help 🥺
# 4 2023-04-07 14:49:55 The week of CPI and FOMC Minutes… 4-6-23 SPY/ ...
# 5 2023-04-07 14:19:22 Well let’s hope your job likes you, thanks Jerome
# 6 2023-04-07 14:06:32 Does anyone else feel an overwhelming sense of...
# 7 2023-04-07 13:47:59 Watermarked Jesus explains the market being cl...
# 8 2023-04-07 13:26:23 Jobs report shows 236,000 gain in March. Hot l...
# 9 2023-04-07 13:07:15 The recession is over! Let's buy more stocks!
# SEC
from finnlp.data_sources.company_announcement.sec import SEC_Announcement
start_date = "2020-01-01"
end_date = "2020-06-01"
stock = "AAPL"
config = {
"use_proxy": "us_free",
"max_retry": 5,
"proxy_pages": 3,
}
downloader = SEC_Announcement(config)
downloader.download_date_range_stock(start_date, end_date, stock = stock)
selected_columns = ["file_date", "display_names", "content"]
downloader.dataframe[selected_columns].head(10)
--------------------
# file_date display_names content
# 0 2020-05-12 [KONDO CHRIS (CIK 0001631982), Apple Inc. (A... SEC Form 4 \n FORM 4UNITED STATES SECURITIES...
# 1 2020-04-30 [JUNG ANDREA (CIK 0001051401), Apple Inc. (A... SEC Form 4 \n FORM 4UNITED STATES SECURITIES...
# 2 2020-04-17 [O'BRIEN DEIRDRE (CIK 0001767094), Apple Inc.... SEC Form 4 \n FORM 4UNITED STATES SECURITIES...
# 3 2020-04-17 [KONDO CHRIS (CIK 0001631982), Apple Inc. (A... SEC Form 4 \n FORM 4UNITED STATES SECURITIES...
# 4 2020-04-09 [Maestri Luca (CIK 0001513362), Apple Inc. (... SEC Form 4 \n FORM 4UNITED STATES SECURITIES...
# 5 2020-04-03 [WILLIAMS JEFFREY E (CIK 0001496686), Apple I... SEC Form 4 \n FORM 4UNITED STATES SECURITIES...
# 6 2020-04-03 [Maestri Luca (CIK 0001513362), Apple Inc. (... SEC Form 4 \n FORM 4UNITED STATES SECURITIES...
# 7 2020-02-28 [WAGNER SUSAN (CIK 0001059235), Apple Inc. (... SEC Form 4 \n FORM 4UNITED STATES SECURITIES...
# 8 2020-02-28 [LEVINSON ARTHUR D (CIK 0001214128), Apple In... SEC Form 4 \n FORM 4UNITED STATES SECURITIES...
# 9 2020-02-28 [JUNG ANDREA (CIK 0001051401), Apple Inc. (A... SEC Form 4 \n FORM 4UNITED STATES SECURITIES...
Disclaimer: We are sharing codes for academic purposes under the MIT education license. Nothing herein is financial advice, and NOT a recommendation to trade real money. Please use common sense and always first consult a professional before trading or investing.
TopGit's last sync did not record any GitHub topics for AI4Finance-Foundation/FinNLP. GitHub topics appear in the right sidebar of a repository page; that's the authoritative place to check.
How active is development on AI4Finance-Foundation/FinNLP?
The most recent commit recorded on AI4Finance-Foundation/FinNLP was 2.1 years ago, based on the GitHub push timestamp. The repository has 273 forks — one of the better signals of community interest.
How many stars does AI4Finance-Foundation/FinNLP have?
AI4Finance-Foundation/FinNLP has 1.5k GitHub stars — refresh the page for the live number, or check github.com/AI4Finance-Foundation/FinNLP. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
What is AI4Finance-Foundation/FinNLP?
AI4Finance-Foundation/FinNLP (AI4Finance-Foundation/FinNLP) is a Jupyter Notebook project on GitHub. From the project's own README: Democratizing Internet-scale financial data.
What language is AI4Finance-Foundation/FinNLP written in?
AI4Finance-Foundation/FinNLP is written primarily in Jupyter Notebook. GitHub's language field is based on the largest share of bytes in the default branch.
Read full README in the tab above.
Curious whether FinNLP is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about FinNLP.