Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # fee and min_profit in percentages
- def check_arbitration(lowest_ask, highest_bid, fee_ask, fee_bid, min_profit):
- result = ((((1 / lowest_ask) * (1 - fee_ask / 100)) * highest_bid) * (1 - fee_bid / 100))
- profit = result - 1
- return profit * 100 > min_profit
- print(check_arbitration(3.53500000, 3.7239, 0.1, 0.2, 5))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement