rbtc_arbitrage 1.4.6 → 2.0.0

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.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/.gitmodules +3 -0
  3. data/Gemfile +17 -14
  4. data/Gemfile.lock +26 -28
  5. data/lib/rbtc_arbitrage.rb +2 -2
  6. data/lib/rbtc_arbitrage/cli.rb +1 -1
  7. data/lib/rbtc_arbitrage/trader.rb +8 -2
  8. data/lib/rbtc_arbitrage/version.rb +1 -1
  9. data/rbtc_arbitrage.gemspec +1 -3
  10. data/spec/clients/bitstamp_client_spec.rb +2 -2
  11. data/spec/rbtc_arbitrage_spec.rb +1 -1
  12. data/spec/spec_helper.rb +1 -1
  13. data/spec/support/cassettes/RbtcArbitrage_Clients_BitstampClient/_transfer/calls_Bitstamp_correctly.yml +48 -0
  14. data/spec/support/cassettes/RbtcArbitrage_Trader/_execute_trade/should_raise_SecurityError_if_not_live.yml +46 -48
  15. data/spec/support/cassettes/RbtcArbitrage_Trader/_execute_trade/when_live/raises_SecurityError_if_not_enough_BTC.yml +52 -52
  16. data/spec/support/cassettes/RbtcArbitrage_Trader/_execute_trade/when_live/raises_SecurityError_if_not_enough_USD.yml +49 -46
  17. data/spec/support/cassettes/RbtcArbitrage_Trader/_execute_trade/when_live/should_fetch_balance.yml +43 -173
  18. data/spec/support/cassettes/RbtcArbitrage_Trader/_execute_trade/when_live/shouldn_t_raise_security_error.yml +87 -168
  19. data/spec/support/cassettes/RbtcArbitrage_Trader/_fetch_prices/gets_the_right_price_set.yml +101 -98
  20. data/spec/trader_spec.rb +4 -4
  21. metadata +6 -56
  22. data/lib/rbtc_arbitrage/clients/mtgox_client.rb +0 -56
  23. data/spec/clients/mtgox_client_spec.rb +0 -53
  24. data/spec/support/cassettes/RbtcArbitrage_Clients_MtGoxClient/_balance/fetches_the_balance_correctly.yml +0 -77
  25. data/spec/support/cassettes/RbtcArbitrage_Clients_MtGoxClient/_price/fetches_price_for_buy_correctly.yml +0 -44
  26. data/spec/support/cassettes/RbtcArbitrage_Clients_MtGoxClient/_price/fetches_price_for_sell_correctly.yml +0 -44
  27. data/spec/support/cassettes/RbtcArbitrage_Clients_MtGoxClient/_price/fetches_prices_correctly.yml +0 -85
