You are lacking brackets to make the sub-loop work. Right now, you are making price_asset_1 equal to price_asset_2. and both contain the price for the last asset you have in the while loop.


Thanks so much,

OptimusPrime