Skip to main content

Xarizmi (read Khwarizmi) project is an educational project thatcontains tools for technical analysis in Python.

Project description

Xarizmi

Xarizmi (read Khwarizmi) project is an educational project that contains tools for technical analysis in Python.

Installation

pip install xarizmi

Example

Build Candlestick

from xarizmi.candlestick import Candlestick
c = Candlestick(
    **{
        "open": 2,
        "low": 1,
        "high": 4,
        "close": 3,
    }
)

Indicators

OBV Indicator

from xarizmi.candlestick import CandlestickChart
from xarizmi.ta.obv import OBVIndicator

# assuming btc_usdt_monthly_data is defined (similar to tests/conftest.py)
c = CandlestickChart.model_validate({"candles": btc_usdt_monthly_data})

obv_indicator = OBVIndicator(candlestick_chart=c, volume='amount')
obv_indicator.compute()
print(obv_indicator.indicator_data)
obv_indicator.plot()

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

xarizmi-0.8.7.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

xarizmi-0.8.7-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

Details for the file xarizmi-0.8.7.tar.gz.

File metadata

  • Download URL: xarizmi-0.8.7.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.7

File hashes

Hashes for xarizmi-0.8.7.tar.gz
Algorithm Hash digest
SHA256 9c0139a0a2c98bb56bf766041274a5b0563b391dbe8ab45949883df79796a0b7
MD5 19c9cd6e6a6a7c6f7843cd14e8c3e811
BLAKE2b-256 c520c3b96ab7bf0da7a60db12fe06e403c9c7289cef88d424399d8ad6f9c7f21

See more details on using hashes here.

File details

Details for the file xarizmi-0.8.7-py3-none-any.whl.

File metadata

  • Download URL: xarizmi-0.8.7-py3-none-any.whl
  • Upload date:
  • Size: 28.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.7

File hashes

Hashes for xarizmi-0.8.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e543bab0ecf045a31804eb9b9bfd9c2bcb6f18011881f0ffccde22061aec21dc
MD5 e329f97bb724784e74478bf3676edac3
BLAKE2b-256 19ac74d5cbcab1949a60e97b0b089c5ebb6c53ec054c415d621f40d10b665b98

See more details on using hashes here.

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