@@ -1,42 +1,5 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: post
5
- uri: https://data.mtgox.com/api/1/generic/info
6
- body:
7
- encoding: US-ASCII
8
- string: nonce=1386980225106143
9
- response:
10
- status:
11
- code: 200
12
- message: OK
13
- headers:
14
- Server:
15
- - nginx/1.4.4
16
- Content-Type:
17
- - application/json; charset=utf-8
18
- X-Powered-By:
19
- - PHP/5.5.4
20
- Access-Control-Allow-Origin:
21
- - '*'
22
- Content-Length:
23
- - '1731'
24
- Expires:
25
- - Sat, 14 Dec 2013 00:17:07 GMT
26
- Cache-Control:
27
- - max-age=0, no-cache, no-store
28
- Pragma:
29
- - no-cache
30
- Date:
31
- - Sat, 14 Dec 2013 00:17:07 GMT
32
- Connection:
33
- - keep-alive
34
- body:
35
- encoding: UTF-8
36
- string: '{"result":"success","return":{"Login":"heynk","Index":"141119","Id":"84fdd298-4386-4d7c-86c0-af74f2e0d0ec","Link":"M82141119X","Rights":["deposit","get_info","merchant","trade","withdraw"],"Language":"en_US","Created":"2012-04-07
37
- 13:52:16","Last_Login":"2013-10-15 20:52:29","Wallets":{"BTC":{"Balance":{"value":"0.00000133","value_int":"133","display":"0.00000133\u00a0BTC","display_short":"0.00\u00a0BTC","currency":"BTC"},"Operations":1,"Daily_Withdraw_Limit":{"value":"100.00000000","value_int":"10000000000","display":"100.00000000\u00a0BTC","display_short":"100.00\u00a0BTC","currency":"BTC"},"Monthly_Withdraw_Limit":null,"Max_Withdraw":{"value":"100.00000000","value_int":"10000000000","display":"100.00000000\u00a0BTC","display_short":"100.00\u00a0BTC","currency":"BTC"},"Open_Orders":{"value":"0.00000000","value_int":"0","display":"0.00000000\u00a0BTC","display_short":"0.00\u00a0BTC","currency":"BTC"}},"USD":{"Balance":{"value":"0.00000","value_int":"0","display":"$0.00000","display_short":"$0.00","currency":"USD"},"Operations":0,"Daily_Withdraw_Limit":{"value":"1000.00000","value_int":"100000000","display":"$1,000.00000","display_short":"$1,000.00","currency":"USD"},"Monthly_Withdraw_Limit":{"value":"10000.00000","value_int":"1000000000","display":"$10,000.00000","display_short":"$10,000.00","currency":"USD"},"Max_Withdraw":{"value":"1000.00000","value_int":"100000000","display":"$1,000.00000","display_short":"$1,000.00","currency":"USD"},"Open_Orders":{"value":"0.00000","value_int":"0","display":"$0.00000","display_short":"$0.00","currency":"USD"}}},"Monthly_Volume":{"value":"0.00000000","value_int":"0","display":"0.00000000\u00a0BTC","display_short":"0.00\u00a0BTC","currency":"BTC"},"Trade_Fee":0.6}}'
38
- http_version:
39
- recorded_at: Sat, 14 Dec 2013 00:17:06 GMT
40
3
  - request:
41
4
  method: post
42
5
  uri: https://www.bitstamp.net/api/balance/
@@ -47,40 +10,77 @@ http_interactions:
47
10
  message: OK
48
11
  headers:
49
12
  Date:
50
- - Sat, 14 Dec 2013 00:17:07 GMT
13
+ - Sun, 23 Mar 2014 03:30:50 GMT
51
14
  Server:
52
15
  - Apache
53
16
  Content-Language:
54
17
  - en
55
18
  Expires:
56
- - Sat, 14 Dec 2013 00:17:07 GMT
19
+ - Sun, 23 Mar 2014 03:30:50 GMT
57
20
  Vary:
58
21
  - Accept-Language
59
22
  Cache-Control:
60
23
  - max-age=0
61
24
  Last-Modified:
62
- - Sat, 14 Dec 2013 00:17:07 GMT
25
+ - Sun, 23 Mar 2014 03:30:50 GMT
63
26
  Connection:
64
27
  - close
65
28
  Transfer-Encoding:
66
29
  - chunked
67
30
  Content-Type:
68
31
  - application/json
69
- Set-Cookie:
70
- - incap_ses_124_99025=O3m7Kz/MC04KwPzVAYq4AYOjq1IAAAAAfDk2b/F6kBfIQwDVnCGO2A==;
71
- path=/; Domain=.bitstamp.net
72
- - nlbi_99025=QWPIb6QJUU+tfj/lItob8gAAAABz58hxYcyMAq8NOZwu88/Z; path=/; Domain=.bitstamp.net
73
- - visid_incap_99025=VWTzXgzgTp27iq0VfB+qP4Ojq1IAAAAAQUIPAAAAAADn8ypsx2ewMTEZEmGVnHs7;
74
- expires=Sun, 13 Dec 2015 10:19:32 GMT; path=/; Domain=.bitstamp.net
75
- X-Iinfo:
76
- - 5-188816541-188816625 NNNY CT(193 193 0) RT(1386980227146 185) q(0 0 4 -1)
77
- r(4 6) U6
78
32
  X-Cdn:
79
33
  - Incapsula
80
34
  body:
81
35
  encoding: ASCII-8BIT
