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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: xarizmi-0.8.4.tar.gz
  • Upload date:
  • Size: 22.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.8.4.tar.gz
Algorithm Hash digest
SHA256 7898e8b951c240ba07ef7162b11aa3d7afeae8424151317e2b8518638ba5f6d3
MD5 55ce2bf0ce03bb37bd1cfb8adb6a70a1
BLAKE2b-256 c89f2ec0e4f7389e1b35eb1cd853687dacf737ffaf0443b2ca792ce3adfe669e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xarizmi-0.8.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9d36fea112c7fa038f8f1d2670c3da32c136bbcd1d47002a144c28df81dd8cb2
MD5 94f81490f34917bd1ad02582c21ae982
BLAKE2b-256 6b1fde18e59c2dbafa748067c2124b270a4de5afd7c7dcb728453d1f09c05da4

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