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.6.2.tar.gz
(14.7 kB
view details)
Built Distribution
xarizmi-0.6.2-py3-none-any.whl
(15.7 kB
view details)
File details
Details for the file xarizmi-0.6.2.tar.gz
.
File metadata
- Download URL: xarizmi-0.6.2.tar.gz
- Upload date:
- Size: 14.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 199b0395cceda5eb0ac9a70c8f01971150eb2a13520b39ddcdda502cc21393b6 |
|
MD5 | 4fc77d807d9a3d24214cf88c8476a836 |
|
BLAKE2b-256 | eaa85f150a46f4767cb5233966590f4e8ca310d845ee1bad1e44b823681cbfb8 |
File details
Details for the file xarizmi-0.6.2-py3-none-any.whl
.
File metadata
- Download URL: xarizmi-0.6.2-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41c11c5587e9823b86fb43dfa60a339187f288c67e7287641d0fd76489327e70 |
|
MD5 | b9e9c49135e3206c35d6cb7dca4c56b2 |
|
BLAKE2b-256 | 82d4308055443ae65647001309efe44c0e813a6f5afa437d22e032b7ea028fea |