update_universe#

API documentation for tradeexecutor.strategy.pandas_trader.decision_trigger.update_universe Python function.

update_universe(universe, price_df, lending_candles=None)[source]#

Update a Trading Universe with a new candle data.

Parameters:
  • price_df (DataFrame) – Unsorted DataFrame containing data for all trading pairs we are interested in.

  • lending_candles (Optional[Dict[LendingCandleType, DataFrame]]) – New lending candles fetches from the server

  • universe (TradingStrategyUniverse) –

Return type:

TradingStrategyUniverse