Would it be possible for someone to modify the lean code that connects with IB to another brokerage or is this locked behind a dll? In addition if that would even be possible is this something that is legal to do with your codebase?

Author