Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Trading Journey
by 7th_zorro. 04/27/24 04:42
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Akow, AndrewAMD, Quad), 733 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Saxo Plugin #488022
12/29/23 09:26
12/29/23 09:26
Joined: Jul 2023
Posts: 15
Burgkirchen
B
bdgogo Offline OP
Newbie
bdgogo  Offline OP
Newbie
B

Joined: Jul 2023
Posts: 15
Burgkirchen
Hello, i am trying to get the Saxoplugin up and running on a saxo liveaccount. I created a App in Simulation an one in Live on Saxo Developer. I can run eg. the downloadscript with an 24 our token on the simulatuon account. If i use the live app with auth i get this Error.
Download
Login 0 Saxo V2..
!AppKey and Secret detected.
!Authorization required.
!Launching browser for Authentication...
!Waiting for user to log in to Saxo Bank via web browser...
!Listening on http://127.0.0.1:31022/
!Acquired AuthCode.
!Login successful
!Invalid access token?
Can't connect!

Any ideas what i am doing wrong? Thanks in advance . Best regards bdgogo

Re: Saxo Plugin [Re: bdgogo] #488054
01/03/24 12:03
01/03/24 12:03
Joined: Jul 2023
Posts: 15
Burgkirchen
B
bdgogo Offline OP
Newbie
bdgogo  Offline OP
Newbie
B

Joined: Jul 2023
Posts: 15
Burgkirchen
Nobody using this Plugin? Maybe you need additional Information. The Logon completes in the Webbrowser without any error. I go through the Saxo 2FA logon and the the browser says Logon ok, close this window.
But the saxo plugin then does not connect. Changing the loglevel don't bring more information and there is no plugin log. Any help is very appreciated. Thankx

Re: Saxo Plugin [Re: bdgogo] #488055
01/03/24 12:24
01/03/24 12:24
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Did you configure your Accounts.csv file correctly? Refer to the following:
https://zorro-project.com/manual/en/saxo.htm

Quote
If you have a permanent token, enter it in the User field, and keep the Password field empty.
If you have no token, enter the client id in the User field, and the secret in the password field.
Start the session. With no token, you will be redirected to a website where you enter your credentials.
Zorro will then automatically request a token and start trading.

User: Token or Client ID
Password: Empty or Secret

Example account list entries:
Code
Name,Server,AccountId,User,Pass,Assets,CCY,Real,NFA,Plugin
SaxoToken,Saxo,EUR,tokenabcdefg123456xyz,0,AssetsSaxo,USD,1,14,Saxo
SaxoAuth,Saxo,EUR,idijklmnop4711,00123456abcdef,AssetsSaxo,USD,1,14,Saxo

Re: Saxo Plugin [Re: AndrewAMD] #488058
01/03/24 14:17
01/03/24 14:17
Joined: Jul 2023
Posts: 15
Burgkirchen
B
bdgogo Offline OP
Newbie
bdgogo  Offline OP
Newbie
B

Joined: Jul 2023
Posts: 15
Burgkirchen
Thank you Andrew!
Yes, i think so because the plugin redirects me to the Saxo Loginsite and i can login there successfully. Here my Accountsentry. id and pw changed :-)
SaxoAuthlive,Saxo,EUR,ddbe1261cce1436b911cdb327xxxxxd,fed951bb100441ac9yyyyyyyabcb8888,AssetsSaxo,USD,1,14,Saxo

i also tried it with the SaxoToken entry and a 24h token. This works well but as far as i understand this works only with an simulation account and an permanent token is not possible for retail oder business accounts.

Re: Saxo Plugin [Re: bdgogo] #488060
01/03/24 16:10
01/03/24 16:10
Joined: Jul 2023
Posts: 15
Burgkirchen
B
bdgogo Offline OP
Newbie
bdgogo  Offline OP
Newbie
B

Joined: Jul 2023
Posts: 15
Burgkirchen
For the id and password in the accounts.csv i use the appid and the appsecret. In saxotrader log i see a successful application login.
I also updated the local saxotraderapp to the latest version on my Windows 11 PC

Re: Saxo Plugin [Re: bdgogo] #488061
01/03/24 16:38
01/03/24 16:38
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
I found this in my notes regarding Saxo, so maybe the man page has bad info:
  • Username is AppKey, password is the Secret.
  • In the web portal where the app keys are stored, the URL redirect must specifically be set to “http://127.0.0.1:31022/”.
  • It will need to launch a web browser, where the user must enter account credentials. It will hand a code back to Zorro.
  • The refresh tokens expire after only one hour, so the user will need to log in every time they start Zorro.
  • The good news is that the refresh tokens get automatically updated while it is up.
  • The bad news is that if the servers go down for an hour, the user will need to log in to get it back up and running.

Re: Saxo Plugin [Re: bdgogo] #488062
01/03/24 18:14
01/03/24 18:14
Joined: Jul 2023
Posts: 15
Burgkirchen
B
bdgogo Offline OP
Newbie
bdgogo  Offline OP
Newbie
B

Joined: Jul 2023
Posts: 15
Burgkirchen
Hi Andrew, thank you for the list. This is exact what i have done. The redirect URL is also ok. As you can see in the attached screenshot.
Seems that it give back a code, but the plugin cannot interpret this. I have tried this also on a different Windows 11 pc and i am using Zorro S
Best regards Dirk

Attached Files Screenshot 2024-01-03 191038.png
Re: Saxo Plugin [Re: bdgogo] #488063
01/03/24 18:39
01/03/24 18:39
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Set the LOGFILE flag and set the Verbose global value to 7 + DIAG and upload the log files. If necessary censor sensitive data.

Re: Saxo Plugin [Re: AndrewAMD] #488064
01/03/24 20:26
01/03/24 20:26
Joined: Jul 2023
Posts: 15
Burgkirchen
B
bdgogo Offline OP
Newbie
bdgogo  Offline OP
Newbie
B

Joined: Jul 2023
Posts: 15
Burgkirchen
Sorry , with this code at the beginning of the script :
function run()
{
Verbose = 7+DIAG+LOGMSG;
if(is(INITRUN))
{
set(LOGFILE);

}
...

There is no Diagnosticlogfile when i run in Trademode only in Testmode. And the normal Logfile contains the same information as posted at the beginning of the thread. I also tried to set the verboseflag in zorrofix.ini but the same result.

Re: Saxo Plugin [Re: bdgogo] #488067
01/04/24 11:17
01/04/24 11:17
Joined: Jul 2023
Posts: 15
Burgkirchen
B
bdgogo Offline OP
Newbie
bdgogo  Offline OP
Newbie
B

Joined: Jul 2023
Posts: 15
Burgkirchen
Hi, back to my initial question. Is anybody using this plugin and does it work with enabled 2fa? tnx

Page 1 of 2 1 2

Moderated by  Petra 

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