cointrader.net 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cointrader.net/client.rb +1 -0
- data/lib/cointrader.net/client/error.rb +6 -0
- data/lib/cointrader.net/client/request.rb +30 -1
- data/lib/cointrader.net/version.rb +1 -1
- data/spec/client_spec.rb +49 -79
- data/spec/fixtures/vcr_cassettes/{balance.yml → Cointrader_Client/account/_balance/returns_a_balance.yml} +6 -6
- data/spec/fixtures/vcr_cassettes/{tradehistory.yml → Cointrader_Client/account/_tradehistory/returns_trade_history.yml} +6 -6
- data/spec/fixtures/vcr_cassettes/{cancel.yml → Cointrader_Client/order/_cancel/cancels_an_order.yml} +12 -12
- data/spec/fixtures/vcr_cassettes/Cointrader_Client/order/_limit_buy/returns_an_order.yml +66 -0
- data/spec/fixtures/vcr_cassettes/Cointrader_Client/order/_limit_buy/throws_an_error_when_there_are_insufficient_funds.yml +66 -0
- data/spec/fixtures/vcr_cassettes/Cointrader_Client/order/_limit_sell/returns_an_order.yml +66 -0
- data/spec/fixtures/vcr_cassettes/{list.yml → Cointrader_Client/order/_list/when_there_are_no_orders/throws_an_error.yml} +6 -6
- data/spec/fixtures/vcr_cassettes/Cointrader_Client/order/_list/when_there_are_orders/lists_open_limit_orders.yml +129 -0
- data/spec/fixtures/vcr_cassettes/Cointrader_Client/order/_market_buy/returns_an_order.yml +67 -0
- data/spec/fixtures/vcr_cassettes/Cointrader_Client/order/_market_sell/returns_an_order.yml +66 -0
- data/spec/fixtures/vcr_cassettes/{trades.yml → Cointrader_Client/order/_trades/lists_recent_trades_executed.yml} +11 -9
- data/spec/fixtures/vcr_cassettes/{orders.yml → Cointrader_Client/stats/_orders/returns_open_orders.yml} +12 -12
- data/spec/fixtures/vcr_cassettes/{stats_24h.yml → Cointrader_Client/stats/_stats_24h/returns_24_hour_sliding_statistics.yml} +11 -11
- data/spec/fixtures/vcr_cassettes/{stats_7d.yml → Cointrader_Client/stats/_stats_7d/returns_7_day_sliding_statistics.yml} +10 -10
- data/spec/fixtures/vcr_cassettes/{symbol.yml → Cointrader_Client/stats/_symbol/returns_supported_currencies.yml} +6 -6
- data/spec/spec_helper.rb +1 -0
- metadata +33 -28
- data/spec/fixtures/vcr_cassettes/limit_buy.yml +0 -65
- data/spec/fixtures/vcr_cassettes/limit_sell.yml +0 -58
- data/spec/fixtures/vcr_cassettes/market_buy.yml +0 -71
- data/spec/fixtures/vcr_cassettes/market_sell.yml +0 -72
@@ -5,8 +5,8 @@ http_interactions:
|
|
5
5
|
uri: https://sandbox.cointrader.net/api4/stats/orders/BTCUSD
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"secret":"2MlxW8mUU9MG4bvq7C6M4PSd5J8SaauW4H2dXnyJyAcN","t":"2015-06
|
9
|
-
|
8
|
+
string: '{"secret":"2MlxW8mUU9MG4bvq7C6M4PSd5J8SaauW4H2dXnyJyAcN","t":"2015-07-06
|
9
|
+
00:33:06 UTC"}'
|
10
10
|
headers:
|
11
11
|
Accept:
|
12
12
|
- "*/*; q=0.5, application/xml"
|
@@ -17,7 +17,7 @@ http_interactions:
|
|
17
17
|
X-Auth:
|
18
18
|
- nCsNvmrxTpYFnJQyU16gq6R9ncOUA6UhF4wZnuf7IqkL
|
19
19
|
X-Auth-Hash:
|
20
|
-
-
|
20
|
+
- 0c50020b0a188cf4eb076f4bec8cf3789915ee198360a0f1a1c7531e59e8d463
|
21
21
|
Content-Length:
|
22
22
|
- '87'
|
23
23
|
User-Agent:
|
@@ -28,7 +28,7 @@ http_interactions:
|
|
28
28
|
message: OK
|
29
29
|
headers:
|
30
30
|
Date:
|
31
|
-
-
|
31
|
+
- Mon, 06 Jul 2015 00:33:08 GMT
|
32
32
|
Server:
|
33
33
|
- Apache
|
34
34
|
X-Frame-Options:
|
@@ -40,7 +40,7 @@ http_interactions:
|
|
40
40
|
X-Powered-By:
|
41
41
|
- ''
|
42
42
|
Set-Cookie:
|
43
|
-
- CTXIDSCK=
|
43
|
+
- CTXIDSCK=lnb09vfth35m8jmcbliib0t547; path=/; HttpOnly
|
44
44
|
Expires:
|
45
45
|
- Thu, 19 Nov 1981 08:52:00 GMT
|
46
46
|
Cache-Control:
|
@@ -52,17 +52,17 @@ http_interactions:
|
|
52
52
|
Content-Encoding:
|
53
53
|
- gzip
|
54
54
|
Content-Length:
|
55
|
-
- '
|
55
|
+
- '221'
|
56
56
|
Content-Type:
|
57
57
|
- text/html
|
58
58
|
body:
|
59
59
|
encoding: ASCII-8BIT
|
60
60
|
string: !binary |-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
61
|
+
H4sIAAAAAAAAA42Ou2rDQBBF+3yFmFpe9qm1t7TTu3BSmRCW1WAEsqysZgth
|
62
|
+
9O8ZQTBxE1Lec+8M5w5TSQmnCQLlgjXQjWJ/uJWBIICGGq5cxgty2r8d3k+v
|
63
|
+
1XHEoTrmFvPEdRspQjjfIZWccUjz5xi7/FjzYsxdWs+1UUJKBjSPaz5h33P6
|
64
|
+
KnGgjmYmdueF3trGaGngR4WxUnbrtfCOWcoYCdv1nVRuI5uN0pU2wflgPSz1
|
65
|
+
vzzkk8e+zM8aWjXCyJ13zvlfGmznlND2bwvjYPlYXr4B1xuZ0FgBAAA=
|
66
66
|
http_version:
|
67
|
-
recorded_at:
|
67
|
+
recorded_at: Mon, 06 Jul 2015 00:33:09 GMT
|
68
68
|
recorded_with: VCR 2.9.3
|
@@ -5,8 +5,8 @@ http_interactions:
|
|
5
5
|
uri: https://sandbox.cointrader.net/api4/stats/daily/BTCUSD
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"secret":"2MlxW8mUU9MG4bvq7C6M4PSd5J8SaauW4H2dXnyJyAcN","t":"2015-06
|
9
|
-
|
8
|
+
string: '{"secret":"2MlxW8mUU9MG4bvq7C6M4PSd5J8SaauW4H2dXnyJyAcN","t":"2015-07-06
|
9
|
+
00:33:01 UTC"}'
|
10
10
|
headers:
|
11
11
|
Accept:
|
12
12
|
- "*/*; q=0.5, application/xml"
|
@@ -17,7 +17,7 @@ http_interactions:
|
|
17
17
|
X-Auth:
|
18
18
|
- nCsNvmrxTpYFnJQyU16gq6R9ncOUA6UhF4wZnuf7IqkL
|
19
19
|
X-Auth-Hash:
|
20
|
-
-
|
20
|
+
- 0f9b1969ee1871eb2418344706ef2ed7f88b45a0e2bccd17998da9059cf96ca3
|
21
21
|
Content-Length:
|
22
22
|
- '87'
|
23
23
|
User-Agent:
|
@@ -28,7 +28,7 @@ http_interactions:
|
|
28
28
|
message: OK
|
29
29
|
headers:
|
30
30
|
Date:
|
31
|
-
-
|
31
|
+
- Mon, 06 Jul 2015 00:33:03 GMT
|
32
32
|
Server:
|
33
33
|
- Apache
|
34
34
|
X-Frame-Options:
|
@@ -40,7 +40,7 @@ http_interactions:
|
|
40
40
|
X-Powered-By:
|
41
41
|
- ''
|
42
42
|
Set-Cookie:
|
43
|
-
- CTXIDSCK=
|
43
|
+
- CTXIDSCK=mjfgibep90sh6bqu74te0vjb62; path=/; HttpOnly
|
44
44
|
Expires:
|
45
45
|
- Thu, 19 Nov 1981 08:52:00 GMT
|
46
46
|
Cache-Control:
|
@@ -52,16 +52,16 @@ http_interactions:
|
|
52
52
|
Content-Encoding:
|
53
53
|
- gzip
|
54
54
|
Content-Length:
|
55
|
-
- '
|
55
|
+
- '152'
|
56
56
|
Content-Type:
|
57
57
|
- application/json
|
58
58
|
body:
|
59
59
|
encoding: ASCII-8BIT
|
60
60
|
string: !binary |-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
61
|
+
H4sIAAAAAAAAA0WOQQ7CIBBF956imXVjsLpiqR7ApPUAI9BCQkMyQF003F1a
|
62
|
+
UGf138ufyazgoxDKe+CBomphzhknBRy6i6bmOtye/b3pAwYPLUgMCHyFordk
|
63
|
+
0YeBUKoHGbGvnU9HxnL3ZeSOLOM2WblxVPTrVKnNpLNjZcu69x9wUVSeqWJx
|
64
|
+
Ns5frhdSSocPSZD5rccAAAA=
|
65
65
|
http_version:
|
66
|
-
recorded_at:
|
66
|
+
recorded_at: Mon, 06 Jul 2015 00:33:04 GMT
|
67
67
|
recorded_with: VCR 2.9.3
|
@@ -5,8 +5,8 @@ http_interactions:
|
|
5
5
|
uri: https://sandbox.cointrader.net/api4/stats/weekly/BTCUSD
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"secret":"2MlxW8mUU9MG4bvq7C6M4PSd5J8SaauW4H2dXnyJyAcN","t":"2015-06
|
9
|
-
|
8
|
+
string: '{"secret":"2MlxW8mUU9MG4bvq7C6M4PSd5J8SaauW4H2dXnyJyAcN","t":"2015-07-06
|
9
|
+
00:33:04 UTC"}'
|
10
10
|
headers:
|
11
11
|
Accept:
|
12
12
|
- "*/*; q=0.5, application/xml"
|
@@ -17,7 +17,7 @@ http_interactions:
|
|
17
17
|
X-Auth:
|
18
18
|
- nCsNvmrxTpYFnJQyU16gq6R9ncOUA6UhF4wZnuf7IqkL
|
19
19
|
X-Auth-Hash:
|
20
|
-
-
|
20
|
+
- 9fc62603fa36811d46f8e05120ca4a31f76d252687f210aa1ca5cf938e07ca0b
|
21
21
|
Content-Length:
|
22
22
|
- '87'
|
23
23
|
User-Agent:
|
@@ -28,7 +28,7 @@ http_interactions:
|
|
28
28
|
message: OK
|
29
29
|
headers:
|
30
30
|
Date:
|
31
|
-
-
|
31
|
+
- Mon, 06 Jul 2015 00:33:06 GMT
|
32
32
|
Server:
|
33
33
|
- Apache
|
34
34
|
X-Frame-Options:
|
@@ -40,7 +40,7 @@ http_interactions:
|
|
40
40
|
X-Powered-By:
|
41
41
|
- ''
|
42
42
|
Set-Cookie:
|
43
|
-
- CTXIDSCK=
|
43
|
+
- CTXIDSCK=eqae2lrob7p42655utn0ke26k1; path=/; HttpOnly
|
44
44
|
Expires:
|
45
45
|
- Thu, 19 Nov 1981 08:52:00 GMT
|
46
46
|
Cache-Control:
|
@@ -52,16 +52,16 @@ http_interactions:
|
|
52
52
|
Content-Encoding:
|
53
53
|
- gzip
|
54
54
|
Content-Length:
|
55
|
-
- '
|
55
|
+
- '155'
|
56
56
|
Content-Type:
|
57
57
|
- application/json
|
58
58
|
body:
|
59
59
|
encoding: ASCII-8BIT
|
60
60
|
string: !binary |-
|
61
61
|
H4sIAAAAAAAAA6tWKi5NTk4tLlayKikqTdVRygWyE9NTlayUzBVcEisVnEKc
|
62
|
-
|
63
|
-
|
64
|
-
|
62
|
+
Q4NdFIJLEkuKlXSUUhJLEpWsqpUgwiBWTmJxSUhRYkpqQFFmMkifkbGhnoEB
|
63
|
+
UG1SZgqYawDkggBQKD8tLbUIrgYqmJGZngEUM4DoyskvR3ASy1KLIK6BCpTl
|
64
|
+
55TmwvhQE2pra7kAadIoTMgAAAA=
|
65
65
|
http_version:
|
66
|
-
recorded_at:
|
66
|
+
recorded_at: Mon, 06 Jul 2015 00:33:06 GMT
|
67
67
|
recorded_with: VCR 2.9.3
|
@@ -5,8 +5,8 @@ http_interactions:
|
|
5
5
|
uri: https://sandbox.cointrader.net/api4/stats/symbol
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"secret":"2MlxW8mUU9MG4bvq7C6M4PSd5J8SaauW4H2dXnyJyAcN","t":"2015-06
|
9
|
-
|
8
|
+
string: '{"secret":"2MlxW8mUU9MG4bvq7C6M4PSd5J8SaauW4H2dXnyJyAcN","t":"2015-07-06
|
9
|
+
00:32:58 UTC"}'
|
10
10
|
headers:
|
11
11
|
Accept:
|
12
12
|
- "*/*; q=0.5, application/xml"
|
@@ -17,7 +17,7 @@ http_interactions:
|
|
17
17
|
X-Auth:
|
18
18
|
- nCsNvmrxTpYFnJQyU16gq6R9ncOUA6UhF4wZnuf7IqkL
|
19
19
|
X-Auth-Hash:
|
20
|
-
-
|
20
|
+
- 3dd36835384ee7eb1af6fddec1a941c343f2bf9e10a2ff84414078dd0d1c3661
|
21
21
|
Content-Length:
|
22
22
|
- '87'
|
23
23
|
User-Agent:
|
@@ -28,7 +28,7 @@ http_interactions:
|
|
28
28
|
message: OK
|
29
29
|
headers:
|
30
30
|
Date:
|
31
|
-
-
|
31
|
+
- Mon, 06 Jul 2015 00:33:00 GMT
|
32
32
|
Server:
|
33
33
|
- Apache
|
34
34
|
X-Frame-Options:
|
@@ -40,7 +40,7 @@ http_interactions:
|
|
40
40
|
X-Powered-By:
|
41
41
|
- ''
|
42
42
|
Set-Cookie:
|
43
|
-
- CTXIDSCK=
|
43
|
+
- CTXIDSCK=s7kln4onqhjd3iocenjntnh3u3; path=/; HttpOnly
|
44
44
|
Expires:
|
45
45
|
- Thu, 19 Nov 1981 08:52:00 GMT
|
46
46
|
Cache-Control:
|
@@ -64,5 +64,5 @@ http_interactions:
|
|
64
64
|
GyjMC2ksspXDCaZ0gZqsysTFtS32ImmqywrjfwPjhCFy9hd0/IZKJFQGacHK
|
65
65
|
8xrjfwPj5C/sPu3ekt8n5ncBAAA=
|
66
66
|
http_version:
|
67
|
-
recorded_at:
|
67
|
+
recorded_at: Mon, 06 Jul 2015 00:33:01 GMT
|
68
68
|
recorded_with: VCR 2.9.3
|
data/spec/spec_helper.rb
CHANGED
@@ -17,6 +17,7 @@ VCR.configure do |config|
|
|
17
17
|
config.cassette_library_dir = "spec/fixtures/vcr_cassettes"
|
18
18
|
config.hook_into :webmock
|
19
19
|
config.default_cassette_options = { match_requests_on: [:method] }
|
20
|
+
config.configure_rspec_metadata!
|
20
21
|
end
|
21
22
|
|
22
23
|
Cointrader.configure do |config|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cointrader.net
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maros Hluska
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -96,24 +96,27 @@ files:
|
|
96
96
|
- lib/cointrader.net.rb
|
97
97
|
- lib/cointrader.net/client.rb
|
98
98
|
- lib/cointrader.net/client/account.rb
|
99
|
+
- lib/cointrader.net/client/error.rb
|
99
100
|
- lib/cointrader.net/client/order.rb
|
100
101
|
- lib/cointrader.net/client/request.rb
|
101
102
|
- lib/cointrader.net/client/stats.rb
|
102
103
|
- lib/cointrader.net/version.rb
|
103
104
|
- spec/client_spec.rb
|
104
|
-
- spec/fixtures/vcr_cassettes/
|
105
|
-
- spec/fixtures/vcr_cassettes/
|
106
|
-
- spec/fixtures/vcr_cassettes/
|
107
|
-
- spec/fixtures/vcr_cassettes/
|
108
|
-
- spec/fixtures/vcr_cassettes/
|
109
|
-
- spec/fixtures/vcr_cassettes/
|
110
|
-
- spec/fixtures/vcr_cassettes/
|
111
|
-
- spec/fixtures/vcr_cassettes/
|
112
|
-
- spec/fixtures/vcr_cassettes/
|
113
|
-
- spec/fixtures/vcr_cassettes/
|
114
|
-
- spec/fixtures/vcr_cassettes/
|
115
|
-
- spec/fixtures/vcr_cassettes/
|
116
|
-
- spec/fixtures/vcr_cassettes/
|
105
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/account/_balance/returns_a_balance.yml
|
106
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/account/_tradehistory/returns_trade_history.yml
|
107
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/order/_cancel/cancels_an_order.yml
|
108
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/order/_limit_buy/returns_an_order.yml
|
109
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/order/_limit_buy/throws_an_error_when_there_are_insufficient_funds.yml
|
110
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/order/_limit_sell/returns_an_order.yml
|
111
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/order/_list/when_there_are_no_orders/throws_an_error.yml
|
112
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/order/_list/when_there_are_orders/lists_open_limit_orders.yml
|
113
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/order/_market_buy/returns_an_order.yml
|
114
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/order/_market_sell/returns_an_order.yml
|
115
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/order/_trades/lists_recent_trades_executed.yml
|
116
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/stats/_orders/returns_open_orders.yml
|
117
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/stats/_stats_24h/returns_24_hour_sliding_statistics.yml
|
118
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/stats/_stats_7d/returns_7_day_sliding_statistics.yml
|
119
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/stats/_symbol/returns_supported_currencies.yml
|
117
120
|
- spec/spec_helper.rb
|
118
121
|
homepage: https://github.com/mhluska/cointrader.net
|
119
122
|
licenses:
|
@@ -141,17 +144,19 @@ specification_version: 4
|
|
141
144
|
summary: Cointrader.net API wrapper
|
142
145
|
test_files:
|
143
146
|
- spec/client_spec.rb
|
144
|
-
- spec/fixtures/vcr_cassettes/
|
145
|
-
- spec/fixtures/vcr_cassettes/
|
146
|
-
- spec/fixtures/vcr_cassettes/
|
147
|
-
- spec/fixtures/vcr_cassettes/
|
148
|
-
- spec/fixtures/vcr_cassettes/
|
149
|
-
- spec/fixtures/vcr_cassettes/
|
150
|
-
- spec/fixtures/vcr_cassettes/
|
151
|
-
- spec/fixtures/vcr_cassettes/
|
152
|
-
- spec/fixtures/vcr_cassettes/
|
153
|
-
- spec/fixtures/vcr_cassettes/
|
154
|
-
- spec/fixtures/vcr_cassettes/
|
155
|
-
- spec/fixtures/vcr_cassettes/
|
156
|
-
- spec/fixtures/vcr_cassettes/
|
147
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/account/_balance/returns_a_balance.yml
|
148
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/account/_tradehistory/returns_trade_history.yml
|
149
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/order/_cancel/cancels_an_order.yml
|
150
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/order/_limit_buy/returns_an_order.yml
|
151
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/order/_limit_buy/throws_an_error_when_there_are_insufficient_funds.yml
|
152
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/order/_limit_sell/returns_an_order.yml
|
153
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/order/_list/when_there_are_no_orders/throws_an_error.yml
|
154
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/order/_list/when_there_are_orders/lists_open_limit_orders.yml
|
155
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/order/_market_buy/returns_an_order.yml
|
156
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/order/_market_sell/returns_an_order.yml
|
157
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/order/_trades/lists_recent_trades_executed.yml
|
158
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/stats/_orders/returns_open_orders.yml
|
159
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/stats/_stats_24h/returns_24_hour_sliding_statistics.yml
|
160
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/stats/_stats_7d/returns_7_day_sliding_statistics.yml
|
161
|
+
- spec/fixtures/vcr_cassettes/Cointrader_Client/stats/_symbol/returns_supported_currencies.yml
|
157
162
|
- spec/spec_helper.rb
|
@@ -1,65 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://private-anon-e01e290b7-cointrader.apiary-mock.com/api4/order/BTCUSD/buy
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"total_quantity":"1.00000000","price":"10.00","secret":"5zyeBRp8XnXzPEeMkPZJ4tm4Pjqejw6ovnRuazBit1Eo","t":"2015-06-13
|
9
|
-
22:58:40 UTC"}'
|
10
|
-
headers:
|
11
|
-
Accept:
|
12
|
-
- "*/*; q=0.5, application/xml"
|
13
|
-
Accept-Encoding:
|
14
|
-
- gzip, deflate
|
15
|
-
Content-Type:
|
16
|
-
- application/json
|
17
|
-
X-Auth:
|
18
|
-
- oo2GEmR7GX7gw3weoz57kKsR21k8VgJFEfEaoUYOCIRf
|
19
|
-
X-Auth-Hash:
|
20
|
-
- e6ca511afb0371d980c721d3eaed730212841c79b02c45ac4373193858109529
|
21
|
-
Content-Length:
|
22
|
-
- '133'
|
23
|
-
User-Agent:
|
24
|
-
- Ruby
|
25
|
-
response:
|
26
|
-
status:
|
27
|
-
code: 200
|
28
|
-
message: OK
|
29
|
-
headers:
|
30
|
-
Server:
|
31
|
-
- Cowboy
|
32
|
-
Connection:
|
33
|
-
- keep-alive
|
34
|
-
X-Apiary-Ratelimit-Limit:
|
35
|
-
- '120'
|
36
|
-
X-Apiary-Ratelimit-Remaining:
|
37
|
-
- '113'
|
38
|
-
Access-Control-Allow-Origin:
|
39
|
-
- "*"
|
40
|
-
Access-Control-Allow-Methods:
|
41
|
-
- OPTIONS,GET,HEAD,POST,PUT,DELETE,TRACE,CONNECT
|
42
|
-
Access-Control-Max-Age:
|
43
|
-
- '10'
|
44
|
-
X-Apiary-Transaction-Id:
|
45
|
-
- 557cb5a007ab240300e4f000
|
46
|
-
Date:
|
47
|
-
- Sat, 13 Jun 2015 22:58:40 GMT
|
48
|
-
Transfer-Encoding:
|
49
|
-
- chunked
|
50
|
-
Via:
|
51
|
-
- 1.1 vegur
|
52
|
-
body:
|
53
|
-
encoding: UTF-8
|
54
|
-
string: |-
|
55
|
-
{
|
56
|
-
"success":true,
|
57
|
-
"message":"Buy Order Created",
|
58
|
-
"data":
|
59
|
-
{
|
60
|
-
"id":"2222321"
|
61
|
-
}
|
62
|
-
}
|
63
|
-
http_version:
|
64
|
-
recorded_at: Sat, 13 Jun 2015 22:58:40 GMT
|
65
|
-
recorded_with: VCR 2.9.3
|
@@ -1,58 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://private-anon-e01e290b7-cointrader.apiary-mock.com/api4/order/BTCUSD/sell
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"total_quantity":"1.00000000","price":"10.00","secret":"5zyeBRp8XnXzPEeMkPZJ4tm4Pjqejw6ovnRuazBit1Eo","t":"2015-06-13
|
9
|
-
22:58:40 UTC"}'
|
10
|
-
headers:
|
11
|
-
Accept:
|
12
|
-
- "*/*; q=0.5, application/xml"
|
13
|
-
Accept-Encoding:
|
14
|
-
- gzip, deflate
|
15
|
-
Content-Type:
|
16
|
-
- application/json
|
17
|
-
X-Auth:
|
18
|
-
- oo2GEmR7GX7gw3weoz57kKsR21k8VgJFEfEaoUYOCIRf
|
19
|
-
X-Auth-Hash:
|
20
|
-
- e6ca511afb0371d980c721d3eaed730212841c79b02c45ac4373193858109529
|
21
|
-
Content-Length:
|
22
|
-
- '133'
|
23
|
-
User-Agent:
|
24
|
-
- Ruby
|
25
|
-
response:
|
26
|
-
status:
|
27
|
-
code: 200
|
28
|
-
message: OK
|
29
|
-
headers:
|
30
|
-
Server:
|
31
|
-
- Cowboy
|
32
|
-
Connection:
|
33
|
-
- keep-alive
|
34
|
-
X-Apiary-Ratelimit-Limit:
|
35
|
-
- '120'
|
36
|
-
X-Apiary-Ratelimit-Remaining:
|
37
|
-
- '112'
|
38
|
-
Access-Control-Allow-Origin:
|
39
|
-
- "*"
|
40
|
-
Access-Control-Allow-Methods:
|
41
|
-
- OPTIONS,GET,HEAD,POST,PUT,DELETE,TRACE,CONNECT
|
42
|
-
Access-Control-Max-Age:
|
43
|
-
- '10'
|
44
|
-
X-Apiary-Transaction-Id:
|
45
|
-
- 557cb5a2298cd9030092288b
|
46
|
-
Date:
|
47
|
-
- Sat, 13 Jun 2015 22:58:42 GMT
|
48
|
-
Transfer-Encoding:
|
49
|
-
- chunked
|
50
|
-
Via:
|
51
|
-
- 1.1 vegur
|
52
|
-
body:
|
53
|
-
encoding: UTF-8
|
54
|
-
string: "{\n \"success\":true,\n \"message\":\"Sell Order Created\",\n
|
55
|
-
\ \"data\":\n {\n \"id\":\"2221132\"\n }\n} "
|
56
|
-
http_version:
|
57
|
-
recorded_at: Sat, 13 Jun 2015 22:58:42 GMT
|
58
|
-
recorded_with: VCR 2.9.3
|
@@ -1,71 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://private-anon-e01e290b7-cointrader.apiary-mock.com/api4/order/BTCUSD/marketbuy
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"total_amount":"1.00","secret":"5zyeBRp8XnXzPEeMkPZJ4tm4Pjqejw6ovnRuazBit1Eo","t":"2015-06-13
|
9
|
-
22:58:44 UTC"}'
|
10
|
-
headers:
|
11
|
-
Accept:
|
12
|
-
- "*/*; q=0.5, application/xml"
|
13
|
-
Accept-Encoding:
|
14
|
-
- gzip, deflate
|
15
|
-
Content-Type:
|
16
|
-
- application/json
|
17
|
-
X-Auth:
|
18
|
-
- oo2GEmR7GX7gw3weoz57kKsR21k8VgJFEfEaoUYOCIRf
|
19
|
-
X-Auth-Hash:
|
20
|
-
- 3c5b668c79d72cb9a47bf2a8d99f2b9b48f4b25c997de1ddb0ae5ebd82591c85
|
21
|
-
Content-Length:
|
22
|
-
- '109'
|
23
|
-
User-Agent:
|
24
|
-
- Ruby
|
25
|
-
response:
|
26
|
-
status:
|
27
|
-
code: 200
|
28
|
-
message: OK
|
29
|
-
headers:
|
30
|
-
Server:
|
31
|
-
- Cowboy
|
32
|
-
Connection:
|
33
|
-
- keep-alive
|
34
|
-
X-Apiary-Ratelimit-Limit:
|
35
|
-
- '120'
|
36
|
-
X-Apiary-Ratelimit-Remaining:
|
37
|
-
- '109'
|
38
|
-
Access-Control-Allow-Origin:
|
39
|
-
- "*"
|
40
|
-
Access-Control-Allow-Methods:
|
41
|
-
- OPTIONS,GET,HEAD,POST,PUT,DELETE,TRACE,CONNECT
|
42
|
-
Access-Control-Max-Age:
|
43
|
-
- '10'
|
44
|
-
X-Apiary-Transaction-Id:
|
45
|
-
- 557cb5a54d869603009fceac
|
46
|
-
Date:
|
47
|
-
- Sat, 13 Jun 2015 22:58:45 GMT
|
48
|
-
Transfer-Encoding:
|
49
|
-
- chunked
|
50
|
-
Via:
|
51
|
-
- 1.1 vegur
|
52
|
-
body:
|
53
|
-
encoding: UTF-8
|
54
|
-
string: |-
|
55
|
-
{
|
56
|
-
"success":true,
|
57
|
-
"message":"Market Buy BTCUSD Completed",
|
58
|
-
"data":{
|
59
|
-
"type":"purchase",
|
60
|
-
"amount_requested":"10.00",
|
61
|
-
"amount":"0.01250000",
|
62
|
-
"fee":"0.03",
|
63
|
-
"avg_price":"800.00",
|
64
|
-
"receipt":"72218",
|
65
|
-
"timestamp":"2014-06-14 00:15:06",
|
66
|
-
"currency_pair":"BTCUSD"
|
67
|
-
}
|
68
|
-
}
|
69
|
-
http_version:
|
70
|
-
recorded_at: Sat, 13 Jun 2015 22:58:45 GMT
|
71
|
-
recorded_with: VCR 2.9.3
|