ruby-liquid 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b870defd2092079296ffb2ef6d8f86c44ad51c08bed52d8ff79bab1ec7dfc476
4
- data.tar.gz: e2876cdca6f837e6bbe57c6f9ef463f63207bf4bc29b5ba7dca9ffaa2a38df6b
3
+ metadata.gz: 51afabf8f2d8c54ca585ef0212f34c8bc2136a1dbdd3b6df116db10dbc475109
4
+ data.tar.gz: c6e385eac553b1f1e78f60a3a9024d3b4e9dbf3626284e75e9ddb9ffa9e55fe4
5
5
  SHA512:
6
- metadata.gz: bc7e97cf8da7d4e0a1525154526d89946e723d372f0fec9512866754397028d33ecdf342a264af9fe020f48e3bbdf55971ff9e4f9d214ddbc2120e30a2af527a
7
- data.tar.gz: 69aa01c715673f73c507f078806b05ee7d662c3b4dd0c76029ece241f1b1e4c8e5643a04b59a0e5339c09113e2f9dd74ea4526c0bb20a25671c62c27e147bdf4
6
+ metadata.gz: 2298647cfc5f0fc8578f6057a5e44d03237b282e61cb69b58a2467a5a35613ca693078c26bf73d50a4bfce02a7cc1b25975daa4df80142ac78b5c64d6503fb7b
7
+ data.tar.gz: 9e476555bdd84cf74240d47a5458fdeba036d498ac01f3ddee6730e177468fdc92096185f0bc20aca2497976180387515f943555dfd252819076436344bfa29c
data/.gitignore CHANGED
@@ -50,4 +50,7 @@ build-iPhoneSimulator/
50
50
  # .ruby-gemset
51
51
 
52
52
  # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
53
- .rvmrc
53
+ .rvmrc
54
+
55
+ # gemlog
56
+ .rspec_status
data/.rspec_status CHANGED
@@ -1,5 +1,5 @@
1
1
  example_id | status | run_time |
2
2
  ---------------------------- | ------ | --------------- |
3
- ./spec/liquid_spec.rb[1:1] | passed | 0.00097 seconds |
4
- ./spec/liquid_spec.rb[1:2:1] | passed | 0.18417 seconds |
5
- ./spec/liquid_spec.rb[1:3:1] | passed | 0.2375 seconds |
3
+ ./spec/liquid_spec.rb[1:1] | passed | 0.00065 seconds |
4
+ ./spec/liquid_spec.rb[1:2:1] | passed | 0.15876 seconds |
5
+ ./spec/liquid_spec.rb[1:3:1] | passed | 0.14773 seconds |
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby-liquid (0.1.3)
4
+ ruby-liquid (0.1.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -26,10 +26,14 @@ Or install it yourself as:
26
26
  ## Usage
27
27
  ```rb
28
28
  require 'ruby-liquid'
29
- Liquid::Client.new(token, secret).product
30
- Liquid::Client.new(token, secret).product_id("BCHJPY")
31
- Liquid::Client.new(token, secret).create_order(pair: "BCHJPY", side: 'buy', quantity: 0.01, price: 40000)
32
-
29
+ liquid_client = Liquid::Client.new(token: token, secret: secret)
30
+ # get
31
+ liquid_client.product
32
+ liquid_client.product_id("BCHJPY")
33
+ liquid_client.orders
34
+ liquid_client.balance
35
+ # post
36
+ liquid_client.create_order(pair: "BCHJPY", side: 'buy', quantity: 0.01, price: 40000)
33
37
  ```
34
38
 
35
39
  ## Contributing
data/lib/liquid/client.rb CHANGED
@@ -20,6 +20,16 @@ module Liquid
20
20
  get_request
21
21
  end
22
22
 
23
+ def orders
24
+ @path = '/orders'
25
+ get_request
26
+ end
27
+
28
+ def balance
29
+ @path = '/accounts/balance'
30
+ get_request
31
+ end
32
+
23
33
  def product_detail(pair)
24
34
  product.select{|p|
25
35
  p["currency_pair_code"] == pair
@@ -1,3 +1,3 @@
1
1
  module Liquid
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-liquid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - emono
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-09 00:00:00.000000000 Z
11
+ date: 2019-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler