This is great!
Just please have in mind that the bot shouldn't be the one driving down the price during margin calls.
Because in my opinion it hurts the bitshares DEX and creates fear of borrowing bitassets.
I don't know exactly how to prevent it but during the last margin calls there were bots constantly underbidding the call, making the people lose more money than necessary.
RE: DEXBOT Progress Report for 24th February 2018