cointrader.net 0.6.1 → 0.7.0

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: ae8b2d58f7ae6a3174701c179ed1c84267ce31db
4
- data.tar.gz: 045b650199f66676c5b039bb13854323ea038798
3
+ metadata.gz: b4be1caf9abcc585a8e78bd1040188ec6a812844
4
+ data.tar.gz: 9154e351394208d06b8163609084c9fef8bd3bb5
5
5
  SHA512:
6
- metadata.gz: 64d485a589e42d4026ab671795c27ed814b601c77bf928056eb62abfa82d78e0bfa8bcb61751d7e290600b7afec65ee385e325b46d79668ecbc2ad995516124b
7
- data.tar.gz: c12a977990ce1149a7fd00b96da5f21a2573b019697926ced6a2a28aee6d27ad0194465cc029814951b28d2f286f398cedaa88f3ce1bcdcfda9777d4154fee28
6
+ metadata.gz: a4541aeb1921d6f8e64c45c26c587ca38a51d9479708814edd220c00b46edd8151471f3edffdd4a0db7460438c55cd98a15fa9ff5874ce4853092d3ec3b3fa3c
7
+ data.tar.gz: 2f835f35d16a212c35503835ccb38d8f13d6d3723486de49947d57d1fba50eefb550532aef5b6b35812e5cd9ed58d45877c1aeb44dde6843933a9a3eb616a9ed
@@ -3,7 +3,6 @@ require 'json'
3
3
  require 'openssl'
4
4
  require 'date'
5
5
  require 'uri'
6
- require 'digest'
7
6
 
8
7
  module Cointrader
9
8
  module Request
@@ -46,10 +45,8 @@ module Cointrader
46
45
  t: nonce,
47
46
  })
48
47
 
49
- secret = Digest::MD5.hexdigest(api_secret)
50
- data = payload.to_json + api_secret
51
48
  digest = OpenSSL::Digest.new('sha256')
52
- signature = OpenSSL::HMAC.hexdigest(digest, secret, data)
49
+ signature = OpenSSL::HMAC.hexdigest(digest, api_secret, payload.to_json)
53
50
 
