vertpig 0.0.2 → 0.0.3

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: ba2b5017a039189e320dc94bbe38a641ea59c172
4
- data.tar.gz: cc5a7aa3ba654b46d6c7afc16a9b8b3d9c404dc5
3
+ metadata.gz: 2bb2fbb2a7397033fa6297513f79da7f84d8935f
4
+ data.tar.gz: b1f7de4b0712f82108d1f63dc5d3d5f172a44301
5
5
  SHA512:
6
- metadata.gz: 4debb7fb79bf70f8cea4170a106bd93fc3739b99d6acd0f1e51aeca5eaefd1d2e65b8255d27c3b5d1eab7ada02335fdd2214f6e27d8c7c4f471da1cccbba8ab1
7
- data.tar.gz: 23575622d0c1b988b32f6e2c8a6ebfcb9c39a4e96d3293e76f15098363734c59d296f8062b0de304d56e8155fa9f6b49a2c2b0339210fafb654372a9ad7d84a5
6
+ metadata.gz: d8bf7d95fb8e4bac671b970530c5a8ed96a6b1f1aafdf35d5e1f561708879ccd403fa4f666831b855d1369862679116acd5a33add547958ec61677aa2dc3e7b3
7
+ data.tar.gz: 4214040ed6205d28ed39b2908face1e9f79e39dbf7e18a3639449af1fc4aa641a99e242bd7a70177b8bfbe05195ae2be25e6d5a67b8a9c0539e3f59a55b4c575
@@ -22,6 +22,10 @@ module Vertpig
22
22
  client.get('public/getmarkets').map{|data| new(data) }
23
23
  end
24
24
 
25
+ def self.buylimit(market, quantity, rate)
26
+ new(market, client.get('/market/buylimit', market: market, quantity: quantity, rate: rate))
27
+ end
28
+
25
29
  private
26
30
 
27
31
  def self.client
@@ -1,3 +1,3 @@
1
1
  module Vertpig
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vertpig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vertbase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-24 00:00:00.000000000 Z
11
+ date: 2018-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday