Gamestudio Links
Zorro Links
Newest Posts
Accessing time series in TMF
by AndrewAMD. 10/23/19 20:16
priceClose() in TMF
by AndrewAMD. 10/23/19 20:11
ZeroMQ
by felixfx. 10/23/19 20:04
Issue with Starter Window
by txesmi. 10/23/19 09:22
Accessing All Historical Price Data
by JohnJits. 10/22/19 22:37
file_write var array ?
by laz. 10/22/19 16:00
SAV_STATS
by MatPed. 10/22/19 13:57
Instrument Price Zorro Chart
by jcl. 10/22/19 10:39
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
7 registered members (Dooley, AndrewAMD, Uhrwerk, Zheka, felixfx, kvm, 1 invisible), 465 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Bolle, VillageTalkies, line7, Shutch, Clifford_B
18311 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
OANDA API - Weekend = 7 #476568
03/10/19 19:18
03/10/19 19:18
Joined: Oct 2018
Posts: 65
AZ
C
chsmac85 Offline OP
Junior Member
chsmac85  Offline OP
Junior Member
C

Joined: Oct 2018
Posts: 65
AZ
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

Re: OANDA API - Weekend = 7 [Re: chsmac85] #476579
03/11/19 11:55
03/11/19 11:55
Joined: Oct 2017
Posts: 23
S
Seymour Offline
Newbie
Seymour  Offline
Newbie
S

Joined: Oct 2017
Posts: 23
I am having this issue too, and my Weekend = 2.

Re: OANDA API - Weekend = 7 [Re: Seymour] #476581
03/11/19 12:54
03/11/19 12:54
Joined: Jul 2000
Posts: 27,033
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,033
Frankfurt
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.

Re: OANDA API - Weekend = 7 [Re: jcl] #476589
03/11/19 15:58
03/11/19 15:58
Joined: Oct 2018
Posts: 65
AZ
C
chsmac85 Offline OP
Junior Member
chsmac85  Offline OP
Junior Member
C

Joined: Oct 2018
Posts: 65
AZ
Thanks, JCL!

Re: OANDA API - Weekend = 7 [Re: chsmac85] #476592
03/11/19 17:35
03/11/19 17:35
Joined: Feb 2015
Posts: 568
Milano, Italy
M
MatPed Online
User
MatPed  Online
User
M

Joined: Feb 2015
Posts: 568
Milano, Italy
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


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1