diff --git a/lib/zaif.rb b/lib/zaif.rb index 8bbe5ed..ebd6ddd 100644 --- a/lib/zaif.rb +++ b/lib/zaif.rb @@ -87,6 +87,20 @@ def get_my_trades(option = {}) return json end + + # Get your deposit history. + # Avalible options: currency, from, count, from_id, end_id, order, since, end + # Need api key. + # @param [Hash] + def get_deposit_history(option = {}) + json = post_ssl(@zaif_trade_url, "deposit_history", option) + # Convert to datetime + json.each do|k, v| + v["datetime"] = Time.at(v["timestamp"].to_i) + end + + return json + end # Get your active orders. # Avalible options: currency_pair