okcoin 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/README.md +8 -6
- data/lib/okcoin/version.rb +1 -1
- data/okcoin.gemspec +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57846cf65dc99c25c7cbebed512d5b804a6a8f43
|
4
|
+
data.tar.gz: 49891f8e800261ed035bca882c8024aadf84709d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fbeeaddad04f6c88f34231af498640766a0514ed92f9cb0b25a50584955d214023ac302c837676d92820c83e0f02f28021cc5cd8c289c515f63c07a74484be4
|
7
|
+
data.tar.gz: ddb677803225cabdf6685bb63c6a49cd7cba9e4e1e966f8e3fda91320b208ea0e127a12f6ef20e6ff5bb103dfc9ae90e6eeb129d55798eef009920b6e6c746b9
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# okcoin.cn Rest Api Ruby Wrapper
|
2
2
|
|
3
3
|
okcoin.cn的Rest Api很简单易懂,但是官方并有提供ruby实现,并且其他ruby实现都没有更新或者是国际站的实现,所以决定自己写一个。
|
4
|
-
|
4
|
+
|
5
5
|
1. 保持跟踪最新的api
|
6
6
|
2. 名字等细节尽量与okcoin.cn保持一致,目前所有的api都完全和官方文档一致
|
7
7
|
|
@@ -23,13 +23,15 @@ Or install it yourself as:
|
|
23
23
|
|
24
24
|
## Usage
|
25
25
|
|
26
|
-
|
27
|
-
|
28
|
-
|
26
|
+
```ruby
|
27
|
+
client = Okcoin::Client.new api_key: 'YOUR_OKCOIN_APIKEY', secret_key: 'YOUR_OKCOIN_SECRET'
|
28
|
+
client.ticker(symbol: "btc_cny")
|
29
|
+
client.trades(symbol: 'btc_cny', since: nil)
|
30
|
+
```
|
29
31
|
|
30
|
-
|
32
|
+
结果以ruby数据格式表达。
|
31
33
|
|
32
|
-
|
34
|
+
更多接口详情,请查看[okcoin官方文档](https://www.okcoin.cn/rest_getStarted.html)。
|
33
35
|
|
34
36
|
## Contributing
|
35
37
|
|
data/lib/okcoin/version.rb
CHANGED
data/okcoin.gemspec
CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Wu Minzhe"]
|
10
10
|
spec.email = ["wuminzhe@gmail.com"]
|
11
11
|
|
12
|
-
spec.summary = %q{
|
13
|
-
spec.description = %q{
|
12
|
+
spec.summary = %q{A ruby wrapper for okcoin.cn}
|
13
|
+
spec.description = %q{A ruby wrapper for okcoin.cn}
|
14
14
|
spec.homepage = "https://github.com/wuminzhe/okcoin"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: okcoin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wu Minzhe
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,7 +38,7 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
|
-
description:
|
41
|
+
description: A ruby wrapper for okcoin.cn
|
42
42
|
email:
|
43
43
|
- wuminzhe@gmail.com
|
44
44
|
executables: []
|
@@ -84,5 +84,5 @@ rubyforge_project:
|
|
84
84
|
rubygems_version: 2.6.8
|
85
85
|
signing_key:
|
86
86
|
specification_version: 4
|
87
|
-
summary:
|
87
|
+
summary: A ruby wrapper for okcoin.cn
|
88
88
|
test_files: []
|