decision_trigger#

tradeexecutor.strategy.pandas_trader.decision_trigger Python module in Trading Strategy framework.

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

Classes#

UpdatedUniverseResult

Describe the result of universe waiting operation.

Functions#

fetch_availability(client, bucket, pairs)

Fetch the trading data availability from the oracle.

fetch_data(client, bucket, timestamp, pairs, ...)

Download the pair data.

update_universe(universe, 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_universe_data_availability_jsonl(...)

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