No, once funding (financing) has been accepted, it can only be closed by the funding taker (borrower) or by the system upon expiration. Those offering funding cannot take back their funding early. The borrower can return your funds at any time before the maximum lending period ends.
When you provide margin funding, you specify the maximum lending period (2-30 days) for the margin funding to be available to the borrower. If you specify a period of 30 days, the margin funding will only be closed after 30 days have passed, or if the borrower chooses to return your funds early.
If a borrower takes your margin funding offer, opens and closes a trade position, and subsequently returns your funds all within 1 hour, margin funding interest will be charged to the borrower for that first full hour.
In an effort to dissuade manipulative funding behavior and ensure fair platform use for all, Bitfinex will charge one full day’s interest to the borrower on any funding that is borrowed and subsequently returned without being used in a financed position.