def METHOD_NAME(data: dataBlob, strategy_margin_dict: dict):
    margin_data = dataMargin(data)
    for strategy_name, strategy_margin in strategy_margin_dict.items():
        margin_data.add_strategy_margin_entry(
            strategy_name=strategy_name, margin_entry=strategy_margin
        )
        data.log.debug(
            "Updated margin for %s to %f" % (strategy_name, strategy_margin),
            strategy_name=strategy_name,
        )