54
51
  headers.merge!({
55
52
  'X-Auth' => api_key,
@@ -1,3 +1,3 @@
1
1
  module Cointrader
2
- VERSION = "0.6.1"
2
+ VERSION = "0.7.0"
3
3
  end
@@ -23,7 +23,7 @@ describe Cointrader::Client do
23
23
  VCR.use_cassette('symbol') do
24
24
  response = subject.symbol
25
25
 
26
- expect_success(response)
26
+ expect(response).not_to be_nil
27
27
  expect(response['data'][0]['name']).to eq 'Bitcoin (BTC)'
28
28
  end
29
29
  end
@@ -34,7 +34,7 @@ describe Cointrader::Client do
34
34
  it 'returns 24 hour sliding statistics' do
35
35
  VCR.use_cassette('stats_24h') do
36
36
  response = subject.stats_24h
37
- expect_success(response)
37
+ expect(response).not_to be_nil
38
38
  end
39
39
  end
40
40
  end
@@ -44,7 +44,7 @@ describe Cointrader::Client do
44
44
  it 'returns 7 day sliding statistics' do
45
45
  VCR.use_cassette('stats_7d') do
46
46
  response = subject.stats_7d
47
- expect_success(response)
47
+ expect(response).not_to be_nil
48
48
  end
49
49
  end
50
50
  end
@@ -54,7 +54,7 @@ describe Cointrader::Client do
54
54
  it 'returns open orders' do
55
55
  VCR.use_cassette('orders') do
56
56
  response = subject.orders
57
- expect_success(response)
57
+ expect(response).not_to be_nil
58
58
  end
59
59
  end
60
60
  end
@@ -66,7 +66,7 @@ describe Cointrader::Client do
66
66
  VCR.use_cassette('balance') do
67
67
  response = subject.balance
68
68
 
69
- expect_success(response)
69
+ expect(response).not_to be_nil
70
70
  expect(response['data']['BTC']['available']).not_to be_nil
71
71
  end
72
72
  end
@@ -77,7 +77,7 @@ describe Cointrader::Client do
77
77
  VCR.use_cassette('tradehistory') do
78
78
  response = subject.tradehistory
79
79
 
80
- expect_success(response)
80
+ expect(response).not_to be_nil
81
81
  expect(response['data'][0]['fee']).not_to be_nil
82
82
  end
83
83
  end
@@ -90,7 +90,7 @@ describe Cointrader::Client do
90
90
  VCR.use_cassette('limit_buy') do
91
91
  response = limit_buy
92
92
 
93
- expect_success(response)
93
+ expect(response).not_to be_nil
94
94
  expect(response['data']['id']).not_to be_nil
95
95
  end
96
96
  end
@@ -101,7 +101,7 @@ describe Cointrader::Client do
101
101
  VCR.use_cassette('limit_sell') do
102
102
  response = limit_sell
103
103
 
104
- expect_success(response)
104
+ expect(response).not_to be_nil
105
105
  expect(response['data']['id']).not_to be_nil
106
106
  end
107
107
  end
@@ -114,7 +114,7 @@ describe Cointrader::Client do
114
114
  VCR.use_cassette('cancel') do
115
115
  response = subject.cancel(id: order['data']['id'])
116
116
 
117
- expect_success(response)
117
+ expect(response).not_to be_nil
118
118
  expect(response['data']['id']).not_to be_nil
119
119
  expect(response['data']['currency_pair']).not_to be_nil
120
120
  end
@@ -126,7 +126,7 @@ describe Cointrader::Client do
126
126
  VCR.use_cassette('list') do
127
127
  response = subject.list
128
128
 
129
- expect_success(response)
129
+ expect(response).not_to be_nil
130
130
  expect(response['data'][0]['type'])
131
131
  end
132
132
  end
@@ -137,7 +137,7 @@ describe Cointrader::Client do
137
137
  VCR.use_cassette('trades') do
138
138
  response = subject.trades
139
139
 
140
- expect_success(response)
140
+ expect(response).not_to be_nil
141
141
  expect(response['data'][0]['price'])
142
142
  end
143
143
  end
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://private-anon-e01e290b7-cointrader.apiary-mock.com/api4/account/balance
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"secret":"l33lpBPqrNazDz5bgOpQkaerFtpOBqw8wjLTK3sbEcSK","t":"1432346100028"}'
8
+ string: '{"secret":"5zyeBRp8XnXzPEeMkPZJ4tm4Pjqejw6ovnRuazBit1Eo","t":"1433057422031"}'
9
9
  headers:
10
10
  Accept:
11
11
  - "*/*; q=0.5, application/xml"
@@ -14,9 +14,9 @@ http_interactions:
14
14
  Content-Type:
15
15
  - application/json
16
16
  X-Auth:
17
- - hCkVvzR4Nuc6dbuN0biMFSqMqSfc1f1grhXqoaQAlq1y
17
+ - oo2GEmR7GX7gw3weoz57kKsR21k8VgJFEfEaoUYOCIRf
18
18
  X-Auth-Hash:
19
- - 05664d067760c9a7906d055594a3bc50639bdf6834a5f6c9fbfe7d26e2f9135d
19
+ - 26adeee0c16462e30cfcdba245ab5927ae4d5d167b971773e22bb644e2fa720f
20
20
  Content-Length:
21
21
  - '77'
22
22
  User-Agent:
@@ -41,9 +41,9 @@ http_interactions:
41
41
  Access-Control-Max-Age:
42
42
  - '10'
43
43
  X-Apiary-Transaction-Id:
44
- - 555fdd42759c2d030016a23e
44
+ - 556ab7d01197a90300fefd03
45
45
  Date:
46
- - Sat, 23 May 2015 01:52:02 GMT
46
+ - Sun, 31 May 2015 07:27:12 GMT
47
47
  Transfer-Encoding:
48
48
  - chunked
49
49
  Via:
@@ -77,5 +77,5 @@ http_interactions:
77
77
  }
78
78
  }
79
79
  http_version:
80
- recorded_at: Sat, 23 May 2015 01:55:00 GMT
80
+ recorded_at: Sun, 31 May 2015 07:30:22 GMT
81
81
  recorded_with: VCR 2.9.3
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://private-anon-e01e290b7-cointrader.apiary-mock.com/api4/order/BTCUSD/cancel
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"secret":"l33lpBPqrNazDz5bgOpQkaerFtpOBqw8wjLTK3sbEcSK","t":"1432487211197"}'
8
+ string: '{"secret":"5zyeBRp8XnXzPEeMkPZJ4tm4Pjqejw6ovnRuazBit1Eo","t":"1433057425310"}'
9
9
  headers:
10
10
  Accept:
11
11
  - "*/*; q=0.5, application/xml"
@@ -14,9 +14,9 @@ http_interactions:
14
14
  Content-Type:
15
15
  - application/json
16
16
  X-Auth:
17
- - hCkVvzR4Nuc6dbuN0biMFSqMqSfc1f1grhXqoaQAlq1y
17
+ - oo2GEmR7GX7gw3weoz57kKsR21k8VgJFEfEaoUYOCIRf
18
18
  X-Auth-Hash:
19
- - 7b4dd8cb2dd2a1a4c95e3d4c1a9b3c981f7bd55f6889c33128bab7a05bd23cf8
19
+ - 8e749f76f59ae36b3ad63c488f0f4e7c09a37aacef445bc38cc9f49049e80a84
20
20
  Content-Length:
