Skip to content
This repository was archived by the owner on Aug 3, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions lib/zaif.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down