FinMind


NameFinMind JSON
Version 1.7.8 PyPI version JSON
download
home_pagehttps://github.com/FinMind
Summaryfinancial mining
upload_time2024-12-25 11:19:18
maintainerNone
docs_urlNone
authorlinsam
requires_pythonNone
licenseNone
keywords financial python
VCS
bugtrack_url
requirements pandas numpy requests pydantic ta pytest lxml pyecharts ipython loguru setuptools aiohttp flask importlib-metadata nest-asyncio
Travis-CI No Travis.
coveralls test coverage
            <p align="center">
  <img src="https://raw.githubusercontent.com/FinMind/FinMind/master/logo.png" width="820" height="312">
</p>

<p align="center">
  <a href="https://travis-ci.org/FinMind/FinMind"><img src="https://travis-ci.org/FinMind/FinMind.svg?branch=master" alt="Build Status"></a>
  <a href="https://github.com/linsamtw/FinMind/blob/master/LICENSE"><img src="https://img.shields.io/github/license/FinMind/FinMind" alt="license"></a>
  <a href="https://finmind.github.io/"><img src="https://readthedocs.org/projects/finminddoc/badge/?version=latest" alt="Documentation Status"></a>
  <a href="https://gitter.im/FinMindTW/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge"><img src="https://badges.gitter.im/FinMindTW/community.svg" alt="Gitter"></a>
  <a href="https://badge.fury.io/py/FinMind"><img src="https://badge.fury.io/py/FinMind.svg" alt="PyPI version"></a>
  <!--<a href="https://coveralls.io/github/linsamtw/FinMind?branch=master"><img src="https://coveralls.io/repos/github/linsamtw/FinMind/badge.svg?branch=master" alt="Coverage Status"></a>-->
</p>

## Donate

