currency-rate 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/currency-rate.gemspec +4 -6
  4. data/lib/adapter.rb +36 -4
  5. data/lib/btc_adapters/average_rate_adapter.rb +2 -0
  6. data/lib/btc_adapters/bitfinex_adapter.rb +9 -0
  7. data/lib/btc_adapters/bitpay_adapter.rb +9 -2
  8. data/lib/btc_adapters/bitstamp_adapter.rb +9 -1
  9. data/lib/btc_adapters/btcchina_adapter.rb +5 -1
  10. data/lib/btc_adapters/btce_adapter.rb +9 -1
  11. data/lib/btc_adapters/coinbase_adapter.rb +9 -0
  12. data/lib/btc_adapters/huobi_adapter.rb +9 -0
  13. data/lib/btc_adapters/kraken_adapter.rb +9 -0
  14. data/lib/btc_adapters/localbitcoins_adapter.rb +9 -0
  15. data/lib/btc_adapters/okcoin_adapter.rb +9 -0
  16. data/lib/currency_rate.rb +6 -1
  17. data/lib/fiat_adapters/fixer_adapter.rb +11 -0
  18. data/lib/fiat_adapters/yahoo_adapter.rb +8 -0
  19. data/spec/fixtures/vcr/exchange_rate_adapters/btc_adapters/average_rate_adapter.yml +307 -281
  20. data/spec/fixtures/vcr/exchange_rate_adapters/btc_adapters/bitfinex_adapter.yml +46 -50
  21. data/spec/fixtures/vcr/exchange_rate_adapters/btc_adapters/bitpay_adapter.yml +272 -0
  22. data/spec/fixtures/vcr/exchange_rate_adapters/btc_adapters/btcchina_adapter.yml +9 -8
  23. data/spec/fixtures/vcr/exchange_rate_adapters/btc_adapters/btce_adapter.yml +30 -30
  24. data/spec/fixtures/vcr/exchange_rate_adapters/btc_adapters/coinbase_adapter.yml +36 -16
  25. data/spec/fixtures/vcr/exchange_rate_adapters/btc_adapters/huobi_adapter.yml +20 -20
  26. data/spec/fixtures/vcr/exchange_rate_adapters/btc_adapters/kraken_adapter.yml +12 -12
  27. data/spec/fixtures/vcr/exchange_rate_adapters/btc_adapters/localbitcoins_adapter.yml +88 -83
  28. data/spec/fixtures/vcr/exchange_rate_adapters/btc_adapters/okcoin_adapter.yml +52 -36
  29. data/spec/fixtures/vcr/exchange_rate_adapters/fiat_adapters/fixer_adapter.yml +16 -12
  30. data/spec/fixtures/vcr/exchange_rate_adapters/fiat_adapters/yahoo_adapter.yml +9 -11
  31. data/spec/lib/btc_adapter_spec.rb +12 -1
  32. data/spec/lib/btc_adapters/average_rate_adapter_spec.rb +1 -6
  33. data/spec/lib/btc_adapters/bitfinex_adapter_spec.rb +6 -6
  34. data/spec/lib/btc_adapters/bitpay_adapter_spec.rb +5 -5
  35. data/spec/lib/btc_adapters/bitstamp_adapter_spec.rb +9 -9
  36. data/spec/lib/btc_adapters/btcchina_adapter_spec.rb +4 -4
  37. data/spec/lib/btc_adapters/btce_adapter_spec.rb +10 -10
  38. data/spec/lib/btc_adapters/coinbase_adapter_spec.rb +4 -4
  39. data/spec/lib/btc_adapters/huobi_adapter_spec.rb +6 -6
  40. data/spec/lib/btc_adapters/kraken_adapter_spec.rb +6 -6
  41. data/spec/lib/btc_adapters/localbitcoins_adapter_spec.rb +4 -4
  42. data/spec/lib/btc_adapters/okcoin_adapter_spec.rb +11 -11
  43. data/spec/lib/fiat_adapters/fixer_adapter_spec.rb +5 -5
  44. data/spec/lib/fiat_adapters/yahoo_adapter_spec.rb +5 -5
  45. metadata +3 -4
  46. data/spec/fixtures/vcr/exchange_rate_adapters/btc_adapters/bitpay_adapter_yml.yml +0 -272
  47. data/spec/fixtures/vcr/exchange_rate_adapters/btc_adapters/bitstamp_adapter.yml +0 -153
