Technical analysis library for financial data.
Project description
takit
Technical analysis library for Python.
Definitions
The library is structured around the following definitions:
- Indicator: Produces a continuous value based on the input data to indicate trend, momentum, volatility, etc.
- Signal: Produces a discrete value like 1, 0, -1 to signal trend change, overbought, oversold, etc.
These functions are located in the different subpackages indicators and signals.
Features
- Validation of input pandas Series / DataFrames to indicators and signals
- Ready to use signal calculations based on the indicator values
Installation
pip install takit
# or with optional group `data` for fetching data
pip install "takit[data]"
Usage
To use the following example you need to install the library with the optional group data.
import pandas as pd
import takit
# Fetch data
ohlc = takit.data.fetch_data(
data_source="binance", ticker="BTCUSDT", interval="1d", start="2023-01-01", end="2025-07-01"
)
# Calculate indicators
df = pd.concat(
[
ohlc,
takit.bb(ohlc["close"], include_width=True, include_percentage=True),
takit.wvf(ohlc),
takit.rsi(ohlc["close"]),
],
axis=1,
)
print(df.tail(40))
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
takit-0.1.0.tar.gz
(12.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
takit-0.1.0-py3-none-any.whl
(21.2 kB
view details)
File details
Details for the file takit-0.1.0.tar.gz.
File metadata
- Download URL: takit-0.1.0.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37dc033c670c1912f85fde18a0638f433adf6851369d5caeb0dbc135783e973f
|
|
| MD5 |
94c14b7a537e6bac67bf50459cd533a3
|
|
| BLAKE2b-256 |
6ad9a869511670cb23ab08da6da4fc953429a0f16fa48d01b8aeeec63cd96104
|
File details
Details for the file takit-0.1.0-py3-none-any.whl.
File metadata
- Download URL: takit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 21.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13d8e7ee3680610e55a58522baf3f24d28a9036d479d4d43e9cf43548058e33e
|
|
| MD5 |
3cef90cab52d53218b5afe1a64fbde6b
|
|
| BLAKE2b-256 |
2f5e6b871568461aa330dea7e2daa4f7798ee64b2940cf41643c7aa7f9c4cd91
|