bchavez / Coinbase

:moneybag: A .NET/C# implementation of the Coinbase API.
https://developers.coinbase.com/api/v2
MIT License
170 stars 92 forks source link

Transfer between money accounts not possible #66

Closed Nix1983 closed 4 years ago

Nix1983 commented 4 years ago

Version Information

Software Version(s)
NuGet Package 5.1.2
.NET Full Framework? 4.7.2
Windows OS? Win10
Visual Studio? 2019

What's the problem?

I try to transfer money from my bitcoin account to my etherium account. When i to this i get no exception but the response data are null. What i make wrong? Now transfer of currency work in my fall. I alos tryed BTC to USDC.

I do this with follwing code:

CreateTransfer trans = new CreateTransfer(); trans.Amount = 1; trans.Currency = "EUR"; trans.To = "accountID of ETH"

var transBTCToETC = await ApiClient.Transactions.TransferMoneyAsync("accountID of BTC",trans);

Also i have all permission in the api for this. My Apikey and Secretkey also work. I can get my profile.

So what i make wrong by the transfer?

bchavez commented 4 years ago

TransferMoney is to transfer money between two accounts.

As the documentation reads below:

Transfer bitcoin, bitcoin cash, litecoin or ethereum between two of a user’s accounts. Following transfers are allowed:

wallet to wallet wallet to vault

IE:

TransferMoney is not conversion of money (BTC -> ETH).

See for more information: https://developers.coinbase.com/api/v2#transfer-money-between-accounts