get_resample_frequency#

API documentation for tradeexecutor.strategy.pandas_trader.alternative_market_data.get_resample_frequency Python function.

get_resample_frequency(bucket)[source]#

Get Pandas resample frequency for our candles.

  • Map 7d to “weekly” instead of 7d + arbitrary starting date

Parameters:

bucket (TimeBucket) –

Return type:

str | pandas._libs.tslibs.offsets.DateOffset