I need a java class to connect to the Google Finance API. I need someone to write the class and tell me how I can use it in my code. I have another class and I want to call your code from within my class. I need to instantiate an instance of your class and run it and then collect the values of some of the fields from Google Finance (like yesterday's closing price). I also need it to be able to send an alert email if the connection fails. This will run from Windows and have smtp.
If you can do this well as described below I will be interested in hiring you for several other projects.
I have code that does some analysis. It is located in one file called myCode.class. In there I need to access one piece of data from google finance (the LAST Price field). Your solution has to modify my [url removed, login to view] to create an instance of the class you create and then access this LAST field. I can use 'import' statements and I can add to the classpath variable but that is all I want to do. I do not want to touch Eclipse. I just want to be able to run this from the command line. I want to have something like
yourclass googPortfolio =new yourclass;
[url removed, login to view]
and just be able to print that or write it to a database. Your solution needs to result in something like that. Nothing more complicated.
I actually have code that supposedly works for this and it is attached here and called testProj.zip. But I cannot get it to run. I can get it to run in Eclipse but I cannot get it to run as an instance in my [url removed, login to view] file.
THE MOST IMPORTANT THING IS TO DO THIS IN ONE CLASS FILE. I DO NOT WANT TO TOUCH ECLIPSE. I WANT TO RUN EVERYTHING FROM THE COMMAND LINE. Also, I do not want to have to spend time with you testing this. It should work. You will need to create a portfolio in google and test the code yourself. You have to agree that for every five times I have to test this we reduce the pay to you by one dollar.
[url removed, login to view] also requires some opensource java which is easily downloadable. I will tell you where.
NOTE: YOU NEED TO REGISTER FOR GOOGLE FINANCE AND CREATE A PORTFOLIO. THIS IS EASY. IT TAKES 2 MINUTES TO DO.
To use Google Finance you just need a Google account and then go to the Finance page and create a portfolio. A portfolio just consists of one or more stocks. You just enter the stock symbol (like COKE for Coca-cola, F for Ford, DIS for Disney) and then you have Coca-cola in your portfolio, Ford, Disney in your portfolio and that is all you need. Google will then show you info about your stocks. In particular it will show Symbol Last price Change Mkt cap Volume Open High Low. I just need to access LAST PRICE field for each stock in my portfolio. I don't need to write to the portfolio. I just need to acccess these fields.