Exemplo n.º 1
0
        public Yobit()
        {
            PUBLIC_API   = " https://yobit.io/api/3/";
            KEY_API      = "https://yobit.io/tapi/";
            signBaseUrl  = "";
            publicMethod = "POST";
            keyMethod    = "POST";
            includeParametersInRequestAddress = false;

            options.AllPairRatesSupported = false;
            options.ChartDataSupported    = false;

            int datenonce = Helper.ToUnixTimeStamp(DateTime.UtcNow);

            lock (_locker)
            {
                currentNonce = datenonce;
            }

            enabled = !Global.settingsMain.yobitdisabled;
            if (Global.settingsMain.yobitkey != "")
            {
                key     = AppCrypt.DecryptData(Global.settingsMain.yobitkey);
                haveKey = true;
            }
            if (Global.settingsMain.yobitsecret != "")
            {
                secret = AppCrypt.DecryptData(Global.settingsMain.yobitsecret);
            }
        }
Exemplo n.º 2
0
        public Bittrex()
        {
            PUBLIC_API   = "https://bittrex.com/api/v1.1/";
            KEY_API      = "https://bittrex.com/api/v1.1/";
            signBaseUrl  = "https://bittrex.com/api/v1.1/";
            publicMethod = "POST";
            keyMethod    = "POST";
            includeParametersInRequestAddress = true;

            int datenonce = Helper.ToUnixTimeStamp(DateTime.UtcNow);

            lock (_locker)
            {
                currentNonce = datenonce;
            }

            key    = "";
            secret = "";
            //            Global.settingsMain.bittrexkey = "";
            enabled = !Global.settingsMain.bittrexdisabled;
            if (Global.settingsMain.bittrexkey != "")
            {
                key     = AppCrypt.DecryptData(Global.settingsMain.bittrexkey);
                haveKey = true;
            }
            if (Global.settingsMain.bittrexsecret != "")
            {
                secret = AppCrypt.DecryptData(Global.settingsMain.bittrexsecret);
            }
        }
Exemplo n.º 3
0
        public Poloniex()
        {
            PUBLIC_API   = "https://poloniex.com/public?command=";
            KEY_API      = "https://poloniex.com/tradingApi";
            signBaseUrl  = "";
            publicMethod = "POST";
            keyMethod    = "POST";
            includeParametersInRequestAddress = false;

            int datenonce = Helper.ToUnixTimeStamp(DateTime.UtcNow);

            lock (_locker)
            {
                currentNonce = datenonce;
            }
            key    = "";
            secret = "";
            if (Global.settingsMain.poloniexkey != "")
            {
                key     = AppCrypt.DecryptData(Global.settingsMain.poloniexkey);
                haveKey = true;
            }
            if (Global.settingsMain.poloniexsecret != "")
            {
                secret = AppCrypt.DecryptData(Global.settingsMain.poloniexsecret);
            }
        }