8000 Funding Fee by samgermain · Pull Request #5364 · freqtrade/freqtrade · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Funding Fee #5364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

samgermain
Copy link
Member

Needed for futures. Funding fees are charged, or rewarded to traders based on the price of the asset, and keep the futures contracts in line with the actual asset. Binance charges them at 00:00, 08:00, and 16:00 UTC every day.

They're explained here
https://www.binance.com/en/blog/421499824684900382/A-Beginners-Guide-To-Funding-Rates

Summary

Creates a funding fee object which periodically increases the funding fee on all trades by looping through all trades at 00:00, 08:00, and 16:00 UTC and adding a certain amount to each trade. When the bot crashes, FundingFee has a reboot function which checks all trades for when the last funding fee was applied, and applies missed funding fees. When a new trade is created, if the time is within 15s of 00:00, 08:00, or 16:00 UTC, then a funding fee amount is applied immediately

@xmatthias xmatthias added the Non-spot Non-spot (margin, leverage, futures) related issues and Pull requests label Aug 6, 2021
Copy link
Member
@xmatthias xmatthias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd propose to focus on finishing one PR after the other, instead of opening one after the other without finishing each.
In general, i don't mind having parallel PR's if they don't include the same code (and are all based on the same root).

currently however, i feel like many PR's you make include the same code (like the liqformula file for example - which i also looked at in #5348, and requested the same change to be made).

This which wastes a lot of time as i'm reading through the same thing again until i realize that i did see this code already.

@samgermain samgermain changed the title Created FundingFee class and added funding_fee to LocalTrade and freqtradebot Funding Fee Aug 6, 2021
@samgermain
Copy link
Member Author

I'll close this until I can rebase

@samgermain samgermain closed this Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Non-spot Non-spot (margin, leverage, futures) related issues and Pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0