Python for Finance: Analyze Big Financial Data
elle
(Elle)
#1
Further Reading
The following web resources are helpful with regard to the topics covered in this chapter:
The Python documentation should be a starting point for the basic tools and
techniques shown in this chapter: http://docs.python.org; see also this overview page:
You should consult the home page of Bokeh for more on this webfocused plotting
For more on Flask, start with the home page of the framework:
Apart from the Python documentation itself, consult the home page of the Werkzeug
For a Flask reference in book form, see the following:
Grinberg, Miguel (2014): Flask Web Development — Developing Web Applications
with Python. O’Reilly, Sebastopol, CA.
Finally, here is the research paper about the valuation of volatility options:
Gruenbichler, Andreas and Francis Longstaff (1996): “Valuing Futures and Options
on Volatility.” Journal of Banking and Finance, Vol. 20, pp. 985–1001.
[ 50 ]
[ 51 ]
[ 52 ]
This example is for illustration purposes only. In general, you would want to use specialized libraries such as lxml
or Beautiful Soup.
[ 53 ]
There are alternatives to these libraries, like Requests, that come with a more modern API.
[ 54 ]
For more information on interactive plots with matplotlib, refer to the library’s home page.
[ 55 ]
The majority of graphics formats matplotlib can export to are static by nature (i.e., bitmaps). A counterexample is
graphics in SVG (Scalable Vector Graphics) format, which can be programmed in JavaScript/ECMAScript. The
library’s website provides some examples of how to do this.
[ 56 ]
Python.
[ 57 ]
Although the framework is still quite recent (it all started in 2010), there are already books about Flask available.
Cf. Grinberg (2014).
[ 58 ]
The example application is called Flaskr and represents a microblog application. Our example is, more or less, a
mixture between Flaskr and Minitwit, another Flask example application resembling a simple Twitter clone.