Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fugle-realtime-0.1.7.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fugle_realtime-0.1.7-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file fugle-realtime-0.1.7.tar.gz.

File metadata

  • Download URL: fugle-realtime-0.1.7.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.16 CPython/3.7.3 Darwin/18.5.0

File hashes

Hashes for fugle-realtime-0.1.7.tar.gz
Algorithm Hash digest
SHA256 f1f1f66c64b82c675e5f11f840797335fb2cfd1b5002d01f3949b8614d23b2b8
MD5 9b7e8f809ff8e88a9ef77b6a3c2e34d5
BLAKE2b-256 f7633cbdfdb6565cb4a0f81b3bcc617a8b665e18cdbe8706d9e2910d26cbbbce

See more details on using hashes here.

File details

Details for the file fugle_realtime-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: fugle_realtime-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.16 CPython/3.7.3 Darwin/18.5.0

File hashes

Hashes for fugle_realtime-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 38713d955d6987f6b360cd7d2755e66ac13b6efc6cc5641ea17f08fc86599eff
MD5 77c9541b47b901b892f65b73101345a0
BLAKE2b-256 ad7d83a231ee0bf21347befd5b1d5a65b6661b071fc710c5da5f99a0632ded05

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page