sonvister / Binance

A .NET Standard Binance API library.
MIT License
229 stars 77 forks source link

does not seem to be able to withdraw #97

Open Caveman2019 opened 6 years ago

Caveman2019 commented 6 years ago

binanceApi.WithdrawAsync(new WithdrawRequest(ApiUser) { Asset = BinanceAssetMapper.GetAssetByCurrency(currency), Address = recipient.Currencies[currency].ReceivingAddress, Amount = amount, Name = "Sent from BinanceAccount " + Name }).Wait();

Error: "Signature for this request is not valid"

this is working: var account = await binanceApi.GetAccountInfoAsync(ApiUser);

by the way the API is configured to allow withdraw.

Do you know why? thanks

Caveman2019 commented 6 years ago

I removed the empty space from "Name" and it worked. looks like it does not support empty space.

sonvister commented 6 years ago

@DamaoServices, this issue would be better suited for the official Binance API Telegram since it is likely unintended behavior (if nothing else it should be documented).