ruby-liquid 0.1.5 → 0.1.6
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 +4 -4
- data/.rspec_status +3 -3
- data/Gemfile.lock +1 -1
- data/README.md +12 -9
- data/lib/liquid/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fa7b272a37a63e111e0040278062f1f13af065a0aef82bf7bd3911c821c951d7
|
|
4
|
+
data.tar.gz: 5b548f5d3f9079e4ca46926b48fdbf41769d62b9a2160ba4b3633627cce10725
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4265a52fb6fb3b8d56627b1b7348e5c9374a23fccd9f189149beb251c9d14a90f63e111f674c12e2fbe40bc7f2ab753ff58bbd5d4d2d21f5ad5f894afea34b39
|
|
7
|
+
data.tar.gz: e8e234554e6759ba0b250a5c77d629ee8b3a4cfe5d297147ca15cc0163ea081ac5c42476d560d579f61f1e229a83bab1d1ad6f4406582d1d6ef9b67ce082cdef
|
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.
|
|
4
|
-
./spec/liquid_spec.rb[1:2:1] | passed | 0.
|
|
5
|
-
./spec/liquid_spec.rb[1:3:1] | passed | 0.
|
|
3
|
+
./spec/liquid_spec.rb[1:1] | passed | 0.00133 seconds |
|
|
4
|
+
./spec/liquid_spec.rb[1:2:1] | passed | 0.86328 seconds |
|
|
5
|
+
./spec/liquid_spec.rb[1:3:1] | passed | 0.21684 seconds |
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
# Liquid
|
|
7
7
|
|
|
8
|
-
Crypto
|
|
8
|
+
Crypto Exchange Liquid Ruby Api Client
|
|
9
|
+
- [Api Document](https://developers.liquid.com/#introduction)
|
|
9
10
|
|
|
10
11
|
## Installation
|
|
11
12
|
|
|
@@ -27,23 +28,25 @@ Or install it yourself as:
|
|
|
27
28
|
```rb
|
|
28
29
|
require 'ruby-liquid'
|
|
29
30
|
liquid_client = Liquid::Client.new(token: token, secret: secret)
|
|
30
|
-
|
|
31
|
+
pair = "BTCJPY"
|
|
31
32
|
liquid_client.product
|
|
32
|
-
liquid_client.product_id(
|
|
33
|
+
liquid_client.product_id(pair)
|
|
33
34
|
liquid_client.orders
|
|
34
35
|
liquid_client.active_orders
|
|
35
36
|
liquid_client.balance
|
|
36
|
-
liquid_client.limit_buy_price
|
|
37
|
-
liquid_client.limit_sell_price
|
|
38
|
-
|
|
39
|
-
liquid_client.create_order(pair: "BCHJPY", side: 'buy', quantity: 0.01, price: 40000)
|
|
40
|
-
# put
|
|
37
|
+
liquid_client.limit_buy_price(pair)
|
|
38
|
+
liquid_client.limit_sell_price(pair)
|
|
39
|
+
liquid_client.create_order(pair: pair, side: 'buy', quantity: 0.01, price: 40000)
|
|
41
40
|
liquid_client.cancel_order(id)
|
|
42
41
|
```
|
|
43
42
|
|
|
44
43
|
## Contributing
|
|
45
44
|
|
|
46
|
-
|
|
45
|
+
Fork it ( https://github.com/emono/ruby-liquid )
|
|
46
|
+
Create your feature branch (git checkout -b my-new-feature)
|
|
47
|
+
Commit your changes (git commit -am 'Add some feature')
|
|
48
|
+
Push to the branch (git push origin my-new-feature)
|
|
49
|
+
Create a new Pull Request
|
|
47
50
|
|
|
48
51
|
## License
|
|
49
52
|
|
data/lib/liquid/version.rb
CHANGED
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.
|
|
4
|
+
version: 0.1.6
|
|
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-
|
|
11
|
+
date: 2019-06-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|