コード例 #1
0
        public BTCTC_MainWindow()
        {
            InitializeComponent();
            cbOrderType.SelectedIndex = 0;
            cbExpiry.SelectedIndex = 0;
            cbTransferType.SelectedIndex = 0;
            OnAuthStatusChanged(null, EventArgs.Empty);

            // Change 3rd argument to "false" for LTC-Global
            b = new BTCTLink(_consumerKey, _consumerSecret, true, DebugToTextBox);
            b.AuthStatusChanged += OnAuthStatusChanged;
        }
コード例 #2
0
        public BTCTC_MainWindow()
        {
            InitializeComponent();

            OnBAuthStatusChanged(null, EventArgs.Empty);
            OnLAuthStatusChanged(null, EventArgs.Empty);

            b = new BTCTLink(BconsumerKey, BconsumerSecret, true, DebugToTextBox);
            b.AuthStatusChanged += OnBAuthStatusChanged;

            l = new BTCTLink(LconsumerKey, LconsumerSecret, false, DebugToTextBox);
            l.AuthStatusChanged += OnLAuthStatusChanged;
        }
コード例 #3
0
        public AutoTransfer(BTCTLink inLink, int interval)
        {
            _inLink = inLink;
            _interval = interval;

            _timer = new System.Timers.Timer();
            _timer.Interval = interval;

            _active = false;

            _nameDB = new NameDB();

            if (_inLink.isBTCT)
            {
                _sitePrefix = "(B) ";
            }
            else
            {
                _sitePrefix = "(L) ";
            }
        }
コード例 #4
0
 public AutoTransfer(BTCTLink inLink, int interval, string nameFile)
     : this(inLink, interval)
 {
     _nameDB.LoadFromFile(nameFile);
 }
コード例 #5
0
 public TransferRule(BTCTLink outLink, string input, string output, int minInput, int fee, bool feeInput, int multiplier, bool multInput)
 {
     OutLink = outLink;
     Input = input;
     Output = output;
     MinInput = minInput;
     Fee = fee;
     FeeInput = feeInput;
     Multiplier = multiplier;
     MultInput = multInput;
 }
コード例 #6
0
 private void DoTransfer(string security, int amount, string username, BTCTLink link)
 {
     if (!isTestMode(username, amount))
     {
         link.TransferAsset(security, amount, username, 0);
     }
     else
     {
         Log("(not executed) ");
     }
     Log("TX-OUT: " + amount.ToString() + " x " + security + " -> " + username + Environment.NewLine);
 }