Module: Tradecow
- Defined in:
- lib/tradecow.rb,
lib/tradecow/base.rb,
lib/tradecow/spot.rb,
lib/tradecow/future.rb,
lib/tradecow/account.rb,
lib/tradecow/network.rb,
lib/tradecow/version.rb
Defined Under Namespace
Modules: Account, Future, Network, Spot
Classes: Error
Constant Summary
collapse
- VERSION =
"0.1.4"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.access_key ⇒ Object
Returns the value of attribute access_key.
5
6
7
|
# File 'lib/tradecow/base.rb', line 5
def access_key
@access_key
end
|
.secret_key ⇒ Object
Returns the value of attribute secret_key.
5
6
7
|
# File 'lib/tradecow/base.rb', line 5
def secret_key
@secret_key
end
|
Class Method Details
8
9
10
|
# File 'lib/tradecow/base.rb', line 8
def self.configure
yield self
end
|
.future_ful_url ⇒ Object
28
29
30
|
# File 'lib/tradecow/base.rb', line 28
def self.future_ful_url
"https://api.hbdm.com"
end
|
.future_url ⇒ Object
24
25
26
|
# File 'lib/tradecow/base.rb', line 24
def self.future_url
"api.hbdm.com"
end
|
.req_url(host, path, params) ⇒ Object
12
13
14
|
# File 'lib/tradecow/base.rb', line 12
def self.req_url host, path, params
"#{host}#{path}?#{params}"
end
|
.spot_ful_url ⇒ Object
20
21
22
|
# File 'lib/tradecow/base.rb', line 20
def self.spot_ful_url
"https://api.huobi.pro"
end
|
.spot_url ⇒ Object
16
17
18
|
# File 'lib/tradecow/base.rb', line 16
def self.spot_url
"api.huobi.pro"
end
|