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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab748599ac18c7920dd314b6bc1550c85b037039
4
- data.tar.gz: aead65daa0e890e40b9dbf64d78e09e5755aca82
3
+ metadata.gz: 57846cf65dc99c25c7cbebed512d5b804a6a8f43
4
+ data.tar.gz: 49891f8e800261ed035bca882c8024aadf84709d
5
5
  SHA512:
6
- metadata.gz: 82a1a8287cd9e80012bdfad939e7112aaeb0a1e2d9535f4573a420043eb5983f34852fab927c4dd561da86ac4a20609e434e9387611bd7a5a7b4497e5a8a3370
7
- data.tar.gz: eca3473cfe8c60d37af7d997500d2b1e0117b5965233e7c22c38b3189d2d00d301089369ccfcfff52a6e73f46dd59c88e2c1ffb7a32463eb5f32d1888bc09383
6
+ metadata.gz: 7fbeeaddad04f6c88f34231af498640766a0514ed92f9cb0b25a50584955d214023ac302c837676d92820c83e0f02f28021cc5cd8c289c515f63c07a74484be4
7
+ data.tar.gz: ddb677803225cabdf6685bb63c6a49cd7cba9e4e1e966f8e3fda91320b208ea0e127a12f6ef20e6ff5bb103dfc9ae90e6eeb129d55798eef009920b6e6c746b9
data/.gitignore CHANGED
@@ -8,4 +8,5 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  .idea
11
- .DS_Store
11
+ .DS_Store
12
+ *.gem
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
- TODO: Write usage instructions here
27
-
28
- ## Development
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
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
32
+ 结果以ruby数据格式表达。
31
33
 
32
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
34
+ 更多接口详情,请查看[okcoin官方文档](https://www.okcoin.cn/rest_getStarted.html)
33
35
 
34
36
  ## Contributing
35
37
 
@@ -1,3 +1,3 @@
1
1
  module Okcoin
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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{Ruby wrapper for rest api of okcoin.cn}
13
- spec.description = %q{名字等细节尽量与okcoin.cn保持一致,并包括最新的api}
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.0
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-03 00:00:00.000000000 Z
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: 名字等细节尽量与okcoin.cn保持一致,并包括最新的api
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: Ruby wrapper for rest api of okcoin.cn
87
+ summary: A ruby wrapper for okcoin.cn
88
88
  test_files: []