82
36
  string: '{"btc_reserved": "0", "fee": "0.5000", "btc_available": "0", "usd_reserved":
83
37
  "0", "btc_balance": "0", "usd_balance": "0.00", "usd_available": "0.00"}'
84
- http_version:
85
- recorded_at: Sat, 14 Dec 2013 00:17:07 GMT
86
- recorded_with: VCR 2.7.0
38
+ http_version:
39
+ recorded_at: Sun, 23 Mar 2014 03:30:50 GMT
40
+ - request:
41
+ method: post
42
+ uri: https://campbx.com/api/myfunds.php
43
+ headers:
44
+ Accept-Encoding:
45
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
46
+ Accept:
47
+ - '*/*'
48
+ User-Agent:
49
+ - Ruby
50
+ Content-Type:
51
+ - application/x-www-form-urlencoded
52
+ response:
53
+ status:
54
+ code: 200
55
+ message: OK
56
+ headers:
57
+ Server:
58
+ - cloudflare-nginx
59
+ Date:
60
+ - Sun, 23 Mar 2014 03:30:51 GMT
61
+ Content-Type:
62
+ - application/json
63
+ Transfer-Encoding:
64
+ - chunked
65
+ Connection:
66
+ - keep-alive
67
+ Set-Cookie:
68
+ - __cfduid=d75df4a389c19e5b09c4e4c5ad767cdc51395545450860; expires=Mon, 23-Dec-2019
69
+ 23:50:00 GMT; path=/; domain=.campbx.com; HttpOnly
70
+ X-Frame-Options:
71
+ - SAMEORIGIN
72
+ Cache-Control:
73
+ - no-cache, must-revalidate, max-age=3600
74
+ Vary:
75
+ - Accept-Encoding
76
+ Expires:
77
+ - Sun, 23 Mar 2014 04:30:46 GMT
78
+ Cf-Ray:
79
+ - 10f78d7b68dc0657-SJC
80
+ body:
81
+ encoding: UTF-8
82
+ string: "\r\n{\"Total USD\":\"1.41\",\"Total BTC\":\"0.00790000\",\"Liquid USD\":\"1.41\",\"Liquid
83
+ BTC\":\"0.00790000\",\"Margin Account USD\":\"0.00\",\"Margin Account BTC\":\"0.00000000\"}"
84
+ http_version:
85
+ recorded_at: Sun, 23 Mar 2014 03:30:51 GMT
86
+ recorded_with: VCR 2.8.0
@@ -1,42 +1,5 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: post
5
- uri: https://data.mtgox.com/api/1/generic/info
6
- body:
7
- encoding: US-ASCII
8
- string: nonce=1386979416499181
9
- response:
10
- status:
11
- code: 200
12
- message: OK
13
- headers:
14
- Server:
15
- - nginx/1.4.4
16
- Content-Type:
17
- - application/json; charset=utf-8
18
- X-Powered-By:
19
- - PHP/5.5.4
20
- Access-Control-Allow-Origin:
21
- - '*'
22
- Content-Length:
23
- - '1731'
24
- Expires:
25
- - Sat, 14 Dec 2013 00:03:38 GMT
26
- Cache-Control:
27
- - max-age=0, no-cache, no-store
28
- Pragma:
29
- - no-cache
30
- Date:
31
- - Sat, 14 Dec 2013 00:03:38 GMT
32
- Connection:
33
- - keep-alive
34
- body:
35
- encoding: UTF-8
36
- string: '{"result":"success","return":{"Login":"heynk","Index":"141119","Id":"84fdd298-4386-4d7c-86c0-af74f2e0d0ec","Link":"M82141119X","Rights":["deposit","get_info","merchant","trade","withdraw"],"Language":"en_US","Created":"2012-04-07
37
- 13:52:16","Last_Login":"2013-10-15 20:52:29","Wallets":{"BTC":{"Balance":{"value":"0.00000133","value_int":"133","display":"0.00000133\u00a0BTC","display_short":"0.00\u00a0BTC","currency":"BTC"},"Operations":1,"Daily_Withdraw_Limit":{"value":"100.00000000","value_int":"10000000000","display":"100.00000000\u00a0BTC","display_short":"100.00\u00a0BTC","currency":"BTC"},"Monthly_Withdraw_Limit":null,"Max_Withdraw":{"value":"100.00000000","value_int":"10000000000","display":"100.00000000\u00a0BTC","display_short":"100.00\u00a0BTC","currency":"BTC"},"Open_Orders":{"value":"0.00000000","value_int":"0","display":"0.00000000\u00a0BTC","display_short":"0.00\u00a0BTC","currency":"BTC"}},"USD":{"Balance":{"value":"0.00000","value_int":"0","display":"$0.00000","display_short":"$0.00","currency":"USD"},"Operations":0,"Daily_Withdraw_Limit":{"value":"1000.00000","value_int":"100000000","display":"$1,000.00000","display_short":"$1,000.00","currency":"USD"},"Monthly_Withdraw_Limit":{"value":"10000.00000","value_int":"1000000000","display":"$10,000.00000","display_short":"$10,000.00","currency":"USD"},"Max_Withdraw":{"value":"1000.00000","value_int":"100000000","display":"$1,000.00000","display_short":"$1,000.00","currency":"USD"},"Open_Orders":{"value":"0.00000","value_int":"0","display":"$0.00000","display_short":"$0.00","currency":"USD"}}},"Monthly_Volume":{"value":"0.00000000","value_int":"0","display":"0.00000000\u00a0BTC","display_short":"0.00\u00a0BTC","currency":"BTC"},"Trade_Fee":0.6}}'
38
- http_version:
39
- recorded_at: Sat, 14 Dec 2013 00:03:37 GMT
40
3
  - request:
