Crypto
1 entries. What each one takes, what it returns, and a working example.
Perp funding rate series (bar-aligned; raw decimal 0.0001 = 0.01%, positive = longs pay). Crypto only. For funding-based strategies.
A perp funding rate series (aligned to the bar; 0.0001 = 0.01%).
Note
Only meaningful in crypto; when the value is positive the long side pays. For funding-based strategies.
CODESCRIPT
enterLong(funding() < 0) exit(funding() > 0)
Opens a long position when the funding rate turns negative and closes it when it turns positive, trying to avoid being the side that pays funding on futures.