OPEN-SOURCE SCRIPT
已更新

Binance Pseudo Funding Fee

969
The indicator calculates the Funding Fee for Binance based on the Premium Index provided by TradingView. The calculation formula can be found here: Binance Funding Rate Introduction. This is NOT the official rate visible on binance.com and used for settlements, but rather an estimated rate, which is inherently INACCURATE. The accuracy of the calculation heavily depends on the timeframe, with almost perfect results on minute-based timeframes.

For the most accurate calculations, you need to visit Binance Funding History and fill in the corresponding Interval, Interest Rate, and Funding Cap/Floor settings for the specific symbol in the indicator's settings. I understand this is not convenient, but for now, this is how it works.

The blue bars indicate the settlement time. Funding can be smoothed using moving averages. Both the funding rate and the moving averages are displayed using plot and are labeled, so you can set alerts on them.
版本注释
1. Hardcoded default settings for a number of tokens (not all).** For the hardcoded settings to be applied, leave the settings as **0**.
2. Added a label displaying the applied settings and the current value of the calculated funding rate.**
版本注释
Added functionality to display the time remaining until the next closest funding settlement time.

And, most importantly, a chart of the time multiplied (optionally) by the current funding value or its moving average has been implemented. This chart allows setting an alert on it. For example, you can set an alert 2 minutes before funding settlement if the funding value at that moment is between -1% and -2%.

The alert chart display is disabled by default but is still calculated, visible in the Data Window, and can be used for setting alerts.

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。