Sha256: fcae2328c50b0a86931eecbf7007e565e0772fdd0777001eae894b944770c8a5

Contents?: true

Size: 688 Bytes

Versions: 1

Compression:

Stored size: 688 Bytes

Contents

require_relative 'request.rb'
module HexTokenBot
  module ChannelApi
    module Bter
      class Public
        include Request

        METHODS = ['pairs', 'ticker', 'tickers', 'marketinfo', 'markelist', 'trade', 'tradeHistory', 'orderBook']

        METHODS.each do |method|
          define_method(method) do |pair=nil, tid=nil|
            public_request(method, pair, tid)
          end
        end

        alias_method :info, :marketinfo
        alias_method :details, :markelist
        alias_method :trades, :trade
        alias_method :history, :trade
        alias_method :order_book, :orderBook
        alias_method :trade_history, :tradeHistory

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hex_token_bot-0.1.0 lib/hex_token_bot/channel_api/bter/public.rb