Calculate the Chaikin Money Flow (CMF) for a given price series.

The Chaikin Money Flow sums the same Money Flow Volume used by the Accumulation/ Distribution Line over a rolling window and normalizes it by the window’s total volume, turning the running (unbounded) Accumulation/Distribution Line into a bounded oscillator. Sustained readings above zero indicate buying pressure (accumulation) is dominating over the window, while sustained readings below zero indicate selling pressure (distribution).

The formula is as follows:

\[\text{Money Flow Multiplier} = ((\text{Close} - \text{Low}) - (\text{High} - \text{Close})) / (\text{High} - \text{Low})\] \[\text{Money Flow Volume} = \text{Money Flow Multiplier} \cdot \text{Volume}\] \[\text{CMF} = \operatorname{Sum}(\text{Money Flow Volume},\; \text{window}) / \operatorname{Sum}(\text{Volume},\; \text{window})\]

Also known as: CMF, Chaikin Money Flow.

Chaikin Money Flow (CMF) in Python or via the MCP

Install the Finance Toolkit with:

pip install financetoolkit -U

Then call get_chaikin_money_flow as shown below.

from financetoolkit import Toolkit

toolkit = Toolkit(
    tickers=["ETHUSD", "SOLUSD"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2021-01-01",
    end_date="2025-12-31",
)

toolkit.technicals.get_chaikin_money_flow().tail(5)

Or, after setting up the Finance Toolkit MCP, ask:

How did the Chaikin Money Flow of Ether and Solana compare from 27 to 31 December 2025?

Which returns:

Date ETHUSD SOLUSD Benchmark
2025-12-27 -0.0938 -0.143 0.0688
2025-12-28 -0.1006 -0.0945 0.0818
2025-12-29 -0.1815 -0.1419 0.1253
2025-12-30 -0.1279 -0.0749 0.0534
2025-12-31 -0.1646 -0.1521 -0.0918

Parameters

get_chaikin_money_flow accepts the following parameters.

ParameterTypeDescriptionExample
periodstrThe time period to consider for historical data. Can be “intraday”, “daily”, “weekly”, “monthly”, “quarterly” or “yearly”. Defaults to “daily”."weekly"
close_columnstrThe column name for closing prices in the historical data. Defaults to “Adj Close”, in which case the open, high and low prices are adjusted for dividends in the same way."Close"
windowintNumber of periods to sum the Money Flow Volume and volume over. Defaults to 20.10
roundingint | NoneThe number of decimals to round the results to. Defaults to None, which uses the rounding of the Toolkit (4 unless set otherwise).2
growthboolWhether to calculate the growth of the Chaikin Money Flow. Defaults to False.True
lagint | list[int]The lag to use for the growth calculation. Defaults to 1.4
standardizeboolWhether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False.True
Share