mexbt 0.0.7 → 0.0.8
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/.travis.yml +4 -0
- data/README.md +2 -2
- data/lib/mexbt/account.rb +2 -2
- data/lib/mexbt/version.rb +1 -1
- metadata +3 -3
- data/Gemfile.lock +0 -48
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c719018874ce5763f076516c3ef74dec3ef6da19
|
4
|
+
data.tar.gz: aee53e8c6555fba852665f96c27bcdcacc721bef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4743cd9c08579f12e733c79654b7050b91ffb4a5488c2226b6a747d8892b30fc0d94a8cc54c23428158aaf53032985270ec5f643f5d927b20de0e97877349eea
|
7
|
+
data.tar.gz: 4bac247a64df3f5c426ad596556e19b5a4c593e5c9b830c1ed737cc7918870056515e435b6d4aa1fe614d5fcb30416bd9a26d6dcd69ca190035fb9a90b7b8bbe
|
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Mexbt ruby API client
|
1
|
+
# Mexbt ruby API client [](https://travis-ci.org/meXBT/mexbt-ruby)
|
2
2
|
|
3
3
|
This is a lightweight ruby client for the [meXBT](https://mexbt.com) exchange API. It doesn't try and do anything clever with the JSON response from the API, it simply
|
4
4
|
returns it as-is.
|
@@ -13,7 +13,7 @@ And run `bundle install` of course.
|
|
13
13
|
|
14
14
|
## Ruby version
|
15
15
|
|
16
|
-
You need to be using Ruby 2.1 or higher.
|
16
|
+
You need to be using Ruby 2.1.2 or higher.
|
17
17
|
|
18
18
|
## Public API
|
19
19
|
|
data/lib/mexbt/account.rb
CHANGED
@@ -39,7 +39,7 @@ module Mexbt
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def withdraw(amount:, address:, currency: :btc)
|
42
|
-
call("withdraw", { ins: currency, amount: amount,
|
42
|
+
call("withdraw", { ins: currency, amount: amount, sendToAddress: address })
|
43
43
|
end
|
44
44
|
|
45
45
|
def create_order(amount:, price: nil, currency_pair: Mexbt.currency_pair, side: :buy, type: :market)
|
@@ -87,4 +87,4 @@ module Mexbt
|
|
87
87
|
call("orders/modify", { ins: currency_pair, serverOrderId: id, modifyAction: action } )
|
88
88
|
end
|
89
89
|
end
|
90
|
-
end
|
90
|
+
end
|
data/lib/mexbt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mexbt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- williamcoates
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -89,9 +89,9 @@ extra_rdoc_files: []
|
|
89
89
|
files:
|
90
90
|
- ".gitignore"
|
91
91
|
- ".rspec"
|
92
|
+
- ".travis.yml"
|
92
93
|
- CHANGELOG.md
|
93
94
|
- Gemfile
|
94
|
-
- Gemfile.lock
|
95
95
|
- LICENSE.txt
|
96
96
|
- README.md
|
97
97
|
- Rakefile
|
data/Gemfile.lock
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
mexbt (0.0.6)
|
5
|
-
activesupport (>= 4.1.8)
|
6
|
-
rest_client (= 1.8.2)
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: http://rubygems.org/
|
10
|
-
specs:
|
11
|
-
activesupport (4.2.0)
|
12
|
-
i18n (~> 0.7)
|
13
|
-
json (~> 1.7, >= 1.7.7)
|
14
|
-
minitest (~> 5.1)
|
15
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
16
|
-
tzinfo (~> 1.1)
|
17
|
-
diff-lcs (1.2.5)
|
18
|
-
i18n (0.7.0)
|
19
|
-
json (1.8.1)
|
20
|
-
minitest (5.5.0)
|
21
|
-
netrc (0.7.9)
|
22
|
-
rake (10.3.2)
|
23
|
-
rest_client (1.8.2)
|
24
|
-
netrc (~> 0.7.7)
|
25
|
-
rspec (3.1.0)
|
26
|
-
rspec-core (~> 3.1.0)
|
27
|
-
rspec-expectations (~> 3.1.0)
|
28
|
-
rspec-mocks (~> 3.1.0)
|
29
|
-
rspec-core (3.1.7)
|
30
|
-
rspec-support (~> 3.1.0)
|
31
|
-
rspec-expectations (3.1.2)
|
32
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
33
|
-
rspec-support (~> 3.1.0)
|
34
|
-
rspec-mocks (3.1.3)
|
35
|
-
rspec-support (~> 3.1.0)
|
36
|
-
rspec-support (3.1.2)
|
37
|
-
thread_safe (0.3.4)
|
38
|
-
tzinfo (1.2.2)
|
39
|
-
thread_safe (~> 0.1)
|
40
|
-
|
41
|
-
PLATFORMS
|
42
|
-
ruby
|
43
|
-
|
44
|
-
DEPENDENCIES
|
45
|
-
bundler (~> 1.6)
|
46
|
-
mexbt!
|
47
|
-
rake
|
48
|
-
rspec
|