@@ -18,49 +18,47 @@ http_interactions:
18
18
  code: 200
19
19
  message: OK
20
20
  headers:
21
- Server:
22
- - nginx
23
21
  Date:
24
- - Mon, 20 Jun 2016 06:58:42 GMT
22
+ - Mon, 06 Feb 2017 05:24:39 GMT
25
23
  Content-Type:
26
24
  - application/json; charset=utf-8
27
25
  Transfer-Encoding:
28
26
  - chunked
29
27
  Connection:
30
28
  - keep-alive
29
+ Set-Cookie:
30
+ - __cfduid=d0c0b5ffd0e2f172c8ae2dbe0652ab5b11486358678; expires=Tue, 06-Feb-18
31
+ 05:24:38 GMT; path=/; domain=.bitfinex.com; HttpOnly
32
+ Strict-Transport-Security:
33
+ - max-age=31536000
34
+ X-Frame-Options:
35
+ - SAMEORIGIN
36
+ - SAMEORIGIN
37
+ X-Xss-Protection:
38
+ - 1; mode=block
39
+ X-Content-Type-Options:
40
+ - nosniff
31
41
  Vary:
32
42
  - Accept-Encoding
33
- X-Ua-Compatible:
34
- - IE=Edge,chrome=1
35
43
  Etag:
36
- - '"59136e30c95f01b5c136770220aa846e"'
44
+ - '"ace1421ffbebc7f9646b5775d2d31d4f"'
37
45
  Cache-Control:
38
46
  - no-cache
39
47
  X-Request-Id:
40
- - c753494b3227cfad50f8945966d39c8d
48
+ - 5adab457-c532-4bd6-a592-82cb5a22732c
41
49
  X-Runtime:
42
- - '0.007791'
43
- X-Rack-Cache:
44
- - miss
50
+ - '0.009736'
45
51
  Expires:
46
- - Mon, 20 Jun 2016 06:58:41 GMT
47
- X-Frame-Options:
48
- - SAMEORIGIN
49
- Set-Cookie:
50
- - incap_ses_220_116519=8b+gI3trGBYpDLXOOqINAyGUZ1cAAAAAQM8WsGM6w+YwPHmncx+niw==;
51
- path=/; Domain=.bitfinex.com
52
- - nlbi_116519=HuwXBwJMIxm8yM1pAW4sjgAAAABRTx8p7HVHSrl6wTiQvNNI; path=/; Domain=.bitfinex.com
53
- - visid_incap_116519=L54xa4vmRP6KAQ4z4aLnMSGUZ1cAAAAAQUIPAAAAAADfguZq9rKJ6IjaTgC2Q5+V;
54
- expires=Mon, 19 Jun 2017 07:26:37 GMT; path=/; Domain=.bitfinex.com
55
- X-Iinfo:
56
- - 10-121398064-121388225 PNNN RT(1466405921277 608) q(0 0 0 -1) r(1 1) U5
57
- X-Cdn:
58
- - Incapsula
52
+ - Mon, 06 Feb 2017 05:24:38 GMT
53
+ Server:
54
+ - cloudflare-nginx
55
+ Cf-Ray:
56
+ - 32cc2d4b797231b0-SIN
59
57
  body:
60
58
  encoding: ASCII-8BIT
61
- string: '{"mid":"763.26999999999995","bid":"763.23","ask":"763.3099999999999","last_price":"763.0","low":"743.1","high":"775.0","volume":"25691.14266963","timestamp":"1466405921.347352017"}'
59
+ string: '{"mid":"1016.85","bid":"1016.8","ask":"1016.9","last_price":"1016.9","low":"995.1","high":"1030.0","volume":"16534.79967545","timestamp":"1486358679.270216686"}'
62
60
  http_version:
63
- recorded_at: Mon, 20 Jun 2016 06:58:43 GMT
61
+ recorded_at: Mon, 06 Feb 2017 05:24:39 GMT
64
62
  - request:
65
63
  method: get
66
64
  uri: https://api.bitfinex.com/v1/pubticker/ltcusd
