From 1cd141d22d2b1d3f5edd3e197e4504e936d85c4a Mon Sep 17 00:00:00 2001 From: Megumi Nakamura Date: Sat, 16 Dec 2017 22:14:12 +0900 Subject: [PATCH] Add currencies api --- lib/zaif.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/zaif.rb b/lib/zaif.rb index 8bbe5ed..09664e5 100644 --- a/lib/zaif.rb +++ b/lib/zaif.rb @@ -62,6 +62,13 @@ def get_depth(currency_code, counter_currency_code = "jpy") return json end + # Get currencies of *currency_code* + # @param [String] currency_code Base currency code + def get_currencies(currency_code) + json = get_ssl(@zaif_public_url + "currencies/" + currency_code) + return json + end + # # Trade API #