quadrigacx 0.10.1 → 0.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +10 -30
- data/Gemfile.lock +4 -3
- data/LICENSE.txt +22 -0
- data/README.md +144 -9
- data/Rakefile +2 -1
- data/lib/quadrigacx.rb +11 -28
- data/lib/quadrigacx/client.rb +6 -6
- data/lib/quadrigacx/client/private.rb +18 -9
- data/lib/quadrigacx/client/public.rb +2 -2
- data/lib/quadrigacx/request.rb +38 -36
- data/lib/quadrigacx/version.rb +1 -3
- data/quadrigacx.gemspec +27 -24
- data/spec/client_spec.rb +125 -114
- data/spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_balance/returns_all_account_balances.yml +56 -0
- data/spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_cancel/cancels_an_order.yml +196 -0
- data/spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_buy/errors/throws_an_error_when_exceeding_available_balance.yml +440 -0
- data/spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_buy/errors/throws_an_error_when_exceeding_balance.yml +440 -0
- data/spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_buy/errors/throws_an_error_when_no_price_is_provided.yml +386 -0
- data/spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_buy/errors/throws_an_error_when_the_amount_is_too_small.yml +440 -0
- data/spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_buy/places_a_USD_limit_buy_order.yml +385 -0
- data/spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_buy/places_a_limit_buy_order.yml +338 -0
- data/spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_buy/places_a_limit_buy_order_cad.yml +384 -0
- data/spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_sell/errors/throws_an_error_when_no_price_is_provided.yml +387 -0
- data/spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_sell/places_a_USD_limit_sell_order.yml +385 -0
- data/spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_sell/places_a_limit_sell_order.yml +385 -0
- data/spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_market_buy/places_a_USD_market_buy_order.yml +107 -0
- data/spec/fixtures/vcr_cassettes/{limit_buy_below_minimum_order_value.yml → QuadrigaCX_Client/private/_market_buy/places_a_market_buy_order.yml} +11 -11
- data/spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_market_sell/places_a_USD_market_sell_order.yml +107 -0
- data/spec/fixtures/vcr_cassettes/{limit_buy_exceeds_available_balance.yml → QuadrigaCX_Client/private/_market_sell/places_a_market_sell_order.yml} +12 -13
- data/spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_open_orders/lists_USD_open_orders.yml +495 -0
- data/spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_open_orders/lists_open_orders.yml +690 -0
- data/spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_user_transactions/returns_a_list_of_USD_transactions.yml +391 -0
- data/spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_user_transactions/returns_a_list_of_limited_transactions.yml +64 -0
- data/spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_user_transactions/returns_a_list_of_transactions.yml +197 -0
- data/spec/fixtures/vcr_cassettes/{limit_buy_above_maximum_order_value.yml → QuadrigaCX_Client/private/_wallet_address/returns_a_wallet_address.yml} +12 -13
- data/spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_withdraw/withdraws_bitcoins.yml +54 -0
- data/spec/fixtures/vcr_cassettes/QuadrigaCX_Client/public/_order_book/returns_a_USD_order_book.yml +156 -0
- data/spec/fixtures/vcr_cassettes/QuadrigaCX_Client/public/_order_book/returns_a_list_of_all_open_orders.yml +91 -0
- data/spec/fixtures/vcr_cassettes/QuadrigaCX_Client/public/_order_book/when_using_the_group_option/does_not_group_same_price_orders.yml +286 -0
- data/spec/fixtures/vcr_cassettes/QuadrigaCX_Client/public/_order_book/when_using_the_ungrouped_option/does_not_group_same_price_orders.yml +286 -0
- data/spec/fixtures/vcr_cassettes/{ticker.yml → QuadrigaCX_Client/public/_ticker/returns_trading_information.yml} +11 -11
- data/spec/fixtures/vcr_cassettes/QuadrigaCX_Client/public/_transactions/returns_a_list_of_USD_trades.yml +162 -0
- data/spec/fixtures/vcr_cassettes/QuadrigaCX_Client/public/_transactions/returns_a_list_of_recent_trades.yml +57 -0
- data/spec/spec_helper.rb +8 -1
- metadata +99 -67
- data/spec/fixtures/vcr_cassettes/balance.yml +0 -55
- data/spec/fixtures/vcr_cassettes/cancel.yml +0 -189
- data/spec/fixtures/vcr_cassettes/limit_buy.yml +0 -140
- data/spec/fixtures/vcr_cassettes/limit_buy_cancel_order.yml +0 -49
- data/spec/fixtures/vcr_cassettes/limit_sell_cancel_order.yml +0 -49
- data/spec/fixtures/vcr_cassettes/market_buy.yml +0 -53
- data/spec/fixtures/vcr_cassettes/open_orders.yml +0 -55
- data/spec/fixtures/vcr_cassettes/order_book.yml +0 -123
- data/spec/fixtures/vcr_cassettes/order_book_ungrouped.yml +0 -127
- data/spec/fixtures/vcr_cassettes/order_book_ungrouped_cancel_order.yml +0 -49
- data/spec/fixtures/vcr_cassettes/safe_limit_buy.yml +0 -176
- data/spec/fixtures/vcr_cassettes/safe_limit_sell.yml +0 -176
- data/spec/fixtures/vcr_cassettes/transactions.yml +0 -55
- data/spec/fixtures/vcr_cassettes/user_transactions.yml +0 -208
- data/spec/fixtures/vcr_cassettes/user_transactions_limited.yml +0 -57
- data/spec/fixtures/vcr_cassettes/wallet_address.yml +0 -49
- data/spec/fixtures/vcr_cassettes/withdraw.yml +0 -49
@@ -25,18 +25,18 @@ http_interactions:
|
|
25
25
|
Server:
|
26
26
|
- cloudflare-nginx
|
27
27
|
Date:
|
28
|
-
- Mon,
|
28
|
+
- Mon, 03 Aug 2015 13:59:35 GMT
|
29
29
|
Content-Type:
|
30
30
|
- application/json
|
31
31
|
Content-Length:
|
32
|
-
- '
|
32
|
+
- '124'
|
33
33
|
Connection:
|
34
34
|
- keep-alive
|
35
35
|
Set-Cookie:
|
36
|
-
- __cfduid=
|
37
|
-
|
38
|
-
- ci_session=
|
39
|
-
GMT; Max-Age=
|
36
|
+
- __cfduid=d988f186ccdc3680d3ca92e4911879fcc1438610375; expires=Tue, 02-Aug-16
|
37
|
+
13:59:35 GMT; path=/; domain=.quadrigacx.com; HttpOnly
|
38
|
+
- ci_session=90f58c293102afbb0d10c1f8ba310011; expires=Tue, 04-Aug-2015 13:59:35
|
39
|
+
GMT; Max-Age=86400; path=/
|
40
40
|
Content-Encoding:
|
41
41
|
- gzip
|
42
42
|
Vary:
|
@@ -44,13 +44,13 @@ http_interactions:
|
|
44
44
|
X-Powered-By:
|
45
45
|
- PHP/5.5.9-1ubuntu4.9
|
46
46
|
Cf-Ray:
|
47
|
-
-
|
47
|
+
- 21028b3ca7a10fa5-YYZ
|
48
48
|
body:
|
49
49
|
encoding: ASCII-8BIT
|
50
50
|
string: !binary |-
|
51
|
-
|
52
|
-
|
53
|
-
|
51
|
+
H4sIAAAAAAAAA03NQQ6DIBAF0LvMupkMDGDxNjQlSgrRBKoL07sXx43L9+f/
|
52
|
+
zAFzmmYYgQeHRPCAHGoTMxrT3VKJtYWy9lAZfjpFPNh+eKX3vbftYRUrtPr0
|
53
|
+
kr8l9kRbh5o8McksL7vU6HoX6kdo0Xv4/QF/yLlFjwAAAA==
|
54
54
|
http_version:
|
55
|
-
recorded_at: Mon,
|
55
|
+
recorded_at: Mon, 03 Aug 2015 13:59:34 GMT
|
56
56
|
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,162 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.quadrigacx.com/v2/transactions?book=BTC_USD
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: "{}"
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Content-Length:
|
17
|
+
- '2'
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- cloudflare-nginx
|
27
|
+
Date:
|
28
|
+
- Mon, 03 Aug 2015 14:34:39 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
Content-Length:
|
32
|
+
- '77'
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Set-Cookie:
|
36
|
+
- __cfduid=d899a2b6c23291f2e6b28d95edfba5c861438612478; expires=Tue, 02-Aug-16
|
37
|
+
14:34:38 GMT; path=/; domain=.quadrigacx.com; HttpOnly
|
38
|
+
- ci_session=ce6188cfbc0b4872644e7da2a0b7e06c; expires=Tue, 04-Aug-2015 14:34:39
|
39
|
+
GMT; Max-Age=86400; path=/
|
40
|
+
Content-Encoding:
|
41
|
+
- gzip
|
42
|
+
Vary:
|
43
|
+
- Accept-Encoding
|
44
|
+
X-Powered-By:
|
45
|
+
- PHP/5.5.9-1ubuntu4.9
|
46
|
+
Cf-Ray:
|
47
|
+
- 2102be980a5627d4-YYZ
|
48
|
+
body:
|
49
|
+
encoding: ASCII-8BIT
|
50
|
+
string: !binary |-
|
51
|
+
H4sIAAAAAAAAA6tWSi0qyi9SsqpWSs5PSVWyMjLQUcpNLS5OTAdylELzsvPy
|
52
|
+
y/MU/ItSUouc8vOzFZxCnONDg12UamsBRbEXSTsAAAA=
|
53
|
+
http_version:
|
54
|
+
recorded_at: Mon, 03 Aug 2015 14:34:38 GMT
|
55
|
+
- request:
|
56
|
+
method: get
|
57
|
+
uri: https://api.quadrigacx.com/v2/transactions?book=btc_usd
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: "{}"
|
61
|
+
headers:
|
62
|
+
Accept:
|
63
|
+
- application/json
|
64
|
+
Accept-Encoding:
|
65
|
+
- gzip, deflate
|
66
|
+
Content-Type:
|
67
|
+
- application/json
|
68
|
+
Content-Length:
|
69
|
+
- '2'
|
70
|
+
User-Agent:
|
71
|
+
- Ruby
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 200
|
75
|
+
message: OK
|
76
|
+
headers:
|
77
|
+
Server:
|
78
|
+
- cloudflare-nginx
|
79
|
+
Date:
|
80
|
+
- Mon, 03 Aug 2015 15:21:22 GMT
|
81
|
+
Content-Type:
|
82
|
+
- application/json
|
83
|
+
Content-Length:
|
84
|
+
- '104'
|
85
|
+
Connection:
|
86
|
+
- keep-alive
|
87
|
+
Set-Cookie:
|
88
|
+
- __cfduid=ddfe4116908801505fa68cef47f97ca5e1438615281; expires=Tue, 02-Aug-16
|
89
|
+
15:21:21 GMT; path=/; domain=.quadrigacx.com; HttpOnly
|
90
|
+
- ci_session=d6ed7acb73badb840dd1fcfd3cc156fa; expires=Tue, 04-Aug-2015 15:21:22
|
91
|
+
GMT; Max-Age=86400; path=/
|
92
|
+
Content-Encoding:
|
93
|
+
- gzip
|
94
|
+
Vary:
|
95
|
+
- Accept-Encoding
|
96
|
+
X-Powered-By:
|
97
|
+
- PHP/5.5.9-1ubuntu4.9
|
98
|
+
Cf-Ray:
|
99
|
+
- 2103030866e927da-YYZ
|
100
|
+
body:
|
101
|
+
encoding: ASCII-8BIT
|
102
|
+
string: !binary |-
|
103
|
+
H4sIAAAAAAAAA4uuVkrMzS/NK1GyUjLQMzA2AAMlHaWUxJJUoJihibGFmaGx
|
104
|
+
qYExUKygKDMZJGhkYaBnbggUKMlMUbIyNDAyMTOr1UE1yRCHSYaGZmgmmZmg
|
105
|
+
mGRaGwsAVsAq65UAAAA=
|
106
|
+
http_version:
|
107
|
+
recorded_at: Mon, 03 Aug 2015 15:21:20 GMT
|
108
|
+
- request:
|
109
|
+
method: get
|
110
|
+
uri: https://api.quadrigacx.com/v2/transactions
|
111
|
+
body:
|
112
|
+
encoding: UTF-8
|
113
|
+
string: "{}"
|
114
|
+
headers:
|
115
|
+
Accept:
|
116
|
+
- application/json
|
117
|
+
Accept-Encoding:
|
118
|
+
- gzip, deflate
|
119
|
+
Content-Type:
|
120
|
+
- application/json
|
121
|
+
Content-Length:
|
122
|
+
- '2'
|
123
|
+
User-Agent:
|
124
|
+
- Ruby
|
125
|
+
response:
|
126
|
+
status:
|
127
|
+
code: 200
|
128
|
+
message: OK
|
129
|
+
headers:
|
130
|
+
Server:
|
131
|
+
- cloudflare-nginx
|
132
|
+
Date:
|
133
|
+
- Mon, 03 Aug 2015 15:21:23 GMT
|
134
|
+
Content-Type:
|
135
|
+
- application/json
|
136
|
+
Content-Length:
|
137
|
+
- '164'
|
138
|
+
Connection:
|
139
|
+
- keep-alive
|
140
|
+
Set-Cookie:
|
141
|
+
- __cfduid=d51c62441d0bc342b9f33a66e25dfe3641438615283; expires=Tue, 02-Aug-16
|
142
|
+
15:21:23 GMT; path=/; domain=.quadrigacx.com; HttpOnly
|
143
|
+
- ci_session=2847ee5eb1bffbd23e2b77d3cee074a2; expires=Tue, 04-Aug-2015 15:21:23
|
144
|
+
GMT; Max-Age=86400; path=/
|
145
|
+
Content-Encoding:
|
146
|
+
- gzip
|
147
|
+
Vary:
|
148
|
+
- Accept-Encoding
|
149
|
+
X-Powered-By:
|
150
|
+
- PHP/5.5.9-1ubuntu4.9
|
151
|
+
Cf-Ray:
|
152
|
+
- 21030310e99e27e0-YYZ
|
153
|
+
body:
|
154
|
+
encoding: ASCII-8BIT
|
155
|
+
string: !binary |-
|
156
|
+
H4sIAAAAAAAAA4XQuw7CMAyF4XfJXEXHdhwnfRXEUFGGDlyEyoT67qQbSauy
|
157
|
+
/sMnH58+brg93vfZ9Q6eAFYArnPjMF9LoyApkrLm0p6v6bJGMfV5DfM0up7A
|
158
|
+
wbB0lcTMwJ4EWCWJV/xKMTdSuWj3psCWKil61FJqpGykEqCtJJnlWLJGUmOE
|
159
|
+
ZBuJOfKxFNo/gQSkm3VM8c86Wc5f6U9T5L0BAAA=
|
160
|
+
http_version:
|
161
|
+
recorded_at: Mon, 03 Aug 2015 15:21:22 GMT
|
162
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.quadrigacx.com/v2/transactions
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: "{}"
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Content-Length:
|
17
|
+
- '2'
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- cloudflare-nginx
|
27
|
+
Date:
|
28
|
+
- Mon, 03 Aug 2015 15:21:20 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
Content-Length:
|
32
|
+
- '164'
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Set-Cookie:
|
36
|
+
- __cfduid=db9ec9e1e958e0fa90005baac27b661b71438615280; expires=Tue, 02-Aug-16
|
37
|
+
15:21:20 GMT; path=/; domain=.quadrigacx.com; HttpOnly
|
38
|
+
- ci_session=dff88d5345aa578c979ce3189a6ffa29; expires=Tue, 04-Aug-2015 15:21:20
|
39
|
+
GMT; Max-Age=86400; path=/
|
40
|
+
Content-Encoding:
|
41
|
+
- gzip
|
42
|
+
Vary:
|
43
|
+
- Accept-Encoding
|
44
|
+
X-Powered-By:
|
45
|
+
- PHP/5.5.9-1ubuntu4.9
|
46
|
+
Cf-Ray:
|
47
|
+
- 210303008f91053a-YYZ
|
48
|
+
body:
|
49
|
+
encoding: ASCII-8BIT
|
50
|
+
string: !binary |-
|
51
|
+
H4sIAAAAAAAAA4XQuw7CMAyF4XfJXEXHdhwnfRXEUFGGDlyEyoT67qQbSauy
|
52
|
+
/sMnH58+brg93vfZ9Q6eAFYArnPjMF9LoyApkrLm0p6v6bJGMfV5DfM0up7A
|
53
|
+
wbB0lcTMwJ4EWCWJV/xKMTdSuWj3psCWKil61FJqpGykEqCtJJnlWLJGUmOE
|
54
|
+
ZBuJOfKxFNo/gQSkm3VM8c86Wc5f6U9T5L0BAAA=
|
55
|
+
http_version:
|
56
|
+
recorded_at: Mon, 03 Aug 2015 15:21:19 GMT
|
57
|
+
recorded_with: VCR 2.9.3
|
data/spec/spec_helper.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'vcr'
|
2
2
|
require 'dotenv'
|
3
|
-
|
3
|
+
require 'quadrigacx'
|
4
4
|
|
5
5
|
Dotenv.load
|
6
6
|
|
@@ -11,4 +11,11 @@ end
|
|
11
11
|
VCR.configure do |config|
|
12
12
|
config.cassette_library_dir = "spec/fixtures/vcr_cassettes"
|
13
13
|
config.hook_into :webmock
|
14
|
+
config.configure_rspec_metadata!
|
15
|
+
end
|
16
|
+
|
17
|
+
QuadrigaCX.configure do |config|
|
18
|
+
config.client_id = ENV['QUADRIGACX_CLIENT_ID']
|
19
|
+
config.api_key = ENV['QUADRIGACX_API_KEY']
|
20
|
+
config.api_secret = ENV['QUADRIGACX_API_SECRET']
|
14
21
|
end
|
metadata
CHANGED
@@ -1,15 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quadrigacx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.2
|
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-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: json
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.8'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.8'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rest-client
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.7'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.7'
|
13
41
|
- !ruby/object:Gem::Dependency
|
14
42
|
name: byebug
|
15
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -95,27 +123,13 @@ dependencies:
|
|
95
123
|
- !ruby/object:Gem::Version
|
96
124
|
version: '0.7'
|
97
125
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '1.8'
|
104
|
-
type: :runtime
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '1.8'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: rest-client
|
126
|
+
name: bundler
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
114
128
|
requirements:
|
115
129
|
- - "~>"
|
116
130
|
- !ruby/object:Gem::Version
|
117
131
|
version: '1.7'
|
118
|
-
type: :
|
132
|
+
type: :development
|
119
133
|
prerelease: false
|
120
134
|
version_requirements: !ruby/object:Gem::Requirement
|
121
135
|
requirements:
|
@@ -123,22 +137,21 @@ dependencies:
|
|
123
137
|
- !ruby/object:Gem::Version
|
124
138
|
version: '1.7'
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
140
|
+
name: rake
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
128
142
|
requirements:
|
129
143
|
- - "~>"
|
130
144
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
132
|
-
type: :
|
145
|
+
version: '10.0'
|
146
|
+
type: :development
|
133
147
|
prerelease: false
|
134
148
|
version_requirements: !ruby/object:Gem::Requirement
|
135
149
|
requirements:
|
136
150
|
- - "~>"
|
137
151
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
152
|
+
version: '10.0'
|
139
153
|
description: Ruby wrapper for the QuadrigaCX API
|
140
|
-
email:
|
141
|
-
- mhluska@gmail.com
|
154
|
+
email: mhluska@gmail.com
|
142
155
|
executables: []
|
143
156
|
extensions: []
|
144
157
|
extra_rdoc_files: []
|
@@ -147,6 +160,7 @@ files:
|
|
147
160
|
- Gemfile
|
148
161
|
- Gemfile.lock
|
149
162
|
- LICENSE
|
163
|
+
- LICENSE.txt
|
150
164
|
- README.md
|
151
165
|
- Rakefile
|
152
166
|
- lib/quadrigacx.rb
|
@@ -158,29 +172,38 @@ files:
|
|
158
172
|
- lib/quadrigacx/version.rb
|
159
173
|
- quadrigacx.gemspec
|
160
174
|
- spec/client_spec.rb
|
161
|
-
- spec/fixtures/vcr_cassettes/
|
162
|
-
- spec/fixtures/vcr_cassettes/
|
163
|
-
- spec/fixtures/vcr_cassettes/
|
164
|
-
- spec/fixtures/vcr_cassettes/
|
165
|
-
- spec/fixtures/vcr_cassettes/
|
166
|
-
- spec/fixtures/vcr_cassettes/
|
167
|
-
- spec/fixtures/vcr_cassettes/
|
168
|
-
- spec/fixtures/vcr_cassettes/
|
169
|
-
- spec/fixtures/vcr_cassettes/
|
170
|
-
- spec/fixtures/vcr_cassettes/
|
171
|
-
- spec/fixtures/vcr_cassettes/
|
172
|
-
- spec/fixtures/vcr_cassettes/
|
173
|
-
- spec/fixtures/vcr_cassettes/
|
174
|
-
- spec/fixtures/vcr_cassettes/
|
175
|
-
- spec/fixtures/vcr_cassettes/
|
176
|
-
- spec/fixtures/vcr_cassettes/
|
177
|
-
- spec/fixtures/vcr_cassettes/
|
178
|
-
- spec/fixtures/vcr_cassettes/
|
179
|
-
- spec/fixtures/vcr_cassettes/
|
180
|
-
- spec/fixtures/vcr_cassettes/
|
181
|
-
- spec/fixtures/vcr_cassettes/
|
175
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_balance/returns_all_account_balances.yml
|
176
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_cancel/cancels_an_order.yml
|
177
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_buy/errors/throws_an_error_when_exceeding_available_balance.yml
|
178
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_buy/errors/throws_an_error_when_exceeding_balance.yml
|
179
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_buy/errors/throws_an_error_when_no_price_is_provided.yml
|
180
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_buy/errors/throws_an_error_when_the_amount_is_too_small.yml
|
181
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_buy/places_a_USD_limit_buy_order.yml
|
182
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_buy/places_a_limit_buy_order.yml
|
183
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_buy/places_a_limit_buy_order_cad.yml
|
184
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_sell/errors/throws_an_error_when_no_price_is_provided.yml
|
185
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_sell/places_a_USD_limit_sell_order.yml
|
186
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_sell/places_a_limit_sell_order.yml
|
187
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_market_buy/places_a_USD_market_buy_order.yml
|
188
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_market_buy/places_a_market_buy_order.yml
|
189
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_market_sell/places_a_USD_market_sell_order.yml
|
190
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_market_sell/places_a_market_sell_order.yml
|
191
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_open_orders/lists_USD_open_orders.yml
|
192
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_open_orders/lists_open_orders.yml
|
193
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_user_transactions/returns_a_list_of_USD_transactions.yml
|
194
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_user_transactions/returns_a_list_of_limited_transactions.yml
|
195
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_user_transactions/returns_a_list_of_transactions.yml
|
196
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_wallet_address/returns_a_wallet_address.yml
|
197
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_withdraw/withdraws_bitcoins.yml
|
198
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/public/_order_book/returns_a_USD_order_book.yml
|
199
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/public/_order_book/returns_a_list_of_all_open_orders.yml
|
200
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/public/_order_book/when_using_the_group_option/does_not_group_same_price_orders.yml
|
201
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/public/_order_book/when_using_the_ungrouped_option/does_not_group_same_price_orders.yml
|
202
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/public/_ticker/returns_trading_information.yml
|
203
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/public/_transactions/returns_a_list_of_USD_trades.yml
|
204
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/public/_transactions/returns_a_list_of_recent_trades.yml
|
182
205
|
- spec/spec_helper.rb
|
183
|
-
homepage:
|
206
|
+
homepage: https://github.com/mhluska/quadrigacx
|
184
207
|
licenses:
|
185
208
|
- MIT
|
186
209
|
metadata: {}
|
@@ -206,25 +229,34 @@ specification_version: 4
|
|
206
229
|
summary: QuadrigaCX API wrapper
|
207
230
|
test_files:
|
208
231
|
- spec/client_spec.rb
|
209
|
-
- spec/fixtures/vcr_cassettes/
|
210
|
-
- spec/fixtures/vcr_cassettes/
|
211
|
-
- spec/fixtures/vcr_cassettes/
|
212
|
-
- spec/fixtures/vcr_cassettes/
|
213
|
-
- spec/fixtures/vcr_cassettes/
|
214
|
-
- spec/fixtures/vcr_cassettes/
|
215
|
-
- spec/fixtures/vcr_cassettes/
|
216
|
-
- spec/fixtures/vcr_cassettes/
|
217
|
-
- spec/fixtures/vcr_cassettes/
|
218
|
-
- spec/fixtures/vcr_cassettes/
|
219
|
-
- spec/fixtures/vcr_cassettes/
|
220
|
-
- spec/fixtures/vcr_cassettes/
|
221
|
-
- spec/fixtures/vcr_cassettes/
|
222
|
-
- spec/fixtures/vcr_cassettes/
|
223
|
-
- spec/fixtures/vcr_cassettes/
|
224
|
-
- spec/fixtures/vcr_cassettes/
|
225
|
-
- spec/fixtures/vcr_cassettes/
|
226
|
-
- spec/fixtures/vcr_cassettes/
|
227
|
-
- spec/fixtures/vcr_cassettes/
|
228
|
-
- spec/fixtures/vcr_cassettes/
|
229
|
-
- spec/fixtures/vcr_cassettes/
|
232
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_balance/returns_all_account_balances.yml
|
233
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_cancel/cancels_an_order.yml
|
234
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_buy/errors/throws_an_error_when_exceeding_available_balance.yml
|
235
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_buy/errors/throws_an_error_when_exceeding_balance.yml
|
236
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_buy/errors/throws_an_error_when_no_price_is_provided.yml
|
237
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_buy/errors/throws_an_error_when_the_amount_is_too_small.yml
|
238
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_buy/places_a_USD_limit_buy_order.yml
|
239
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_buy/places_a_limit_buy_order.yml
|
240
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_buy/places_a_limit_buy_order_cad.yml
|
241
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_sell/errors/throws_an_error_when_no_price_is_provided.yml
|
242
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_sell/places_a_USD_limit_sell_order.yml
|
243
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_limit_sell/places_a_limit_sell_order.yml
|
244
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_market_buy/places_a_USD_market_buy_order.yml
|
245
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_market_buy/places_a_market_buy_order.yml
|
246
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_market_sell/places_a_USD_market_sell_order.yml
|
247
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_market_sell/places_a_market_sell_order.yml
|
248
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_open_orders/lists_USD_open_orders.yml
|
249
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_open_orders/lists_open_orders.yml
|
250
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_user_transactions/returns_a_list_of_USD_transactions.yml
|
251
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_user_transactions/returns_a_list_of_limited_transactions.yml
|
252
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_user_transactions/returns_a_list_of_transactions.yml
|
253
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_wallet_address/returns_a_wallet_address.yml
|
254
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/private/_withdraw/withdraws_bitcoins.yml
|
255
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/public/_order_book/returns_a_USD_order_book.yml
|
256
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/public/_order_book/returns_a_list_of_all_open_orders.yml
|
257
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/public/_order_book/when_using_the_group_option/does_not_group_same_price_orders.yml
|
258
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/public/_order_book/when_using_the_ungrouped_option/does_not_group_same_price_orders.yml
|
259
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/public/_ticker/returns_trading_information.yml
|
260
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/public/_transactions/returns_a_list_of_USD_trades.yml
|
261
|
+
- spec/fixtures/vcr_cassettes/QuadrigaCX_Client/public/_transactions/returns_a_list_of_recent_trades.yml
|
230
262
|
- spec/spec_helper.rb
|