Class: Okcoin::Base

Inherits:
Object
  • Object
show all
Extended by:
ApiDefineTool
Includes:
HttpUtils
Defined in:
lib/okcoin/base.rb

Direct Known Subclasses

Client

Instance Method Summary collapse

Methods included from ApiDefineTool

define_get_api, define_post_api

Methods included from HttpUtils

#http_get, #http_post

Constructor Details

#initialize(url: 'https://www.okcoin.cn/api/', api_key:, secret_key:) ⇒ Base

Returns a new instance of Base.



7
8
9
10
11
# File 'lib/okcoin/base.rb', line 7

def initialize(url: 'https://www.okcoin.cn/api/', api_key:, secret_key:)
  @url = url
  @api_key = api_key
  @secret_key = secret_key
end