Python function copy_rates_from_pos gives prices for times 3 hours in the future.

 

Hi there,

I am logged in to an OANDA demo account on meta trader 5. When I run 

mt.copy_rates_from_pos("EURUSD.sml", mt.TIMEFRAME_M1, 0, 1)

So first OHLC from present in the minute timeframe.

I get  array([(1742876640, 1.08056, 1.08056, 1.08051, 1.08052, 13, 10, 0)],

1742876640 is a timestamp 3 hours ahead of EDT.

Am I doing something wrong or am I misinterpreting something?

 
Prabnur Bal:

Hi there,

I am logged in to an OANDA demo account on meta trader 5. When I run 

So first OHLC from present in the minute timeframe.

I get  array([(1742876640, 1.08056, 1.08056, 1.08051, 1.08052, 13, 10, 0)],

1742876640 is a timestamp 3 hours ahead of EDT.

Am I doing something wrong or am I misinterpreting something?

Python API says UTC  but actually it is broker's timezone.
 
Soewono Effendi #:
Python API says UTC  but actually it is broker's timezone.

Ahhh thank you!! So it is the latest price but just confusing. Is there some documentation I can read about this somewhere?