cointrader.net 0.2.1 → 0.2.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0db047b9510178796a4b3f9d6ae52cff01682a44
4
- data.tar.gz: 485566802cecd4162c616178d1ee90c990c59dfb
3
+ metadata.gz: e673ee184f301b8e995733a7e3e165b57fa8a8c8
4
+ data.tar.gz: bdb28e35f3d8aed5022f0f4ddff303cf0de50181
5
5
  SHA512:
6
- metadata.gz: 961a51857e64557facbb4c01b815f61e54293c2fd0b594744a8dd5fa55d0fb2cd10a47bc4684d0217405f3e4d81a87270c9cba97c709f740d48311d1f301e5d7
7
- data.tar.gz: 95a53f0f29847b136554caa8efc3f98bb24974f391f8bf67ab748416baad89fc4425ded0329b1440706ca511abf3a5dd9727153281654a9c3f08444631129d8f
6
+ metadata.gz: 3d8e6555115c6ec59a63516100f38c11ddccbd29131be076c7e0ea4179e9cac3e5cedbc9e898df41f8fc43e4bcf111cb1ea997f0bcff26c4187c50bf257b9e0b
7
+ data.tar.gz: 78a524ddff0d835dc4ca119e37d6c2ac2f9cba9162586b8619fd66bf0832365bafaecd82a79786ee4844f2f9debc5d394d0904432bb5b8e2d53666f962898a6c
@@ -1,3 +1,3 @@
1
1
  module Cointrader
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -61,7 +61,7 @@ describe Cointrader::Client do
61
61
  describe '#limit_buy' do
62
62
  it 'returns an order' do
63
63
  VCR.use_cassette('limit_buy') do
64
- response = subject.limit_buy(total_quantity: 10, price: 1)
64
+ response = subject.limit_buy(total_quantity: 1, price: 10)
65
65
 
66
66
  expect_success(response)
67
67
  expect(response['data']['id']).not_to be_nil
@@ -72,7 +72,7 @@ describe Cointrader::Client do
72
72
  describe '#limit_sell' do
73
73
  it 'returns an order' do
74
74
  VCR.use_cassette('limit_sell') do
75
- response = subject.limit_sell(total_quantity: 10, price: 1)
75
+ response = subject.limit_sell(total_quantity: 1, price: 10)
76
76
 
77
77
  expect_success(response)
78
78
  expect(response['data']['id']).not_to be_nil
@@ -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":"1432345445508"}'
8
+ string: '{"secret":"l33lpBPqrNazDz5bgOpQkaerFtpOBqw8wjLTK3sbEcSK","t":"1432346100028"}'
9
9
  headers:
10
10
  Accept:
11
11
  - "*/*; q=0.5, application/xml"
@@ -16,7 +16,7 @@ http_interactions:
16
16
  X-Auth:
17
17
  - hCkVvzR4Nuc6dbuN0biMFSqMqSfc1f1grhXqoaQAlq1y
18
18
  X-Auth-Hash:
19
- - 24645e009d7c521b01f49b5b9a3737923237ccddcb4d4b8d982879d4047680d8
19
+ - 05664d067760c9a7906d055594a3bc50639bdf6834a5f6c9fbfe7d26e2f9135d
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
- - 555fdab3759c2d030016a114
44
+ - 555fdd42759c2d030016a23e
45
45
  Date:
46
- - Sat, 23 May 2015 01:41:07 GMT
46
+ - Sat, 23 May 2015 01:52:02 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:44:05 GMT
80
+ recorded_at: Sat, 23 May 2015 01:55:00 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/buy
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"total_quantity":10,"price":1,"secret":"l33lpBPqrNazDz5bgOpQkaerFtpOBqw8wjLTK3sbEcSK","t":"1432345445832"}'
8
+ string: '{"total_quantity":1,"price":10,"secret":"l33lpBPqrNazDz5bgOpQkaerFtpOBqw8wjLTK3sbEcSK","t":"1432346100616"}'
9
9
  headers:
10
10
  Accept:
11
11
  - "*/*; q=0.5, application/xml"
@@ -16,7 +16,7 @@ http_interactions:
16
16
  X-Auth:
17
17
  - hCkVvzR4Nuc6dbuN0biMFSqMqSfc1f1grhXqoaQAlq1y
18
18
  X-Auth-Hash:
19
- - c872ef62da714fc21b62b488642e9cc985dfa79c7bf74cadfc42465b69ad01a2
19
+ - 4daece862621e000c8a7e7029593e40a71007fab984f477323b887ef44d98e1e
20
20
  Content-Length:
21
21
  - '107'
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
- - 555fdab4d00c36030031803b
44
+ - 555fdd43d00c360300318166
45
45
  Date:
46
- - Sat, 23 May 2015 01:41:08 GMT
46
+ - Sat, 23 May 2015 01:52:03 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:44:06 GMT
63
+ recorded_at: Sat, 23 May 2015 01:55:00 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":10,"price":1,"secret":"l33lpBPqrNazDz5bgOpQkaerFtpOBqw8wjLTK3sbEcSK","t":"1432345446127"}'
8
+ string: '{"total_quantity":1,"price":10,"secret":"l33lpBPqrNazDz5bgOpQkaerFtpOBqw8wjLTK3sbEcSK","t":"1432346100933"}'
9
9
  headers:
10
10
  Accept:
11
11
  - "*/*; q=0.5, application/xml"
@@ -16,7 +16,7 @@ http_interactions:
16
16
  X-Auth:
17
17
  - hCkVvzR4Nuc6dbuN0biMFSqMqSfc1f1grhXqoaQAlq1y
18
18
  X-Auth-Hash:
