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

Uploaded Source

Built Distribution

xarizmi-0.8.3-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xarizmi-0.8.3.tar.gz
  • Upload date:
  • Size: 21.9 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.3.tar.gz
Algorithm Hash digest
SHA256 49658129d86aa623c79364c4bbe56a2b2b773f869b1cff5983415770fb79e22f
MD5 566471566fa60c38c08417bbe23441e4
BLAKE2b-256 1d41c4dc745981805154ef9c22fa8a9b4739db71ef580bd60f6adddfaebd03c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xarizmi-0.8.3-py3-none-any.whl
  • Upload date:
  • Size: 28.1 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5d7af78e6bd97f7d0d8dcd86ed9f6ab72868b6bb52c0f0b3f80a93e68ea0aaa1
MD5 5b5b12d9d4d9301e6da0c74a4fb2b971
BLAKE2b-256 7592808247a2a6e0230b42048a76de232a2bbf176a9c5480a50bb376ff66575f

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