def persist_curves(self, asset_manager_id, business_date, curves, update_existing_curves=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_curves}<EOL>curves_json = [curve.to_interface() for curve in curves]<EOL>response = self.session.post(url, params = params, json=curves_json)<EOL>if response.ok:<EOL><INDENT>curves = [json_to_curve(curve) for curve in response.json()]<EOL>return curves<EOL><DEDENT>else:<EOL><INDENT>self.logger.error(response.text)<EOL>response.raise_for_status()<EOL><DEDENT>
:param asset_manager_id:
:param business_date:
:param curves:
:param update_existing_rates:
:return: