kraken_client 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +61 -0
- data/LICENSE.md +24 -0
- data/Rakefile +1 -0
- data/fixtures/vcr_cassettes/add_order.yml +41 -0
- data/fixtures/vcr_cassettes/assets.yml +45 -0
- data/fixtures/vcr_cassettes/assets_pairs.yml +45 -0
- data/fixtures/vcr_cassettes/balance.yml +41 -0
- data/fixtures/vcr_cassettes/cancel_order.yml +41 -0
- data/fixtures/vcr_cassettes/closed_orders.yml +134 -0
- data/fixtures/vcr_cassettes/ledgers.yml +41 -0
- data/fixtures/vcr_cassettes/open_orders.yml +43 -0
- data/fixtures/vcr_cassettes/order_book.yml +43 -0
- data/fixtures/vcr_cassettes/query_ledgers.yml +41 -0
- data/fixtures/vcr_cassettes/query_orders.yml +43 -0
- data/fixtures/vcr_cassettes/query_trades.yml +41 -0
- data/fixtures/vcr_cassettes/server_time.yml +44 -0
- data/fixtures/vcr_cassettes/spread.yml +43 -0
- data/fixtures/vcr_cassettes/ticker.yml +43 -0
- data/fixtures/vcr_cassettes/trade_balance.yml +41 -0
- data/fixtures/vcr_cassettes/trade_volume.yml +41 -0
- data/fixtures/vcr_cassettes/trades.yml +43 -0
- data/fixtures/vcr_cassettes/trades_history.yml +41 -0
- data/kraken_rb.gemspec +33 -0
- data/lib/configurable.rb +13 -0
- data/lib/configuration.rb +19 -0
- data/lib/exceptions.rb +6 -0
- data/lib/kraken_client/application.rb +45 -0
- data/lib/kraken_client/endpoints/base.rb +43 -0
- data/lib/kraken_client/endpoints/private.rb +45 -0
- data/lib/kraken_client/endpoints/public.rb +33 -0
- data/lib/kraken_client/requests/base.rb +35 -0
- data/lib/kraken_client/requests/content/body.rb +18 -0
- data/lib/kraken_client/requests/content/header.rb +61 -0
- data/lib/kraken_client/requests/get.rb +13 -0
- data/lib/kraken_client/requests/limiter.rb +78 -0
- data/lib/kraken_client/requests/post.rb +38 -0
- data/lib/kraken_client.rb +15 -0
- data/lib/version.rb +3 -0
- data/readme.md +280 -0
- data/spec/requests/private_spec.rb +104 -0
- data/spec/requests/public_spec.rb +57 -0
- metadata +229 -0
metadata
ADDED
@@ -0,0 +1,229 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: kraken_client
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Sidney SISSAOUI
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-08-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: spectus
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pry
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: webmock
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: vcr
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: httparty
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: hashie
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: addressable
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: activesupport
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
description: "'Wrapper for Kraken Exchange API'"
|
154
|
+
email:
|
155
|
+
- shideneyu@gmail.com
|
156
|
+
executables: []
|
157
|
+
extensions: []
|
158
|
+
extra_rdoc_files: []
|
159
|
+
files:
|
160
|
+
- ".gitignore"
|
161
|
+
- Gemfile
|
162
|
+
- Gemfile.lock
|
163
|
+
- LICENSE.md
|
164
|
+
- Rakefile
|
165
|
+
- fixtures/vcr_cassettes/add_order.yml
|
166
|
+
- fixtures/vcr_cassettes/assets.yml
|
167
|
+
- fixtures/vcr_cassettes/assets_pairs.yml
|
168
|
+
- fixtures/vcr_cassettes/balance.yml
|
169
|
+
- fixtures/vcr_cassettes/cancel_order.yml
|
170
|
+
- fixtures/vcr_cassettes/closed_orders.yml
|
171
|
+
- fixtures/vcr_cassettes/ledgers.yml
|
172
|
+
- fixtures/vcr_cassettes/open_orders.yml
|
173
|
+
- fixtures/vcr_cassettes/order_book.yml
|
174
|
+
- fixtures/vcr_cassettes/query_ledgers.yml
|
175
|
+
- fixtures/vcr_cassettes/query_orders.yml
|
176
|
+
- fixtures/vcr_cassettes/query_trades.yml
|
177
|
+
- fixtures/vcr_cassettes/server_time.yml
|
178
|
+
- fixtures/vcr_cassettes/spread.yml
|
179
|
+
- fixtures/vcr_cassettes/ticker.yml
|
180
|
+
- fixtures/vcr_cassettes/trade_balance.yml
|
181
|
+
- fixtures/vcr_cassettes/trade_volume.yml
|
182
|
+
- fixtures/vcr_cassettes/trades.yml
|
183
|
+
- fixtures/vcr_cassettes/trades_history.yml
|
184
|
+
- kraken_rb.gemspec
|
185
|
+
- lib/configurable.rb
|
186
|
+
- lib/configuration.rb
|
187
|
+
- lib/exceptions.rb
|
188
|
+
- lib/kraken_client.rb
|
189
|
+
- lib/kraken_client/application.rb
|
190
|
+
- lib/kraken_client/endpoints/base.rb
|
191
|
+
- lib/kraken_client/endpoints/private.rb
|
192
|
+
- lib/kraken_client/endpoints/public.rb
|
193
|
+
- lib/kraken_client/requests/base.rb
|
194
|
+
- lib/kraken_client/requests/content/body.rb
|
195
|
+
- lib/kraken_client/requests/content/header.rb
|
196
|
+
- lib/kraken_client/requests/get.rb
|
197
|
+
- lib/kraken_client/requests/limiter.rb
|
198
|
+
- lib/kraken_client/requests/post.rb
|
199
|
+
- lib/version.rb
|
200
|
+
- readme.md
|
201
|
+
- spec/requests/private_spec.rb
|
202
|
+
- spec/requests/public_spec.rb
|
203
|
+
homepage: https://www.kraken.com/help/api
|
204
|
+
licenses:
|
205
|
+
- MIT
|
206
|
+
metadata: {}
|
207
|
+
post_install_message:
|
208
|
+
rdoc_options: []
|
209
|
+
require_paths:
|
210
|
+
- lib
|
211
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
|
+
requirements:
|
218
|
+
- - ">="
|
219
|
+
- !ruby/object:Gem::Version
|
220
|
+
version: '0'
|
221
|
+
requirements: []
|
222
|
+
rubyforge_project:
|
223
|
+
rubygems_version: 2.2.2
|
224
|
+
signing_key:
|
225
|
+
specification_version: 4
|
226
|
+
summary: "'Wrapper for Kraken Exchange API'"
|
227
|
+
test_files:
|
228
|
+
- spec/requests/private_spec.rb
|
229
|
+
- spec/requests/public_spec.rb
|