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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xarizmi-0.9.1-py3-none-any.whl (42.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for xarizmi-0.9.1.tar.gz
Algorithm Hash digest
SHA256 b175cc7fd2d8096c7ba758b4cde095875d3691aa8acf95dec59f59e1543a5627
MD5 4c0b6e313a792dac7b754d0f2c64faaa
BLAKE2b-256 5324b862188086ebfc871726da12863aff9f5b875a21183a3e20a160bd127708

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xarizmi-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 42.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.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ff7567076a56482748d9fcd8a4f3f53a662f4b15e9ec1650149bfcdda856f3f5
MD5 f0533c9c50e8668bae01961b0df4181a
BLAKE2b-256 bf68935f4986999d32b13c616405cb08f46da5c1f7671d3c64baef903715d593

See more details on using hashes here.

Supported by

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