Poloniex C# API - 尝试提取 ETH 时出错

Poloniex C# API - error when trying to withdraw ETH

我正在使用此处提供的 Poloniex C# API:Poloniex C#

我正在尝试从我的帐户中提取 ETH,如下所示:

private string ETHWithdrawalAddress;

public async void WithdrawETH(double amount)
{
 var addresses = await client.Wallet.GetDepositAddressesAsync();
 ETHWithdrawalAddress = addresses["ETH"];
 await client.Wallet.PostWithdrawalAsync("ETH", amount,   ETHWithdrawalAddress);
}

但我收到此错误

Could not create an instance of type Jojatekok.PoloniexAPI.WalletTools.IGeneratedDepositAddress.

Type is an interface or abstract class and cannot be instantiated.

如能帮助解决此问题,我们将不胜感激。

我通过更改 API

PostWithdraw() 方法的最后一行解决了这个问题
PostData<IGeneratedDepositAddress>("withdraw", postData);

PostData<GeneratedDepositAddress>("withdraw", postData);