MultiFactor
MultiFactor는 멀티팩터 전략을 구현하고 분석할 수 있도록 돕는 파이썬 라이브러리입니다.
주요 기능
- FinanceDataReader 기반의 빠르고 안정적인 금융 데이터 수집
- 사용자 맞춤형 팩터(가치, 모멘텀, 퀄리티 등) 점수 산출
- 직관적인 데이터프레임(DataFrame) 형태의 결과물 반환
설치 방법
pip install MultiFactor
테스트 코드
1. 패키지 불러오기
from MultiFactor import MultiFactor
2. 객체 생성 (시가총액 상위 5개 종목)
mf = MultiFactor(N=5)
3. 종목 코드 생성
df = mf.get_stockinfo() # 데이터프레임 stock_list = mf.get_stockinfo(dtype='dic') # 딕셔너리
4. 데이터 수집 및 점수 계산 실행
data_mast = mf.get_score()
5. 가중치 부여하기 (기본값: '균등')
data_mast_weighted = mf.get_score_adj_weight(data_mast, weight='가치성장')
4. 종합 순위에 따라 N개의 그룹으로 나누어 종목명 출력
mf.get_Ngroup(data_mast, Ngroup=2)
5. 지표별로 데이터 수집 후 종합점수 산정
data_mom = mf.get_momentum(stock_list)
data_val = mf.get_value(stock_list)
data_fin = mf.get_quality(stock_list)
data_mast = mf.get_score_by_data(data_mom, data_val, data_fin)
6. 종목 1개 팩터 수집 (삼성전자)
mf.get_momentum_one('005930')
mf.get_value_one('005930')
mf.get_quality_one('005930')
Metadata
Release files for MultiFactor 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| multifactor-0.1.4.tar.gz | 8.6 kB | Without provenance | Details for multifactor-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| multifactor-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for multifactor-0.1.4-py3-none-any.whl |
Total release size: 21.3 kB
Release files / multifactor-0.1.4.tar.gz
| Download URL | multifactor-0.1.4.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dee441f9d9bcfcddac686a0fba3ba1244ac62898274f6b06ae1e3e6ab3b0211f
|
|
BLAKE2b-256 checksum How to use checksums |
f66a041db20fce2f47ac4e670e89d5d691d829ee117383f6005004e544ff9c84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.7
|
Release files / multifactor-0.1.4-py3-none-any.whl
| Download URL | multifactor-0.1.4-py3-none-any.whl |
|---|---|
| Size | 12.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a12e1e5f4df1336349d75f6536137ff0b49e8f3d92b4822d855a10521b78b776
|
|
BLAKE2b-256 checksum How to use checksums |
dfe8b129d22459410ff1b3f0065dfe6c8ef85af133433253f087a1612dc564ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.7
|
Security for MultiFactor 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.