decision_trigger#

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

Classes#

UpdatedUniverseResult

Describe the result of universe waiting operation.

Functions#

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

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