예제 #1
0
        public TransformWithdrow PostWihdrow(string currencyPair, string address, decimal amount)
        {
            Dictionary <string, object> postdata = new Dictionary <string, object>();

            postdata.Add("currency", currencyPair);
            postdata.Add("wallet", address);
            postdata.Add("amount", amount);
            var               str  = LiveCoinPostRequst.PostString("payment/out/coin", postdata.ToHttpPostString());
            Field             temp = JsonConvert.DeserializeObject <Field>(str);
            TransformWithdrow tr   = new TransformWithdrow(temp.id, temp.currency, temp.wallet, temp.amount, Convert.ToDateTime(temp.date));

            return(tr);
        }
예제 #2
0
        public TransformWithdrow PostWihdrow(string currencyPair, string adrress, decimal amountQuote)
        {
            var postData = new Dictionary <string, object>()
            {
                { "currencyPair", currencyPair },
                { "amount", amountQuote },
                { "adress", adrress }
            };
            string res  = GatePostRequst.PostString(Withdrow, postData.ToHttpPostString());
            var    temp = new TransformWithdrow()
            {
                Amount = amountQuote, Currency = currencyPair, Wallet = adrress, Date = DateTime.Now
            };

            return(temp);
        }