There is a version of this bot already in the CopyBot Section (for BNX, AXS, GMT and some more), but you are not able to create them by yourself. To even further optimize this bot, you could make the bot switch its buy and sell option in the spot and perp future market, so it adjusts to any market situation. Optimally this should happen right before the funding rate is payed, so you avoid having to pay unnecessary buying and selling fees, if the funding rate flips multiple times during the 8 hours. It could possibly also calculate if its even worth it to flip the buy and sell option, based on the transaction fees you would have to pay for flipping them (If the funding fee flips, but is very very low, the transaction fees to switch the bot strategy could prob be higher, so there wouldnt be a reason to flip it, doesnt apply of course when the market flips and stays that way, than after a couple of funding rates you would still make profit)