public AlpariClient(string Folder) { MainFolder = Folder; RequestsToSendFolder = Folder + @"\RequestsToSend"; RequestResultsFolder = Folder + @"\RequestResults"; ClosedPositionsFolder = Folder + @"\ClosedPositions"; TradeSettings = new TradeSettings(); WebClient = new WebClient(); OpenPositions = new List <BinaryPosition>(); }
public AlpariClient(string Folder, string _Username, string _Password, string _UserAgent = null) { Username = _Username; Password = _Password; MainFolder = Folder; RequestsToSendFolder = Folder + @"\RequestsToSend"; RequestResultsFolder = Folder + @"\RequestResults"; ClosedPositionsFolder = Folder + @"\ClosedPositions"; TradeSettings = new TradeSettings(); WebClient = new WebClient(_UserAgent); OpenPositions = new List <BinaryPosition>(); }