Sha256: d53d43a6414d3593f3709fc826e971ff29772e99ead6e044f9cb74b1d6216f33

Contents?: true

Size: 458 Bytes

Versions: 1

Compression:

Stored size: 458 Bytes

Contents

# frozen_string_literal: true

require 'max_exchange_api/base_api'

module MaxExchangeApi
  class PublicApi < BaseApi
    base_uri 'https://max-api.maicoin.com/api/v2'

    def depth(market, limit: 10, sort_by_price: true)
      send_request(:get, '/depth', market: market, limit: limit, sort_by_price: sort_by_price)
    end

    protected

    def send_request(method, path, query)
      super(method, path, {}, query)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
max_exchange_api-0.0.1 lib/max_exchange_api/public_api.rb