huobi_api 0.1.1 → 0.1.2

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: 67ede1c4d06d412f717774604dcceb46e5a0fd24
4
- data.tar.gz: a5a1a373363a12c491eb366c8cd5f42ef1dcb57b
3
+ metadata.gz: b9a77a5380d6f0231377a3ca91a2c1d5be8036ed
4
+ data.tar.gz: 2822d1b09da14c574d11059bc925a3c66214ea4f
5
5
  SHA512:
6
- metadata.gz: fbcb682f21672940ea5e561ee815056c820e74673a8506b24d1759bd70d87709a94d9ac254ed412f28710b58ca8a2476d751f3e7d668840093b24439267bbe6d
7
- data.tar.gz: 6615dd072d1994e7fd7f6ec1e5add1e038721380ab67fc7f5e930a12b8d2af9dc8f96ef69e4335ce3a1830c566e58ea4138a448cc10e73d64373e8b65156e51d
6
+ metadata.gz: 035b329bd143869ee8b7782a94b44105c01d5292d32b567b5c1898dc81b18dbb85137411b616f651691cb1a79d40ca39b1b7f1f93b5624f7c2dd5caae920c310
7
+ data.tar.gz: b07d214f1019a046f0333bf693f495adf2dfeb93d6d8d9938349c36370ba991129d403d5bbee58371da50614b3fad832eb11e0b02f121721714807c28bee618b
@@ -4,5 +4,10 @@ module HuobiApi
4
4
  endpoint = "/v1/account/accounts"
5
5
  get(endpoint, {})
6
6
  end
7
+
8
+ def balances
9
+ endpoint = "/v1/account/accounts/#{HuobiApi.account_id}/balance"
10
+ get(endpoint, {})
11
+ end
7
12
  end
8
13
  end
@@ -70,7 +70,6 @@ module HuobiApi
70
70
  end
71
71
 
72
72
  def hash_sort(ha)
73
- puts ha
74
73
  Hash[ha.sort_by{ |k, _| k }]
75
74
  end
76
75
  end
@@ -1,3 +1,3 @@
1
1
  module HuobiApi
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: huobi_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timothy Sherratt
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-02-22 00:00:00.000000000 Z
11
+ date: 2018-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack