Module: Bitfinex::RESTv1Deposit

Included in:
RESTv1
Defined in:
lib/rest/v1/deposit.rb

Instance Method Summary collapse

Instance Method Details

#deposit(method, wallet_name, renew = 0) ⇒ Hash

Return your deposit address to make a new deposit.

@example:

client.deposit("bitcoin", "exchange")

Parameters:

  • method (string)

    Method of deposit (methods accepted: “bitcoin”, “litecoin”, “darkcoin”, “mastercoin” (tethers)).

  • wallet_name (string)

    Wallet to deposit in (accepted: “trading”, “exchange”, “deposit”). Your wallet needs to already exist

Returns:

  • (Hash)

    confirmation of your deposit



12
13
14
15
16
17
18
19
20
# File 'lib/rest/v1/deposit.rb', line 12

def deposit (method, wallet_name, renew=0)
  params = {
    method: method,
    wallet_name: wallet_name,
    renew: renew
  }

  authenticated_post("deposit/new", params: params).body
end