c# 4.0 command line tool to obtain historical stock prices for a list of symbols
$30-50 USD
В роботі
Опублікований over 11 years ago
$30-50 USD
Оплачується при отриманні
List of stocks get data for last N trading days (weekends not included!). Individual stock
Data is available using Google or Yahoo see this link which has some code:
[login to view URL]
The data source MUST BE FREE as in the link above exist and are well documented. In fact most of the code for this exists already.
This is a small project only bids under 50$ will be considered, it should be doable for 30$.
Roughly speaking We should have an object
public class StockPrice{
public string stockSymbol
public List<Tuple> stockPriceOnDate
public override ToString(){
returns the data ORDERED BY date from oldest to newest stockprice first followed by Date yyyy/MM/dd and price on that day
}
}
And another class to Fetch the Data
public class StockPriceFetcher{
public List GetDataForStocks(List symbols,int numberOfHistoricalDays){
returns the list of stockPrices for the symbols and the number of days with the data filled with the correct historical prices for the stocks provided. This is the number of days excluding weekends from the currnet day. so if today is a Wednesday, and 5 is number of historical days, we need data for Thursday, Friday, Monday, Tuesday and today.
}
public static void Tests(){
call the method GetDataForStocks with the following 10 symbls and a list:
MSFT, GOOG,UBS,SAN,CS,BLK,MS,AB,GS,C
foreach in the result call [login to view URL] which will call ToString and ouput the data which will demonstrate that everything is working.
}
}