Skip to content

A python script to create a mapping table between I/B/E/S and Compustat

License

Notifications You must be signed in to change notification settings

babymetal287/link_compustat_ibes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Link_compustat_ibes

Python script to create a mapping table between I/B/E/S and Compustat. Requires WRDS login credentials.

Supported methods are via CRSP and via G_Security.

Example call

python3 link_compustat_ibes.py -o ~/linktable.csv

This asks the script to create a link table in the user's home path. It will download I/B/E/S, CRSP, and a Compustat-CRSP linktable from WRDS SQL server and merge the three tables in order to create a linktable for I/B/E/S and Compustat. This requires valid login credentials to WRDS.

The option -m (or --method) can be used to specify the method with which the two tables should be merged (see above). The script can either perform the merge via the CRSP key or via G_security. CRSP is the default. To merge via G_security, run

python3 link_compustat_ibes.py -o ~/linktable2.csv -m 'gsec'

About

A python script to create a mapping table between I/B/E/S and Compustat

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%