21
21
  - '77'
22
22
  User-Agent:
@@ -33,7 +33,7 @@ http_interactions:
33
33
  X-Apiary-Ratelimit-Limit:
34
34
  - '120'
35
35
  X-Apiary-Ratelimit-Remaining:
36
- - '119'
36
+ - '111'
37
37
  Access-Control-Allow-Origin:
38
38
  - "*"
39
39
  Access-Control-Allow-Methods:
@@ -41,9 +41,9 @@ http_interactions:
41
41
  Access-Control-Max-Age:
42
42
  - '10'
43
43
  X-Apiary-Transaction-Id:
44
- - 5562047865401d0300ea875b
44
+ - 556ab7d42e7cbc030044b280
45
45
  Date:
46
- - Sun, 24 May 2015 17:03:52 GMT
46
+ - Sun, 31 May 2015 07:27:16 GMT
47
47
  Transfer-Encoding:
48
48
  - chunked
49
49
  Via:
@@ -61,5 +61,5 @@ http_interactions:
61
61
  }
62
62
  }
63
63
  http_version:
64
- recorded_at: Sun, 24 May 2015 17:06:52 GMT
64
+ recorded_at: Sun, 31 May 2015 07:30:26 GMT
65
65
  recorded_with: VCR 2.9.3
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://private-anon-e01e290b7-cointrader.apiary-mock.com/api4/order/BTCUSD/buy
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"total_quantity":1,"price":10,"secret":"l33lpBPqrNazDz5bgOpQkaerFtpOBqw8wjLTK3sbEcSK","t":"1432346100616"}'
8
+ string: '{"total_quantity":1,"price":10,"secret":"5zyeBRp8XnXzPEeMkPZJ4tm4Pjqejw6ovnRuazBit1Eo","t":"1433057423470"}'
9
9
  headers:
10
10
  Accept:
11
11
  - "*/*; q=0.5, application/xml"
@@ -14,9 +14,9 @@ http_interactions:
14
14
  Content-Type:
15
15
  - application/json
16
16
  X-Auth:
17
- - hCkVvzR4Nuc6dbuN0biMFSqMqSfc1f1grhXqoaQAlq1y
17
+ - oo2GEmR7GX7gw3weoz57kKsR21k8VgJFEfEaoUYOCIRf
18
18
  X-Auth-Hash:
19
- - 4daece862621e000c8a7e7029593e40a71007fab984f477323b887ef44d98e1e
19
+ - 6f5a1972c6175b71a7bbc91af0546714014ffb0496b34917f74a78ccf896dedf
20
20
  Content-Length:
21
21
  - '107'
22
22
  User-Agent:
@@ -33,7 +33,7 @@ http_interactions:
33
33
  X-Apiary-Ratelimit-Limit:
34
34
  - '120'
35
35
  X-Apiary-Ratelimit-Remaining:
36
- - '114'
36
+ - '113'
37
37
  Access-Control-Allow-Origin:
38
38
  - "*"
39
39
  Access-Control-Allow-Methods:
@@ -41,9 +41,9 @@ http_interactions:
41
41
  Access-Control-Max-Age:
42
42
  - '10'
43
43
  X-Apiary-Transaction-Id:
44
- - 555fdd43d00c360300318166
44
+ - 556ab7d22e7cbc030044b27d
45
45
  Date:
46
- - Sat, 23 May 2015 01:52:03 GMT
46
+ - Sun, 31 May 2015 07:27:14 GMT
47
47
  Transfer-Encoding:
48
48
  - chunked
49
49
  Via:
@@ -60,5 +60,5 @@ http_interactions:
60
60
  }
61
61
  }
62
62
  http_version:
63
- recorded_at: Sat, 23 May 2015 01:55:00 GMT
63
+ recorded_at: Sun, 31 May 2015 07:30:24 GMT
64
64
  recorded_with: VCR 2.9.3
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://private-anon-e01e290b7-cointrader.apiary-mock.com/api4/order/BTCUSD/sell
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"total_quantity":1,"price":10,"secret":"l33lpBPqrNazDz5bgOpQkaerFtpOBqw8wjLTK3sbEcSK","t":"1432346100933"}'
8
+ string: '{"total_quantity":1,"price":10,"secret":"5zyeBRp8XnXzPEeMkPZJ4tm4Pjqejw6ovnRuazBit1Eo","t":"1433057424184"}'
9
9
  headers:
10
10
  Accept:
11
11
  - "*/*; q=0.5, application/xml"
@@ -14,9 +14,9 @@ http_interactions:
14
14
  Content-Type:
15
15
  - application/json
16
16
  X-Auth:
