Reads data from coinbase, accesses it as JSON, extracts relevant information and writes it to file.