@@ -79,47 +77,45 @@ http_interactions:
79
77
  code: 200
80
78
  message: OK
81
79
  headers:
82
- Server:
83
- - nginx
84
80
  Date:
85
- - Mon, 20 Jun 2016 06:58:44 GMT
81
+ - Mon, 06 Feb 2017 05:24:41 GMT
86
82
  Content-Type:
87
83
  - application/json; charset=utf-8
88
84
  Transfer-Encoding:
89
85
  - chunked
90
86
  Connection:
91
87
  - keep-alive
88
+ Set-Cookie:
89
+ - __cfduid=d44447d298960568c25dac40ff4886a621486358680; expires=Tue, 06-Feb-18
90
+ 05:24:40 GMT; path=/; domain=.bitfinex.com; HttpOnly
91
+ Strict-Transport-Security:
92
+ - max-age=31536000
93
+ X-Frame-Options:
94
+ - SAMEORIGIN
95
+ - SAMEORIGIN
96
+ X-Xss-Protection:
97
+ - 1; mode=block
98
+ X-Content-Type-Options:
99
+ - nosniff
92
100
  Vary:
93
101
  - Accept-Encoding
94
- X-Ua-Compatible:
95
- - IE=Edge,chrome=1
96
102
  Etag:
97
- - '"631b709f658a68d802be723ff93619e4"'
103
+ - '"c861897fcc79195fa6c297affec0e42a"'
98
104
  Cache-Control:
99
105
  - no-cache
100
106
  X-Request-Id:
101
- - b8e3581e6fa3c87e585e313877b1e1ec
107
+ - e7b0ea57-ae26-4a83-bec1-cd13be72e9fd
102
108
  X-Runtime:
103
- - '0.005262'
104
- X-Rack-Cache:
105
- - miss
109
+ - '0.004825'
106
110
  Expires:
107
- - Mon, 20 Jun 2016 06:58:43 GMT
108
- X-Frame-Options:
109
- - SAMEORIGIN
110
- Set-Cookie:
111
- - incap_ses_220_116519=GIbaZrYdtxMQEbXOOqINAyOUZ1cAAAAAycnlvhfe0Isz+HA9+Pp/NQ==;
112
- path=/; Domain=.bitfinex.com
113
- - nlbi_116519=VnM6Dh8v/je+PlhWAW4sjgAAAACgdvqJaRM1yNUCSKWSWKd1; path=/; Domain=.bitfinex.com
114
- - visid_incap_116519=X2lKapZlTTqMla2h0a3lqSOUZ1cAAAAAQUIPAAAAAABmZgMQLk1YH1cryK/6D7ZS;
115
- expires=Mon, 19 Jun 2017 07:26:37 GMT; path=/; Domain=.bitfinex.com
116
- X-Iinfo:
117
- - 8-96464173-96432433 PNNN RT(1466405922881 596) q(0 0 0 -1) r(1 1) U5
118
- X-Cdn:
119
- - Incapsula
111
+ - Mon, 06 Feb 2017 05:24:39 GMT
112
+ Server:
113
+ - cloudflare-nginx
114
+ Cf-Ray:
115
+ - 32cc2d5619f41792-SIN
120
116
  body:
121
117
  encoding: ASCII-8BIT
122
- string: '{"mid":"5.5237","bid":"5.5105","ask":"5.5369","last_price":"5.5105","low":"5.4952","high":"5.6365","volume":"17967.21301685","timestamp":"1466405918.717334694"}'
118
+ string: '{"mid":"3.93805","bid":"3.9321","ask":"3.944","last_price":"3.9526","low":"3.895","high":"4.0084","volume":"10408.11372017","timestamp":"1486358680.942981676"}'
123
119
  http_version:
124
- recorded_at: Mon, 20 Jun 2016 06:58:44 GMT
120
+ recorded_at: Mon, 06 Feb 2017 05:24:41 GMT
125
121
  recorded_with: VCR 3.0.3