41
4
  method: post
42
5
  uri: https://www.bitstamp.net/api/balance/
@@ -47,34 +10,74 @@ http_interactions:
47
10
  message: OK
48
11
  headers:
49
12
  Date:
50
- - Sat, 14 Dec 2013 00:03:39 GMT
13
+ - Sun, 23 Mar 2014 03:30:42 GMT
51
14
  Server:
52
15
  - Apache
53
16
  Content-Language:
54
17
  - en
55
18
  Expires:
56
- - Sat, 14 Dec 2013 00:03:39 GMT
19
+ - Sun, 23 Mar 2014 03:30:42 GMT
57
20
  Vary:
58
21
  - Accept-Language
59
22
  Cache-Control:
60
23
  - max-age=0
61
24
  Last-Modified:
62
- - Sat, 14 Dec 2013 00:03:39 GMT
25
+ - Sun, 23 Mar 2014 03:30:42 GMT
63
26
  Connection:
64
27
  - close
65
28
  Transfer-Encoding:
66
29
  - chunked
67
30
  Content-Type:
68
31
  - application/json
69
- X-Iinfo:
70
- - 5-188432674-188432763 NNNY CT(195 195 0) RT(1386979419006 170) q(0 0 4 -1)
71
- r(4 7) U6
72
32
  X-Cdn:
73
33
  - Incapsula
74
34
  body:
75
35
  encoding: ASCII-8BIT
76
36
  string: '{"btc_reserved": "0", "fee": "0.5000", "btc_available": "0", "usd_reserved":
77
37
  "0", "btc_balance": "0", "usd_balance": "0.00", "usd_available": "0.00"}'
