Example #1
0
 public override void Login(ProviderModel provider)
 {
     Log.Trace($"Login {provider.Provider}");
     base.Login(provider);
     Contract.Requires(provider != null);
     _api = new FxcmClient(provider.Access, provider.ApiKey);
     _api.Login();
 }
Example #2
0
        public void Initialize()
        {
            Log.LogHandler = new ConsoleLogHandler();

            string     access     = ConfigurationManager.AppSettings["fxcmrest-access"];
            AccessType accessType = (AccessType)Enum.Parse(typeof(AccessType), access);
            string     key        = ConfigurationManager.AppSettings["fxcmrest-key"];

            _api = new FxcmClient(accessType, key);
        }
Example #3
0
        public void Initialize()
        {
            Log.LogHandler = new ConsoleLogHandler();

            IConfigurationRoot config     = TestConfig.Create();
            string             access     = config["fxcmrest-access"];
            AccessType         accessType = (AccessType)Enum.Parse(typeof(AccessType), access);
            string             key        = config["fxcmrest-key"];

            _api = new FxcmClient(accessType, key);
        }