17
- - hCkVvzR4Nuc6dbuN0biMFSqMqSfc1f1grhXqoaQAlq1y
17
+ - oo2GEmR7GX7gw3weoz57kKsR21k8VgJFEfEaoUYOCIRf
18
18
  X-Auth-Hash:
19
- - 1d0c373355c23c76611d9b9bbcabacc18567ca6f2434dd1001a5c5bc5bf00638
19
+ - 9f01bd5f5e9ef05597d65bba8b2924efeddf0ff1c8d020f49749bbad6a3e0f0f
20
20
  Content-Length:
21
21
  - '107'
22
22
  User-Agent:
@@ -33,7 +33,7 @@ http_interactions:
33
33
  X-Apiary-Ratelimit-Limit:
34
34
  - '120'
35
35
  X-Apiary-Ratelimit-Remaining:
36
- - '113'
36
+ - '112'
37
37
  Access-Control-Allow-Origin:
38
38
  - "*"
39
39
  Access-Control-Allow-Methods:
@@ -41,9 +41,9 @@ http_interactions:
41
41
  Access-Control-Max-Age:
42
42
  - '10'
43
43
  X-Apiary-Transaction-Id:
44
- - 555fdd43d00c360300318168
44
+ - 556ab7d32e7cbc030044b27f
45
45
  Date:
46
- - Sat, 23 May 2015 01:52:03 GMT
46
+ - Sun, 31 May 2015 07:27:15 GMT
47
47
  Transfer-Encoding:
48
48
  - chunked
49
49
  Via:
@@ -53,5 +53,5 @@ http_interactions:
53
53
  string: "{\n \"success\":true,\n \"message\":\"Sell Order Created\",\n
54
54
  \ \"data\":\n {\n \"id\":\"2221132\"\n }\n} "
55
55
  http_version:
56
- recorded_at: Sat, 23 May 2015 01:55:01 GMT
56
+ recorded_at: Sun, 31 May 2015 07:30:25 GMT
57
57
  recorded_with: VCR 2.9.3
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://private-anon-e01e290b7-cointrader.apiary-mock.com/api4/order/BTCUSD/list
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"secret":"l33lpBPqrNazDz5bgOpQkaerFtpOBqw8wjLTK3sbEcSK","t":"1432738146171"}'
8
+ string: '{"secret":"5zyeBRp8XnXzPEeMkPZJ4tm4Pjqejw6ovnRuazBit1Eo","t":"1433057426129"}'
9
9
  headers:
10
10
  Accept:
11
11
  - "*/*; q=0.5, application/xml"
@@ -14,9 +14,9 @@ http_interactions:
14
14
  Content-Type:
15
15
  - application/json
16
16
  X-Auth:
17
- - hCkVvzR4Nuc6dbuN0biMFSqMqSfc1f1grhXqoaQAlq1y
17
+ - oo2GEmR7GX7gw3weoz57kKsR21k8VgJFEfEaoUYOCIRf
18
18
  X-Auth-Hash:
19
- - c2c0d4377e1c2bdecce31c5cc85e78624093586f623de4b00f032a48dfed008a
19
+ - d2544302f633bcdc69acaadc9a1ff2b38ec2aafde490114d52cf2c65a11e856c
20
20
  Content-Length:
21
21
  - '77'
22
22
  User-Agent:
@@ -33,7 +33,7 @@ http_interactions:
33
33
  X-Apiary-Ratelimit-Limit:
34
34
  - '120'
35
35
  X-Apiary-Ratelimit-Remaining:
36
- - '119'
36
+ - '110'
37
37
  Access-Control-Allow-Origin:
38
38
  - "*"
39
39
  Access-Control-Allow-Methods:
@@ -41,9 +41,9 @@ http_interactions:
41
41
  Access-Control-Max-Age:
42
42
  - '10'
43
43
  X-Apiary-Transaction-Id:
44
- - 5565d8aa16573e03000ada64
44
+ - 556ab7d51197a90300fefd08
45
45
  Date:
46
- - Wed, 27 May 2015 14:46:02 GMT
46
+ - Sun, 31 May 2015 07:27:17 GMT
47
47
  Transfer-Encoding:
48
48
  - chunked
49
49
  Via:
@@ -81,5 +81,5 @@ http_interactions:
81
81
  }]
82
82
  }
83
83
  http_version:
84
- recorded_at: Wed, 27 May 2015 14:49:06 GMT
84
+ recorded_at: Sun, 31 May 2015 07:30:27 GMT
85
85
  recorded_with: VCR 2.9.3
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://private-anon-e01e290b7-cointrader.apiary-mock.com/api4/stats/orders/BTCUSD
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"secret":"l33lpBPqrNazDz5bgOpQkaerFtpOBqw8wjLTK3sbEcSK","t":"1432738078061"}'
8
+ string: '{"secret":"5zyeBRp8XnXzPEeMkPZJ4tm4Pjqejw6ovnRuazBit1Eo","t":"1433057421155"}'
9
9
  headers:
