Renamed spot_rate to spotRate