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
5 registered members (Quad, TipmyPip, degenerate_762, AndrewAMD, Nymphodora), 997 guests, and 5 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
Page 4 of 8 1 2 3 4 5 6 7 8
Re: Yahoo has changed their protocol [Re: Jeff1228] #466113
05/25/17 15:19
05/25/17 15:19
Joined: Jul 2015
Posts: 8
J
Jens Offline
Newbie
Jens  Offline
Newbie
J

Joined: Jul 2015
Posts: 8
This is a really nice solution and working. I tested the C# class.

Re: Yahoo has changed their protocol [Re: Jens] #466118
05/25/17 18:49
05/25/17 18:49
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
I use the php solution in my website and it's also working for now. But no one knows if and when Y will tighten its security's features. The cookie's validity of 1 year is e.g. very convenient ...

Re: Yahoo has changed their protocol [Re: Sphin] #466127
05/26/17 06:40
05/26/17 06:40
Joined: Jul 2015
Posts: 8
J
Jens Offline
Newbie
Jens  Offline
Newbie
J

Joined: Jul 2015
Posts: 8
Another way is to use the .NET webbrowser control in order to load the whole website from yahoo, boerse-frankfurt etc. Then we get a HTML document object and can walk through the tables and it's rows and cells to get the quotes. This is working for me, too.

Re: Yahoo has changed their protocol [Re: Jens] #466155
05/27/17 17:08
05/27/17 17:08
Joined: Jul 2015
Posts: 8
J
Jens Offline
Newbie
Jens  Offline
Newbie
J

Joined: Jul 2015
Posts: 8
For many ETFs I get historical prices only for 2 years via the described Yahoo interface. For the same ETFs I get 5 years or more at boerse-frankfurt.de.

Re: Yahoo has changed their protocol [Re: jcl] #466157
05/27/17 23:39
05/27/17 23:39
Joined: Nov 2016
Posts: 103
NSW
V
vinsom Offline
Member
vinsom  Offline
Member
V

Joined: Nov 2016
Posts: 103
NSW
I made this .Net exe from previous links to C# code
source code attached.

Put the exe in zorro folder.
Then call it with this in Zorro


var dataFromYahoo(string Code, int mode)
{
string Format;
if (mode == FROM_YAHOO | UNADJUSTED)
Format = "%Y-%m-%d,f3,f1,f2,,f4,f6";//UnadjAdj Close
else if (mode == FROM_YAHOO)
Format = "%Y-%m-%d,f3,f1,f2,f4,,f6";//Adj Close

exec("YahooFinanceAPI.exe", Code, 1);
//exec("YahooFinanceAPI.exe", "AAPL 1",1);
dataNew(1, 0, 7);
int numRecord = dataParse(1, Format, "History\history.csv");
printf("n%s %d records read from YAHOO", Code, numRecord);
dataSave(1, strf("%s.t6", Code));
return numRecord;
}

Attached Files
YahooFinanceAPI_CS.zip (236 downloads)
Re: Yahoo has changed their protocol [Re: vinsom] #466214
06/01/17 09:09
06/01/17 09:09
Joined: Jan 2017
Posts: 64
J
Jeff1228 Offline
Junior Member
Jeff1228  Offline
Junior Member
J

Joined: Jan 2017
Posts: 64
Originally Posted By: vinsom
I made this .Net exe from previous links to C# code
source code attached.

Put the exe in zorro folder.
Then call it with this in Zorro


var dataFromYahoo(string Code, int mode)
{
string Format;
if (mode == FROM_YAHOO | UNADJUSTED)
Format = "%Y-%m-%d,f3,f1,f2,,f4,f6";//UnadjAdj Close
else if (mode == FROM_YAHOO)
Format = "%Y-%m-%d,f3,f1,f2,f4,,f6";//Adj Close

exec("YahooFinanceAPI.exe", Code, 1);
//exec("YahooFinanceAPI.exe", "AAPL 1",1);
dataNew(1, 0, 7);
int numRecord = dataParse(1, Format, "Historyhistory.csv");
printf("n%s %d records read from YAHOO", Code, numRecord);
dataSave(1, strf("%s.t6", Code));
return numRecord;
}



Thank you but I don't quite understand this.

Where is the exe code?

What's the purpose of the code here? Should I put it into the script hwere I use FROM_YAHOO?

What's the purpose of the attachment?

I am new here but I really need this working.

Jeff

Re: Yahoo has changed their protocol [Re: Jeff1228] #466225
06/01/17 21:06
06/01/17 21:06
Joined: Nov 2016
Posts: 103
NSW
V
vinsom Offline
Member
vinsom  Offline
Member
V

Joined: Nov 2016
Posts: 103
NSW
You need to compile the attached code with MS Visual studio (can't attach exe).
This will generate the exe YahooFinanceAPI.exe.
Put this in the Zorro folder.
Then get the history with the zorro code snippet above, that will call the exe
generated, with exec("YahooFinanceAPI.exe", Code, 1);.
Cheers

Re: Yahoo has changed their protocol [Re: vinsom] #466237
06/02/17 08:05
06/02/17 08:05
Joined: Jul 2016
Posts: 27
K
konorti Offline
Newbie
konorti  Offline
Newbie
K

Joined: Jul 2016
Posts: 27
Sorry I dont have MS Visual Studio. Can you please upload the exe to wetransfer.com or similar site? Thanks!
Update: i tried to build with msbuild but didnt compile because of error.

Last edited by konorti; 06/02/17 19:30.
Re: Yahoo has changed their protocol [Re: konorti] #466247
06/02/17 23:54
06/02/17 23:54
Joined: Nov 2016
Posts: 103
NSW
V
vinsom Offline
Member
vinsom  Offline
Member
V

Joined: Nov 2016
Posts: 103
NSW
Here it is.
https://we.tl/Jfs1kuwNRJ

need the .Net framework to work.
Download it from microsoft.

Regards

Re: Yahoo has changed their protocol [Re: vinsom] #466249
06/03/17 06:05
06/03/17 06:05
Joined: Jul 2016
Posts: 27
K
konorti Offline
Newbie
konorti  Offline
Newbie
K

Joined: Jul 2016
Posts: 27
Thanks! I also modified the "Download" strategy to use your exe.

Attached Files
Download_Y.c (333 downloads)
Page 4 of 8 1 2 3 4 5 6 7 8

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