hootnot / oanda-api-v20

OANDA REST-V20 API wrapper. Easy access to OANDA's REST v20 API with oandapyV20 package. Checkout the Jupyter notebooks!
MIT License
397 stars 107 forks source link

Incorrect datetime/Instruments.InstrumentsCandles #142

Closed sonic456 closed 5 years ago

sonic456 commented 5 years ago

Hi,

Could be an issue due to lack of experience.

My end goal is to pull data where I can see the correct Daily candle open and close data per forex pair. I seem to be getting an incorrect time though for my region, should be London timezone. The time it displays the data from is always set to 9pm.

Please see attached. image

Kind regards, Martin

hootnot commented 5 years ago

Hi, Markets start at sunday 21:00 UTC and end at friday 21:00 UTC. Trading days go from 21:00 one day to 21:00 next day. So, 9:00 PM is correct.

Pls. check the examples: oandapyV20-examples/src/candle-data.py