From 16f51ac1d82b3b934c7d035fc3e4429a83ca9085 Mon Sep 17 00:00:00 2001 From: Megumi Nakamura Date: Thu, 21 Dec 2017 21:09:03 +0900 Subject: [PATCH] Add deposit history api --- lib/zaif.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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