create_binance_universe#
API documentation for tradeexecutor.utils.binance.create_binance_universe Python function.
- create_binance_universe(symbols, candle_time_bucket, stop_loss_time_bucket=None, start_at=None, end_at=None, reserve_pair_ticker=None, include_lending=False, force_download=False, trading_fee_override=None, forward_fill=False)[source]#
- Create a Binance universe that can be used for backtesting. - Similarly to fetch_binance_dataset, this function loads all the data needed for backtesting, including candlestick, stop loss, lending and supply data for all valid symbols. - Parameters:
- candle_time_bucket (TimeBucket) – Time bucket for candle data 
- stop_loss_time_bucket (tradingstrategy.timebucket.TimeBucket | None) – Time bucket for stop loss data 
- start_at (datetime.datetime | None) – Start time for data 
- end_at (datetime.datetime | None) – End time for data 
- reserve_pair_ticker (str | None) – Pair ticker to use as the reserve asset 
- include_lending (bool) – Whether to include lending data or not 
- force_download (bool) – Whether to force download of data or get it from cache 
- trading_fee_override (float) – Set fee to all trading pairs to this 
- forward_fill – Forward fill data gaps when Binance was down 
 
- Returns:
- Trading strategy universe 
- Return type: