Closed yang2lalang closed 4 years ago
example code from the README extracts M1 perfectly your instrument names are wrong also, should read: GBP_USD, EUR_USD timestamps should be in format: "2019-01-01T00:00:00Z
if len(tradeDict) <= 0 :
print("Oanda server Returned empty Dict:Check that chosen dates don't fall on weekends or public holidays")
return
You should use continue
instead of return
.
A generated request can have parameters falling in a weekend or weekend extended with some holiday. The smaller the timeframe the bigger the chance this can happen. The continue
will simply process the next request. Using return
you terminate the processing the first time it returns no data.
I will close the issue
The problem is that attempting to request data on low periods such as M1 or S5 or S30 data returns an empty dictionary. I am only able to get data on higher time frames
The data is requested using:
and called using:
Please is anyone having any of these issues? Is the data from Oanda credible or do we have to pay to get useful data?