in python-batch/fsi_montecarlo/OLD/pubsub_bq.tpl.py [0:0]
def create_object(self):
self.object = {
"ticker": self.ticker,
"epoch_time": self.epoch_time,
"iteration": self.iteration,
"start_date": self.start_date,
"end_date": self.end_date,
"simulation_results": list(map(lambda x: {"price":x}, self.simulation_results))
}
return(self.object)