Financial data crawler
Project description
Fin Crawler
Features
- Fetch Finalcial data like stock price or future price etc.
Current Support List
- Taiwan stock price (每日各股股價) - tw_stock_price_daily
- Taiwan stock price (每月單一股票股價) - tw_stock_price
- Taiwan 3 insititutional investors daily records (每日三大法人買賣超) - tw_institutional_investors_daily
- Taiwan IPO company info (公司資訊) - tw_stock_info
Example
Supported List
>>> from fin_crawler import FinCrawler
>>> FinCrawler.crawler_list
['tw_stock_price_daily',
'tw_stock_price',
'tw_institutional_investors_daily',
'tw_stock_info']
Get Crawler Params Example
For each crawler you should pass in params and this will get you example of params
>>> params_example = FinCrawler.params_example('tw_stock_price_daily')
爬取其中一天全部股票的價格
ex:{'date': '20220920'}
>>> params_example
{'date': '20220920'}
Get Data Example
# get stock data
>>> stock_price = FinCrawler.get('tw_stock_price_daily',{'date':'20220920'})
# check stock data keys
>>> stock_price[0]
{'stock_id': '0050',
'stock_name': '元大台灣50',
'volume': 5999746.0,
'trade_num': 7093.0,
'trade_amount': 675492164.0,
'open': 112.55,
'high': 113.15,
'low': 112.25,
'close': 113.05,
'last_buy_price': 113.0,
'last_buy_volume': 205.0,
'last_sell_price': 113.05,
'last_sell_volume': 9.0,
'PE': 0.0,
'spread': 1.0,
'date': '20220920'}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fin_crawler-0.1.2.tar.gz
(19.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fin_crawler-0.1.2.tar.gz.
File metadata
- Download URL: fin_crawler-0.1.2.tar.gz
- Upload date:
- Size: 19.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26d095d71ad034ad3266b0dfb8943ef66d3696a20d9d51808d6abf61ee0aaac2
|
|
| MD5 |
ba6391b9203dd37437f322efef92f610
|
|
| BLAKE2b-256 |
396168332c0254ca1102dbbae1cdfcde86ac74b73396485ebab3ea4f3fb208f4
|
File details
Details for the file fin_crawler-0.1.2-py3-none-any.whl.
File metadata
- Download URL: fin_crawler-0.1.2-py3-none-any.whl
- Upload date:
- Size: 27.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4199e102c85142d773439af4718c08124630b3e10a9826de8e51a2d3c32cb69c
|
|
| MD5 |
ab211114952db3f889338ddd52bcda7b
|
|
| BLAKE2b-256 |
5bd5f94bed7318ea92fc89bce1cb0910ab3831830a0fb8a033b694874e42c2af
|