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); } }
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); } }
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); } }
private void ActivatePoloniexKey() { if (textBoxPoloniexKey.Text != "******" && textBoxPoloniexKey.Text != "Empty") { selSettings.poloniexkey = AppCrypt.EncryptData(textBoxPoloniexKey.Text); selSettings.poloniexsecret = AppCrypt.EncryptData(textBoxPoloniexSecret.Text); } }
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; }
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; }