{"id":13699761,"url":"https://github.com/alpha-miner/Finance-Python","last_synced_at":"2025-05-04T17:30:54.093Z","repository":{"id":36722970,"uuid":"41029539","full_name":"alpha-miner/Finance-Python","owner":"alpha-miner","description":"python tools for Finance with the functionality of indicator calculation, business day calculation and so on.","archived":false,"fork":false,"pushed_at":"2024-01-01T07:14:55.000Z","size":2633,"stargazers_count":746,"open_issues_count":9,"forks_count":129,"subscribers_count":30,"default_branch":"master","last_synced_at":"2024-11-13T05:36:13.337Z","etag":null,"topics":["chinese","cython","finance","linux","pricing","python","stock","stock-market","technical-indicators","windows"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alpha-miner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-08-19T11:13:32.000Z","updated_at":"2024-11-08T00:53:45.000Z","dependencies_parsed_at":"2024-01-25T03:02:25.024Z","dependency_job_id":"61a39794-8d5b-4aec-a26e-6aff0af1b450","html_url":"https://github.com/alpha-miner/Finance-Python","commit_stats":{"total_commits":899,"total_committers":6,"mean_commits":"149.83333333333334","dds":0.3692992213570634,"last_synced_commit":"e8d776da5da6daf8a6ad0d31957d20bb4400c774"},"previous_names":["chinaquants/finance-python"],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alpha-miner%2FFinance-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alpha-miner%2FFinance-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alpha-miner%2FFinance-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alpha-miner%2FFinance-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alpha-miner","download_url":"https://codeload.github.com/alpha-miner/Finance-Python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252371641,"owners_count":21737371,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chinese","cython","finance","linux","pricing","python","stock","stock-market","technical-indicators","windows"],"created_at":"2024-08-02T20:00:43.038Z","updated_at":"2025-05-04T17:30:53.540Z","avatar_url":"https://github.com/alpha-miner.png","language":"Python","readme":"# Finance - Python\n\n\u003ctable\u003e\n\u003ctr\u003e\n  \u003ctd\u003eLatest Release\u003c/td\u003e\n  \u003ctd\u003e\u003cimg src=\"https://img.shields.io/pypi/v/finance-python.svg\" alt=\"latest release\" /\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n  \u003ctd\u003eBuild Status\u003c/td\u003e\n  \u003ctd\u003e\n    \u003ca href=\"https://travis-ci.org/alpha-miner/Finance-Python\"\u003e\n    \u003cimg src=\"https://travis-ci.org/alpha-miner/Finance-Python.svg?branch=master\" alt=\"travis build status\" /\u003e\n    \u003c/a\u003e\n  \u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n  \u003ctd\u003eCoverage\u003c/td\u003e\n  \u003ctd\u003e\u003cimg src=\"https://coveralls.io/repos/alpha-miner/Finance-Python/badge.svg?branch=master\u0026service=github\" alt=\"coverage\" /\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n纯python实现的金融计算库，目标是提供进行量化交易必要的工具，包括但不限于：定价分析工具、技术分析指标。其中部分实现参考了quantlib。\n### TODO list\n\n- [x] 增加基于事件长度的窗口函数（Count以及CountUnique）\n- [x] 增加更多的基于时间窗口长度的函数\n\n### 依赖\n\n    coverage\n    cython\n    enum34\n    numpy\n    pandas\n    scipy\n    six\n    \n以及相关的c/c++编译器（例如Linux下的gcc，windows下的visual studio）\n\n### 安装\n\n1. 从最新源代码安装\n\n    首先将代码保存至本地：\n    \n        git clone https://github.com/ChinaQuants/Finance-Python.git (如果你是从github获取)\n        cd finance-Python\n       \n    只需运行如下命令：\n    \n        python setpy.py install\n    \n    安装之后，可以直先接运行测试：\n    \n        python PyFin/tests/testSuite.py\n        \n2. 从``pypi``安装\n    \n    只需运行如下命令：\n    \n        pip install Finance-Python\n    \n    \n### 开发环境\n\n在代码目录下，需要运行如下指令：\n\n    python setup.py build_ext --inplace\n\n### 主要功能\n\n* 可以实现复合运算的指标库，方便的与pandas结合；\n* 基于日历的金融日期计算，包括在不同市场下的节假日安排；\n* 资产组合优化函数（实验阶段，功能有限并且在未来可能会有大幅度修改）；\n* 一些金融产品的定价模型（功能有限）。\n","funding_links":[],"categories":["Python"],"sub_categories":["Financial Instruments and Pricing","金融工具与定价"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falpha-miner%2FFinance-Python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falpha-miner%2FFinance-Python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falpha-miner%2FFinance-Python/lists"}