Module: Bibox::Rest::Public::Ticker
- Included in:
- Client
- Defined in:
- lib/bibox/rest/public/ticker.rb
Instance Method Summary collapse
Instance Method Details
#ticker(pair: "BIX_ETH", options: {}) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/bibox/rest/public/ticker.rb', line 6 def ticker(pair: "BIX_ETH", options: {}) path = "/mdata" params = {cmd: "ticker", pair: pair} response = parse(get(path, params: params, options: ))&.fetch("result", {}) ::Bibox::Models::Ticker.new(response) if response end |