Designing stock market trading systems