module Bibox::Rest::Public::Pairs
Public Instance Methods
pair(pair: "BIX_ETH", options: {})
click to toggle source
# File lib/bibox/rest/public/pairs.rb, line 6 def pair(pair: "BIX_ETH", options: {}) path = "/mdata" params = {cmd: "market", pair: pair} response = parse(get(path, params: params, options: options))&.fetch("result", {}) ::Bibox::Models::Pair.new(response) if response end
pairs(options: {})
click to toggle source
# File lib/bibox/rest/public/pairs.rb, line 13 def pairs(options: {}) path = "/mdata" params = {cmd: "marketAll"} response = parse(get(path, params: params, options: options))&.fetch("result", {}) ::Bibox::Models::Pair.parse(response) if response end