基于每根K线内的成交,衡量单位订单流推动价格变动的幅度。
衡量单位成交量对价格的推动幅度,指标包括Amihud非流动性、Kyle lambda、单位名义金额冲击及大单反转。
2025年6月11日14:38至14:39(UTC)Binance BTC-USDT永续合约的全部11,692笔成交,数据取自免费的原始成交预览。
步骤 1
每笔成交的收益率相对于前一笔成交计算。带符号数量为其以BTC计的数量,吃单方买入为正,吃单方卖出为负。 11,691 笔成交存在前一笔成交。
即 0.019 bps (每BTC带符号成交规模)。
步骤 2
amihud_like以该分钟收益率的绝对值除以全部美元成交额,impact_per_notional则除以净带符号名义金额。两者均为每美元收益率,因此数值较小。
步骤 3
该值不区分买卖方向。正值表示价格在 5 笔成交之后更高,无论该大额成交为买入还是卖出。
步骤 4
步骤 5
Binance BTC-USDT永续合约,5分钟K线,2025年5月1日至31日,取自免费预览。
时段(UTC).
按一天中的小时统计,各K线的Kyle's lambda相对当月中位数的水平。冲击在UTC 00:00前后最高,在11:00前后最低。
冲击并未随成交量变化。各K线中,lambda与成交量的秩相关系数为0.01,因此在这里成交量难以作为冲击的代理指标。
kyle_like_lambda 是区间内的回归:以每笔成交相对前一笔的收益率,对该笔成交按交易所计价数量(此处为BTC)计算的带方向规模做回归所得的斜率。数值越高,代表流动性越差,或知情订单流越多。
amihud_like 是绝对收益率除以美元成交额。它不考虑方向,衡量每一美元成交带来的价格变动幅度。
large_trade_reversal 是区间内规模最大的前10%成交在各自之后5笔成交时的平均收益率。该指标不按买卖方向区分符号:为正表示价格继续上涨,与交易方是谁无关。 directional_impact_asymmetry 比较买方与卖方的冲击:为负表示卖单对价格的推动更大。
从零讲解,详见 从第一性原理理解市场(我们的互动课程):
Market impact — the price displacement caused by trading — is the central cost of active investing. Two foundational academic measures capture it from different angles, and both reveal something the other misses.
Kyle's seminal model of insider trading introduced lambda (λ) as the slope of the price-impact function: how much prices move per unit of signed order flow. In the model, a single informed trader optimally camouflages their trades among noise traders, and the market maker sets lambda to reflect the expected information content per dollar of flow.
Lambda is directional — it distinguishes buys pushing price up from sells pushing it down. A higher lambda means each dollar of order flow moves prices more, implying either thin liquidity or high information content in the flow. Hasbrouck (2009) showed that Kyle's lambda remains one of the most effective low-frequency proxies for the true cost of trading, outperforming many more complex alternatives.
Amihud's measure takes an elegantly simpler approach:
Where is the return and is dollar volume. It answers: how much return per dollar of trading? High ILLIQ means a small trade moves price disproportionately — the hallmark of an illiquid market.
Despite its simplicity, Amihud (2002) demonstrated that ILLIQ predicted expected stock returns cross-sectionally: illiquid stocks commanded a return premium, consistent with the liquidity risk framework of Acharya & Pedersen (2005).
We also compute directional impact asymmetry — whether buy-side lambda differs from sell-side. Markets frequently absorb sells more efficiently than buys (Chordia, Roll & Subrahmanyam, 2002), particularly in trending environments where sell pressure is expected but buy pressure can destabilize.
Both metrics are computed per interval using covariance-based estimation for Kyle lambda and absolute-return normalization for Amihud, allowing real-time tracking of intraday liquidity cycles.
References:
# Install the Aperiodic CLI into ~/.local/bin
mkdir -p "$HOME/.local/bin"
curl -fsSL https://raw.githubusercontent.com/aperiodic-io/cli/main/install.sh | INSTALL_DIR="$HOME/.local/bin" bash
export PATH="$HOME/.local/bin:$PATH"
# Free preview — no API key required
aperiodic impact --preview \
--exchange binance-futures \
--symbol perpetual-BTC-USDT:USDT \
--interval 5m \
--timestamp exchange \
--start-date 2025-05-01 \
--end-date 2025-05-31 \
--output-dir ./data && echo "Saved to $PWD/data"所有交易所和永续合约,从1分钟到日线K线,均提供 Pro.
冲击 ,API文档中的说明:端点与参数 →