10
10
  Accept:
11
11
  - "*/*; q=0.5, application/xml"
@@ -14,9 +14,9 @@ http_interactions:
14
14
  Content-Type:
15
15
  - application/json
16
16
  X-Auth:
17
- - hCkVvzR4Nuc6dbuN0biMFSqMqSfc1f1grhXqoaQAlq1y
17
+ - oo2GEmR7GX7gw3weoz57kKsR21k8VgJFEfEaoUYOCIRf
18
18
  X-Auth-Hash:
19
- - 500932cd5b776b6eb6161080992cdc7a7be0e1b0066c9fa19b0633475b62097b
19
+ - 0739355e236ae0ecc45c6ef053f3fd78946053cc347037e8b02957f9d75e9259
20
20
  Content-Length:
21
21
  - '77'
22
22
  User-Agent:
@@ -33,7 +33,7 @@ http_interactions:
33
33
  X-Apiary-Ratelimit-Limit:
34
34
  - '120'
35
35
  X-Apiary-Ratelimit-Remaining:
36
- - '119'
36
+ - '116'
37
37
  Content-Type:
38
38
  - text/html; charset=utf-8
39
39
  Content-Length:
@@ -41,7 +41,7 @@ http_interactions:
41
41
  Etag:
42
42
  - W/"zVuw45vE0DsxkZqn5802FQ=="
43
43
  Date:
44
- - Wed, 27 May 2015 14:44:54 GMT
44
+ - Sun, 31 May 2015 07:27:11 GMT
45
45
  Via:
46
46
  - 1.1 vegur
47
47
  body:
@@ -108,5 +108,5 @@ http_interactions:
108
108
  ICA8L3NlY3Rpb24+CiAgICAgIDwvb2w+CiAgPC9kaXY+CjwvYm9keT4KPC9o
109
109
  dG1sPgo=
110
110
  http_version:
111
- recorded_at: Wed, 27 May 2015 14:47:58 GMT
111
+ recorded_at: Sun, 31 May 2015 07:30:22 GMT
112
112
  recorded_with: VCR 2.9.3
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://private-anon-e01e290b7-cointrader.apiary-mock.com/api4/stats/daily/BTCUSD
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"secret":"l33lpBPqrNazDz5bgOpQkaerFtpOBqw8wjLTK3sbEcSK","t":"1432346098776"}'
8
+ string: '{"secret":"5zyeBRp8XnXzPEeMkPZJ4tm4Pjqejw6ovnRuazBit1Eo","t":"1433057419422"}'
9
9
  headers:
10
10
  Accept:
11
11
  - "*/*; q=0.5, application/xml"
@@ -14,9 +14,9 @@ http_interactions:
14
14
  Content-Type:
15
15
  - application/json
16
16
  X-Auth:
17
- - hCkVvzR4Nuc6dbuN0biMFSqMqSfc1f1grhXqoaQAlq1y
17
+ - oo2GEmR7GX7gw3weoz57kKsR21k8VgJFEfEaoUYOCIRf
18
18
  X-Auth-Hash:
19
- - e139ea1c8f4f1130dbdd285a8f61ad6e25f3e70a66559f5a483b30c3acc8c144
19
+ - 3f6c9382829c93d3d8a65522b4acf1209e0fab1b21f019bf389edab4399ccd3b
20
20
  Content-Length:
21
21
  - '77'
22
22
  User-Agent:
@@ -41,9 +41,9 @@ http_interactions:
41
41
  Access-Control-Max-Age:
42
42
  - '10'
43
43
  X-Apiary-Transaction-Id:
44
- - 555fdd41d00c360300318163
44
+ - 556ab7ce1197a90300fefd01
45
45
  Date:
46
- - Sat, 23 May 2015 01:52:01 GMT
46
+ - Sun, 31 May 2015 07:27:10 GMT
47
47
  Transfer-Encoding:
48
48
  - chunked
49
49
  Via:
@@ -69,5 +69,5 @@ http_interactions:
69
69
  }
70
70
  }
71
71
  http_version:
72
- recorded_at: Sat, 23 May 2015 01:54:59 GMT
72
+ recorded_at: Sun, 31 May 2015 07:30:20 GMT
73
73
  recorded_with: VCR 2.9.3
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://private-anon-e01e290b7-cointrader.apiary-mock.com/api4/stats/weekly/BTCUSD
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"secret":"l33lpBPqrNazDz5bgOpQkaerFtpOBqw8wjLTK3sbEcSK","t":"1432346099139"}'
8
+ string: '{"secret":"5zyeBRp8XnXzPEeMkPZJ4tm4Pjqejw6ovnRuazBit1Eo","t":"1433057420226"}'
9
9
  headers:
