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: 83b00431ff19bb507b6ef5fa6d8517c4240bfac1
4
- data.tar.gz: 7c764e496449912889fdb4f0eb98566984609e41
3
+ metadata.gz: 2d501f9bb377c160f05660dff38a8639a69c497a
4
+ data.tar.gz: c131fed7dcdfc87df69a6f27b5b23010efd19b66
5
5
  SHA512:
6
- metadata.gz: 4be2ce2672165f0e1b076461a728bcc0ebfcded1a85e968b22f68e6c349f79e5ac9aa672796ed3f446a28e67f240418d888d02f4e5b8727ccb08209cd0226871
7
- data.tar.gz: 25af714450fc9dfc4ab89b74fee9eb1dae66963f389a8806b1aac170302cba6ddf0810f18eb885cbe12c1e9273f9042108b05f3c8be3a251770ebc56ee318113
6
+ metadata.gz: 13b01b862633a79447373621f1b29c4aee2703be62b48dcf0ce8f5a8fbf18c57d5d3585194a1ff271109fa4be165d483d985917127caf16a9cbc501d2f5b0600
7
+ data.tar.gz: 5f57adfee1904a73274fa97bd67ba83ded56380d5dfda6fff99b181f21319a326551d8bb63f9033d055cb342698402d4a274595363e2969bc1a7c8638971d4af
@@ -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 :buy, Float
8
- attribute :sell, Float
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
- buy: json["bid"],
15
- sell: json["ask"],
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
  )
@@ -1,3 +1,3 @@
1
1
  module BitstampClient
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.0"
3
3
  end
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.2.1
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-07-28 00:00:00.000000000 Z
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.11
192
+ rubygems_version: 2.6.8
193
193
  signing_key:
194
194
  specification_version: 4
195
195
  summary: Ruby wrapper for Bitstamp's API