Mastering Markets