Having financial data handy is essential for carrying out algorithmic trading. Financial data can be both static and dynamic in nature. Static financial data is data that doesn't change during trading hours. Static data consists of lists of financial instruments, the attributes of financial instruments, the circuit limits of financial instruments, and the recorded close price of the last trading day. Dynamic financial data is data that may change continuously during trading hours. Dynamic data consists of market depth, the last traded prices, the time and quantity of financial instruments, and the recorded high and low prices of the day. This chapter includes recipes on fetching various types of financial data.
The ...