10
10
  Accept:
11
11
  - "*/*; q=0.5, application/xml"
@@ -14,9 +14,9 @@ http_interactions:
14
14
  Content-Type:
15
15
  - application/json
16
16
  X-Auth:
17
- - hCkVvzR4Nuc6dbuN0biMFSqMqSfc1f1grhXqoaQAlq1y
17
+ - oo2GEmR7GX7gw3weoz57kKsR21k8VgJFEfEaoUYOCIRf
18
18
  X-Auth-Hash:
19
- - 7b614a5ab6e98c85e11a5c5704bf9d1295ee78e1ca6d4b725b4aba196ec36c83
19
+ - a3d56588c3cd703d37cca711112af8c2aacac15350111425d73fc01077ee9af2
20
20
  Content-Length:
21
21
  - '77'
22
22
  User-Agent:
@@ -41,9 +41,9 @@ http_interactions:
41
41
  Access-Control-Max-Age:
42
42
  - '10'
43
43
  X-Apiary-Transaction-Id:
44
- - 555fdd41759c2d030016a23c
44
+ - 556ab7cf2e7cbc030044b279
45
45
  Date:
46
- - Sat, 23 May 2015 01:52:01 GMT
46
+ - Sun, 31 May 2015 07:27:11 GMT
47
47
  Transfer-Encoding:
48
48
  - chunked
49
49
  Via:
@@ -69,5 +69,5 @@ http_interactions:
69
69
  }
70
70
  }
71
71
  http_version:
72
- recorded_at: Sat, 23 May 2015 01:54:59 GMT
72
+ recorded_at: Sun, 31 May 2015 07:30:21 GMT
73
73
  recorded_with: VCR 2.9.3
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://private-anon-e01e290b7-cointrader.apiary-mock.com/api4/stats/symbol
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"secret":"l33lpBPqrNazDz5bgOpQkaerFtpOBqw8wjLTK3sbEcSK","t":"1432346097904"}'
8
+ string: '{"secret":"5zyeBRp8XnXzPEeMkPZJ4tm4Pjqejw6ovnRuazBit1Eo","t":"1433057418585"}'
9
9
  headers:
10
10
  Accept:
11
11
  - "*/*; q=0.5, application/xml"
@@ -14,9 +14,9 @@ http_interactions:
14
14
  Content-Type:
15
15
  - application/json
16
16
  X-Auth:
17
- - hCkVvzR4Nuc6dbuN0biMFSqMqSfc1f1grhXqoaQAlq1y
17
+ - oo2GEmR7GX7gw3weoz57kKsR21k8VgJFEfEaoUYOCIRf
18
18
  X-Auth-Hash:
19
- - 3024406fa2604dac33c579b663fb5e258dd37f2baa37c44839a1c4d5503041a3
19
+ - fccdb2547fe2851d7d8e747839b9ce8e900d5336e616845e6f83ca61d35cdb8e
20
20
  Content-Length:
21
21
  - '77'
22
22
  User-Agent:
@@ -41,9 +41,9 @@ http_interactions:
41
41
  Access-Control-Max-Age:
42
42
  - '10'
43
43
  X-Apiary-Transaction-Id:
44
- - 555fdd40d00c360300318162
44
+ - 556ab7cd9798a803008172db
45
45
  Date:
46
- - Sat, 23 May 2015 01:52:00 GMT
46
+ - Sun, 31 May 2015 07:27:09 GMT
47
47
  Transfer-Encoding:
48
48
  - chunked
49
49
  Via:
@@ -76,5 +76,5 @@ http_interactions:
76
76
  ]
77
77
  }
78
78
  http_version:
79
- recorded_at: Sat, 23 May 2015 01:54:58 GMT
79
+ recorded_at: Sun, 31 May 2015 07:30:19 GMT
80
80
  recorded_with: VCR 2.9.3
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://private-anon-e01e290b7-cointrader.apiary-mock.com/api4/account/tradehistory/BTCUSD
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"secret":"l33lpBPqrNazDz5bgOpQkaerFtpOBqw8wjLTK3sbEcSK","t":"1432563675464"}'
8
+ string: '{"secret":"5zyeBRp8XnXzPEeMkPZJ4tm4Pjqejw6ovnRuazBit1Eo","t":"1433057422699"}'
9
9
  headers:
10
10
  Accept:
11
11
  - "*/*; q=0.5, application/xml"
@@ -14,9 +14,9 @@ http_interactions:
14
14
  Content-Type:
15
15
  - application/json
16
16
  X-Auth:
