fixes two market issues: swaps bid/ask depth on market flip; updates order type on short->margin transition