Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Edgar_Herrera, VoroneTZ, Akow), 973 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
EOD pricing code example #486265
07/08/22 14:44
07/08/22 14:44
Joined: Jun 2022
Posts: 6
B
BigW Offline OP
Newbie
BigW  Offline OP
Newbie
B

Joined: Jun 2022
Posts: 6
Hi

It looks like Zorro now supports the EOD vendor as per https://zorro-project.com/manual/en/loadhistory.htm
and
https://eodhistoricaldata.com/finan...ct-integration-with-eod-historical-data/

Can anyone share a code snippet I can use to get this working?
I can find examples for brokers and other vendors but not for EOD.

Thank you

Regards
W

Re: EOD pricing code example [Re: BigW] #486266
07/08/22 15:36
07/08/22 15:36
Joined: Aug 2021
Posts: 101
M
MegaTanker Offline
Member
MegaTanker  Offline
Member
M

Joined: Aug 2021
Posts: 101
assetHistory("AAPL",3+FROM_EOD); should work, have you tried that?

You must insert your EOD API key in Zorro.ini as described on the manual page you linked, and add the country identifier for non-US titles. By default, .US gets added if there is none specified.

Re: EOD pricing code example [Re: MegaTanker] #486267
07/09/22 20:15
07/09/22 20:15
Joined: Jun 2022
Posts: 6
B
BigW Offline OP
Newbie
BigW  Offline OP
Newbie
B

Joined: Jun 2022
Posts: 6
Thank you MT - the example below seems to run but with no effect as the control panel on the EOD site shows no API hit.

// Download and plot AAPL prices from EOD
function run()
{
BarPeriod = 1440;
assetHistory("AAPL",3+FROM_EOD);
assetAdd("AAPL");
asset("AAPL");
set(PLOTNOW);
}


INI file

// Zorro must be restarted after changing these settings
Mute = 0 // 1 = disable trading sounds
Comma = 0 // 1 = decimal comma and semicolon delimiter for exported .csv files
AutoCompile = 0 // 0 = compile always, 1 = compile only modified scripts
AutoConfirm = 0 // 1 = don't ask "Close open trades?", and leave them open
Security = 0 // 1 = don't store password, 2 = don't store user name
CleanLogs = 30 // delete logs older than 30 days, 0 = disable
CleanData = 0 // delete data files older than n days, 0 = disable
WebFolder = "Log" // for the trade status page, f.i. "C:\inetpub\wwwroot" for IIS
RTermPath = "C:\Program Files\R\R-3.5.0\bin\x64\RTerm.exe" // path to the R language terminal
PythonPath = "" // path to the Python installation, f.i. "C:\Users\Me\AppData\Local\Programs\Python\Python36-32"
EditorPath = "Notepad++\Notepad++.exe" // path to the script editor
ViewerPath = "ZView.exe" // path to the .png image viewer
HistoryFolder = "History" // folder with the price history files
StrategyFolder = "Strategy" // folder with the strategy files
HistoryScript = "Chart" // to be started with .t1, .t6, .t8
QuandlKey = "" // Quandl API key
AVApiKey = "" // AlphaVantage API key
EODKey = "62c82f06291f00.85809901" // EOD API key
IEXKey = "" // IEX API token
ZorroKey = "" // Zorro subscription token (if any)
Action = "History: -run History"
Action = "Chart: -run Chart"
Action = "Download: -trade Download"
Action = "TradeTest: -trade TradeTest"
Action = "Compile to Exe: -run -x"
Action = "Edit Zorro.ini: Notepad++\NotePad++!Zorro.ini"
Action = "Launch TWS: C:\Jts\tws.exe!"
Action = "Launch Gateway: C:\Jts\ibgateway\974\ibgateway.exe!"

Re: EOD pricing code example [Re: BigW] #486269
07/10/22 10:01
07/10/22 10:01
Joined: Aug 2021
Posts: 101
M
MegaTanker Offline
Member
MegaTanker  Offline
Member
M

Joined: Aug 2021
Posts: 101
Does Zorro print any error message? Also check if there is any response in the History/history.csv file. Zorro prints the API response in there so if it's an authentication issue or something like that it should be in there. But if EOD shows no api access then the issue probably occurs before that.

I've never used EOD myself so I can only tell you how it *should* work

Last edited by MegaTanker; 07/10/22 10:01.
Re: EOD pricing code example [Re: MegaTanker] #486273
07/11/22 06:41
07/11/22 06:41
Joined: Jun 2022
Posts: 6
B
BigW Offline OP
Newbie
BigW  Offline OP
Newbie
B

Joined: Jun 2022
Posts: 6
Thank you MT - no error message is printed and no response logged in the history csv file so have asked the Zorro team if they can add a code example to the manual to help understand how this should be done. Apprecaite the help on this thank you!

Re: EOD pricing code example [Re: BigW] #486276
07/11/22 09:56
07/11/22 09:56
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
You only need Zorro 2.48 or above, and a valid EODKey. Some special code is not needed, your assetHistory call should work. Check the log and the History folder.


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