Yes, it is absolutely legal. Betfair Security team has confirmed that the application meets the highest level of security and has authorized its use