0

I'm trying to make a withdraw from my Kraken account to another platform, but i always get this error response:

EFunding:Invalid asset (KrakenClient::ErrorResponse)

Using this code:

@kraken = KrakenClient.load

def withdraw_order_kraken
  params = {
    asset:'XBT',
    key:'Bitstamp',
    amount: 0.005
  }
  @kraken.private.withdraw(params)
end

Any idea what am i doing wrong?

I can do any others actions, public or private (even buy or sell). I tried XXBT/XBT/BTC/Bitcoin and i do have 0.005 BTC available on this account.

The error message is not in the Kraken's API docs.

SRack
  • 11,495
  • 5
  • 47
  • 60
gvdh
  • 65
  • 1
  • 8

1 Answers1

-1

asset need to be specified as lowercase, so you may try with

@kraken = KrakenClient.load

def withdraw_order_kraken
  params = {
    asset:'xbt',
    key:'Bitstamp',
    amount: 0.005
  }
  @kraken.private.withdraw(params)
end
A. STEFANI
  • 6,707
  • 1
  • 23
  • 48