Essays on the regulation and microstructure of equity markets door