Sha256: 399ead01febdb241df78a71ba00224e97fd442e866f580aabc68822d33eab5d0

Contents?: true

Size: 628 Bytes

Versions: 2

Compression:

Stored size: 628 Bytes

Contents

module Buttercoin
  class Client
    module UnauthMethods

      # Retrieve the ticker
      #
      # @return Hashie object containing market price info

      def get_ticker
        get '/ticker', nil, {}, false
      end

      # Retrieve the orderbook
      #
      # @return Hashie object containing order book info

      def get_order_book
        get '/orderbook', nil, {}, false
      end

      # Retrieve the last 100 trades
      #
      # @return Hashie object containing trade history

      def get_trade_history
        mash = get '/trades', nil, {}, false
        mash.trades
      end
      
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
buttercoin-0.0.4 lib/buttercoin/client/unauth_methods.rb
buttercoin-0.0.3 lib/buttercoin/client/unauth_methods.rb