Skip to content

Commit

Permalink
repointing data refs to rawdata refs to make it easier to override
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Carver committed Jan 10, 2024
1 parent 8078f17 commit 949a58c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion systems/accounts/account_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def get_rolls_per_year(self, instrument_code: str) -> int:
return rolls_per_year

def get_value_of_block_price_move(self, instrument_code: str) -> float:
return self.parent.data.get_value_of_block_price_move(instrument_code)
return self.parent.rawdata.get_value_of_block_price_move(instrument_code)

def get_fx_rate(self, instrument_code: str) -> pd.Series:
return self.parent.positionSize.get_fx_rate(instrument_code)
Expand Down
4 changes: 4 additions & 0 deletions systems/rawdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ def config(self) -> Config:
def get_raw_cost_data(self, instrument_code: str):
return self.data_stage.get_raw_cost_data(instrument_code)

def get_value_of_block_price_move(self, instrument_code: str) -> float:
return self.data_stage.get_value_of_block_price_move(instrument_code)


@input
def get_daily_prices(self, instrument_code) -> pd.Series:
"""
Expand Down

0 comments on commit 949a58c

Please sign in to comment.