bitstamp-rbtc-arbitrage 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,223 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.bitstamp.net/api/user_transactions/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: key=BITSTAMP_KEY&nonce=1380238185&signature=7CBA96CEB133CF1E40EB223B8EE85696D75FFFB2AF8DFF9052F9F6651F829C2A&timedelta=3600
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: !binary |-
14
+ T0s=
15
+ headers:
16
+ !binary "U2VydmVy":
17
+ - !binary |-
18
+ Y2xvdWRmbGFyZS1uZ2lueA==
19
+ !binary "RGF0ZQ==":
20
+ - !binary |-
21
+ VGh1LCAyNiBTZXAgMjAxMyAyMzoyOTo0NiBHTVQ=
22
+ !binary "Q29udGVudC1UeXBl":
23
+ - !binary |-
24
+ YXBwbGljYXRpb24vanNvbg==
25
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
26
+ - !binary |-
27
+ Y2h1bmtlZA==
28
+ !binary "Q29ubmVjdGlvbg==":
29
+ - !binary |-
30
+ a2VlcC1hbGl2ZQ==
31
+ !binary "U2V0LUNvb2tpZQ==":
32
+ - !binary |-
33
+ X19jZmR1aWQ9ZDg0ODRmMzI3NTJiOTlmMGMzNzI0YWE1YjNkYjczNjA2MTM4
34
+ MDIzODE4NTY4MzsgZXhwaXJlcz1Nb24sIDIzLURlYy0yMDE5IDIzOjUwOjAw
35
+ IEdNVDsgcGF0aD0vOyBkb21haW49LmJpdHN0YW1wLm5ldA==
36
+ !binary "Q29udGVudC1MYW5ndWFnZQ==":
37
+ - !binary |-
38
+ ZW4=
39
+ !binary "RXhwaXJlcw==":
40
+ - !binary |-
41
+ VGh1LCAyNiBTZXAgMjAxMyAyMzoyOTo0NiBHTVQ=
42
+ !binary "VmFyeQ==":
43
+ - !binary |-
44
+ QWNjZXB0LUxhbmd1YWdl
45
+ !binary "Q2FjaGUtQ29udHJvbA==":
46
+ - !binary |-
47
+ bWF4LWFnZT0w
48
+ !binary "TGFzdC1Nb2RpZmllZA==":
49
+ - !binary |-
50
+ VGh1LCAyNiBTZXAgMjAxMyAyMzoyOTo0NiBHTVQ=
51
+ !binary "Q2YtUmF5":
52
+ - !binary |-
53
+ YjQzYmNmNDg0NjQwMzIw
54
+ body:
55
+ encoding: ASCII-8BIT
56
+ string: !binary |-
57
+ W3sidXNkIjogIjAuMDAiLCAiYnRjIjogIi0zLjAwNzgxMTI0IiwgImJ0Y191
58
+ c2QiOiAiMC4wMCIsICJvcmRlcl9pZCI6IG51bGwsICJmZWUiOiAiMC4wMCIs
59
+ ICJ0eXBlIjogMSwgImlkIjogMTQ0NDQ3NiwgImRhdGV0aW1lIjogIjIwMTMt
60
+ MDktMjYgMTM6NDY6NTkifSwgeyJ1c2QiOiAiLTM3My41MSIsICJidGMiOiAi
61
+ My4wMDc4MTEyNCIsICJidGNfdXNkIjogIjEyNC4xOCIsICJvcmRlcl9pZCI6
62
+ IDc2MjM5NDIsICJmZWUiOiAiMS41MCIsICJ0eXBlIjogMiwgImlkIjogMTQ0
63
+ NDQwNCwgImRhdGV0aW1lIjogIjIwMTMtMDktMjYgMTM6Mjg6NTUifSwgeyJ1
64
+ c2QiOiAiNDUwMC4wMCIsICJidGMiOiAiMC4wMDAwMDAwMCIsICJidGNfdXNk
65
+ IjogIjAuMDAiLCAib3JkZXJfaWQiOiBudWxsLCAiZmVlIjogIjE1LjAwIiwg
66
+ InR5cGUiOiAwLCAiaWQiOiAxNDM5ODY0LCAiZGF0ZXRpbWUiOiAiMjAxMy0w
67
+ OS0yNSAxODoxMjoxOCJ9LCB7InVzZCI6ICIwLjAwIiwgImJ0YyI6ICItMy45
68
+ OTcxOTA3OSIsICJidGNfdXNkIjogIjAuMDAiLCAib3JkZXJfaWQiOiBudWxs
69
+ LCAiZmVlIjogIjAuMDAiLCAidHlwZSI6IDEsICJpZCI6IDE0Mzg2MDksICJk
70
+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IiwgImJ0Y191c2QiOiAiMC4wMCIsICJvcmRlcl9pZCI6IG51bGwsICJm
219
+ ZWUiOiAiMTUuMDAiLCAidHlwZSI6IDAsICJpZCI6IDEyMTgzODUsICJkYXRl
220
+ dGltZSI6ICIyMDEzLTA4LTE5IDEzOjA0OjM5In1d
221
+ http_version:
222
+ recorded_at: Thu, 26 Sep 2013 23:29:46 GMT
223
+ recorded_with: VCR 2.6.0
@@ -0,0 +1,40 @@
1
+ require 'spec_helper'
2
+
3
+ describe Bitstamp::Orders do
4
+ before { setup_bitstamp }
5
+
6
+ describe :all, vcr: {cassette_name: 'bitstamp/orders/all'} do
7
+ subject { Bitstamp.orders.all }
8
+ it { should be_kind_of Array }
9
+ describe "first order" do
10
+ subject { Bitstamp.orders.all.first }
11
+ its(:price) { should == "1.01" }
12
+ its(:amount) { should == "1.00000000" }
13
+ its(:type) { should == 0 }
14
+ its(:datetime) { should == "2013-09-26 23:15:04" }
15
+ end
16
+ end
17
+
18
+ describe :sell do
19
+ context "no permission found", vcr: {cassette_name: 'bitstamp/orders/sell/failure'} do
20
+ subject { Bitstamp.orders.sell(:amount => 1, :price => 1000) }
21
+ it { should be_kind_of Bitstamp::Order }
22
+ its(:error) { should == "No permission found" }
23
+ end
24
+ # context "bitcoins available", vcr: {cassette_name: 'bitstamp/orders/sell/success'} do
25
+ # subject { Bitstamp.orders.sell(:amount => 1, :price => 1000) }
26
+ # xit { should be_kind_of Bitstamp::Order }
27
+ # its(:error) { should be_nil }
28
+ # end
29
+ end
30
+
31
+ describe :buy, vcr: {cassette_name: 'bitstamp/orders/buy'} do
32
+ subject { Bitstamp.orders.buy(:amount => 1, :price => 1.01) }
33
+ it { should be_kind_of Bitstamp::Order }
34
+ its(:price) { should == "1.01" }
35
+ its(:amount) { should == "1" }
36
+ its(:type) { should == 0 }
37
+ its(:datetime) { should == "2013-09-26 23:26:56.849475" }
38
+ its(:error) { should be_nil }
39
+ end
40
+ end
@@ -0,0 +1,26 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+
4
+ # This file was generated by the `rspec --init` command. Conventionally, all
5
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
6
+ # Require this file using `require "spec_helper"` to ensure that it is only
7
+ # loaded once.
8
+
9
+ require 'bitstamp'
10
+
11
+ # Requires supporting ruby files with custom matchers and macros, etc,
12
+ # in spec/support/ and its subdirectories.
13
+ Dir[File.expand_path("./spec/support/**/*.rb")].each { |f| require f }
14
+
15
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
16
+ RSpec.configure do |config|
17
+ config.treat_symbols_as_metadata_keys_with_true_values = true
18
+ config.run_all_when_everything_filtered = true
19
+ config.filter_run :focus
20
+
21
+ # Run specs in random order to surface order dependencies. If you find an
22
+ # order dependency and want to debug it, you can fix the order by providing
23
+ # the seed, which is printed after each run.
24
+ # --seed 1234
25
+ config.order = 'random'
26
+ end
@@ -0,0 +1,19 @@
1
+ RSpec.configure do |config|
2
+ config.before(:each) do
3
+ # The famous singleton problem
4
+ Bitstamp.setup do |config|
5
+ config.key = nil
6
+ config.secret = nil
7
+ config.client_id = nil
8
+ end
9
+ end
10
+ end
11
+
12
+ def setup_bitstamp
13
+ Bitstamp.setup do |config|
14
+ raise "You must set environment variable BITSTAMP_KEY and BITSTAMP_SECRET with your username and password to run specs." if ENV['BITSTAMP_KEY'].nil? or ENV['BITSTAMP_SECRET'].nil?
15
+ config.key = ENV['BITSTAMP_KEY']
16
+ config.secret = ENV['BITSTAMP_SECRET']
17
+ config.client_id = ENV['BITSTAMP_CLIENT_ID']
18
+ end
19
+ end
@@ -0,0 +1,21 @@
1
+ require 'vcr'
2
+ require 'webmock/rspec'
3
+
4
+ VCR.configure do |c|
5
+ c.allow_http_connections_when_no_cassette = false
6
+ c.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
7
+ c.hook_into :webmock # or :fakeweb
8
+ c.configure_rspec_metadata!
9
+ c.filter_sensitive_data('BITSTAMP_KEY') do |interaction|
10
+ ENV['BITSTAMP_KEY']
11
+ end
12
+ c.filter_sensitive_data('BITSTAMP_SECRET') do |interaction|
13
+ ENV['BITSTAMP_SECRET']
14
+ end
15
+ end
16
+
17
+ RSpec.configure do |c|
18
+ # so we can use :vcr rather than :vcr => true;
19
+ # in RSpec 3 this will no longer be necessary.
20
+ c.treat_symbols_as_metadata_keys_with_true_values = true
21
+ end
@@ -0,0 +1,32 @@
1
+ require 'spec_helper'
2
+
3
+ describe Bitstamp::UserTransactions do
4
+ before { setup_bitstamp }
5
+
6
+ describe :all, vcr: {cassette_name: 'bitstamp/user_transactions/all'} do
7
+ subject { Bitstamp.user_transactions.all }
8
+ its(:count) { should == 47 }
9
+ context "first transaction" do
10
+ subject { Bitstamp.user_transactions.all.first }
11
+ it { should be_kind_of(Bitstamp::UserTransaction) }
12
+ its(:btc) { should == "-3.00781124" }
13
+ its(:btc_usd) { should == "0.00" }
14
+ its(:datetime) { should == "2013-09-26 13:46:59" }
15
+ its(:fee) { should == "0.00" }
16
+ its(:order_id) { should be_nil }
17
+ its(:type) { should == 1 }
18
+ its(:usd) { should == "0.00" }
19
+ end
20
+ end
21
+
22
+ end
23
+
24
+ describe Bitstamp::Transactions do
25
+ before { setup_bitstamp }
26
+
27
+ describe :all, vcr:{cassette_name: 'bitstamp/transactions'} do
28
+ subject { Bitstamp.transactions }
29
+ it { should be_kind_of Array }
30
+ end
31
+
32
+ end
metadata ADDED
@@ -0,0 +1,229 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bitstamp-rbtc-arbitrage
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Jeffrey Wilcke
9
+ - Hank Stoever
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2014-07-12 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: activemodel
17
+ requirement: !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '3.1'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: '3.1'
31
+ - !ruby/object:Gem::Dependency
32
+ name: activesupport
33
+ requirement: !ruby/object:Gem::Requirement
34
+ none: false
35
+ requirements:
36
+ - - ! '>='
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ type: :runtime
40
+ prerelease: false
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: curb
49
+ requirement: !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>'
53
+ - !ruby/object:Gem::Version
54
+ version: 0.8.1
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>'
61
+ - !ruby/object:Gem::Version
62
+ version: 0.8.1
63
+ - !ruby/object:Gem::Dependency
64
+ name: ruby-hmac
65
+ requirement: !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - '='
69
+ - !ruby/object:Gem::Version
70
+ version: 0.4.0
71
+ type: :runtime
72
+ prerelease: false
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - '='
77
+ - !ruby/object:Gem::Version
78
+ version: 0.4.0
79
+ - !ruby/object:Gem::Dependency
80
+ name: i18n
81
+ requirement: !ruby/object:Gem::Requirement
82
+ none: false
83
+ requirements:
84
+ - - '='
85
+ - !ruby/object:Gem::Version
86
+ version: 0.6.9
87
+ type: :runtime
88
+ prerelease: false
89
+ version_requirements: !ruby/object:Gem::Requirement
90
+ none: false
91
+ requirements:
92
+ - - '='
93
+ - !ruby/object:Gem::Version
94
+ version: 0.6.9
95
+ - !ruby/object:Gem::Dependency
96
+ name: tzinfo
97
+ requirement: !ruby/object:Gem::Requirement
98
+ none: false
99
+ requirements:
100
+ - - ! '>='
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ type: :runtime
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rspec
113
+ requirement: !ruby/object:Gem::Requirement
114
+ none: false
115
+ requirements:
116
+ - - ! '>='
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - ! '>='
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
127
+ - !ruby/object:Gem::Dependency
128
+ name: rdoc
129
+ requirement: !ruby/object:Gem::Requirement
130
+ none: false
131
+ requirements:
132
+ - - ~>
133
+ - !ruby/object:Gem::Version
134
+ version: '3.12'
135
+ type: :development
136
+ prerelease: false
137
+ version_requirements: !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ~>
141
+ - !ruby/object:Gem::Version
142
+ version: '3.12'
143
+ - !ruby/object:Gem::Dependency
144
+ name: jeweler
145
+ requirement: !ruby/object:Gem::Requirement
146
+ none: false
147
+ requirements:
148
+ - - ! '>='
149
+ - !ruby/object:Gem::Version
150
+ version: '0'
151
+ type: :development
152
+ prerelease: false
153
+ version_requirements: !ruby/object:Gem::Requirement
154
+ none: false
155
+ requirements:
156
+ - - ! '>='
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
159
+ description: Ruby API for use with bitstamp.
160
+ email: hstove@gmail.com
161
+ executables: []
162
+ extensions: []
163
+ extra_rdoc_files:
164
+ - LICENSE.txt
165
+ - README.md
166
+ files:
167
+ - .rspec
168
+ - .ruby-gemset
169
+ - .ruby-version
170
+ - Gemfile
171
+ - Gemfile.lock
172
+ - LICENSE.txt
173
+ - README.md
174
+ - Rakefile
175
+ - VERSION
176
+ - bitstamp-rbtc-arbitrage.gemspec
177
+ - bitstamp.gemspec
178
+ - lib/bitstamp.rb
179
+ - lib/bitstamp/collection.rb
180
+ - lib/bitstamp/helper.rb
181
+ - lib/bitstamp/model.rb
182
+ - lib/bitstamp/net.rb
183
+ - lib/bitstamp/orders.rb
184
+ - lib/bitstamp/ticker.rb
185
+ - lib/bitstamp/transactions.rb
186
+ - spec/bitstamp_spec.rb
187
+ - spec/collection_spec.rb
188
+ - spec/fixtures/vcr_cassettes/bitstamp/balance.yml
189
+ - spec/fixtures/vcr_cassettes/bitstamp/order_book.yml
190
+ - spec/fixtures/vcr_cassettes/bitstamp/orders/all.yml
191
+ - spec/fixtures/vcr_cassettes/bitstamp/orders/buy.yml
192
+ - spec/fixtures/vcr_cassettes/bitstamp/orders/sell/failure.yml
193
+ - spec/fixtures/vcr_cassettes/bitstamp/ticker.yml
194
+ - spec/fixtures/vcr_cassettes/bitstamp/transactions.yml
195
+ - spec/fixtures/vcr_cassettes/bitstamp/user_transactions/all.yml
196
+ - spec/orders_spec.rb
197
+ - spec/spec_helper.rb
198
+ - spec/support/bitstamp_setup.rb
199
+ - spec/support/vcr.rb
200
+ - spec/transactions_spec.rb
201
+ homepage: http://github.com/kojnapp/bitstamp
202
+ licenses:
203
+ - MIT
204
+ post_install_message:
205
+ rdoc_options: []
206
+ require_paths:
207
+ - lib
208
+ required_ruby_version: !ruby/object:Gem::Requirement
209
+ none: false
210
+ requirements:
211
+ - - ! '>='
212
+ - !ruby/object:Gem::Version
213
+ version: '0'
214
+ segments:
215
+ - 0
216
+ hash: -4497357871310836225
217
+ required_rubygems_version: !ruby/object:Gem::Requirement
218
+ none: false
219
+ requirements:
220
+ - - ! '>='
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ requirements: []
224
+ rubyforge_project:
225
+ rubygems_version: 1.8.23
226
+ signing_key:
227
+ specification_version: 3
228
+ summary: Bitstamp Ruby API - forked for rbtc-arbitrage
229
+ test_files: []