OpenBBTerminal icon indicating copy to clipboard operation
OpenBBTerminal copied to clipboard

[IMPROVE] Integrate stocksera API into stocks/insider/finviz_model.py

Open guanquann opened this issue 2 years ago • 2 comments

I have been scraping Finviz regularly and saving the insider trading records in my own database. The stocksera API gives you access to the historical insider trading data. Both of them will return a panda dataframe.

import stocksera

stock = stocksera.Stock()

# Get last n records of insider trading from Finviz
insider_trading_df = stock.insider_trading(limit=2000)

# Get analysis of last 1 month insider trading summary from Finviz
latest_insider_trading_summary_df = stock.latest_insider_trading_summary()

Not sure how useful will it be, but here is the documentation to the api I have currently. https://github.com/guanquann/Stocksera-API

guanquann avatar Feb 02 '22 06:02 guanquann

Hi @guanquann ,

Thanks for reaching out! Impressive work with Stocksera btw!

Our team will have a peek at how we can use this data on the terminal, thank you 😄

@jmaslek @JerBouma @deeleeramone

DidierRLopes avatar Feb 02 '22 09:02 DidierRLopes

Would love to have the historical borrow costs ported in!

deeleeramone avatar Aug 16 '22 20:08 deeleeramone