bitstamp_client 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d501f9bb377c160f05660dff38a8639a69c497a
|
4
|
+
data.tar.gz: c131fed7dcdfc87df69a6f27b5b23010efd19b66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13b01b862633a79447373621f1b29c4aee2703be62b48dcf0ce8f5a8fbf18c57d5d3585194a1ff271109fa4be165d483d985917127caf16a9cbc501d2f5b0600
|
7
|
+
data.tar.gz: 5f57adfee1904a73274fa97bd67ba83ded56380d5dfda6fff99b181f21319a326551d8bb63f9033d055cb342698402d4a274595363e2969bc1a7c8638971d4af
|
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.3.0] - 2017-08-10
|
8
|
+
### Changed
|
9
|
+
- Use language of bitstamp regarding bid/ask
|
10
|
+
|
7
11
|
## [0.2.1]
|
8
12
|
### Changed
|
9
13
|
- Fix buy/bid and sell/ask assignments from the raw response
|
@@ -4,8 +4,8 @@ module BitstampClient
|
|
4
4
|
attribute :base_currency, String
|
5
5
|
attribute :counter_currency, String
|
6
6
|
attribute :mid_rate, Float
|
7
|
-
attribute :
|
8
|
-
attribute :
|
7
|
+
attribute :bid, Float
|
8
|
+
attribute :ask, Float
|
9
9
|
attribute :timestamp, Integer
|
10
10
|
|
11
11
|
def currency_pair
|
@@ -11,8 +11,8 @@ module BitstampClient
|
|
11
11
|
def default_exchange_rate
|
12
12
|
json = JSON.parse(body)
|
13
13
|
ExchangeRate.new(
|
14
|
-
|
15
|
-
|
14
|
+
bid: json["bid"],
|
15
|
+
ask: json["ask"],
|
16
16
|
mid_rate: [json["ask"].to_f, json["bid"].to_f].sum / 2,
|
17
17
|
timestamp: json["timestamp"],
|
18
18
|
)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bitstamp_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ramon Tayag
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: api_client_base
|
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
189
189
|
version: '0'
|
190
190
|
requirements: []
|
191
191
|
rubyforge_project:
|
192
|
-
rubygems_version: 2.6.
|
192
|
+
rubygems_version: 2.6.8
|
193
193
|
signing_key:
|
194
194
|
specification_version: 4
|
195
195
|
summary: Ruby wrapper for Bitstamp's API
|