* [贊助我們發展更多功能](https://finmindtrade.com/analysis/#/Sponsor/sponsor)

<a href="https://finmindtrade.com/analysis/#/Sponsor/sponsor"><img src="https://payment.ecpay.com.tw/Content/themes/WebStyle20170517/images/ecgo.png" alt=""/></a>

* [FinMind 架構獨家解析書籍推薦](https://www.tenlong.com.tw/products/9786267273739?list_name=b-r7-zh_tw)
<a href="https://www.tenlong.com.tw/products/9786267273739?list_name=b-r7-zh_tw"><img src="https://github.com/FinMind/FinMindBook/blob/master/DataEngineering/FinMindBook.jpg" width="200" height="250" alt=""/></a>


## Quickstart

```python
pip install FinMind
```

+ Refer to our [Official Documentation](https://finmind.github.io/quickstart/).


## 這是什麼?

**FinMind** 是超過 50 種金融開源數據 [50 datasets](https://finmind.github.io/)。
包含

* 技術面 : 台股股價 daily、即時報價、歷史 tick、PER、PBR、每5秒委託成交統計、加權指數、當日沖銷交易標的及成交量值。
* 基本面 : 綜合損益表、現金流量表、資產負債表、股利政策表、除權除息結果表、月營收。
* 籌碼面 : 外資持股、股權分散表、融資融券、三大法人買賣、借券成交明細。
* 消息面 : 台股相關新聞。
* 衍生性商品 : 期貨、選擇權 daily data、即時報價、交易明細,選擇權、期貨三大法人買賣,期貨各卷商每日交易、選擇權各卷商每日交易。
* 國際市場 : 美股股價 daily、minute、美國債券殖利率、貨幣發行量(美國)、黃金價格、原油價格、G8 央行利率、G8 匯率、

資料每天更新。你不需收集資料,就可進行分析。

## What is this?

**FinMind** is open source of more
than [50 datasets](https://finmind.github.io/), including

Taiwan stock trade data daily, Taiwan stock trade data (5 seconds) (2019-05-29 ~
now, more than 30 million data in total), Financial Statements, Balance Sheet,
Cash Flows Statement, Month Revenue, Holding Shares Per, Institutional Investors
Buy Sell. Taiwan Futures Trade Detail, Taiwan Option Trade Detail.

US stock price daily, minute (2019-06-01 ~ now, more than 80 million data in
total), oil price, gold
price, [G7](https://zh.wikipedia.org/zh-tw/%E5%85%AB%E5%A4%A7%E5%B7%A5%E6%A5%AD%E5%9C%8B%E7%B5%84%E7%B9%94)
exchange rate, interest rate.

US Government Bonds Yield.

The datasets are automatically updated daily. You can analyze financial data
without having to collect the data by yourself.

--------------

## License

- [License Detail](https://github.com/linsamtw/FinMind/blob/master/LICENSE)

- 本專案提供的所有內容均用於教育、非商業用途。資料僅供參考,使用者依本資料交易發生交易損失需自行負責,本專案不對資料內容錯誤、更新延誤或傳輸中斷負任何責任。

## Project of Contents

- Dataset
    - [線上 API](http://api.finmindtrade.com/docs)
    - [Taiwan Stock Data](https://finmind.github.io/tutor/TaiwanMarket/DataList/)
    - [Document](https://finmind.github.io/)
    - [壓力測試](https://finmind.github.io/StressTest/)
  <!--- [Crawler (爬蟲)](https://github.com/FinMind/FinMind/tree/master#Crawler-爬蟲)-->
- Example
    - [backtest](/example/backtest.md)
    - [customer_dashboard_web_server](example/customer_dashboard_web_server.md)
    - [kbar_plotting.ipynb](https://colab.research.google.com/drive/1u1cJGFNCLOeBIR0PdeKlsqgKBJSvJg_y?usp=sharing)
    - [dashboard.ipynb](https://colab.research.google.com/drive/15lE2rtYuE-qoEUNNSE-cDbZiDnUFL85h?usp=sharing)

- Other
    - [Open UP Summit Slide (PPT)](https://www.slideshare.net/ssusera12be6/finmind-project-demo-199815617)
    - [Median Sharing](https://medium.com/@yanweiliu/finmind-%E4%BD%BF%E7%94%A8python%E6%9F%A5%E5%85%A8%E7%90%83%E8%82%A1%E5%83%B9-%E5%82%B5%E5%88%B8-%E5%8E%9F%E6%B2%B9%E5%83%B9%E6%A0%BC-f39d13ad6a68)
    - [HistoryUpdate](https://github.com/linsamtw/FinMind/blob/master/HistoryUpdate.md)


## Plotting

#### [kbar_plotting.ipynb](https://colab.research.google.com/drive/1u1cJGFNCLOeBIR0PdeKlsqgKBJSvJg_y?usp=sharing)

```python
# 取得股價
from FinMind.data import DataLoader

dl = DataLoader()
# 下載台股股價資料
stock_data = dl.taiwan_stock_daily(
    stock_id='2609', start_date='2018-01-01', end_date='2021-06-26'
)
# 下載三大法人資料
stock_data = dl.feature.add_kline_institutional_investors(
    stock_data
) 
# 下載融資券資料
stock_data = dl.feature.add_kline_margin_purchase_short_sale(
    stock_data
)

# 繪製k線圖
from FinMind import plotting

plotting.kline(stock_data)
```

![gif](figure/kbar_plotting.gif)

#### dashboard

![png](figure/dashboard.png)
-------------------------------------------

## Contact

<!-- Solicit partners who are interested in joint development.

徵求有興趣共同開發的夥伴。 -->

Email: FinMind.TW@gmail.com

每週日早上零點至早上七點為維護時間,不提供服務。

## Note

+ 未來預計新增更多功能,包含個人化回測分析、chatbot 監控策略,
+ API Request 上限:300 / 小時。
+ Limit amount of request, 300 / hour.
+ 至[FinMind官網](https://finmindtrade.com/)註冊並驗證信箱後,API 的 Request 加上 `token`
  參數可以提高使用上限到 600/hr。
+ `token` 獲取方法,可在[官網](https://finmindtrade.com/analysis/#/account/login)登入後獲取。



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/FinMind",
    "name": "FinMind",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "financial, python",
    "author": "linsam",
    "author_email": "finmind.tw@gmail.com",
    "download_url": null,
    "platform": null,
    "description": "<p align=\"center\">\n  <img src=\"https://raw.githubusercontent.com/FinMind/FinMind/master/logo.png\" width=\"820\" height=\"312\">\n</p>\n\n<p align=\"center\">\n  <a href=\"https://travis-ci.org/FinMind/FinMind\"><img src=\"https://travis-ci.org/FinMind/FinMind.svg?branch=master\" alt=\"Build Status\"></a>\n  <a href=\"https://github.com/linsamtw/FinMind/blob/master/LICENSE\"><img src=\"https://img.shields.io/github/license/FinMind/FinMind\" alt=\"license\"></a>\n  <a href=\"https://finmind.github.io/\"><img src=\"https://readthedocs.org/projects/finminddoc/badge/?version=latest\" alt=\"Documentation Status\"></a>\n  <a href=\"https://gitter.im/FinMindTW/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge\"><img src=\"https://badges.gitter.im/FinMindTW/community.svg\" alt=\"Gitter\"></a>\n  <a href=\"https://badge.fury.io/py/FinMind\"><img src=\"https://badge.fury.io/py/FinMind.svg\" alt=\"PyPI version\"></a>\n  <!--<a href=\"https://coveralls.io/github/linsamtw/FinMind?branch=master\"><img src=\"https://coveralls.io/repos/github/linsamtw/FinMind/badge.svg?branch=master\" alt=\"Coverage Status\"></a>-->\n</p>\n\n## Donate\n\n* [\u8d0a\u52a9\u6211\u5011\u767c\u5c55\u66f4\u591a\u529f\u80fd](https://finmindtrade.com/analysis/#/Sponsor/sponsor)\n\n<a href=\"https://finmindtrade.com/analysis/#/Sponsor/sponsor\"><img src=\"https://payment.ecpay.com.tw/Content/themes/WebStyle20170517/images/ecgo.png\" alt=\"\"/></a>\n\n* [FinMind \u67b6\u69cb\u7368\u5bb6\u89e3\u6790\u66f8\u7c4d\u63a8\u85a6](https://www.tenlong.com.tw/products/9786267273739?list_name=b-r7-zh_tw)\n<a href=\"https://www.tenlong.com.tw/products/9786267273739?list_name=b-r7-zh_tw\"><img src=\"https://github.com/FinMind/FinMindBook/blob/master/DataEngineering/FinMindBook.jpg\" width=\"200\" height=\"250\" alt=\"\"/></a>\n\n\n## Quickstart\n\n```python\npip install FinMind\n```\n\n+ Refer to our [Official Documentation](https://finmind.github.io/quickstart/).\n\n\n## \u9019\u662f\u4ec0\u9ebc?\n\n**FinMind** \u662f\u8d85\u904e 50 \u7a2e\u91d1\u878d\u958b\u6e90\u6578\u64da [50 datasets](https://finmind.github.io/)\u3002\n\u5305\u542b\n\n* \u6280\u8853\u9762 : \u53f0\u80a1\u80a1\u50f9 daily\u3001\u5373\u6642\u5831\u50f9\u3001\u6b77\u53f2 tick\u3001PER\u3001PBR\u3001\u6bcf5\u79d2\u59d4\u8a17\u6210\u4ea4\u7d71\u8a08\u3001\u52a0\u6b0a\u6307\u6578\u3001\u7576\u65e5\u6c96\u92b7\u4ea4\u6613\u6a19\u7684\u53ca\u6210\u4ea4\u91cf\u503c\u3002\n* \u57fa\u672c\u9762 : \u7d9c\u5408\u640d\u76ca\u8868\u3001\u73fe\u91d1\u6d41\u91cf\u8868\u3001\u8cc7\u7522\u8ca0\u50b5\u8868\u3001\u80a1\u5229\u653f\u7b56\u8868\u3001\u9664\u6b0a\u9664\u606f\u7d50\u679c\u8868\u3001\u6708\u71df\u6536\u3002\n* \u7c4c\u78bc\u9762 : \u5916\u8cc7\u6301\u80a1\u3001\u80a1\u6b0a\u5206\u6563\u8868\u3001\u878d\u8cc7\u878d\u5238\u3001\u4e09\u5927\u6cd5\u4eba\u8cb7\u8ce3\u3001\u501f\u5238\u6210\u4ea4\u660e\u7d30\u3002\n* \u6d88\u606f\u9762 : \u53f0\u80a1\u76f8\u95dc\u65b0\u805e\u3002\n* \u884d\u751f\u6027\u5546\u54c1 : \u671f\u8ca8\u3001\u9078\u64c7\u6b0a daily data\u3001\u5373\u6642\u5831\u50f9\u3001\u4ea4\u6613\u660e\u7d30\uff0c\u9078\u64c7\u6b0a\u3001\u671f\u8ca8\u4e09\u5927\u6cd5\u4eba\u8cb7\u8ce3\uff0c\u671f\u8ca8\u5404\u5377\u5546\u6bcf\u65e5\u4ea4\u6613\u3001\u9078\u64c7\u6b0a\u5404\u5377\u5546\u6bcf\u65e5\u4ea4\u6613\u3002\n* \u570b\u969b\u5e02\u5834 : \u7f8e\u80a1\u80a1\u50f9 daily\u3001minute\u3001\u7f8e\u570b\u50b5\u5238\u6b96\u5229\u7387\u3001\u8ca8\u5e63\u767c\u884c\u91cf(\u7f8e\u570b)\u3001\u9ec3\u91d1\u50f9\u683c\u3001\u539f\u6cb9\u50f9\u683c\u3001G8 \u592e\u884c\u5229\u7387\u3001G8 \u532f\u7387\u3001\n\n\u8cc7\u6599\u6bcf\u5929\u66f4\u65b0\u3002\u4f60\u4e0d\u9700\u6536\u96c6\u8cc7\u6599\uff0c\u5c31\u53ef\u9032\u884c\u5206\u6790\u3002\n\n## What is this?\n\n**FinMind** is open source of more\nthan [50 datasets](https://finmind.github.io/), including\n\nTaiwan stock trade data daily, Taiwan stock trade data (5 seconds) (2019-05-29 ~\nnow, more than 30 million data in total), Financial Statements, Balance Sheet,\nCash Flows Statement, Month Revenue, Holding Shares Per, Institutional Investors\nBuy Sell. Taiwan Futures Trade Detail, Taiwan Option Trade Detail.\n\nUS stock price daily, minute (2019-06-01 ~ now, more than 80 million data in\ntotal), oil price, gold\nprice, [G7](https://zh.wikipedia.org/zh-tw/%E5%85%AB%E5%A4%A7%E5%B7%A5%E6%A5%AD%E5%9C%8B%E7%B5%84%E7%B9%94)\nexchange rate, interest rate.\n\nUS Government Bonds Yield.\n\nThe datasets are automatically updated daily. You can analyze financial data\nwithout having to collect the data by yourself.\n\n--------------\n\n## License\n\n- [License Detail](https://github.com/linsamtw/FinMind/blob/master/LICENSE)\n\n- \u672c\u5c08\u6848\u63d0\u4f9b\u7684\u6240\u6709\u5167\u5bb9\u5747\u7528\u65bc\u6559\u80b2\u3001\u975e\u5546\u696d\u7528\u9014\u3002\u8cc7\u6599\u50c5\u4f9b\u53c3\u8003\uff0c\u4f7f\u7528\u8005\u4f9d\u672c\u8cc7\u6599\u4ea4\u6613\u767c\u751f\u4ea4\u6613\u640d\u5931\u9700\u81ea\u884c\u8ca0\u8cac\uff0c\u672c\u5c08\u6848\u4e0d\u5c0d\u8cc7\u6599\u5167\u5bb9\u932f\u8aa4\u3001\u66f4\u65b0\u5ef6\u8aa4\u6216\u50b3\u8f38\u4e2d\u65b7\u8ca0\u4efb\u4f55\u8cac\u4efb\u3002\n\n## Project of Contents\n\n- Dataset\n    - [\u7dda\u4e0a API](http://api.finmindtrade.com/docs)\n    - [Taiwan Stock Data](https://finmind.github.io/tutor/TaiwanMarket/DataList/)\n    - [Document](https://finmind.github.io/)\n    - [\u58d3\u529b\u6e2c\u8a66](https://finmind.github.io/StressTest/)\n  <!--- [Crawler (\u722c\u87f2)](https://github.com/FinMind/FinMind/tree/master#Crawler-\u722c\u87f2)-->\n- Example\n    - [backtest](/example/backtest.md)\n    - [customer_dashboard_web_server](example/customer_dashboard_web_server.md)\n    - [kbar_plotting.ipynb](https://colab.research.google.com/drive/1u1cJGFNCLOeBIR0PdeKlsqgKBJSvJg_y?usp=sharing)\n    - [dashboard.ipynb](https://colab.research.google.com/drive/15lE2rtYuE-qoEUNNSE-cDbZiDnUFL85h?usp=sharing)\n\n- Other\n    - [Open UP Summit Slide (PPT)](https://www.slideshare.net/ssusera12be6/finmind-project-demo-199815617)\n    - [Median Sharing](https://medium.com/@yanweiliu/finmind-%E4%BD%BF%E7%94%A8python%E6%9F%A5%E5%85%A8%E7%90%83%E8%82%A1%E5%83%B9-%E5%82%B5%E5%88%B8-%E5%8E%9F%E6%B2%B9%E5%83%B9%E6%A0%BC-f39d13ad6a68)\n    - [HistoryUpdate](https://github.com/linsamtw/FinMind/blob/master/HistoryUpdate.md)\n\n\n## Plotting\n\n#### [kbar_plotting.ipynb](https://colab.research.google.com/drive/1u1cJGFNCLOeBIR0PdeKlsqgKBJSvJg_y?usp=sharing)\n\n```python\n# \u53d6\u5f97\u80a1\u50f9\nfrom FinMind.data import DataLoader\n\ndl = DataLoader()\n# \u4e0b\u8f09\u53f0\u80a1\u80a1\u50f9\u8cc7\u6599\nstock_data = dl.taiwan_stock_daily(\n    stock_id='2609', start_date='2018-01-01', end_date='2021-06-26'\n)\n# \u4e0b\u8f09\u4e09\u5927\u6cd5\u4eba\u8cc7\u6599\nstock_data = dl.feature.add_kline_institutional_investors(\n    stock_data\n) \n# \u4e0b\u8f09\u878d\u8cc7\u5238\u8cc7\u6599\nstock_data = dl.feature.add_kline_margin_purchase_short_sale(\n    stock_data\n)\n\n# \u7e6a\u88fdk\u7dda\u5716\nfrom FinMind import plotting\n\nplotting.kline(stock_data)\n```\n\n![gif](figure/kbar_plotting.gif)\n\n#### dashboard\n\n![png](figure/dashboard.png)\n-------------------------------------------\n\n## Contact\n\n<!-- Solicit partners who are interested in joint development.\n\n\u5fb5\u6c42\u6709\u8208\u8da3\u5171\u540c\u958b\u767c\u7684\u5925\u4f34\u3002 -->\n\nEmail: FinMind.TW@gmail.com\n\n\u6bcf\u9031\u65e5\u65e9\u4e0a\u96f6\u9ede\u81f3\u65e9\u4e0a\u4e03\u9ede\u70ba\u7dad\u8b77\u6642\u9593\uff0c\u4e0d\u63d0\u4f9b\u670d\u52d9\u3002\n\n## Note\n\n+ \u672a\u4f86\u9810\u8a08\u65b0\u589e\u66f4\u591a\u529f\u80fd\uff0c\u5305\u542b\u500b\u4eba\u5316\u56de\u6e2c\u5206\u6790\u3001chatbot \u76e3\u63a7\u7b56\u7565\uff0c\n+ API Request \u4e0a\u9650\uff1a300 / \u5c0f\u6642\u3002\n+ Limit amount of request, 300 / hour.\n+ \u81f3[FinMind\u5b98\u7db2](https://finmindtrade.com/)\u8a3b\u518a\u4e26\u9a57\u8b49\u4fe1\u7bb1\u5f8c\uff0cAPI \u7684 Request \u52a0\u4e0a `token`\n  \u53c3\u6578\u53ef\u4ee5\u63d0\u9ad8\u4f7f\u7528\u4e0a\u9650\u5230 600/hr\u3002\n+ `token` \u7372\u53d6\u65b9\u6cd5\uff0c\u53ef\u5728[\u5b98\u7db2](https://finmindtrade.com/analysis/#/account/login)\u767b\u5165\u5f8c\u7372\u53d6\u3002\n\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "financial mining",
    "version": "1.7.8",
    "project_urls": {
        "Homepage": "https://github.com/FinMind",
        "Source": "https://github.com/FinMind/FinMind",
        "documentation": "https://finmind.github.io/"
    },
    "split_keywords": [
        "financial",
        " python"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bd5b546acc8aa8d4e78c0dcbf89ba669e4dfa46473268beec74b6d70408f93b1",
                "md5": "e48fa3789424e02a6da038e349eb15dd",
                "sha256": "344f12b44172c8ee7eb3273e6dbe36e636bf89c85e3abd91b359c6cc9a4bd596"
            },
            "downloads": -1,
            "filename": "FinMind-1.7.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e48fa3789424e02a6da038e349eb15dd",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 63301,
            "upload_time": "2024-12-25T11:19:18",
            "upload_time_iso_8601": "2024-12-25T11:19:18.468073Z",
            "url": "https://files.pythonhosted.org/packages/bd/5b/546acc8aa8d4e78c0dcbf89ba669e4dfa46473268beec74b6d70408f93b1/FinMind-1.7.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-25 11:19:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "FinMind",
    "github_project": "FinMind",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "requirements": [
        {
            "name": "pandas",
            "specs": [
                [
                    ">=",
                    "1.1.5"
                ]
            ]
        },
        {
            "name": "numpy",
            "specs": [
                [
                    ">=",
                    "1.19.5"
                ]
            ]
        },
        {
            "name": "requests",
            "specs": [
                [
                    ">=",
                    "2.23.0"
                ]
            ]
        },
        {
            "name": "pydantic",
            "specs": [
                [
                    ">=",
                    "1.6.1"
                ]
            ]
        },
        {
            "name": "ta",
            "specs": [
                [
                    "~=",
                    "0.5.25"
                ]
            ]
        },
        {
            "name": "pytest",
            "specs": [
                [
                    ">=",
                    "6.2.2"
                ]
            ]
        },
        {
            "name": "lxml",
            "specs": [
                [
                    ">=",
                    "4.6.3"
                ]
            ]
        },
        {
            "name": "pyecharts",
            "specs": [
                [
                    ">=",
                    "1.9.0"
                ]
            ]
        },
        {
            "name": "ipython",
            "specs": [
                [
                    ">=",
                    "7.16.1"
                ]
            ]
        },
        {
            "name": "loguru",
            "specs": [
                [
                    ">=",
                    "0.5.3"
                ]
            ]
        },
        {
            "name": "setuptools",
            "specs": [
                [
                    ">=",
                    "49.2.1"
                ]
            ]
        },
        {
            "name": "aiohttp",
            "specs": [
                [
                    ">=",
                    "3.7.4.post0"
                ]
            ]
        },
        {
            "name": "flask",
            "specs": [
                [
                    ">=",
                    "2.0.1"
                ]
            ]
        },
        {
            "name": "importlib-metadata",
            "specs": [
                [
                    ">=",
                    "4.8.1"
                ]
            ]
        },
        {
            "name": "nest-asyncio",
            "specs": [
                [
                    ">=",
                    "1.6.0"
                ]
            ]
        }
    ],
    "lcname": "finmind"
}
        
Elapsed time: 0.39768s