def persist_fx_rates(self, asset_manager_id, business_date, fx_rates, update_existing_rates=True):
self.logger.info('<STR_LIT>', asset_manager_id, business_date)<EOL>url = '<STR_LIT>' % (self.endpoint, asset_manager_id, business_date.isoformat())<EOL>params = {'<STR_LIT>': update_existing_rates}<EOL>fx_rates_json = [fx_rate.to_interface() for fx_rate in fx_rates]<EOL>response = self.session.post(url, params=params, json=fx_rates_json)<EOL>if response.ok:<EOL><INDENT>fx_rates = [json_to_fx_rate(fx_rate) for fx_rate in response.json()]<EOL>return fx_rates<EOL><DEDENT>else:<EOL><INDENT>self.logger.error(response.text)<EOL>response.raise_for_status()<EOL><DEDENT>
:param asset_manager_id:
:param business_date: The business date for which these are rates.  Not really needed, could be derived...
:param fx_rates:
:param update_existing_rates:
:return: