bitflyer 1.3.0 → 1.4.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
  SHA256:
3
- metadata.gz: b190522b3b17c7f99dd4d91d7cba88b399cd1d313e5a4aeba6537ad802daa68b
4
- data.tar.gz: c53b238a8c84a01ba4ba913a329e00724ef213d6acf6b7e0a216071038a37ff5
3
+ metadata.gz: 5b29fa40669e3131fb53fa6f878fd53b0a0a9fb8e4e2f0e29923cd85288b95c6
4
+ data.tar.gz: 10dfdb3120b030ce9aeca642bfc700be01ec8824270e998dae3f53d845b48fa5
5
5
  SHA512:
6
- metadata.gz: b41f5b83d91accdac278ed3b38bbff5dc12c2d95e16b2998413661eb817a447543d25afa7e246a22f99860740fcb83af10b31cf7e7a6069674f39b2bfd74517c
7
- data.tar.gz: 344832975df6df64f311975197c2d5a1f5a8e00b14b9e9ec4f9e02f72937a447304ea3d2b0bed4a922de0d2d0525cd6e8c3b6e4fc4c688570a171f3a96500956
6
+ metadata.gz: c4cf3537edc91a5de46622a5fb0e7082f17364317f9fea569bf6a32d277ef0de0fd3b35e8b0c13a0e09713fef3c6a8f5f7ebd1c2ddf56edecf6cf0006dc2ca8f
7
+ data.tar.gz: d04b272d9f7f268c1b683db172a47c27fea800db2afb9d4513b4aaef746d1fd5fa5dfe317f7c1590db6832c0939548b3c1de8b22bfd67558efda854b31690414
data/.all-contributorsrc CHANGED
@@ -31,6 +31,15 @@
31
31
  "contributions": [
32
32
  "code"
33
33
  ]
34
+ },
35
+ {
36
+ "login": "shidetake",
37
+ "name": "shidetake",
38
+ "avatar_url": "https://avatars.githubusercontent.com/u/1559558?v=4",
39
+ "profile": "http://shidetake.com",
40
+ "contributions": [
41
+ "code"
42
+ ]
34
43
  }
35
44
  ],
36
45
  "contributorsPerLine": 7,
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bitflyer (1.3.0)
4
+ bitflyer (1.4.0)
5
5
  faraday (>= 0.14, < 1.5)
6
6
  faraday_middleware (>= 0.12, < 1.1)
7
7
  websocket-client-simple (~> 0.3.0)
@@ -13,12 +13,16 @@ GEM
13
13
  coderay (1.1.3)
14
14
  diff-lcs (1.4.4)
15
15
  event_emitter (0.2.6)
16
- faraday (1.4.1)
16
+ faraday (1.4.2)
17
+ faraday-em_http (~> 1.0)
18
+ faraday-em_synchrony (~> 1.0)
17
19
  faraday-excon (~> 1.1)
18
20
  faraday-net_http (~> 1.0)
19
21
  faraday-net_http_persistent (~> 1.1)
20
22
  multipart-post (>= 1.2, < 3)
21
23
  ruby2_keywords (>= 0.0.4)
24
+ faraday-em_http (1.0.0)
25
+ faraday-em_synchrony (1.0.0)
22
26
  faraday-excon (1.1.0)
23
27
  faraday-net_http (1.0.1)
24
28
  faraday-net_http_persistent (1.1.0)
@@ -49,7 +53,7 @@ GEM
49
53
  diff-lcs (>= 1.2.0, < 2.0)
50
54
  rspec-support (~> 3.10.0)
51
55
  rspec-support (3.10.2)
52
- rubocop (1.14.0)
56
+ rubocop (1.15.0)
53
57
  parallel (~> 1.10)
54
58
  parser (>= 3.0.0.0)
55
59
  rainbow (>= 2.2.2, < 4.0)
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # bitflyer
2
2
  <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
3
- [![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors-)
3
+ [![All Contributors](https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square)](#contributors-)
4
4
  <!-- ALL-CONTRIBUTORS-BADGE:END -->
5
5
  [![Gem Version](https://badge.fury.io/rb/bitflyer.svg)](https://badge.fury.io/rb/bitflyer)
6
6
  [![Circle CI](https://circleci.com/gh/unhappychoice/bitflyer.svg?style=shield)](https://circleci.com/gh/unhappychoice/bitflyer)
@@ -105,6 +105,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
105
105
  <td align="center"><a href="https://github.com/yemartin"><img src="https://avatars.githubusercontent.com/u/139002?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Yves-Eric Martin</b></sub></a><br /><a href="https://github.com/unhappychoice/bitflyer/commits?author=yemartin" title="Code">💻</a></td>
106
106
  <td align="center"><a href="http://blog.unhappychoice.com"><img src="https://avatars.githubusercontent.com/u/5608948?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Yuji Ueki</b></sub></a><br /><a href="https://github.com/unhappychoice/bitflyer/commits?author=unhappychoice" title="Code">💻</a></td>
107
107
  <td align="center"><a href="https://github.com/fkshom"><img src="https://avatars.githubusercontent.com/u/1889118?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Shoma FUKUDA</b></sub></a><br /><a href="https://github.com/unhappychoice/bitflyer/commits?author=fkshom" title="Code">💻</a></td>
108
+ <td align="center"><a href="http://shidetake.com"><img src="https://avatars.githubusercontent.com/u/1559558?v=4?s=100" width="100px;" alt=""/><br /><sub><b>shidetake</b></sub></a><br /><a href="https://github.com/unhappychoice/bitflyer/commits?author=shidetake" title="Code">💻</a></td>
108
109
  </tr>
109
110
  </table>
110
111
 
@@ -3,7 +3,7 @@
3
3
  module Bitflyer
4
4
  module HTTP
5
5
  module Private
6
- class Client
6
+ class Client # rubocop:disable Metrics/ClassLength
7
7
  def initialize(key, secret)
8
8
  @connection = Connection.new(key, secret)
9
9
  end
@@ -164,6 +164,16 @@ module Bitflyer
164
164
  @connection.get('/v1/me/getexecutions', query).body
165
165
  end
166
166
 
167
+ def balance_history(currency_code: nil, count: nil, before: nil, after: nil)
168
+ query = {
169
+ currency_code: currency_code,
170
+ count: count,
171
+ before: before,
172
+ after: after
173
+ }.delete_if { |_, v| v.nil? }
174
+ @connection.get('/v1/me/getbalancehistory', query).body
175
+ end
176
+
167
177
  def positions(product_code: 'FX_BTC_JPY')
168
178
  @connection.get('/v1/me/getpositions', product_code: product_code).body
169
179
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bitflyer
4
- VERSION = '1.3.0'
4
+ VERSION = '1.4.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitflyer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuji Ueki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-10 00:00:00.000000000 Z
11
+ date: 2021-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday