fugle-realtime-compatible-0.2.8rc0
توضیحات
fugle_realtime_compatible
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fugle-realtime-compatible-0.2.8rc0 |
| نام | fugle-realtime-compatible |
| نسخه کتابخانه | 0.2.8rc0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/fugle-realtime-compatible/ |
| مجوز | - |
# fugle-realtime-py
[](https://travis-ci.org/fortuna-intelligence/fugle-realtime-py)
[](https://pypi.org/project/fugle-realtime/)
[](https://pypi.org/project/fugle-realtime/)
[](https://pypi.org/project/fugle-realtime/)
Fugle Realtime Python is a Python package to query realtime stock quote of Taiwan market through API provided by [Fugle](https://www.fugle.tw/).
Currently supported exchanges are [Taiwan Stock Exchange (TWSE)](http://www.twse.com.tw/) and [Taipei Exchange(TPEx)](https://www.tpex.org.tw/).
## Documentations
- [Fugle Developer](https://developer.fugle.tw/)
- https://developer.fugle.tw/realtime
- [GitHub](https://github.com/)
- https://github.com/fortuna-intelligence/fugle-realtime-py
- [PyPI](https://pypi.org/)
- https://pypi.org/project/fugle-realtime/
## Installation
```sh
pip install fugle-realtime
```
This package is compatible with Python 3.6 and 3.7.
## Usage
```py
from fugle_realtime import intraday
```
### [`intraday.chart`](https://developer.fugle.tw/realtime/document#/Intraday/get_intraday_chart): https://api.fugle.tw/realtime/v0/intraday/chart
```py
intraday.chart(apiToken="demo", output="dataframe", symbolId="2884")
```
### [`intraday.meta`](https://developer.fugle.tw/realtime/document#/Intraday/get_intraday_meta): https://api.fugle.tw/realtime/v0/intraday/meta
```py
intraday.meta(apiToken="demo", output="dataframe", symbolId="2884")
```
### [`intraday.quote`](https://developer.fugle.tw/realtime/document#/Intraday/get_intraday_quote): https://api.fugle.tw/realtime/v0/intraday/quote
```py
intraday.quote(apiToken="demo", output="dataframe", symbolId="2884")
```
### [`intraday.dealts`](https://developer.fugle.tw/realtime/document#/Intraday/get_intraday_dealts): https://api.fugle.tw/realtime/v0/intraday/dealts
```py
intraday.dealts(apiToken="demo", output="dataframe", symbolId="2884", limit=50, offset=0)
```
`output="dataframe"` will return [pandas](https://pandas.pydata.org/) [`DataFrame`](https://pandas.pydata.org/pandas-docs/stable/reference/frame.html), which is the default. `output="raw"` will return [python](https://www.python.org/) built-in [`dict`](https://docs.python.org/3/library/stdtypes.html#dict) or [`list`](https://docs.python.org/3/library/stdtypes.html#list) accordingly.
`symbolId="2884"` is only allowed when `apiToken="demo"`. To access more `symbolId`, you will have to get your own `apiToken`. Please visit https://developer.fugle.tw/realtime/apiToken for detailed instructions.
For complete documentation of each URL and its parameters in association with the corresponding function and its arguments specified above, please visit https://developer.fugle.tw/realtime/document.
نیازمندی
| مقدار | نام |
|---|---|
| ==2020.12.5 | certifi |
| ==4.0.0 | chardet |
| ==2.10 | idna |
| ==1.20.1 | numpy |
| ==1.2.2 | pandas |
| ==2.8.1 | python-dateutil |
| ==2021.1 | pytz |
| ==2.25.1 | requests |
| ==1.15.0 | six |
| ==1.26.3 | urllib3 |
نحوه نصب
نصب پکیج whl fugle-realtime-compatible-0.2.8rc0:
pip install fugle-realtime-compatible-0.2.8rc0.whl
نصب پکیج tar.gz fugle-realtime-compatible-0.2.8rc0:
pip install fugle-realtime-compatible-0.2.8rc0.tar.gz