Exemplo n.º 1
0
        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>();
        }
Exemplo n.º 2
0
        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>();
        }