OANDA API - Weekend = 7

Posted By: chsmac85

OANDA API - Weekend = 7 - 03/10/19 19:18

Hello,
I've been running zorro on a cloud based VPS for a few months now. I have set zorro's weekend variable to Weekend = 7 and when checking the logs, I see that zorro sets weekend = on and weekend = off just fine.

However, sometimes OANDA does server maintenance over the weekends. This results in my zorro log printing "Insufficient authorization to perform request" or "The account specified does not exist'." during this weekend time.

This seems odd to me as I would think zorro is disconnected. However, it seems more precise to say that zorro isn't asking for or recording price data for the weekend but is still logged in. Am I correct in this thinking?

I've read the OANDA API helpfile and it didn't seem to handle this case.

If I restart the zorro trading program with stop trading, don't close positions and restart, the error goes away and all seems fine. However, this is a little suboptimal for my "set it and forget" mindset. I was away one weekend and I had trades open but zorro wasn't connected. It was a little into Monday before I realized the issue and reconnected.

Any ideas on how I can get rid of this issue?

Thanks,
Mac
Posted By: Seymour

Re: OANDA API - Weekend = 7 - 03/11/19 11:55

I am having this issue too, and my Weekend = 2.
Posted By: jcl

Re: OANDA API - Weekend = 7 - 03/11/19 12:54

No, as to my knowledge Oanda has no login or logout. It is a REST API. It should not matter if you set Weekend = 7 or not.

So if you get error messages during the weekend, you can normally ignore them. But I agree that it would make sense when Weekend = 7 would suppress those error messages and all communication with the server. I'll put this on our list for implementation.
Posted By: chsmac85

Re: OANDA API - Weekend = 7 - 03/11/19 15:58

Thanks, JCL!
Posted By: MatPed

Re: OANDA API - Weekend = 7 - 03/11/19 17:35

I have had issue with the Oanda plug in during week end .
I have set weekend =7 and it works.
I receive strange messages around 10pm every day.
HtH
© 2024 lite-C Forums