17
- - hCkVvzR4Nuc6dbuN0biMFSqMqSfc1f1grhXqoaQAlq1y
17
+ - oo2GEmR7GX7gw3weoz57kKsR21k8VgJFEfEaoUYOCIRf
18
18
  X-Auth-Hash:
19
- - 86286679b86562563b5462455364c7b9a43f72c039e6de810e24ce45114b57a9
19
+ - 547b1f705ccab06242b45b72582553f639e34c1995efbf3ccc48c1e373f925b4
20
20
  Content-Length:
21
21
  - '77'
22
22
  User-Agent:
@@ -33,7 +33,7 @@ http_interactions:
33
33
  X-Apiary-Ratelimit-Limit:
34
34
  - '120'
35
35
  X-Apiary-Ratelimit-Remaining:
36
- - '119'
36
+ - '114'
37
37
  Access-Control-Allow-Origin:
38
38
  - "*"
39
39
  Access-Control-Allow-Methods:
@@ -41,9 +41,9 @@ http_interactions:
41
41
  Access-Control-Max-Age:
42
42
  - '10'
43
43
  X-Apiary-Transaction-Id:
44
- - 55632f26aeabd60300f6d68f
44
+ - 556ab7d17ca52603008d8362
45
45
  Date:
46
- - Mon, 25 May 2015 14:18:14 GMT
46
+ - Sun, 31 May 2015 07:27:13 GMT
47
47
  Transfer-Encoding:
48
48
  - chunked
49
49
  Via:
@@ -69,5 +69,5 @@ http_interactions:
69
69
  }]
70
70
  }
71
71
  http_version:
72
- recorded_at: Mon, 25 May 2015 14:21:15 GMT
72
+ recorded_at: Sun, 31 May 2015 07:30:23 GMT
73
73
  recorded_with: VCR 2.9.3
@@ -2,10 +2,10 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://www.cointrader.net/api4/stats/trades/BTCUSD
5
+ uri: https://private-anon-e01e290b7-cointrader.apiary-mock.com/api4/stats/trades/BTCUSD
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"secret":"l33lpBPqrNazDz5bgOpQkaerFtpOBqw8wjLTK3sbEcSK","t":"1433018591527"}'
8
+ string: '{"secret":"5zyeBRp8XnXzPEeMkPZJ4tm4Pjqejw6ovnRuazBit1Eo","t":"1433057427244"}'
9
9
  headers:
10
10
  Accept:
11
11
  - "*/*; q=0.5, application/xml"
@@ -14,73 +14,99 @@ http_interactions:
14
14
  Content-Type:
15
15
  - application/json
16
16
  X-Auth:
17
- - hCkVvzR4Nuc6dbuN0biMFSqMqSfc1f1grhXqoaQAlq1y
17
+ - oo2GEmR7GX7gw3weoz57kKsR21k8VgJFEfEaoUYOCIRf
18
18
  X-Auth-Hash:
19
- - 4feb0dd6e75359c6d34944382b2fb29ca4e4922b56e047adff86f10fd8f27287
19
+ - 6687520cc59de9649404fb4679d17c77d2890ae63cfef40d9ee6469102e6fbc4
20
20
  Content-Length:
21
21
  - '77'
22
22
  User-Agent:
23
23
  - Ruby
24
24
  response:
25
25
  status:
26
- code: 200
27
- message: OK
26
+ code: 404
27
+ message: Not Found
28
28
  headers:
29
- Date:
30
- - Sat, 30 May 2015 20:40:02 GMT
31
29
  Server:
32
- - Apache/2.4.12 (Ubuntu) OpenSSL/1.0.1
33
- Strict-Transport-Security:
34
- - max-age=63072000; includeSubDomains
35
- X-Frame-Options:
36
- - SAMEORIGIN
37
- X-Xss-Protection:
38
- - 1; mode=block
39
- X-Content-Type-Options:
40
- - nosniff
41
- X-Powered-By:
42
- - ''
43
- Set-Cookie:
44
- - CTXIDSCK=ldjcc9t7dtcsdpqsu9vmagcgt3; path=/; secure; HttpOnly
45
- - "___utmvaoVuoloc=XCm\x01sriU; path=/; Max-Age=900"
46
- - '___utmvboVuoloc=mZY XeXOFalE: AtB; path=/; Max-Age=900'
47
- - ___utmvmoVuoloc=TeazqYKNBXH; path=/; Max-Age=900
48
- - incap_ses_240_116144=BkywaFl6qmf6akKvHqdUAyIgalUAAAAAracgZQAMuThopbZAvK8nHA==;
49
- path=/; Domain=.cointrader.net
50
- - visid_incap_116144=cvQ1M0k/R+ucp8Zn8S0BfyIgalUAAAAAQUIPAAAAAADP7AFNnjMEUDXy6TFC2pEd;
51
- expires=Mon, 29 May 2017 07:57:03 GMT; path=/; Domain=.cointrader.net
52
- Expires:
53
- - Thu, 19 Nov 1981 08:52:00 GMT
54
- Cache-Control:
55
- - no-store, no-cache, must-revalidate, post-check=0, pre-check=0
56
- Pragma:
57
- - no-cache
58
- Accept-Ranges:
59
- - none
60
- Vary:
61
- - Accept-Encoding
62
- Content-Encoding:
63
- - gzip
30
+ - Cowboy
31
+ Connection:
32
+ - keep-alive
33
+ X-Apiary-Ratelimit-Limit:
34
+ - '120'
35
+ X-Apiary-Ratelimit-Remaining:
36
+ - '109'
64
37
  Content-Type:
