December 2013
Beginner to intermediate
286 pages
5h 46m
English
The first application for doing something useful will be this Hello World of finance, which will illustrate some powerful yet simple concepts and strengths of F# and functional languages in general.
Let's start our journey into quantitative finance by looking at a simple yet illustrative example using Yahoo finance data. First, we will just put the data into the code to get used to the basic concepts.
First, we put some data in. In F# you can declare a list of strings on multiple lines like the following code:
/// Sample stock data, from Yahoo Finance let stockData = [ "2013-06-06,51.15,51.66,50.83,51.52,9848400,51.52"; "2013-06-05,52.57,52.68,50.91,51.36,14462900,51.36"; "2013-06-04,53.74,53.75,52.22,52.59,10614700,52.59"; ...
Read now
Unlock full access