Example #1
0
        public override bool OnExecution()
        {
            BittrexConnectorNode bitfinexConnector = this.InParameters["bittrex"].GetValue() as BittrexConnectorNode;
            var symbol = this.InParameters["symbol"].GetValue().ToString();
            var result = bitfinexConnector.Client.GetBalance(symbol);

            this.OutParameters["available"].SetValue(result.Data.Available);
            this.OutParameters["total"].SetValue(result.Data.Total);

            return(true);
        }
        public override bool OnExecution()
        {
            BittrexConnectorNode bitfinexConnector = this.InParameters["bittrex"].GetValue() as BittrexConnectorNode;
            var symbol = this.InParameters["symbol"].GetValue().ToString();
            var result = bitfinexConnector.Client.GetTickerAsync(symbol);

            result.Wait();
            this.OutParameters["askRate"].SetValue(result.Result.Data.AskRate);
            this.OutParameters["bidRate"].SetValue(result.Result.Data.BidRate);

            return(true);
        }