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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 35a3e079318e368f33db37bb070cef7acd9dc3d5
4
- data.tar.gz: 23327807ba84e9d20b99e170d25b4088c64b7587
3
+ metadata.gz: f38ecb6f34c30d2ddde97c4f5fa66a11b0fc0e9e
4
+ data.tar.gz: f275939aca15c8a02b22ac9f24c01f145271c87a
5
5
  SHA512:
6
- metadata.gz: 8dbab32dba09e0ae422ca3ecc5bfe20dba8f5e76de1af1efaa0c8f8a537151d78fd6345472bd737288f623f088834915acffdd7e44f4872cf4dc6aaf54d09fbd
7
- data.tar.gz: cb577476f076d7f1285cff313bd80dac03f077b8ec53a973df02aa0605ff071d406c8f8c5988d7bf0dbd817264a8d26105ebe535a2a52f4cfaf43c9b958d9839
6
+ metadata.gz: 498b11a6281ef6a797eb6e3778e7a5d18891b5880212e6148f529a60b438ff0269b1deacc67fef170aeb455464a17912aabbc22ccdfa2f8c0316e4827063dec1
7
+ data.tar.gz: ddae6163a6182bad1ab015c111e7cc8258900c173c10a7e19092086660ff54b143700e53ec4bf0c9e9914ace6513df2e5848ea4973c1820fd2425fdbd3c8e472
@@ -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=
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rbtc_arbitrage (1.4.0)
4
+ rbtc_arbitrage (1.4.1)
5
5
  activemodel (>= 3.1)
6
6
  activesupport (>= 3.1)
7
7
  bitstamp
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
- @logger.info " - " if @options[:verbose]
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
- options
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
@@ -1,3 +1,3 @@
1
1
  module RbtcArbitrage
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
@@ -314,6 +314,9 @@ describe RbtcArbitrage::Trader do
314
314
  value.should include("$3.0")
315
315
  value.should include("3.0%")
316
316
  end
317
+ context "--live" do
318
+ it "should say that it made a trade"
319
+ end
317
320
  end
318
321
 
319
322
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbtc_arbitrage
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hank Stoever