19
- - 7acd255a7f4952cd9263278accef8dba47d6549542671d6e15e54ab1b369e0fc
19
+ - 1d0c373355c23c76611d9b9bbcabacc18567ca6f2434dd1001a5c5bc5bf00638
20
20
  Content-Length:
21
21
  - '107'
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
- - 555fdab4759c2d030016a116
44
+ - 555fdd43d00c360300318168
45
45
  Date:
46
- - Sat, 23 May 2015 01:41:08 GMT
46
+ - Sat, 23 May 2015 01:52:03 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:44:06 GMT
56
+ recorded_at: Sat, 23 May 2015 01:55:01 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/stats/orders/BTCUSD/all/20
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"secret":"l33lpBPqrNazDz5bgOpQkaerFtpOBqw8wjLTK3sbEcSK","t":"1432345443518"}'
8
+ string: '{"secret":"l33lpBPqrNazDz5bgOpQkaerFtpOBqw8wjLTK3sbEcSK","t":"1432346099531"}'
9
9
  headers:
10
10
  Accept:
11
11
  - "*/*; q=0.5, application/xml"
@@ -16,7 +16,7 @@ http_interactions:
16
16
  X-Auth:
17
17
  - hCkVvzR4Nuc6dbuN0biMFSqMqSfc1f1grhXqoaQAlq1y
18
18
  X-Auth-Hash:
19
- - de70251702ddcdaf77da568b9db5257d5fc39bfdcc361a2c4f48c7c014fae1ba
19
+ - 32ec9ab1b9f738ad8da233df5654d0cc21f85372cbda5bda3eea10fa37178c55
20
20
  Content-Length:
21
21
  - '77'
22
22
  User-Agent:
@@ -41,7 +41,7 @@ http_interactions:
41
41
  Etag:
42
42
  - W/"zVuw45vE0DsxkZqn5802FQ=="
43
43
  Date:
44
- - Sat, 23 May 2015 01:41:07 GMT
44
+ - Sat, 23 May 2015 01:52:02 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: Sat, 23 May 2015 01:44:05 GMT
111
+ recorded_at: Sat, 23 May 2015 01:55:00 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":"1432345442867"}'
8
+ string: '{"secret":"l33lpBPqrNazDz5bgOpQkaerFtpOBqw8wjLTK3sbEcSK","t":"1432346098776"}'
9
9
  headers:
10
10
  Accept:
11
11
  - "*/*; q=0.5, application/xml"
@@ -16,7 +16,7 @@ http_interactions:
16
16
  X-Auth:
17
17
  - hCkVvzR4Nuc6dbuN0biMFSqMqSfc1f1grhXqoaQAlq1y
18
18
  X-Auth-Hash:
19
- - 5ebeefd0e7dac526a9fdd878d575c2ca8bcb23763c19a02c696de162b056edac
19
+ - e139ea1c8f4f1130dbdd285a8f61ad6e25f3e70a66559f5a483b30c3acc8c144
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
- - 555fdab1759c2d030016a111
44
+ - 555fdd41d00c360300318163
45
45
  Date:
46
- - Sat, 23 May 2015 01:41:05 GMT
46
+ - Sat, 23 May 2015 01:52:01 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:44:03 GMT
72
+ recorded_at: Sat, 23 May 2015 01:54:59 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":"1432345443186"}'
8
+ string: '{"secret":"l33lpBPqrNazDz5bgOpQkaerFtpOBqw8wjLTK3sbEcSK","t":"1432346099139"}'
9
9
  headers:
10
10
  Accept:
11
11
  - "*/*; q=0.5, application/xml"
@@ -16,7 +16,7 @@ http_interactions:
16
16
  X-Auth:
17
17
  - hCkVvzR4Nuc6dbuN0biMFSqMqSfc1f1grhXqoaQAlq1y
18
18
  X-Auth-Hash:
19
- - b89dfdc1dd225754f06ca6a8e343851ac7414c1ec2831a1716cacd8fedf89e33
19
+ - 7b614a5ab6e98c85e11a5c5704bf9d1295ee78e1ca6d4b725b4aba196ec36c83
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
- - 555fdab1759c2d030016a112
44
+ - 555fdd41759c2d030016a23c
45
45
  Date:
46
- - Sat, 23 May 2015 01:41:05 GMT
46
+ - Sat, 23 May 2015 01:52:01 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:44:03 GMT
72
+ recorded_at: Sat, 23 May 2015 01:54:59 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":"1432345442031"}'
8
+ string: '{"secret":"l33lpBPqrNazDz5bgOpQkaerFtpOBqw8wjLTK3sbEcSK","t":"1432346097904"}'
9
9
  headers:
10
10
  Accept:
11
11
  - "*/*; q=0.5, application/xml"
@@ -16,7 +16,7 @@ http_interactions:
16
16
  X-Auth:
17
17
  - hCkVvzR4Nuc6dbuN0biMFSqMqSfc1f1grhXqoaQAlq1y
18
18
  X-Auth-Hash:
19
- - 00d394e2c6800fea9d1757c463367b47f92cc6b53290ca312acee9a531c9420e
19
+ - 3024406fa2604dac33c579b663fb5e258dd37f2baa37c44839a1c4d5503041a3
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
- - 555fdab03edda90300f69d59
44
+ - 555fdd40d00c360300318162
45
45
  Date:
46
- - Sat, 23 May 2015 01:41:04 GMT
46
+ - Sat, 23 May 2015 01:52:00 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:44:02 GMT
79
+ recorded_at: Sat, 23 May 2015 01:54:58 GMT
80
80
  recorded_with: VCR 2.9.3
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.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maros Hluska