Module: Bibox::Rest::Public::Pairs
- Included in:
- Client
- Defined in:
- lib/bibox/rest/public/pairs.rb
Instance Method Summary collapse
Instance Method Details
#pair(pair: "BIX_ETH", options: {}) ⇒ Object
6 7 8 9 10 11 |
# 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: ))&.fetch("result", {}) ::Bibox::Models::Pair.new(response) if response end |