Closed konradsemsch closed 2 years ago
Please don't use screenshots when posting code. It disables searching for other users, as well as disables copy/paste if we'd like to try something out.
The path should NOT contain the /futures folder. The configuration is also irrelevant to load_pair_history()
- which is a function in it's own.
load_pair_history has an additional argument in candle_type
which you don't seem to be using. It's defaulting to spot - changing this to CandleType.FUTURES
should load futures data. Using 'futures'
(as string) should also work, but that's untested - but based on experience with other methods.
Oh, thank you - I missed that! I will check the method you mentioned and change my print screen to pure code.
I can confirm that your resolution worked - hence closing this.
Describe your environment
Your question
I'm working with a strategy that can buy long and short trades, for which it uses futures data. It seems to be working correctly when I run hyperopt or backtesting through the freqtrade cli. However, when I wanted to load my data for further analysis in a jupyter notebook the
load_pair_history
function wasn't able to load it.Or is simply my understanding of this wrong and I should use regular spot data as input for fine-tuning my strategy and the configuration is more intended for actually running it?
Here's a snippet of the code I try to execute (it worked with regular spot data):
Changing this line also didn't resolve the problem:
Here's my package structure:
Here's the respective config file: