module Bibox::Rest::Public::Ticker

Public Instance Methods

ticker(pair: "BIX_ETH", options: {}) click to toggle source
# 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: options))&.fetch("result", {})
  ::Bibox::Models::Ticker.new(response) if response
end