Skip to main content

A python library for computing technical analysis indicators on streaming data.

Project description

Streaming Indicators

A python library for computing technical analysis indicators on streaming data.

Installation

pip install streaming-indicators

Why another TA library?

There are many other technical analysis python packages, most notably ta-lib, then why another library?
All other libraries work on static data, but you can not add values to any indicator. But in real system, data values keeps coming, and indicators should keep updating. This library is for that purpose.

Usage

Each indicator is a class, and is statefull. It will have 3 main functions:

  1. Constructor: initialise all parameters such as period.
  2. update: To add new data point in the indicator computation. Returns the new value of the indicator.
  3. compute: Compute indicator value with a new data point, but don't update it's state. This is useful in some cases, for example, compute indictor on ltp, but don't update it.

Example

from streaming_indicators import SMA

sma = SMA(10)
for i in range(20):
    print(i, sma.update(i))

MIT License

Copyright (c) [2023] [Rishabh Gupta]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

streaming_indicators-0.0.1b0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

streaming_indicators-0.0.1b0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file streaming_indicators-0.0.1b0.tar.gz.

File metadata

File hashes

Hashes for streaming_indicators-0.0.1b0.tar.gz
Algorithm Hash digest
SHA256 a4c1c0d7fbf5e7c43dc21b7ede9cf50f34d734cee3f8232a8c2f583271809001
MD5 3533bf7840be1bf2737dfe2147aafbb1
BLAKE2b-256 296275f8c55f2b4a21ef912c090bd41d8c107f3e462cb923fa34c823c7c637c5

See more details on using hashes here.

Provenance

File details

Details for the file streaming_indicators-0.0.1b0-py3-none-any.whl.

File metadata

File hashes

Hashes for streaming_indicators-0.0.1b0-py3-none-any.whl
Algorithm Hash digest
SHA256 26d9586f67cc76ff241f5b45aa6c98990664f1fbc29634bf772dd5ccdf629a2d
MD5 c1386b897b19434c72697c7b6353e6b9
BLAKE2b-256 7e11eb96c29c49c83f89735aac4671d4a8816c63cdcf938de7b937069eb18c76

See more details on using hashes here.

Provenance

Supported by

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