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
Release history Release notifications | RSS feed
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.0.tar.gz
(16.3 kB
view details)
Built Distribution
xarizmi-0.7.0-py3-none-any.whl
(18.2 kB
view details)
File details
Details for the file xarizmi-0.7.0.tar.gz
.
File metadata
- Download URL: xarizmi-0.7.0.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d855f9848006b112453499b9aaf6ef4140c58cfc26cc59dce4de26209ca98cf |
|
MD5 | 0d8415a4c771d6b6098f7caec8fd0d7b |
|
BLAKE2b-256 | 37b9215940a28ba9cc7f7c29baddc54698cd3acc43ae253480a3b08f169c51f6 |
File details
Details for the file xarizmi-0.7.0-py3-none-any.whl
.
File metadata
- Download URL: xarizmi-0.7.0-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db369b85bc9d681200a96ee28fcb36d2eca35e912fad5b1d0cb2638ad0bf5571 |
|
MD5 | 1d181141674eac9b14388bf0c32d13c2 |
|
BLAKE2b-256 | a47e525f85b3b5de00261178bfb25f521bb7dfe0a22d50b570781058d00ebba9 |