diff --git a/systems/positionsizing.py b/systems/positionsizing.py index c4e1509738..7bd858622d 100644 --- a/systems/positionsizing.py +++ b/systems/positionsizing.py @@ -535,7 +535,9 @@ def get_fx_rate(self, instrument_code: str) -> pd.Series: """ base_currency = self.get_base_currency() - fx_rate = self.rawdata_stage.get_fx_for_instrument(instrument_code, base_currency) + fx_rate = self.rawdata_stage.get_fx_for_instrument( + instrument_code, base_currency + ) return fx_rate diff --git a/systems/rawdata.py b/systems/rawdata.py index 1a5f2ea89b..bb7992dc2a 100644 --- a/systems/rawdata.py +++ b/systems/rawdata.py @@ -48,10 +48,10 @@ def get_raw_cost_data(self, instrument_code: str): def get_value_of_block_price_move(self, instrument_code: str) -> float: return self.data_stage.get_value_of_block_price_move(instrument_code) - def get_fx_for_instrument( - self, instrument_code: str, base_currency: str - ): - return self.data_stage.get_fx_for_instrument(instrument_code=instrument_code, base_currency=base_currency) + def get_fx_for_instrument(self, instrument_code: str, base_currency: str): + return self.data_stage.get_fx_for_instrument( + instrument_code=instrument_code, base_currency=base_currency + ) @input def get_daily_prices(self, instrument_code) -> pd.Series: