Financial data crawler
Project description
Fin Crawler
Features
- Fetch Finalcial data like stock price or future price etc.
Current Support List
- Taiwan stock price (daily stock price for all stocks)
- Taiwan stock price (monthly stock price for specific stock)
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_all')
爬取其中一天全部股票的價格
ex:{'date': '20220920'}
>>> params_example
{'date': '20220920'}
Get Data Example
# get stock data
>>> stock_price = FinCrawler.get('tw_stock_price_all',{'date':'20220920'})
# check stock data keys
>>> stock_price.keys()
dict_keys(['stock_id', 'stock_name', 'vol', 'trade_num', 'trade_amount', 'open', 'close', 'high', 'low', 'spread', 'date'])
# get first stock id
>>> stock_price['stock_id'][0]
'0050'
# get first stock name
>>> stock_price['stock_name'][0]
'元大台灣50'
# get first stock open price
>>> stock_price['open'][0]
112.55
# get first stock close price
>>> stock_price['close'][0]
113.05
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.0.2.tar.gz
(18.2 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.0.2.tar.gz.
File metadata
- Download URL: fin_crawler-0.0.2.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d436fec3734f2080450f97bb4dc0d016c350e60f69fc25a51fe1daeda37a26a6
|
|
| MD5 |
61883154916da26955aaf4633ba2432d
|
|
| BLAKE2b-256 |
a97ca4b4ddeb272b2ee7c450ffb4aca126be5319af1e7cea27effdacbe091f5a
|
File details
Details for the file fin_crawler-0.0.2-py3-none-any.whl.
File metadata
- Download URL: fin_crawler-0.0.2-py3-none-any.whl
- Upload date:
- Size: 26.7 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 |
4ff7fddda195bee41c9260041dcc46f8651c371558c3125268376be05e511da6
|
|
| MD5 |
5ff30dbc85a7714f50f7ba9c02cf9db6
|
|
| BLAKE2b-256 |
c0e3e5dcccc6582d9ed426c45ca68c31e7a3d5b29166fbcd558adb1c4a7e6ec3
|