I haven't tried it yet, but see another problem in your CSV file: The "MKT CLOSE" lines contain no aux price, but the script tries to read a nonexistent price.

Don't attempt to program everything at once. Write a program step by step, and test every step. In this case, first write a simple version that only reads a single line. For this you can just comment out the while loop. If that works, extend it to reading multiple lines, then check the "MKT CLOSE" case.

Edit: the printf line has also a problem, you must cast float to (var) for printing it.