Skip to content

Getting Started with Python

QuantWave is designed to feel like a natural extension of Polars.

Installation

pip install quantwave

Quick Start

import polars as pl
from quantwave import ta

# Load your data
df = pl.read_parquet("ohlcv.parquet")

# Add indicators using the .ta namespace
df = df.with_columns(
    ta.rsi("close", 14).alias("rsi"),
    ta.mama("close").alias("mama"),
)

print(df.head())

Batch vs Streaming

While the above example shows batch processing with Polars, QuantWave also supports streaming:

from quantwave import SuperTrend

# Initialize the indicator
st = SuperTrend(10, 3.0)

# Process ticks
for high, low, close in price_data:
    signal = st.next(high, low, close)
    print(signal)