quoine_client 0.1.0 → 0.2.0
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +4 -0
- data/lib/quoine_client/factories.rb +29 -0
- data/lib/quoine_client/version.rb +1 -1
- data/quoine_client.gemspec +1 -0
- metadata +18 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d9c7fd4e2fe86f227edb7edbb04b85c0903561b
|
4
|
+
data.tar.gz: eff2f86bd23cb785a91d66b9e98805004bf4aa4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7c315cdf8937d65339ad9991f3bb982e5c7d2728ad798425a17a2e902464ce1bb68a90b9425ed2182bf402cc750a8aa70921de7655d0f3ccb59418e68a8bf0f
|
7
|
+
data.tar.gz: 4b4aaa530fb18598add85812fafa56b67d4fc0cb3ce5d15ec35a7be0934c0ef2ac93bbc151548a88f3568996c1d6625f64b43f0aa1c02e813bf3246113659ca6
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
6
6
|
|
7
|
+
## [0.2.0] - 2017-08-19
|
8
|
+
### Added
|
9
|
+
- Factories for OrderBook, Product, Order
|
10
|
+
|
7
11
|
## [0.1.0] - 2017-04-10
|
8
12
|
### Added
|
9
13
|
- Add `client.get_order_book` quoine client method
|
data/README.md
CHANGED
@@ -24,6 +24,10 @@ Or install it yourself as:
|
|
24
24
|
|
25
25
|
TODO: Write usage instructions here
|
26
26
|
|
27
|
+
## Factories
|
28
|
+
|
29
|
+
If you use FactoryGirl, for easier development in your app, you may `require "quoine_client/factories"`. See that file for the factories you can call.
|
30
|
+
|
27
31
|
## Development
|
28
32
|
|
29
33
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
@@ -0,0 +1,29 @@
|
|
1
|
+
FactoryGirl.define do
|
2
|
+
|
3
|
+
factory :quoine_client_product, class: "QuoineClient::Product" do
|
4
|
+
sequence(:id) { |n| n }
|
5
|
+
currency "USD"
|
6
|
+
currency_pair_code "BTCUSD"
|
7
|
+
end
|
8
|
+
|
9
|
+
factory :quoine_client_order_book, class: "QuoineClient::OrderBook" do
|
10
|
+
sell_price_levels do
|
11
|
+
[
|
12
|
+
FactoryGirl.build(:quoine_client_order),
|
13
|
+
FactoryGirl.build(:quoine_client_order),
|
14
|
+
]
|
15
|
+
end
|
16
|
+
buy_price_levels do
|
17
|
+
[
|
18
|
+
FactoryGirl.build(:quoine_client_order),
|
19
|
+
FactoryGirl.build(:quoine_client_order),
|
20
|
+
]
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
factory :quoine_client_order, class: "QuoineClient::Order" do
|
25
|
+
rate 2099
|
26
|
+
volume 1.4
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
data/quoine_client.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quoine_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- israelkeys
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-
|
13
|
+
date: 2017-08-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: api_client_base
|
@@ -152,6 +152,20 @@ dependencies:
|
|
152
152
|
- - "~>"
|
153
153
|
- !ruby/object:Gem::Version
|
154
154
|
version: '2.3'
|
155
|
+
- !ruby/object:Gem::Dependency
|
156
|
+
name: factory_girl
|
157
|
+
requirement: !ruby/object:Gem::Requirement
|
158
|
+
requirements:
|
159
|
+
- - ">="
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: '0'
|
162
|
+
type: :development
|
163
|
+
prerelease: false
|
164
|
+
version_requirements: !ruby/object:Gem::Requirement
|
165
|
+
requirements:
|
166
|
+
- - ">="
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: '0'
|
155
169
|
description: Ruby wrapper for BloomNet Center's API
|
156
170
|
email:
|
157
171
|
- israelkeys@gmail.com
|
@@ -173,6 +187,7 @@ files:
|
|
173
187
|
- bin/setup
|
174
188
|
- lib/quoine_client.rb
|
175
189
|
- lib/quoine_client/client.rb
|
190
|
+
- lib/quoine_client/factories.rb
|
176
191
|
- lib/quoine_client/models/base_model.rb
|
177
192
|
- lib/quoine_client/models/order.rb
|
178
193
|
- lib/quoine_client/models/order_book.rb
|
@@ -208,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
208
223
|
version: '0'
|
209
224
|
requirements: []
|
210
225
|
rubyforge_project:
|
211
|
-
rubygems_version: 2.
|
226
|
+
rubygems_version: 2.6.10
|
212
227
|
signing_key:
|
213
228
|
specification_version: 4
|
214
229
|
summary: Ruby wrapper for BloomNet Center's API
|