Implemented exchange_for_date

code isn’t pretty but does the job