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

Uploaded Source

Built Distribution

xarizmi-0.7.3-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for xarizmi-0.7.3.tar.gz
Algorithm Hash digest
SHA256 7fe903e6cd36754e4db92ded8f96ed7ccd20c27b211b3d35c13310ea08ee90c2
MD5 bb4d8d558a51a490a5a3424e65857b92
BLAKE2b-256 e4c6188ab0d20b558a146a1b01d9aaec38384b8af99da3d2b92b736cf6ac419a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xarizmi-0.7.3-py3-none-any.whl
  • Upload date:
  • Size: 18.4 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.7.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bfb2da9f2f3031911c43d2798b02195eef782e9001980e589657f7e6088efa0e
MD5 ee0db9f0010a75d7522e1235f539d9cf
BLAKE2b-256 ce16fe59f35c712bfaa1d1e679a837e24e4415094326d6ca5ec3b3fc03cce48a

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