78
- http_version:
79
- recorded_at: Sat, 14 Dec 2013 00:03:38 GMT
80
- recorded_with: VCR 2.7.0
38
+ http_version:
39
+ recorded_at: Sun, 23 Mar 2014 03:30:42 GMT
40
+ - request:
41
+ method: post
42
+ uri: https://campbx.com/api/myfunds.php
43
+ headers:
44
+ Accept-Encoding:
45
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
46
+ Accept:
47
+ - '*/*'
48
+ User-Agent:
49
+ - Ruby
50
+ Content-Type:
51
+ - application/x-www-form-urlencoded
52
+ response:
53
+ status:
54
+ code: 200
55
+ message: OK
56
+ headers:
57
+ Server:
58
+ - cloudflare-nginx
59
+ Date:
60
+ - Sun, 23 Mar 2014 03:30:44 GMT
61
+ Content-Type:
62
+ - application/json
63
+ Transfer-Encoding:
64
+ - chunked
65
+ Connection:
66
+ - keep-alive
67
+ X-Frame-Options:
68
+ - SAMEORIGIN
69
+ Cache-Control:
70
+ - no-cache, must-revalidate, max-age=3600
71
+ Vary:
72
+ - Accept-Encoding
73
+ Expires:
74
+ - Sun, 23 Mar 2014 04:30:38 GMT
75
+ Cf-Ray:
76
+ - 10f78d4c29bd0657-SJC
77
+ body:
78
+ encoding: UTF-8
79
+ string: "\r\n{\"Total USD\":\"1.41\",\"Total BTC\":\"0.00790000\",\"Liquid USD\":\"1.41\",\"Liquid
80
+ BTC\":\"0.00790000\",\"Margin Account USD\":\"0.00\",\"Margin Account BTC\":\"0.00000000\"}"
81
+ http_version:
82
+ recorded_at: Sun, 23 Mar 2014 03:30:43 GMT
83
+ recorded_with: VCR 2.8.0
@@ -2,177 +2,50 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://data.mtgox.com/api/1/BTCUSD/ticker
5
+ uri: https://campbx.com/api/xticker.php
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
- Accept:
11
- - application/json
12
- User-Agent:
13
- - mtgox gem 1.1.0
14
10
  Accept-Encoding:
15
11
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - '*/*'
14
+ User-Agent:
15
+ - Ruby
16
16
  response:
17
17
  status:
18
18
  code: 200
19
19
  message: OK
20
20
  headers:
21
21
  Server:
22
- - nginx/1.4.4
23
- Content-Type:
24
- - application/json; charset=utf-8
25
- X-Powered-By:
26
- - PHP/5.5.4
27
- Access-Control-Allow-Origin:
28
- - '*'
29
- Content-Length:
30
- - '1377'
31
- Cache-Control:
32
- - public, max-age=3
33
- Expires:
34
- - Sat, 14 Dec 2013 00:00:09 GMT
35
- Date:
36
- - Sat, 14 Dec 2013 00:00:06 GMT
37
- Connection:
38
- - keep-alive
39
- body:
40
- encoding: UTF-8
41
- string: '{"result":"success","return":{"high":{"value":"990.00000","value_int":"99000000","display":"$990.00","display_short":"$990.00","currency":"USD"},"low":{"value":"882.15864","value_int":"88215864","display":"$882.16","display_short":"$882.16","currency":"USD"},"avg":{"value":"929.68816","value_int":"92968816","display":"$929.69","display_short":"$929.69","currency":"USD"},"vwap":{"value":"931.05989","value_int":"93105989","display":"$931.06","display_short":"$931.06","currency":"USD"},"vol":{"value":"17088.88588852","value_int":"1708888588852","display":"17,088.89\u00a0BTC","display_short":"17,088.89\u00a0BTC","currency":"BTC"},"last_local":{"value":"949.00000","value_int":"94900000","display":"$949.00","display_short":"$949.00","currency":"USD"},"last_orig":{"value":"949.00000","value_int":"94900000","display":"$949.00","display_short":"$949.00","currency":"USD"},"last_all":{"value":"949.00000","value_int":"94900000","display":"$949.00","display_short":"$949.00","currency":"USD"},"last":{"value":"949.00000","value_int":"94900000","display":"$949.00","display_short":"$949.00","currency":"USD"},"buy":{"value":"936.50000","value_int":"93650000","display":"$936.50","display_short":"$936.50","currency":"USD"},"sell":{"value":"945.49500","value_int":"94549500","display":"$945.50","display_short":"$945.50","currency":"USD"},"item":"BTC","now":"1386979177267333"}}'
42
- http_version:
43
- recorded_at: Sat, 14 Dec 2013 00:00:05 GMT
44
- - request:
45
- method: get
46
- uri: https://www.bitstamp.net/api/ticker/
47
- body:
48
- encoding: US-ASCII
49
- string: ''
50
- headers: {}
51
- response:
52
- status:
53
- code: 200
54
- message: OK
55
- headers:
22
+ - cloudflare-nginx
56
23
  Date:
