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
12 changes: 12 additions & 0 deletions lib/zaif.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,18 @@ def get_depth(currency_code, counter_currency_code = "jpy")
return json
end

# Get currency pairs of *currency_code* / *counter_currency_code*.
# @param [String] currency_code Base currency code
# @param [String] counter_currency_code Counter currency code
def get_currency_pairs(currency_code, counter_currency_code = "jpy")
currency_pair = currency_code
unless currency_code=='all'
currency_pair += "_" + counter_currency_code
end
json = get_ssl(@zaif_public_url + "currency_pairs/" + currency_pair)
return json
end

#
# Trade API
#
Expand Down