FINM 37601 1 (Autumn 2017) Mathematical Market Microstructure: An Optimization Approach