Example #1
0
        private Bitstamp(string apikey, string apisecret, string clientId, Tools.Logging.ILogFactory factory)
        {
            ApiKey    = apikey;
            ApiSecret = apisecret;
            var auth = new RequestAuthenticator(ApiKey, ApiSecret, clientId);

            m_api      = new BitstampClient(auth, factory);
            m_instance = this;
        }
Example #2
0
 public static Bitstamp Create(ApiCredentials creds, string clientId = null, Tools.Logging.ILogFactory factory = null)
 {
     if (creds == null)
     {
         return(Create());
     }
     else
     {
         return(Create(creds.ApiKey, creds.ApiSecret, clientId, factory));
     }
 }
Example #3
0
 public static Bitstamp Create(string apikey = "", string apisecret = "", string clientId = "", Tools.Logging.ILogFactory factory = null)
 {
     if (m_instance != null)
     {
         return(m_instance);
     }
     else
     {
         if (factory == null)
         {
             return(new Bitstamp(apikey, apisecret, clientId, new Tools.Logging.NLogFactory()));
         }
         else
         {
             return(new Bitstamp(apikey, apisecret, clientId, factory));
         }
     }
 }