Skip to content

[WWW'2024] "FinReport: Explainable Stock Earnings Forecasting via News Factor Analyzing Model"

License

Notifications You must be signed in to change notification settings

frinkleko/FinReport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FinReport: Explainable Stock Earnings Forecasting via News Factor Analyzing Model

PWC

PyTorch implementation for [WWW'2024] "FinReport: Explainable Stock Earnings Forecasting via News Factor Analyzing Model"

Framework

Example Reports

Example Reports

Obtaining Factors

There are two ways to get the factors:

First Way

The first way relies on the stockstats library, which is a wrapper for pandas dataframes.

pip install stockstats

Commonly you can input a pandas dataframe with the following columns: ['date', 'open', 'close', 'high', 'low', 'volume']to use the wrap function to get the factors.

import pandas as pd
from stockstats import wrap

data = pd.read_csv('stock.csv')
df = wrap(data)

Check the documentation for stockstats for more details. More details and examples can also be found in src/Tech_Indicators.py.

Second Way

The second way to obtain the factors is to API from platforms like IFind, which provides a variety of factors. We recommend using this method to obtain more factors more esaily.

Codes are available in src/IFind_Indicators.py. You can run it after filling the access_token in Line 10, customizing necessary parameters of form_data in Line 14.

About

[WWW'2024] "FinReport: Explainable Stock Earnings Forecasting via News Factor Analyzing Model"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published