Wow, I go away a couple weeks and my old bot goes crazy...
Anyways, thanks deponzit for all the updates and tweaks. A lot of these things are stuff I had been planning to work on, and in fact have in my private install, but never got around to rolling back into the core code.
I took a look at all the diffs in your branch and can vouch for anyone curious, he's not doing anything malicious, so his code is certainly safe to use.
I will mention, running on older versions of PHP is a BAD idea. There are numerous reasons this is so, but for simplicity sake lets just say if you are running code that manages actual finances on anything older than PHP 5.3, just.... don't. Upgrade... its easy, and its worth it.
I would also mention that I actually originally had BTC and LTC working in marginbot, but I removed them a while ago, when doing an update. The reasons are described better in a discussion earlier in this post ( as well as here:
https://bitcointalksearch.org/topic/m.9739115 ), but basically, it wasn't worth my time to build the UI because the return rates on BTC /LTC are so terribly low in general that you would do better to cash them out and put the money in a low interest savings account. The only reasonable way to lend on bitfinex is in USD (unless you really still believe BTC To the moon!!1 ┗(°0°)┛ o ) . Of course with USD rates dipping below .02, I guess the argument could be made there now too....