Book Image

Python for Finance

By : Yuxing Yan
Book Image

Python for Finance

By: Yuxing Yan

Overview of this book

A hands-on guide with easy-to-follow examples to help you learn about option theory, quantitative finance, financial modeling, and time series using Python. Python for Finance is perfect for graduate students, practitioners, and application developers who wish to learn how to utilize Python to handle their financial needs. Basic knowledge of Python will be helpful but knowledge of programming is necessary.
Table of Contents (14 chapters)
13
Index

Using and debugging other programs

Quite often than not, we might start our project based on a program or programs written by others, such as the programs by our fellow researchers, other students, teachers, programs downloaded from the Internet, or the old programs we wrote ourselves a long time ago. As the first step, we need to know whether our borrowed program contains any errors. These two methods could be used to debug such a program. In a sense, the second method, comment-all-out method, is preferred since it might save us some typing or copy-and-paste time. To debug other programs, the key is to find the locations of the errors. Here is a very useful Python program to get data from Yahoo! Finance: http://goldb.org/ystockquote.html. A beginner could download the program to try small functions contained in the program.