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.3.tar.gz (38.8 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.3-py3-none-any.whl (55.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xarizmi-0.9.3.tar.gz
  • Upload date:
  • Size: 38.8 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.3.tar.gz
Algorithm Hash digest
SHA256 d8f65aa7c8a0c74626c4d1e8e0cb261d537640ce2f0b4a589b3215df4cab2cf9
MD5 12d7c2f2b9ec93a1cb20a6193551451a
BLAKE2b-256 897019821b10e402687876a4f74b0fd598ec80875100e8924fcec6c9a64c1372

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xarizmi-0.9.3-py3-none-any.whl
  • Upload date:
  • Size: 55.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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b0cffaedbccef9bc795d6375f5333e6c3c00dc7d2e99de68eaf48b7ae806a457
MD5 757fb4a7b27a3651ed6664d1883c7bf6
BLAKE2b-256 04d72e9c4bd2ffc8edea8381bb89361da4663df5a6b1f8e6ffbbfce462009d80

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