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.6.3.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

xarizmi-0.6.3-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xarizmi-0.6.3.tar.gz
  • Upload date:
  • Size: 15.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.6.3.tar.gz
Algorithm Hash digest
SHA256 3db2bcb3a2c93c3d8a16dd7bf123cb660ca92d47d85347bb09548c64cb819aaf
MD5 230e8637e2a0ecf82a21ed38b4c6f362
BLAKE2b-256 b01f0698f2860de8d00d7ea5adeed755779913bd7bd944031acf00470b8b7749

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xarizmi-0.6.3-py3-none-any.whl
  • Upload date:
  • Size: 15.9 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.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 962794530b2088f8cc103f71794eb03d5be61087ef7f635f0cdab6c4386b4f51
MD5 48d32a37201c0032142f5c2d1eaa35fd
BLAKE2b-256 b2790f6d5377f6afd0f448cb71111ad86c8f4b2e5afd65f155ea81f7929a44df

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