Sha256: b56dff79f599db26f1f01fe5d621cf831e40d4b0a4af97273a3f7b3a35162d4c

Contents?: true

Size: 513 Bytes

Versions: 3

Compression:

Stored size: 513 Bytes

Contents

require './base'

module Okcoin
  class Client < Base
    # 行情 API
    define_get_api :ticker, :depth, :trades, :kline

    # 交易 API
    define_post_api :userinfo, :trade, :trade_history, :batch_trade, :cancel_order, :order_info, 
                    :orders_info, :order_history, :withdraw, :cancel_withdraw, :withdraw_info, 
                    :lend_depth, :borrows_info, :borrow_money, :cancel_borrow, :borrow_order_info,
                    :repayment, :unrepayments_info, :account_records
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
okcoin-0.1.2 lib/okcoin/client.rb
okcoin-0.1.1 lib/okcoin/client.rb
okcoin-0.1.0 lib/okcoin/client.rb