trades(): add lookahead warning to docstring

This commit is contained in:
Joe Schr 2024-05-17 15:58:29 +02:00
parent ab7f8b3a0f
commit 8afcaeeed9

View File

@ -502,6 +502,7 @@ class DataProvider:
"""
Get candle (TRADES) data for the given pair as DataFrame
Please use the `available_pairs` method to verify which pairs are currently cached.
This is not meant to be used in callbacks because of lookahead bias.
:param pair: pair to get the data for
:param timeframe: Timeframe to get data for
:param candle_type: '', mark, index, premiumIndex, or funding_rate