예제 #1
0
        public async Task <IAcceptedAction> WithdrawNoTag(string currency, decimal quantity, string address)
        {
            var    timestamp   = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds().ToString();
            string totalParams = string.Format("asset={0}&address={1}&amount={2}&name={3}&timestamp={4}", currency, address, quantity, "hitbtc", timestamp);

            string sign = CalculateSignature(totalParams, _config.Secret);

            var data = new Dictionary <string, object> {
                { "asset", currency },
                { "address", address },
                { "amount", quantity },
                { "name", "hitbtc" },
                { "timestamp", timestamp },
                { "signature", sign }
            };

            return(await _binance.Withdraw(_config.ApiKey, data));
        }