57
- - Sat, 14 Dec 2013 00:00:07 GMT
58
- Server:
59
- - Apache
60
- Content-Language:
61
- - en
62
- Expires:
63
- - Sat, 14 Dec 2013 00:00:07 GMT
64
- Vary:
65
- - Accept-Language
66
- Cache-Control:
67
- - max-age=0
68
- Last-Modified:
69
- - Sat, 14 Dec 2013 00:00:07 GMT
70
- Connection:
71
- - close
72
- Transfer-Encoding:
73
- - chunked
24
+ - Sun, 23 Mar 2014 03:30:53 GMT
74
25
  Content-Type:
75
26
  - application/json
76
- Set-Cookie:
77
- - incap_ses_124_99025=V6zRKs6P0ht3zfHVAYq4AYefq1IAAAAAZ3eoqzH8bSsXIbUQwY6buQ==;
78
- path=/; Domain=.bitstamp.net
79
- - nlbi_99025=9/NPD/J9hR0GpzQvItob8gAAAABUv4Oja7VOuMb/pWUoOs30; path=/; Domain=.bitstamp.net
80
- - visid_incap_99025=H2PtDSNARViFDY7OB+zl9oefq1IAAAAAQUIPAAAAAAABXqlO2L/J4LJ1Tvy3Gd5d;
81
- expires=Sun, 13 Dec 2015 10:19:32 GMT; path=/; Domain=.bitstamp.net
82
- X-Iinfo:
83
- - 5-188331129-188331195 NNNY CT(191 194 0) RT(1386979206891 179) q(0 0 4 -1)
84
- r(4 6) U6
85
- X-Cdn:
86
- - Incapsula
87
- body:
88
- encoding: ASCII-8BIT
89
- string: '{"high": "920.42", "last": "888.47", "timestamp": "1386979201", "bid":
90
- "885.98", "volume": "14768.13051071", "low": "850.00", "ask": "888.47"}'
91
- http_version:
92
- recorded_at: Sat, 14 Dec 2013 00:00:06 GMT
93
- - request:
94
- method: post
95
- uri: https://data.mtgox.com/api/1/generic/info
96
- body:
97
- encoding: US-ASCII
98
- string: nonce=1386979206589124
99
- response:
100
- status:
101
- code: 200
102
- message: OK
103
- headers:
104
- Server:
105
- - nginx/1.4.4
106
- Content-Type:
107
- - application/json; charset=utf-8
108
- X-Powered-By:
109
- - PHP/5.5.4
110
- Access-Control-Allow-Origin:
111
- - '*'
112
- Content-Length:
113
- - '1731'
114
- Expires:
115
- - Sat, 14 Dec 2013 00:00:07 GMT
116
- Cache-Control:
117
- - max-age=0, no-cache, no-store
118
- Pragma:
119
- - no-cache
120
- Date:
121
- - Sat, 14 Dec 2013 00:00:07 GMT
122
- Connection:
123
- - keep-alive
124
- body:
125
- encoding: UTF-8
126
- string: '{"result":"success","return":{"Login":"heynk","Index":"141119","Id":"84fdd298-4386-4d7c-86c0-af74f2e0d0ec","Link":"M82141119X","Rights":["deposit","get_info","merchant","trade","withdraw"],"Language":"en_US","Created":"2012-04-07
127
- 13:52:16","Last_Login":"2013-10-15 20:52:29","Wallets":{"BTC":{"Balance":{"value":"0.00000133","value_int":"133","display":"0.00000133\u00a0BTC","display_short":"0.00\u00a0BTC","currency":"BTC"},"Operations":1,"Daily_Withdraw_Limit":{"value":"100.00000000","value_int":"10000000000","display":"100.00000000\u00a0BTC","display_short":"100.00\u00a0BTC","currency":"BTC"},"Monthly_Withdraw_Limit":null,"Max_Withdraw":{"value":"100.00000000","value_int":"10000000000","display":"100.00000000\u00a0BTC","display_short":"100.00\u00a0BTC","currency":"BTC"},"Open_Orders":{"value":"0.00000000","value_int":"0","display":"0.00000000\u00a0BTC","display_short":"0.00\u00a0BTC","currency":"BTC"}},"USD":{"Balance":{"value":"0.00000","value_int":"0","display":"$0.00000","display_short":"$0.00","currency":"USD"},"Operations":0,"Daily_Withdraw_Limit":{"value":"1000.00000","value_int":"100000000","display":"$1,000.00000","display_short":"$1,000.00","currency":"USD"},"Monthly_Withdraw_Limit":{"value":"10000.00000","value_int":"1000000000","display":"$10,000.00000","display_short":"$10,000.00","currency":"USD"},"Max_Withdraw":{"value":"1000.00000","value_int":"100000000","display":"$1,000.00000","display_short":"$1,000.00","currency":"USD"},"Open_Orders":{"value":"0.00000","value_int":"0","display":"$0.00000","display_short":"$0.00","currency":"USD"}}},"Monthly_Volume":{"value":"0.00000000","value_int":"0","display":"0.00000000\u00a0BTC","display_short":"0.00\u00a0BTC","currency":"BTC"},"Trade_Fee":0.6}}'
128
- http_version:
129
- recorded_at: Sat, 14 Dec 2013 00:00:06 GMT
130
- - request:
131
- method: post
132
- uri: https://www.bitstamp.net/api/balance/
133
- headers: {}
134
- response:
135
- status:
136
- code: 200
137
- message: OK
138
- headers:
139
- Date:
140
- - Sat, 14 Dec 2013 00:00:08 GMT
141
- Server:
142
- - Apache
143
- Content-Language:
144
- - en
145
- Expires:
146
- - Sat, 14 Dec 2013 00:00:08 GMT
147
- Vary:
148
- - Accept-Language
149
- Cache-Control:
150
- - max-age=0
151
- Last-Modified:
152
- - Sat, 14 Dec 2013 00:00:08 GMT
153
- Connection:
154
- - close
155
27
  Transfer-Encoding:
