コード例 #1
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);
            }
        }
コード例 #2
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);
            }
        }
コード例 #3
0
ファイル: Poloniex.cs プロジェクト: SuffArt/BitWhiskey
        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);
            }
        }
コード例 #4
0
ファイル: FormSettings.cs プロジェクト: SuffArt/BitWhiskey
 private void ActivatePoloniexKey()
 {
     if (textBoxPoloniexKey.Text != "******" && textBoxPoloniexKey.Text != "Empty")
     {
         selSettings.poloniexkey    = AppCrypt.EncryptData(textBoxPoloniexKey.Text);
         selSettings.poloniexsecret = AppCrypt.EncryptData(textBoxPoloniexSecret.Text);
     }
 }
コード例 #5
0
 private void ActivateYobitKey()
 {
     if (textBoxYobitKey.Text != "******" && textBoxYobitKey.Text != "Empty")
     {
         selSettings.yobitkey    = AppCrypt.EncryptData(textBoxYobitKey.Text);
         selSettings.yobitsecret = AppCrypt.EncryptData(textBoxYobitSecret.Text);
     }
     selSettings.yobitdisabled = checkBoxYobitDisabled.Checked;
 }
コード例 #6
0
 private void ActivateBittrexKey()
 {
     if (textBoxBittrexKey.Text != "******" && textBoxBittrexKey.Text != "Empty")
     {
         selSettings.bittrexkey    = AppCrypt.EncryptData(textBoxBittrexKey.Text);
         selSettings.bittrexsecret = AppCrypt.EncryptData(textBoxBittrexSecret.Text);
     }
     selSettings.bittrexdisabled = checkBoxBittrexDisabled.Checked;
 }