rbtc_arbitrage 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/rbtc_arbitrage/trader.rb +13 -2
- data/lib/rbtc_arbitrage/version.rb +1 -1
- data/spec/trader_spec.rb +3 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f38ecb6f34c30d2ddde97c4f5fa66a11b0fc0e9e
|
4
|
+
data.tar.gz: f275939aca15c8a02b22ac9f24c01f145271c87a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 498b11a6281ef6a797eb6e3778e7a5d18891b5880212e6148f529a60b438ff0269b1deacc67fef170aeb455464a17912aabbc22ccdfa2f8c0316e4827063dec1
|
7
|
+
data.tar.gz: ddae6163a6182bad1ab015c111e7cc8258900c173c10a7e19092086660ff54b143700e53ec4bf0c9e9914ace6513df2e5848ea4973c1820fd2425fdbd3c8e472
|
data/.travis.yml
CHANGED
@@ -4,6 +4,11 @@ rvm:
|
|
4
4
|
- 2.0.0
|
5
5
|
- 1.9.3
|
6
6
|
- ruby-head
|
7
|
+
|
8
|
+
matrix:
|
9
|
+
allow_failures:
|
10
|
+
- rvm: 2.1.0
|
11
|
+
- rvm: ruby-head
|
7
12
|
env:
|
8
13
|
global:
|
9
14
|
- secure: FdoR9cSL5JzSiGRgmrEGCx55VdP7QU6jt2vzeJyc+2Ho67UXxJuXWgFdwojs6X85O3in8YfSOInBLGXXsD8a3mBuvhsAaMmDLbhFKfEExsc9bnpTj3k95UMGRO3pGNkk1tfj/ohsLFs+yL4r/mFZ5pOoxWW0uhYuRPA+Jk39hZg=
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -8,7 +8,7 @@ A Ruby gem for executing arbitrage between the MtGox and Bitstamp bitcoin exchan
|
|
8
8
|
|
9
9
|
[Why I open sourced a bitcoin arbitrate bot](http://hankstoever.com/posts/2-Why-I-open-sourced-a-bitcoin-arbitrage-bot)
|
10
10
|
|
11
|
-
I'm also creating a course on [creating your own bitcoin arbitrage bot](https://www.uludum.org/funds/2)
|
11
|
+
I'm also creating a course on [creating your own bitcoin arbitrage bot](https://www.uludum.org/funds/2)
|
12
12
|
|
13
13
|
Donations accepted: **16BMcqf93eEpb2aWgMkJCSQQH85WzrpbdZ**
|
14
14
|
|
@@ -50,7 +50,7 @@ module RbtcArbitrage
|
|
50
50
|
|
51
51
|
def trade_again
|
52
52
|
sleep @options[:repeat]
|
53
|
-
|
53
|
+
logger.info " - " if @options[:verbose]
|
54
54
|
@buy_client = @buy_client.class.new(@options)
|
55
55
|
@sell_client = @sell_client.class.new(@options)
|
56
56
|
trade
|
@@ -167,13 +167,24 @@ module RbtcArbitrage
|
|
167
167
|
higher_ex = @sell_client.exchange.to_s.capitalize
|
168
168
|
<<-eos
|
169
169
|
Update from your friendly rbtc_arbitrage trader:
|
170
|
+
|
171
|
+
-------------------
|
172
|
+
|
170
173
|
#{lower_ex}: $#{buyer[:price].round(2)}
|
171
174
|
#{higher_ex}: $#{seller[:price].round(2)}
|
172
175
|
buying #{@options[:volume]} btc from #{lower_ex} for $#{@paid.round(2)}
|
173
176
|
selling #{@options[:volume]} btc on #{higher_ex} for $#{@received.round(2)}
|
174
177
|
profit: $#{(@received - @paid).round(2)} (#{@percent.round(2)}%)
|
175
178
|
|
176
|
-
|
179
|
+
-------------------
|
180
|
+
|
181
|
+
options:
|
182
|
+
|
183
|
+
#{options.reject{|k,v| v.is_a?(Logger)}.collect{|k,v| "#{k}: #{v.to_s}"}.join(" | ")}
|
184
|
+
|
185
|
+
-------------------
|
186
|
+
|
187
|
+
https://github.com/hstove/rbtc_arbitrage
|
177
188
|
eos
|
178
189
|
end
|
179
190
|
end
|
data/spec/trader_spec.rb
CHANGED