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 +4 -4
- data/lib/vertpig/market.rb +4 -0
- data/lib/vertpig/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bb2fbb2a7397033fa6297513f79da7f84d8935f
|
4
|
+
data.tar.gz: b1f7de4b0712f82108d1f63dc5d3d5f172a44301
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8bf7d95fb8e4bac671b970530c5a8ed96a6b1f1aafdf35d5e1f561708879ccd403fa4f666831b855d1369862679116acd5a33add547958ec61677aa2dc3e7b3
|
7
|
+
data.tar.gz: 4214040ed6205d28ed39b2908face1e9f79e39dbf7e18a3639449af1fc4aa641a99e242bd7a70177b8bfbe05195ae2be25e6d5a67b8a9c0539e3f59a55b4c575
|
data/lib/vertpig/market.rb
CHANGED
@@ -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
|
data/lib/vertpig/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|