源文件:research/quant_digests/2026-04-06_0458_basis-relaxation-regimesized-funding-carry-alpha.md
README.md + strategy/backtest_v2.py + strategy/signals.py + strategy/regime.py)funding + basis 偏离时,做 long spot / short perp(或反向 short spot / long perp),靠 已锁定的 funding 收益 + basis 向锚回归 赚钱;文中的 thermodynamic 变量主要服务于 什么时候敢放大、什么时候必须缩小> 先回答一句:这篇东西的 base alpha 是什么? > > base alpha = funding carry + basis convergence,不是 Jarzynski 公式本身。 > 说人话:真正赚钱的还是 perp 太贵/太便宜时的 delta-neutral carry;“physics” 这层更像一个可复现的 regime / sizing engine,决定这笔 carry 值不值得放大做。
这轮主看 3 份材料:
10.5281/zenodo.19046564https://doi.org/10.5281/zenodo.190465642020-01 ~ 2026-03 的 Binance 数据上做了 19,697 个 funding cycles / 156,896 个 hourly basis observations 的实证。https://github.com/ElvianElvy/fluctuation-theorem-perpshttps://github.com/ElvianElvy/fluctuation-theorem-perpssignals.py:4 个 causal signalsregime.py:3 态 regime classifierbacktest_v2.py:带 signed funding + basis MTM + fees 的 realistic PnLhttps://raw.githubusercontent.com/ElvianElvy/fluctuation-theorem-perps/main/README.mdEQUILIBRIUM=100%、WARM=60%、NESS=25%这轮值得写它,不是因为“物理学很酷”,而是因为它刚好补到我们现在最缺的一块:
funding tail carry、funding persistence、spot-perp / cross-venue carry 这些 base alpha 壳 补了不少;什么时候该满仓收、什么时候该缩仓、什么时候其实在拿 basis 风险而不是拿 carry。
这篇材料的价值就在于:
> 它没有换掉 carry 这个 base alpha;它是在 carry 之上补了一个能直接复现的 regime-sized shell。
这对 desk 来说,比再看一篇“funding 高就空”的新壳更有边际价值。
别把 delta-neutral funding carry 做成固定阈值 + 固定仓位。更值得先测的是:用 basis relaxation ratio + temperature z-score + entropy rate + JE health 这 4 个 causal 信号,把相同的 carry 壳分成 可放大 / 正常 / 只保留最小 exposure 三种状态。
BTC / ETH / SOL 上,作者用 6.2 years 数据构造了 4 个 physics-derived signals;从 backtest_v2.py 可以直接读出,作者真正交易的不是“热力学因子方向预测”,而是一个很朴素的 delta-neutral 账本:
long spot + short perp):funding_pnl = notional × Fbasis_pnl = -notional × Δbasis/100short spot + long perp):也就是说,这里最重要的仍是:
所以这篇 digest 必须被归成 raw alpha,不是单纯 filter:
对当前 desk 来说,最自然的读法不是“再引入一套高深学术符号”,而是:
funding / basis / spread / OI / liquidity 世界;这就解释了它为什么比继续补一个同质化 funding headline 更值得:
> 它不是新讲一个 carry 故事,而是给 carry 家族补“position governance”这块缺口。
strategy/signals.py 里把 4 个信号写得很清楚,而且都可以 causal 计算。
定义本质上是:
r = τ_relax / τ_funding
其中:
τ_relax = 1 / κτ_funding 对 Binance perp 默认就是 8hrepo 的解释很直白:
r < 1:basis 在一次 funding 周期内就能大体回归,适合做 carry;r > 1:basis 过慢,说明你更像是在扛一笔 persistent dislocation。README 给出的关键数字:
这组数字对 desk 的翻译几乎可以直接做规则:
repo 把它定义成当前 β 相对历史分布的 z-score:
翻成人话:
这正好是 carry 最需要、但很多 funding 策略根本没显式建模的一层。
entropy_rate > 0:更像 dissipative market,funding 机制在工作; entropy_rate < 0:更像 non-equilibrium steady state,说明市场并没有顺着“贵的回落、便宜的回升”那套逻辑走。
对 desk 而言,这个量的最直接价值不是“解释市场”,而是:
> 当 entropy rate 太差时,不要继续把高 funding 误读成更好的 carry。
repo 用 |E[e^{-βσ}] - 1| 去看当前市场离“thermodynamic-like”有多远。
对交易最实用的读法是:
funding 驱动 basis 回锚 的叙事更成立;这很像一个 model trust score。
backtest_v2.py 里最值得肯定的一点,是作者没有把信号做成“预测涨跌再决定买卖”的 ML 花活,而是:
这比很多“先训个模型,再说它会赚钱”的 repo 诚实很多。
strategy/regime.py 里:
EQUILIBRIUM = 100% exposureWARM = 60% exposureNESS = 25% exposure而且阈值不是写死的绝对值,而是:
entropy 用 rolling percentile;JE health 用 rolling percentile;relaxation ratio 用危险/安全阈值;temperature z-score 用简单状态判别。这很适合我们 desk,因为它天生就支持:
BTC/ETH/SOL majors first 的第一版实验。README 和代码都明确写了 3 个关键修正:
这几个点非常关键。因为很多 funding 策略一上来就会犯 3 个错:
这篇材料在这三点上都比一般 repo 更实盘友好。
这里必须说清楚:
funding cycle;最合理的映射方式是:
1m:刷新 mark-index basis、spot-perp basis、book spread、depth、OI proxy;5m:主执行频率,决定是否建立 / 续持 / 缩仓 carry;15m:低 churn 版本,用于更稳的 desk 壳;8h funding boundary:真正兑现 carry,并评估上一 funding 周期的 basis 修复质量。这点很重要。我们不该把它硬说成“5m raw directional alpha”,而应该准确地写:
> raw alpha 仍是 carry / basis convergence;1m/5m/15m 负责的是更快的 admission、hold、de-risk 和 execution。
这并不降级它,反而让策略定义更清楚。
这是我认为最该先做的一版,不求完美,但求一周内能出结果。
优先:BTCUSDT / ETHUSDT / SOLUSDT 这 3 个 Binance perp 对应 spot。
原因:
公开可得,且不需要 key 的最小口径:
如果第一版只求最小复现,甚至可以先:
mark - index 当 basis proxy;保留 repo 的结构,但先简化成 desk 版规则:
relaxation_ratiotemperature_zscoreentropy_rateje_healthspread percentiledepth percentileOI changefunding sign flip risk#### Entry 只做最容易的一侧:
funding > 0basis > 0relaxation_ratio < 1.05temperature_zscore > -0.5entropy_rate 高于过去 40% percentileje_health 不在过去 90% 最坏分位spread/depth 过门槛然后开:
long spot / short perp#### Exit 任一满足就走:
basis 回到 rolling median 附近;funding sign flip;EQUILIBRIUM/WARM 跳到 NESS;1~2 funding cycles。#### Sizing 沿用 repo 的思路先做最朴素版:
EQUILIBRIUM = 1.0xWARM = 0.6xNESS = 0.25x第一版直接做 3 档:
8 bps round-trip16 bps round-trip(贴近 repo)25 bps round-trip同时报告:
这样能一眼看出,这条策略到底是在赚 funding,还是其实在吃 basis 偶然回撤。
这是最值得先打的 first test:
relaxation_ratio 分桶;如果这一步成立,这篇 digest 就值回票价。
对照组至少要有:
Naive always-on short basisExtreme funding threshold onlyPhysics regime-sized carry重点不是只看 Sharpe,应该优先看:
README 里最有意思的结果不是 BTC/ETH,而是:
这很像 alt-perp 市场最真实的故事:
如果这点在别的中高流动 alt 上也成立,那这篇材料对 desk 的价值会很高。
这篇 2026 Zenodo + GitHub 材料最该带给我们的,不是“市场像热力学系统”这句漂亮话,而是一个更实用的结论:funding carry 这条 raw alpha 可以继续做,但不要再用固定阈值 + 固定仓位去做;更该先测的是「basis 回归速度 × regime-sized exposure」这层完整策略升级。
BTC/ETH/SOL 的 Binance:long spot / short perp。8h funding cycle 做 payoff anchor,5m 做执行频率,1m 做状态更新。relaxation_ratiorelaxation_ratio + entropy_rate5m 与 15m 两个 child execution 版本并跑:5m 看更高响应、更高 churn15m 看更低噪音、更低 feesspread/depth/OI/liquidation veto,检查是不是能进一步压掉 alt-perp 的 path risk。10.5281/zenodo.19046564Readable URL: https://doi.org/10.5281/zenodo.19046564
Repo URL: https://github.com/ElvianElvy/fluctuation-theorem-perps
https://raw.githubusercontent.com/ElvianElvy/fluctuation-theorem-perps/main/README.mdhttps://raw.githubusercontent.com/ElvianElvy/fluctuation-theorem-perps/main/strategy/backtest_v2.pyhttps://raw.githubusercontent.com/ElvianElvy/fluctuation-theorem-perps/main/strategy/signals.pyhttps://raw.githubusercontent.com/ElvianElvy/fluctuation-theorem-perps/main/strategy/regime.py