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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8cd9e417a1496a625f66757c0f3be12cb0a9baae
4
- data.tar.gz: 0d67f87996b744d1e082d4793b0ceb4397a2e6aa
3
+ metadata.gz: 83b00431ff19bb507b6ef5fa6d8517c4240bfac1
4
+ data.tar.gz: 7c764e496449912889fdb4f0eb98566984609e41
5
5
  SHA512:
6
- metadata.gz: ea6dd9300980b8d2000aa16c4304755a15f58a16429145a312a9300b22175a7efb7650becb4852fea348773396765ee43541278edac78034511f4f1dbaebc68e
7
- data.tar.gz: f071d386e1b6faf6eaa189f23a32e0e74287c25c4eca3f38cab5bbc029a91eb94b3b76b46b4ef2084461a4dc70fc81aab0d151aeab6720e9e1855accdbfef474
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["ask"],
15
- sell: json["bid"],
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
  )
@@ -1,3 +1,3 @@
1
1
  module BitstampClient
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitstamp_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon Tayag