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.2.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.2-py3-none-any.whl (42.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xarizmi-0.9.2.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.2.tar.gz
Algorithm Hash digest
SHA256 c0a60edd9a223b70a744f2d5eae61787ea0852e293935cf4cb4e8d536a357b06
MD5 564d6df5d5339b6bd9d96b6040e7dbe3
BLAKE2b-256 e9d6c60d8955f726f2099724251bdbb80d1813bf3cc105249dda23fef7df027f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xarizmi-0.9.2-py3-none-any.whl
  • Upload date:
  • Size: 42.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.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 92451a58e1aac997408dc19189c2e68a1f75b1c71e681e5e4b20575f2f167f4b
MD5 9c168863c6d7e3703f35b5e726acf948
BLAKE2b-256 f781383f789870c91b24720945ca31ee0a89012d41d597b4ec0a7867d690ceb1

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