Fugle Realtime
Project description
fugle-realtime-py
Documentation
https://developer.fugle.tw/realtime
Installation
pip install fugle-realtime
Usage
from fugle_realtime import intraday
intraday.chart
: https://api.fugle.tw/realtime/v0/intraday/chart
intraday.chart(apiToken="demo", output="dataframe", symbolId="2884")
intraday.meta
: https://api.fugle.tw/realtime/v0/intraday/meta
intraday.meta(apiToken="demo", output="dataframe", symbolId="2884")
intraday.quote
: https://api.fugle.tw/realtime/v0/intraday/quote
intraday.quote(apiToken="demo", output="dataframe", symbolId="2884")
intraday.trades
: https://api.fugle.tw/realtime/v0/intraday/trades
intraday.trades(apiToken="demo", output="dataframe", symbolId="2884")
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 specified above, please visit https://developer.fugle.tw/realtime/document.
Contributing
Git clone the repository:
git clone https://github.com/fortuna-intelligence/fugle-realtime-py.git
cd fugle-realtime-py
Install poetry
if not yet installed:
curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
Then install dependencies and setup pre-commit
:
poetry install
poetry run pre-commit install
Code formatting using black
:
poetry run black .
Testing using pytest
:
poetry run pytest
Publishing
PyPI
: fugle-realtime
poetry publish --build --repository pypi --username username --password password
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
Built Distribution
Hashes for fugle_realtime-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbc890e07c60b58a44633b5b7fef440ab22c1231c52be1bb94459ffcc2ffc6ae |
|
MD5 | 16150fa0fdcb0853a7e05e1280566c64 |
|
BLAKE2b-256 | 7ad49df58b19b94ac322b5815a8b9da7a414f81595f58a9718ddf05cdca81c42 |