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

If you encounter error in installation use Anaconda and then install ta-lib using: bash conda install -c conda-forge ta-lib and then install other packages.

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.10.4.tar.gz (45.7 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.10.4-py3-none-any.whl (67.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for xarizmi-0.10.4.tar.gz
Algorithm Hash digest
SHA256 9b5c851c4278477f2faa2dc2ab96e82df3e0be2808065c0911cac5921985b210
MD5 7f869b98ffeba2025b8512fcfb9d8833
BLAKE2b-256 489241c72bdd1acbb90d8253bd6907c47b8dcb2df60fbc6199929c4c0cc79679

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for xarizmi-0.10.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a53c392d756d3b74f3ed9c4b84631b93a53beb21f69319d092e9c6f00985cd15
MD5 122e49560b95cea086951ef40a4ba551
BLAKE2b-256 8d7280c9fc583850774c218033027c4840083eea468903f64321212f7c725c6f

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