saporitigianni / russellcapping

Single level implementation of the FTSE Russell Capping Methodology

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

russellcapping: Single level FTSE Russell Capping Methodology implementation

Installation

To install russellcapping, simply use pip:

$ pip install russellcapping

or install directly from source to include latest changes:

$ pip install git+https://github.com/saporitigianni/russellcapping.git

or clone and then install:

$ git clone https://github.com/saporitigianni/russellcapping.git
$ cd russellcapping
$ python3 setup.py install

Usage

import russellcapping as rc

# Constructor takes in total market cap, data for the individual constituents and a capping percentage
item = rc.RussellCapping(total_mc=sample_mc, raw_data=sample_data, capping_percent=10)

# Run capping method which returns the data adjusted for the capping percent and the new market cap
new_data, new_mc = item.russell_capping()

Acknowledgements

An original publication of the FTSE Russell capping methodology can be found here.

Contributing

Please read the CONTRIBUTING document before making changes that you would like adopted in the code.

Code of Conduct

Everyone interacting in the russellcapping project's codebase, issue trackers, chat rooms, and mailing lists is expected to follow the PyPA Code of Conduct.

Buy me a coffee?

ETH 0xaD1F09626b9B8e701D5f0F4a237193Df73d3C445
BTC 199zsVqCusefv8yjdYQhUQZmLCyh75dqNV
LTC LUBqs7VxC43ttPsQuM1jaZFmshKTAU1Rs9

About

Single level implementation of the FTSE Russell Capping Methodology

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%