bitstamp_client 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/bitstamp_client/responses/exchange_rate_response.rb +2 -2
- data/lib/bitstamp_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83b00431ff19bb507b6ef5fa6d8517c4240bfac1
|
4
|
+
data.tar.gz: 7c764e496449912889fdb4f0eb98566984609e41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4be2ce2672165f0e1b076461a728bcc0ebfcded1a85e968b22f68e6c349f79e5ac9aa672796ed3f446a28e67f240418d888d02f4e5b8727ccb08209cd0226871
|
7
|
+
data.tar.gz: 25af714450fc9dfc4ab89b74fee9eb1dae66963f389a8806b1aac170302cba6ddf0810f18eb885cbe12c1e9273f9042108b05f3c8be3a251770ebc56ee318113
|
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.1]
|
8
|
+
### Changed
|
9
|
+
- Fix buy/bid and sell/ask assignments from the raw response
|
10
|
+
|
7
11
|
## [0.2.0]
|
8
12
|
### Added
|
9
13
|
- Add functionality to grab exchange rates
|
@@ -11,8 +11,8 @@ module BitstampClient
|
|
11
11
|
def default_exchange_rate
|
12
12
|
json = JSON.parse(body)
|
13
13
|
ExchangeRate.new(
|
14
|
-
buy: json["
|
15
|
-
sell: json["
|
14
|
+
buy: json["bid"],
|
15
|
+
sell: json["ask"],
|
16
16
|
mid_rate: [json["ask"].to_f, json["bid"].to_f].sum / 2,
|
17
17
|
timestamp: json["timestamp"],
|
18
18
|
)
|