generate_fixed_price_candles#
API documentation for tradeexecutor.testing.synthetic_price_data.generate_fixed_price_candles Python function.
- generate_fixed_price_candles(bucket, start, end, pair_price_map)[source]#
Generate flat prices for several assets.
Creates fake fixed price data where prices are stable over a period of time.
- Parameters:
bucket (TimeBucket) –
start (datetime) –
end (datetime) –
pair_price_map (Dict[TradingPairIdentifier, float]) –
- Return type:
DataFrame