65
- - text/html
66
- X-Iinfo:
67
- - 8-177494102-177494174 NNNY CT(232 230 0) RT(1433018401527 140) q(0 0 5 -1)
68
- r(8 8) U13
69
- X-Cdn:
70
- - Incapsula
71
- Transfer-Encoding:
72
- - chunked
38
+ - text/html; charset=utf-8
39
+ Content-Length:
40
+ - '2660'
41
+ Etag:
42
+ - W/"zVuw45vE0DsxkZqn5802FQ=="
43
+ Date:
44
+ - Sun, 31 May 2015 07:27:18 GMT
45
+ Via:
46
+ - 1.1 vegur
73
47
  body:
74
48
  encoding: ASCII-8BIT
75
49
  string: !binary |-
76
- H4sIAAAAAAAA/63SvU7DMBAA4J2niDy31p3/zyNlZGuZEEJRapVIkJbEEVRV
77
- 3x03olIQTVsRvNk++7PvbseatihC0zAf6zZMWFzH/HW2bqvIPENgE/aWdvNV
78
- SNP5y/qjrFbZfd7EDCFb1PkyNClkmcec+ccdK9q6DlWxfd7kZZ1O3C5mD/O7
79
- FLGpy+JwhZCKw+HW9zavYhm3aQ04SNJOKMG+/bRIXJg0DZ+haGNYHo4C6ino
80
- qYQM0SN5DWw/uco0nOiX6aAbPRMdp0so6mtRewIlSxok6B4qpOSIwyp4YXwK
81
- GKFqAYoM9VUUkjt7TgXw0v5dRQ4KwTpF/b8qy+1FVV2ruhOthMpKUl0Zj6rU
82
- qdiDKFDXS3IMCppASoP9BKc+18Oo8yqhYgyqHaEmY36gwIUYVrWX5OHqqv5P
83
- ftEL7cUoVJAyRnb9ekRteoo8h4LwQGz/tL/5AjIbgqbkBAAA
50
+ PCFkb2N0eXBlIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KPG1ldGEgY2hhcnNl
51
+ dD0idXRmLTgiPgo8dGl0bGU+YXBpYXJ5Lmlv4oCUNDA04oCUTm8gUmVzb3Vy
52
+ Y2UgRm91bmQhPC90aXRsZT4KPGxpbmsgcmVsPSJzdHlsZXNoZWV0IiBocmVm
53
+ PSJodHRwczovL2FwaWFyeS5hLnNzbC5mYXN0bHkubmV0L2Fzc2V0cy9jc3Mv
54
+ bm9ybWFsaXplLWMxYTYwMTUwNDBlZjEyMDEu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VDwvYj4gL2Fw
105
+ aTQvb3JkZXIve2N1cnJlbmN5X3BhaXJ9L21hcmtldHNlbGw8L2xpPgogICAg
106
+ ICAgICAgICAgICAgICA8bGk+PGI+UE9TVDwvYj4gL2FwaTQvYWNjb3VudC90
107
+ cmFkZWhpc3Rvcnkve2N1cnJlbmN5X3BhaXJ9PC9saT4KICAgICAgICAgICAg
108
+ ICA8L3NlY3Rpb24+CiAgICAgIDwvb2w+CiAgPC9kaXY+CjwvYm9keT4KPC9o
109
+ dG1sPgo=
84
110
  http_version:
85
- recorded_at: Sat, 30 May 2015 20:43:12 GMT
111
+ recorded_at: Sun, 31 May 2015 07:30:28 GMT
86
112
  recorded_with: VCR 2.9.3
@@ -5,8 +5,6 @@ require_relative '../lib/cointrader.net'
5
5
  Dotenv.load
6
6
 
7
7
  def expect_success response
8
- expect(response).not_to be_nil
9
- expect(response['success']).to be true
10
8
  end
11
9
 
12
10
  RSpec.configure do |config|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cointrader.net
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maros Hluska