Fugle Realtime Python is a Python package to query realtime stock quote of Taiwan market through API provided by Fugle.
Currently supported exchanges are Taiwan Stock Exchange (TWSE) and Taipei Exchange(TPEx).
pip install fugle-realtimeThis package is compatible with Python 3.6 and 3.7.
from fugle_realtime import intradayintraday.chart(apiToken="demo", output="dataframe", symbolId="2884")intraday.meta(apiToken="demo", output="dataframe", symbolId="2884")intraday.quote(apiToken="demo", output="dataframe", symbolId="2884")intraday.dealts(apiToken="demo", output="dataframe", symbolId="2884", limit=50, offset=0)output="dataframe" will return pandas DataFrame, which is the default. output="raw" will return python built-in dict or 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.