@@ -0,0 +1,272 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://bitpay.com/api/rates
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
+ Date:
22
+ - Mon, 06 Feb 2017 05:37:22 GMT
23
+ Content-Type:
24
+ - application/json
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Set-Cookie:
30
+ - __cfduid=d690478e84ae31e155cb34112556d212e1486359442; expires=Tue, 06-Feb-18
31
+ 05:37:22 GMT; path=/; domain=.bitpay.com; HttpOnly
32
+ Strict-Transport-Security:
33
+ - max-age=31536000
34
+ X-Download-Options:
35
+ - noopen
36
+ X-Content-Type-Options:
37
+ - nosniff
38
+ Access-Control-Allow-Origin:
39
+ - "*"
40
+ Cache-Control:
41
+ - public, max-age=1800
42
+ Expires:
43
+ - Mon, 06 Feb 2017 06:07:22 GMT
44
+ Cf-Cache-Status:
45
+ - HIT
46
+ Vary:
47
+ - Accept-Encoding
48
+ Server:
49
+ - cloudflare-nginx
50
+ Cf-Ray:
51
+ - 32cc3ff16e163096-SIN
52
+ body:
53
+ encoding: ASCII-8BIT
54
+ string: !binary |-
55
+ W3siY29kZSI6IkJUQyIsIm5hbWUiOiJCaXRjb2luIiwicmF0ZSI6MX0seyJj
56
+ b2RlIjoiVVNEIiwibmFtZSI6IlVTIERvbGxhciIsInJhdGUiOjEwMTUuODJ9
57
+ LHsiY29kZSI6IkVVUiIsIm5hbWUiOiJFdXJvem9uZSBFdXJvIiwicmF0ZSI6
58
+ OTQyLjEwOTA1M30seyJjb2RlIjoiR0JQIiwibmFtZSI6IlBvdW5kIFN0ZXJs
59
+ aW5nIiwicmF0ZSI6ODEzLjUwNzI1N30seyJjb2RlIjoiSlBZIiwibmFtZSI6
60
+ IkphcGFuZXNlIFllbiIsInJhdGUiOjExNDE2OS41MzM1M30seyJjb2RlIjoi
61
+ Q0FEIiwibmFtZSI6IkNhbm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http_interactions:
27
27
  Content-Type:
28
28
  - application/json
29
29
  Date:
30
- - Tue, 21 Jun 2016 08:28:10 GMT
30
+ - Mon, 06 Feb 2017 05:24:45 GMT
31
31
  Expires:
32
32
  - Thu, 19 Nov 1981 08:52:00 GMT
33
33
  Front-End-Https:
@@ -35,20 +35,21 @@ http_interactions:
35
35
  Pragma:
36
36
  - no-cache
37
37
  Server:
38
- - nginx/1.8.1
38
+ - nginx
39
39
  Set-Cookie:
40
- - btcchina_lang=en; expires=Wed, 21-Jun-2017 08:28:10 GMT; path=/; domain=.btcc.com
40
+ - PHPSESSID=6n5qmvt5a5g23n79aes5fm9ad0; path=/; domain=.btcc.com
41
+ - btcchina_lang=en; expires=Tue, 06-Feb-2018 05:24:44 GMT; path=/; domain=.btcc.com
41
42
  X-Cache-Cfc:
42
- - "- 1466497690.039"
43
+ - "- 1486358684.080"
43
44
  X-Powered-By:
44
45
  - PHP/5.4.45
45
- Transfer-Encoding:
46
- - chunked
46
+ Content-Length:
47
+ - '186'
47
48
  Connection:
48
49
  - keep-alive
49
50
  body:
50
51
  encoding: UTF-8
51
- string: '{"ticker":{"high":"5090.00","low":"4615.02","buy":"4785.55","sell":"4786.12","last":"4785.55","vol":"58752.19850000","date":1466497687,"vwap":"4738.11","prev_close":"4931.64","open":"4931.65"}}'
52
+ string: '{"ticker":{"high":"7281.62","low":"7130.00","buy":"7225.01","sell":"7243.00","last":"7243.99","vol":"9205.16760000","date":1486358683,"vwap":"7219.33","prev_close":"7180","open":"7180"}}'
52
53
  http_version:
53
- recorded_at: Tue, 21 Jun 2016 08:28:10 GMT
54
+ recorded_at: Mon, 06 Feb 2017 05:24:45 GMT
54
55
  recorded_with: VCR 3.0.3