Using this code, one can download day ahead and realtime wholesale hourly and fifteen minute electricity price data from California Independent System Operators (CAISO) and save the price data as csv
Please refer to user manual from CAISO before downloading any data and use node locations to determine which node to use.