Skip to content

Commit

Permalink
Fix get ticker method
Browse files Browse the repository at this point in the history
  • Loading branch information
MDUYN committed Jan 10, 2024
1 parent 59eaf86 commit 4bd91cf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions investing_algorithm_framework/app/algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,6 @@ def get_allocated(self, market=None, identifier=None) -> float:
f"{portfolio.trading_symbol.upper()}"
ticker = self._market_data_source_service.get_ticker(
symbol=symbol, market=market,
).get_data(
backtest_index_date=self.config
.get(BACKTESTING_INDEX_DATETIME)
)
allocated = allocated + \
(position.get_amount() * ticker["bid"])
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = (2, 2, 3, 'alpha', 0)
VERSION = (2, 2, 4, 'alpha', 0)


def get_version(version=None):
Expand Down

0 comments on commit 4bd91cf

Please sign in to comment.