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

Uploaded Source

Built Distribution

xarizmi-0.6.6-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for xarizmi-0.6.6.tar.gz
Algorithm Hash digest
SHA256 d62b6247ec4354e8eb426fe0a8f80262981b36f8ba143d2afe01423eb87a89df
MD5 f36171679ea3d4be9267d5836366c975
BLAKE2b-256 b8f32eb3bd3c5a750a7659e5293919e38416d170101d4d1c7bd89af4312164bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xarizmi-0.6.6-py3-none-any.whl
  • Upload date:
  • Size: 17.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.6.6-py3-none-any.whl
Algorithm Hash digest
SHA256 26f3bdf6c7fc909594731ca823a8d696ecdd8a362d625d7fde37255003aa4da5
MD5 380cf2d5fceeccced03664e039edb8b4
BLAKE2b-256 4216c39e71317c608dfe8400e890a2a9d57d78c4cdd1a36f339eece07e73b45a

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