rbtc_arbitrage_simple 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +16 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +23 -0
  5. data/Gemfile +18 -0
  6. data/Gemfile.lock +156 -0
  7. data/Guardfile +8 -0
  8. data/LICENSE.txt +22 -0
  9. data/Procfile +1 -0
  10. data/README.md +88 -0
  11. data/Rakefile +10 -0
  12. data/bin/rbtc_simple +4 -0
  13. data/dummy_web_server.rb +9 -0
  14. data/lib/rbtc_arbitrage.rb +15 -0
  15. data/lib/rbtc_arbitrage/campbx.rb +98 -0
  16. data/lib/rbtc_arbitrage/cli.rb +19 -0
  17. data/lib/rbtc_arbitrage/client.rb +48 -0
  18. data/lib/rbtc_arbitrage/clients/btce_client.rb +62 -0
  19. data/lib/rbtc_arbitrage/clients/campbx_client.rb +48 -0
  20. data/lib/rbtc_arbitrage/clients/client.rb.example +46 -0
  21. data/lib/rbtc_arbitrage/clients/coinbase_client.rb +63 -0
  22. data/lib/rbtc_arbitrage/clients/mtgox_client.rb +56 -0
  23. data/lib/rbtc_arbitrage/trader.rb +123 -0
  24. data/lib/rbtc_arbitrage/version.rb +3 -0
  25. data/rbtc_arbitrage.gemspec +30 -0
  26. data/spec/cli_spec.rb +8 -0
  27. data/spec/client_spec.rb +33 -0
  28. data/spec/clients/btce_client_spec.rb +93 -0
  29. data/spec/clients/campbx_client_spec.rb +66 -0
  30. data/spec/clients/coinbase_client_spec.rb +66 -0
  31. data/spec/clients/mtgox_client_spec.rb +53 -0
  32. data/spec/rbtc_arbitrage_spec.rb +11 -0
  33. data/spec/spec_helper.rb +34 -0
  34. data/spec/support/cassettes/RbtcArbitrage_Clients_BitstampClient/_balance/fetches_the_balance_correctly.yml +96 -0
  35. data/spec/support/cassettes/RbtcArbitrage_Clients_BitstampClient/_price/fetches_price_for_buy_correctly.yml +52 -0
  36. data/spec/support/cassettes/RbtcArbitrage_Clients_BitstampClient/_price/fetches_price_for_sell_correctly.yml +52 -0
  37. data/spec/support/cassettes/RbtcArbitrage_Clients_BitstampClient/_price/fetches_prices_correctly.yml +44 -0
  38. data/spec/support/cassettes/RbtcArbitrage_Clients_BtceClient/_balance/should_raise_if_bad_API_keys.yml +53 -0
  39. data/spec/support/cassettes/RbtcArbitrage_Clients_BtceClient/_price/calls_btc-e.yml +91 -0
  40. data/spec/support/cassettes/RbtcArbitrage_Clients_BtceClient/_price/fetches_price_for_buy_correctly.yml +47 -0
  41. data/spec/support/cassettes/RbtcArbitrage_Clients_BtceClient/_price/fetches_price_for_sell_correctly.yml +47 -0
  42. data/spec/support/cassettes/RbtcArbitrage_Clients_CampbxClient/_balance/fetches_the_balance_correctly.yml +95 -0
  43. data/spec/support/cassettes/RbtcArbitrage_Clients_CampbxClient/_price/fetches_price_for_buy_correctly.yml +49 -0
  44. data/spec/support/cassettes/RbtcArbitrage_Clients_CampbxClient/_price/fetches_price_for_sell_correctly.yml +49 -0
  45. data/spec/support/cassettes/RbtcArbitrage_Clients_CoinbaseClient/_balance/fetches_the_balance_correctly.yml +109 -0
  46. data/spec/support/cassettes/RbtcArbitrage_Clients_CoinbaseClient/_price/calls_coinbase.yml +215 -0
  47. data/spec/support/cassettes/RbtcArbitrage_Clients_CoinbaseClient/_price/fetches_price_for_buy_correctly.yml +56 -0
  48. data/spec/support/cassettes/RbtcArbitrage_Clients_CoinbaseClient/_price/fetches_price_for_sell_correctly.yml +56 -0
  49. data/spec/support/cassettes/RbtcArbitrage_Clients_MtGoxClient/_balance/fetches_the_balance_correctly.yml +77 -0
  50. data/spec/support/cassettes/RbtcArbitrage_Clients_MtGoxClient/_price/fetches_price_for_buy_correctly.yml +44 -0
  51. data/spec/support/cassettes/RbtcArbitrage_Clients_MtGoxClient/_price/fetches_price_for_sell_correctly.yml +44 -0
  52. data/spec/support/cassettes/RbtcArbitrage_Clients_MtGoxClient/_price/fetches_prices_correctly.yml +85 -0
  53. data/spec/support/cassettes/RbtcArbitrage_Trader/_execute_trade/should_raise_SecurityError_if_not_live.yml +88 -0
  54. data/spec/support/cassettes/RbtcArbitrage_Trader/_execute_trade/when_live/raises_SecurityError_if_not_enough_BTC.yml +81 -0
  55. data/spec/support/cassettes/RbtcArbitrage_Trader/_execute_trade/when_live/raises_SecurityError_if_not_enough_USD.yml +81 -0
  56. data/spec/support/cassettes/RbtcArbitrage_Trader/_execute_trade/when_live/should_fetch_balance.yml +88 -0
  57. data/spec/support/cassettes/RbtcArbitrage_Trader/_execute_trade/when_live/shouldn_t_raise_security_error.yml +166 -0
  58. data/spec/support/cassettes/RbtcArbitrage_Trader/_fetch_prices/gets_the_right_price_set.yml +173 -0
  59. data/spec/trader_spec.rb +228 -0
  60. metadata +249 -0
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.bitstamp.net/api/ticker/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Date:
16
+ - Tue, 17 Dec 2013 18:52:04 GMT
17
+ Server:
18
+ - Apache
19
+ Content-Language:
20
+ - en
21
+ Expires:
22
+ - Tue, 17 Dec 2013 18:52:04 GMT
23
+ Vary:
24
+ - Accept-Language
25
+ Cache-Control:
26
+ - max-age=0
27
+ Last-Modified:
28
+ - Tue, 17 Dec 2013 18:52:04 GMT
29
+ Connection:
30
+ - close
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Content-Type:
34
+ - application/json
35
+ Set-Cookie:
36
+ - incap_ses_124_99025=5DhUG6HHpgc7/tZvBoq4AVSdsFIAAAAAoM6lqyNWcwlVvCFr/4IIuw==;
37
+ path=/; Domain=.bitstamp.net
38
+ - nlbi_99025=HA9ZcYGgIXoCBMJHItob8gAAAACXpbRiMvo8jSczT4T6cKpV; path=/; Domain=.bitstamp.net
39
+ - visid_incap_99025=8mFx8YHMTyKSmlu5q6QgKlSdsFIAAAAAQUIPAAAAAADPhKj72XMvuuLQmfmN6bUE;
40
+ expires=Thu, 17 Dec 2015 17:22:01 GMT; path=/; Domain=.bitstamp.net
41
+ X-Iinfo:
42
+ - 2-306226-306234 NNNY CT(200 200 0) RT(1387306323909 189) q(0 0 4 -1) r(4 7)
43
+ U13
44
+ X-Cdn:
45
+ - Incapsula
46
+ body:
47
+ encoding: ASCII-8BIT
48
+ string: '{"high": "750.00", "last": "715.00", "timestamp": "1387306318", "bid":
49
+ "715.00", "volume": "64331.27905889", "low": "612.51", "ask": "716.44"}'
50
+ http_version:
51
+ recorded_at: Tue, 17 Dec 2013 18:52:06 GMT
52
+ recorded_with: VCR 2.7.0
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.bitstamp.net/api/ticker/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Date:
16
+ - Tue, 17 Dec 2013 18:52:06 GMT
17
+ Server:
18
+ - Apache
19
+ Content-Language:
20
+ - en
21
+ Expires:
22
+ - Tue, 17 Dec 2013 18:52:06 GMT
23
+ Vary:
24
+ - Accept-Language
25
+ Cache-Control:
26
+ - max-age=0
27
+ Last-Modified:
28
+ - Tue, 17 Dec 2013 18:52:06 GMT
29
+ Connection:
30
+ - close
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Content-Type:
34
+ - application/json
35
+ Set-Cookie:
36
+ - incap_ses_124_99025=EG6NVFY4Zj3MANdvBoq4AVWdsFIAAAAAJ5HXgArrNoPSLKMXyrPmIA==;
37
+ path=/; Domain=.bitstamp.net
38
+ - nlbi_99025=BEeSMWMBHh4P8h8yItob8gAAAAByf4B7gSxAE4n9qUXQRygm; path=/; Domain=.bitstamp.net
39
+ - visid_incap_99025=8DwVZBcRQHCx3jP6h7xR7VWdsFIAAAAAQUIPAAAAAAD2kz0IxzLs0UNgtTywlZwj;
40
+ expires=Thu, 17 Dec 2015 17:22:01 GMT; path=/; Domain=.bitstamp.net
41
+ X-Iinfo:
42
+ - 5-2963838-2963878 NNNY CT(195 201 0) RT(1387306325135 166) q(0 0 3 -1) r(3
43
+ 6) U13
44
+ X-Cdn:
45
+ - Incapsula
46
+ body:
47
+ encoding: ASCII-8BIT
48
+ string: '{"high": "750.00", "last": "715.00", "timestamp": "1387306318", "bid":
49
+ "715.00", "volume": "64331.27905889", "low": "612.51", "ask": "716.44"}'
50
+ http_version:
51
+ recorded_at: Tue, 17 Dec 2013 18:52:06 GMT
52
+ recorded_with: VCR 2.7.0
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://data.mtgox.com/api/1/BTCUSD/ticker
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ User-Agent:
13
+ - mtgox gem 1.1.0
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
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
+ - '1387'
31
+ Cache-Control:
32
+ - public, max-age=27
33
+ Expires:
34
+ - Tue, 17 Dec 2013 18:41:04 GMT
35
+ Date:
36
+ - Tue, 17 Dec 2013 18:40:37 GMT
37
+ Connection:
38
+ - keep-alive
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"result":"success","return":{"high":{"value":"824.88888","value_int":"82488888","display":"$824.89","display_short":"$824.89","currency":"USD"},"low":{"value":"678.89040","value_int":"67889040","display":"$678.89","display_short":"$678.89","currency":"USD"},"avg":{"value":"741.06661","value_int":"74106661","display":"$741.07","display_short":"$741.07","currency":"USD"},"vwap":{"value":"738.12158","value_int":"73812158","display":"$738.12","display_short":"$738.12","currency":"USD"},"vol":{"value":"47976.69175988","value_int":"4797669175988","display":"47,976.69\u00a0BTC","display_short":"47,976.69\u00a0BTC","currency":"BTC"},"last_local":{"value":"746.00000","value_int":"74600000","display":"$746.00","display_short":"$746.00","currency":"USD"},"last_orig":{"value":"77000.000","value_int":"77000000","display":"\u00a577,000","display_short":"\u00a577,000","currency":"JPY"},"last_all":{"value":"747.69296","value_int":"74769296","display":"$747.69","display_short":"$747.69","currency":"USD"},"last":{"value":"746.00000","value_int":"74600000","display":"$746.00","display_short":"$746.00","currency":"USD"},"buy":{"value":"746.00000","value_int":"74600000","display":"$746.00","display_short":"$746.00","currency":"USD"},"sell":{"value":"749.40000","value_int":"74940000","display":"$749.40","display_short":"$749.40","currency":"USD"},"item":"BTC","now":"1387305632161184"}}'
42
+ http_version:
43
+ recorded_at: Tue, 17 Dec 2013 18:40:38 GMT
44
+ recorded_with: VCR 2.7.0
@@ -0,0 +1,53 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://btc-e.com/tapi
6
+ body:
7
+ encoding: US-ASCII
8
+ string: method=getInfo&nonce=1387758890
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - '*/*'
14
+ User-Agent:
15
+ - Ruby
16
+ Key:
17
+ - fake
18
+ Sign:
19
+ - !ruby/object:OpenSSL::HMAC {}
20
+ Content-Type:
21
+ - application/x-www-form-urlencoded
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Server:
28
+ - cloudflare-nginx
29
+ Date:
30
+ - Mon, 23 Dec 2013 00:34:51 GMT
31
+ Content-Type:
32
+ - text/html; charset=utf-8
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ Set-Cookie:
38
+ - __cfduid=dd20e7e199fd945092427e1ea3835a2ee1387758891683; expires=Mon, 23-Dec-2019
39
+ 23:50:00 GMT; path=/; domain=.btc-e.com; HttpOnly
40
+ X-Frame-Options:
41
+ - DENY
42
+ Expires:
43
+ - Thu, 01 Jan 1970 00:00:01 GMT
44
+ Cache-Control:
45
+ - no-cache
46
+ Cf-Ray:
47
+ - e10f7f0a9280669
48
+ body:
49
+ encoding: UTF-8
50
+ string: '{"success":0,"error":"invalid api key"}'
51
+ http_version:
52
+ recorded_at: Mon, 23 Dec 2013 00:34:51 GMT
53
+ recorded_with: VCR 2.7.0
@@ -0,0 +1,91 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://btc-e.com/api/2/btc_usd/ticker
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - '*/*'
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - cloudflare-nginx
23
+ Date:
24
+ - Sun, 22 Dec 2013 22:16:28 GMT
25
+ Content-Type:
26
+ - text/html; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ Set-Cookie:
32
+ - __cfduid=d1f8cab4bb52538ed98053a854f645b891387750587941; expires=Mon, 23-Dec-2019
33
+ 23:50:00 GMT; path=/; domain=.btc-e.com; HttpOnly
34
+ X-Frame-Options:
35
+ - DENY
36
+ Expires:
37
+ - Thu, 01 Jan 1970 00:00:01 GMT
38
+ Cache-Control:
39
+ - no-cache
40
+ Cf-Ray:
41
+ - e102d36ad9f0293
42
+ body:
43
+ encoding: UTF-8
44
+ string: '{"ticker":{"high":659.99902,"low":572.09998,"avg":616.0495,"vol":14435222.43502,"vol_cur":23193.90705,"last":610.684,"buy":613.992,"sell":613.185,"updated":1387750587,"server_time":1387750588}}'
45
+ http_version:
46
+ recorded_at: Sun, 22 Dec 2013 22:16:28 GMT
47
+ - request:
48
+ method: get
49
+ uri: https://btc-e.com/api/2/btc_usd/ticker
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ''
53
+ headers:
54
+ Accept-Encoding:
55
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
56
+ Accept:
57
+ - '*/*'
58
+ User-Agent:
59
+ - Ruby
60
+ response:
61
+ status:
62
+ code: 200
63
+ message: OK
64
+ headers:
65
+ Server:
66
+ - cloudflare-nginx
67
+ Date:
68
+ - Sun, 22 Dec 2013 22:16:28 GMT
69
+ Content-Type:
70
+ - text/html; charset=utf-8
71
+ Transfer-Encoding:
72
+ - chunked
73
+ Connection:
74
+ - keep-alive
75
+ Set-Cookie:
76
+ - __cfduid=d58ae9f8e9b973513f80e342b90bcbdb31387750588525; expires=Mon, 23-Dec-2019
77
+ 23:50:00 GMT; path=/; domain=.btc-e.com; HttpOnly
78
+ X-Frame-Options:
79
+ - DENY
80
+ Expires:
81
+ - Thu, 01 Jan 1970 00:00:01 GMT
82
+ Cache-Control:
83
+ - no-cache
84
+ Cf-Ray:
85
+ - e102d3a42aa0293
86
+ body:
87
+ encoding: UTF-8
88
+ string: '{"ticker":{"high":659.99902,"low":572.09998,"avg":616.0495,"vol":14435222.43502,"vol_cur":23193.90705,"last":610.684,"buy":613.992,"sell":613.185,"updated":1387750587,"server_time":1387750588}}'
89
+ http_version:
90
+ recorded_at: Sun, 22 Dec 2013 22:16:28 GMT
91
+ recorded_with: VCR 2.7.0
@@ -0,0 +1,47 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://btc-e.com/api/2/btc_usd/ticker
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - '*/*'
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - cloudflare-nginx
23
+ Date:
24
+ - Sun, 22 Dec 2013 22:13:52 GMT
25
+ Content-Type:
26
+ - text/html; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ Set-Cookie:
32
+ - __cfduid=de7ec8d7456b1f37e41e2b0fe4a09cfba1387750431811; expires=Mon, 23-Dec-2019
33
+ 23:50:00 GMT; path=/; domain=.btc-e.com; HttpOnly
34
+ X-Frame-Options:
35
+ - DENY
36
+ Expires:
37
+ - Thu, 01 Jan 1970 00:00:01 GMT
38
+ Cache-Control:
39
+ - no-cache
40
+ Cf-Ray:
41
+ - e102966dc670669
42
+ body:
43
+ encoding: UTF-8
44
+ string: '{"ticker":{"high":659.99902,"low":572.09998,"avg":616.0495,"vol":14402660.31015,"vol_cur":23140.70104,"last":613.1,"buy":614.99,"sell":612.7,"updated":1387750431,"server_time":1387750432}}'
45
+ http_version:
46
+ recorded_at: Sun, 22 Dec 2013 22:13:52 GMT
47
+ recorded_with: VCR 2.7.0
@@ -0,0 +1,47 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://btc-e.com/api/2/btc_usd/ticker
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - '*/*'
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - cloudflare-nginx
23
+ Date:
24
+ - Sun, 22 Dec 2013 22:13:52 GMT
25
+ Content-Type:
26
+ - text/html; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ Set-Cookie:
32
+ - __cfduid=d5173355cf2a4f0a2af0f2ee70de42a711387750432284; expires=Mon, 23-Dec-2019
33
+ 23:50:00 GMT; path=/; domain=.btc-e.com; HttpOnly
34
+ X-Frame-Options:
35
+ - DENY
36
+ Expires:
37
+ - Thu, 01 Jan 1970 00:00:01 GMT
38
+ Cache-Control:
39
+ - no-cache
40
+ Cf-Ray:
41
+ - e102969cbd00669
42
+ body:
43
+ encoding: UTF-8
44
+ string: '{"ticker":{"high":659.99902,"low":572.09998,"avg":616.0495,"vol":14402660.31015,"vol_cur":23140.70104,"last":613.1,"buy":614.99,"sell":612.7,"updated":1387750431,"server_time":1387750432}}'
45
+ http_version:
46
+ recorded_at: Sun, 22 Dec 2013 22:13:52 GMT
47
+ recorded_with: VCR 2.7.0
@@ -0,0 +1,95 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://campbx.com/api/myfunds.php
6
+ headers:
7
+ Accept-Encoding:
8
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
9
+ Accept:
10
+ - '*/*'
11
+ User-Agent:
12
+ - Ruby
13
+ Content-Type:
14
+ - application/x-www-form-urlencoded
15
+ response:
16
+ status:
17
+ code: 200
18
+ message: OK
19
+ headers:
20
+ Server:
21
+ - cloudflare-nginx
22
+ Date:
23
+ - Sun, 22 Dec 2013 20:52:46 GMT
24
+ Content-Type:
25
+ - application/json
26
+ Transfer-Encoding:
27
+ - chunked
28
+ Connection:
29
+ - keep-alive
30
+ Set-Cookie:
31
+ - __cfduid=dcf93eb6010f388100750784fd2ba7ad51387745566048; expires=Mon, 23-Dec-2019
32
+ 23:50:00 GMT; path=/; domain=.campbx.com; HttpOnly
33
+ X-Frame-Options:
34
+ - SAMEORIGIN
35
+ Cache-Control:
36
+ - no-cache, must-revalidate, max-age=3600
37
+ Vary:
38
+ - Accept-Encoding
39
+ Expires:
40
+ - Sun, 22 Dec 2013 21:52:45 GMT
41
+ Cf-Ray:
42
+ - e0fb29b52190657
43
+ body:
44
+ encoding: UTF-8
45
+ string: "\r\n{\"Total USD\":\"1.41\",\"Total BTC\":\"0.00790000\",\"Liquid USD\":\"1.41\",\"Liquid
46
+ BTC\":\"0.00790000\",\"Margin Account USD\":\"0.00\",\"Margin Account BTC\":\"0.00000000\"}"
47
+ http_version:
48
+ recorded_at: Sun, 22 Dec 2013 20:52:46 GMT
49
+ - request:
50
+ method: post
51
+ uri: https://campbx.com/api/myfunds.php
52
+ headers:
53
+ Accept-Encoding:
54
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
55
+ Accept:
56
+ - '*/*'
57
+ User-Agent:
58
+ - Ruby
59
+ Content-Type:
60
+ - application/x-www-form-urlencoded
61
+ response:
62
+ status:
63
+ code: 200
64
+ message: OK
65
+ headers:
66
+ Server:
67
+ - cloudflare-nginx
68
+ Date:
69
+ - Sun, 22 Dec 2013 20:52:47 GMT
70
+ Content-Type:
71
+ - application/json
72
+ Transfer-Encoding:
73
+ - chunked
74
+ Connection:
75
+ - keep-alive
76
+ Set-Cookie:
77
+ - __cfduid=d4b55f5f94eb19005616f2b37678ae4d31387745567323; expires=Mon, 23-Dec-2019
78
+ 23:50:00 GMT; path=/; domain=.campbx.com; HttpOnly
79
+ X-Frame-Options:
80
+ - SAMEORIGIN
81
+ Cache-Control:
82
+ - no-cache, must-revalidate, max-age=3600
83
+ Vary:
84
+ - Accept-Encoding
85
+ Expires:
86
+ - Sun, 22 Dec 2013 21:52:46 GMT
87
+ Cf-Ray:
88
+ - e0fb2a340cd012d
89
+ body:
90
+ encoding: UTF-8
91
+ string: "\r\n{\"Total USD\":\"1.41\",\"Total BTC\":\"0.00790000\",\"Liquid USD\":\"1.41\",\"Liquid
92
+ BTC\":\"0.00790000\",\"Margin Account USD\":\"0.00\",\"Margin Account BTC\":\"0.00000000\"}"
93
+ http_version:
94
+ recorded_at: Sun, 22 Dec 2013 20:52:47 GMT
95
+ recorded_with: VCR 2.7.0