Pull out customized frequency from trading-IG historical data #279
-
Hi there, for this function ig_service.fetch_historical_prices_by_epic_and_num_points() My understanding is that, we specify the resolution = day, minute, while num_points = number of points to retrieve. I don't really want to download a huge set of 1-min timeframe data, and then use pandas, as_freq /resample to resample it to a 5min time-frame........ Thanks everyone! Appreciate your help, in your busy time |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I'm not sure if I understand your question correctly. If you check out the function definition in rest.py, you'll find
So if you only want the 5min timeframe, just call it by |
Beta Was this translation helpful? Give feedback.
I'm not sure if I understand your question correctly. If you check out the function definition in rest.py, you'll find
So if you only want the 5min timeframe, just call it by
ig_service.fetch_historical_prices_by_epic_and_num_points(epic, '5Min', ...)
it should do exactly what you're looking for.