Fugle Realtime
Fugle Realtime API client library for Python
Install
$ pip install fugle-realtime
Usage
The library a Python client that supports HTTP API and WebSocket.
HTTP API
from fugle_realtime import HttpClient
api_client = HttpClient(api_token='demo')
intraday.meta
api_client.intraday.meta(symbolId='2884')
intraday.quote
api_client.intraday.quote(symbolId='2884')
intraday.chart
api_client.intraday.chart(symbolId='2884')
intraday.dealts
api_client.intraday.dealts(symbolId='2884', limit=50)
intraday.volumes
api_client.intraday.volumes(symbolId='2884')
historical.candles
api_client.historical.candles('2884', '2022-02-07', '2022-02-11', None)
api_client.historical.candles('2884', None, None, 'open,high,low,close,volume,turnover,change')
Simple WebSocket Demo
import time
from fugle_realtime import WebSocketClient
def handle_message(message):
print(message)
def main():
ws_client = WebSocketClient(api_token='demo')
ws = ws_client.intraday.quote(symbolId='2884', on_message=handle_message)
ws.run_async()
time.sleep(3)
ws.close()
if __name__ == '__main__':
main()
Reference
License
Metadata
Release files for fugle-realtime 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fugle-realtime-0.4.2.tar.gz | 4.7 kB | Without provenance | Details for fugle-realtime-0.4.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fugle_realtime-0.4.2-py3-none-any.whl | Python 3 | none | any | Details for fugle_realtime-0.4.2-py3-none-any.whl |
Total release size: 11.6 kB
Release files / fugle-realtime-0.4.2.tar.gz
| Download URL | fugle-realtime-0.4.2.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
75f7b361d1b461afd420e768670a9387086212b5043d31437939f52a7fe44f64
|
|
BLAKE2b-256 checksum How to use checksums |
57ae31d5acb88bf90c5ef5d2c5a0a444eedf4186d29261a5a8bbe8f736a73b89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.8 CPython/3.9.14 Darwin/20.6.0
|
Release files / fugle_realtime-0.4.2-py3-none-any.whl
| Download URL | fugle_realtime-0.4.2-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
56e12bb374506ce3607c78c85168e54a445312d43722674c61bbaecaedab6903
|
|
BLAKE2b-256 checksum How to use checksums |
b22c9a859958199f9bcddce254eb38c7848f1daa0e5cfe10670b916bf0e66664
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.8 CPython/3.9.14 Darwin/20.6.0
|
Security for fugle-realtime 0.4.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.