156
28
  - chunked
157
- Content-Type:
158
- - application/json
29
+ Connection:
30
+ - keep-alive
159
31
  Set-Cookie:
160
- - incap_ses_124_99025=/ANsPRUMc29n0PHVAYq4AYifq1IAAAAA8841aDYUfRDpmzrqRsswgA==;
161
- path=/; Domain=.bitstamp.net
162
- - nlbi_99025=gVBCPUmq6VlTQfVeItob8gAAAADC/0JQuCY+KuO+nTMRSpDW; path=/; Domain=.bitstamp.net
163
- - visid_incap_99025=FwHYIb2hQ8OvfT/2QOOSQIifq1IAAAAAQUIPAAAAAAAMF03HOYtMsOtUOTrIN1sG;
164
- expires=Sun, 13 Dec 2015 10:19:32 GMT; path=/; Domain=.bitstamp.net
165
- X-Iinfo:
166
- - 5-188331624-188331712 NNNY CT(200 197 0) RT(1386979207982 172) q(0 0 4 -1)
167
- r(4 7) U6
168
- X-Cdn:
169
- - Incapsula
32
+ - __cfduid=d0ec3c91b157ea6ea8ba5eea1c0b9e62e1395545452531; expires=Mon, 23-Dec-2019
33
+ 23:50:00 GMT; path=/; domain=.campbx.com; HttpOnly
34
+ X-Frame-Options:
35
+ - SAMEORIGIN
36
+ Cache-Control:
37
+ - no-cache, must-revalidate, max-age=3600
38
+ Vary:
39
+ - Accept-Encoding
40
+ Expires:
41
+ - Sun, 23 Mar 2014 04:30:47 GMT
42
+ Cf-Ray:
43
+ - 10f78d8654510657-SJC
170
44
  body:
171
- encoding: ASCII-8BIT
172
- string: '{"btc_reserved": "0", "fee": "0.5000", "btc_available": "0", "usd_reserved":
173
- "0", "btc_balance": "0", "usd_balance": "0.00", "usd_available": "0.00"}'
45
+ encoding: UTF-8
46
+ string: '{"Last Trade":"582.01","Best Bid":"598.00","Best Ask":"599.99"}'
174
47
  http_version:
