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.10.0.tar.gz (45.4 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.0-py3-none-any.whl (66.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for xarizmi-0.10.0.tar.gz
Algorithm Hash digest
SHA256 71dfc6d5a15f1c7abc12d9d410049814bd741f7e9f126335fd01e381696c3448
MD5 5176690ac645b7f1299df867a4988e7a
BLAKE2b-256 ce7a8236dd56a01a8b50ed8979906b04b1960846e7d4642d6ef2e8c09a4cce5e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xarizmi-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 66.8 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.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0450dd8ea8d6b559fb59541b657ccdd16cf4feee4232a07292aee079ad93ffe7
MD5 308e9e011c4293232f862dfcb8182bed
BLAKE2b-256 92d17af0c6f6674c770d584b659c08690f29f3127e395018cade1d37dfac9e70

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