API documentation for tradeexecutor.strategy.pandas_trader.decision_trigger Python module in Trading Strategy.

Module description#

Decision trigger.

  • Wait for the latest candle data become available to act on it immediately

  • Update TradingStrategyUniverse with the latest data needed for the current strategy cycle



Describe the result of universe waiting operation.


fetch_availability(client, bucket, pairs)

Fetch the trading data availability from the oracle.

fetch_lending_data(client, bucket, ...)

Download the new lending candles.

fetch_price_data(client, bucket, timestamp, ...)

Download the pair data.

update_universe(universe, price_df[, ...])

Update a Trading Universe with a new candle data.

validate_latest_candles(pairs, df, timestamp)

Ensure that the oracle served us correct up-to-date candles.


Wait for the data to be available for the latest strategy cycle.