175
- recorded_at: Sat, 14 Dec 2013 00:00:07 GMT
48
+ recorded_at: Sun, 23 Mar 2014 03:30:52 GMT
176
49
  - request:
177
50
  method: get
178
51
  uri: https://www.bitstamp.net/api/ticker/
@@ -186,40 +59,37 @@ http_interactions:
186
59
  message: OK
187
60
  headers:
188
61
  Date:
189
- - Sat, 14 Dec 2013 00:48:53 GMT
62
+ - Sun, 23 Mar 2014 03:30:54 GMT
190
63
  Server:
191
64
  - Apache
192
- Content-Language:
193
- - en
194
- Expires:
195
- - Sat, 14 Dec 2013 00:48:53 GMT
196
- Vary:
197
- - Accept-Language
198
- Cache-Control:
199
- - max-age=0
200
65
  Last-Modified:
201
- - Sat, 14 Dec 2013 00:48:53 GMT
66
+ - Sun, 23 Mar 2014 03:30:51 GMT
67
+ Etag:
68
+ - '"120627-a0-4f53dbeebac97"'
69
+ Accept-Ranges:
70
+ - bytes
71
+ Content-Length:
72
+ - '160'
202
73
  Connection:
203
74
  - close
204
- Transfer-Encoding:
205
- - chunked
206
75
  Content-Type:
207
76
  - application/json
208
77
  Set-Cookie:
209
- - incap_ses_124_99025=zsGuW7RGQDxw9RHWAYq4AfWqq1IAAAAAfsFg+BIZxzF5l2PVrn2bfA==;
78
+ - incap_ses_209_99025=9RrSPLVP4F3BnGvjkIXmAm1VLlMAAAAAx1f4abFmtl6Z8bIaog036A==;
210
79
  path=/; Domain=.bitstamp.net
211
- - nlbi_99025=qDgDBYzCWmLz/EAkItob8gAAAACBfos6/qSwqFk6NjBfdJMi; path=/; Domain=.bitstamp.net
212
- - visid_incap_99025=QvP7s1ijQJmI7ybDI9WNevSqq1IAAAAAQUIPAAAAAADH8BHBNL2MTBGgv2GGIKuk;
213
- expires=Sun, 13 Dec 2015 10:19:32 GMT; path=/; Domain=.bitstamp.net
80
+ - nlbi_99025=BJ/GH4XZjCvPh8Xu+dl6vQAAAAD2295EOl0U01S7hrjDVx7O; path=/; Domain=.bitstamp.net
81
+ - visid_incap_99025=4LVjF+fWSey6PiZlv367UW1VLlMAAAAAQUIPAAAAAACUFwMhNgMzP7Iy1+k8ikx4;
82
+ expires=Mon, 21 Mar 2016 09:10:05 GMT; path=/; Domain=.bitstamp.net
214
83
  X-Iinfo:
215
- - 5-189795304-189795403 NNNY CT(195 409 0) RT(1386982132215 179) q(0 0 6 0)
216
- r(6 9) U6
84
+ - 9-47164688-47164746 NNNN CT(148 149 0) RT(1395545452369 264) q(0 0 3 -1) r(3
85
+ 6) U13
217
86
  X-Cdn:
218
87
  - Incapsula
219
88
  body:
220
89
  encoding: ASCII-8BIT
221
- string: '{"high": "920.42", "last": "880.00", "timestamp": "1386982129", "bid":
222
- "873.43", "volume": "14636.90472559", "low": "850.00", "ask": "878.77"}'
90
+ string: '{"high": "571.70", "last": "565.14", "timestamp": "1395545447", "bid":
91
+ "563.11", "vwap": "556.51", "volume": "13033.39643050", "low": "541.00", "ask":
92
+ "567.39"}'
223
93
  http_version:
224
- recorded_at: Sat, 14 Dec 2013 00:48:52 GMT
225
- recorded_with: VCR 2.7.0
94
+ recorded_at: Sun, 23 Mar 2014 03:30:53 GMT
95
+ recorded_with: VCR 2.8.0