Skip to content

Commit

Permalink
fixing a couple of issues from merging upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bug-or-feature committed Jun 15, 2022
1 parent 9460f3d commit 1f11f0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
7 changes: 0 additions & 7 deletions sysbrokers/IG/ig_futures_contract_price_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,6 @@ def get_list_of_instrument_codes_with_price_data(self) -> list:
list_of_instruments = self.futures_instrument_data.get_list_of_instruments()
return list_of_instruments

def get_prices_at_frequency_for_contract_object(
self, contract_object: futuresContract, freq: Frequency = DAILY_PRICE_FREQ
):
return self._get_prices_at_frequency_for_contract_object_no_checking(
contract_object, freq=freq
)

def _get_prices_for_contract_object_no_checking(
self, contract_object: futuresContract
) -> futuresContractPrices:
Expand Down
6 changes: 3 additions & 3 deletions sysproduction/update_historical_prices.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self, data, instrument_list=None):
self._instrument_list = instrument_list

def update_historical_prices(self):
update_historical_prices_with_data(self.data, self._instrument_list)
update_historical_prices_with_data(self.data, instrument_list=self._instrument_list)


def update_historical_prices_with_data(data: dataBlob,
Expand Down Expand Up @@ -114,10 +114,10 @@ def update_historical_prices_for_instrument_and_contract(
if result is failure:
# Skip daily data if intraday not working
if cleaning_config.dont_sample_daily_if_intraday_fails:
data.log.msg("Had a problem samping intraday, skipping daily to avoid price gaps")
data.log.msg("Had a problem sampling intraday, skipping daily to avoid price gaps")
return failure
else:
data.log.warn("Had a problem samping intraday, but **NOT** skipping daily - may be price gaps")
data.log.warn("Had a problem sampling intraday, but **NOT** skipping daily - may be price gaps")

# Get daily data
# we don't care about the result flag for this
Expand Down

0 comments on commit 1f11f0a

Please sign in to comment.