This course focuses on the stylized facts in market microstructure and its application in algorithmic trading. In order to deal with the vast amount of real time streaming data in algorithmic trading, students will learn how to use KDB+ (a time series database) and its language q (a vectorized functional language).