bitflyer 0.2.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.circleci/config.yml +37 -0
- data/Gemfile.lock +8 -2
- data/README.md +0 -1
- data/bitflyer.gemspec +1 -0
- data/lib/bitflyer/realtime/client.rb +3 -18
- data/lib/bitflyer/version.rb +1 -1
- metadata +18 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 02cf9dce44723e91ea75d8f9c705c8bec8040f40
|
|
4
|
+
data.tar.gz: 0c359f712a2692685e6e7a504f0c05c70edbc468
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 88b4f42f92fc5e8431011030f28a7195c382903da764c22cdf0a0baf15a3f0f04eac6646fc552433dd1d591e39b21c97f774fca0ba16b521747b9c4da6dffb5e
|
|
7
|
+
data.tar.gz: 59d59e03775bb6a074f22115803c16d40c674262b1ca5e73b77f2b0dbedc4d3c90fcec0bfd671045b0dd5e6488c557d61a618bc340b26ca5a05672c722150716
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
version: 2.1
|
|
2
|
+
|
|
3
|
+
bundle_install: &bundle_install
|
|
4
|
+
run:
|
|
5
|
+
name: bundle install
|
|
6
|
+
command: bundle update --bundler && bundle install --path vendor/bundle --jobs 4
|
|
7
|
+
|
|
8
|
+
restore_bundle_cache: &restore_bundle_cache
|
|
9
|
+
restore_cache:
|
|
10
|
+
key: cache-bundler-{{ checksum "Gemfile.lock" }}
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build:
|
|
14
|
+
docker:
|
|
15
|
+
- image: circleci/ruby
|
|
16
|
+
steps:
|
|
17
|
+
- checkout
|
|
18
|
+
- *restore_bundle_cache
|
|
19
|
+
- *bundle_install
|
|
20
|
+
- save_cache:
|
|
21
|
+
key: cache-bundler-{{ checksum "Gemfile.lock" }}
|
|
22
|
+
paths:
|
|
23
|
+
- vendor/bundle
|
|
24
|
+
rspec:
|
|
25
|
+
docker:
|
|
26
|
+
- image: circleci/ruby
|
|
27
|
+
steps:
|
|
28
|
+
- checkout
|
|
29
|
+
- *restore_bundle_cache
|
|
30
|
+
- *bundle_install
|
|
31
|
+
- run: bundle exec rspec
|
|
32
|
+
workflows:
|
|
33
|
+
version: 2.1
|
|
34
|
+
rspec:
|
|
35
|
+
jobs:
|
|
36
|
+
- build
|
|
37
|
+
- rspec
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
bitflyer (0.
|
|
4
|
+
bitflyer (0.3.0)
|
|
5
5
|
faraday (~> 0.14.0)
|
|
6
6
|
faraday_middleware (~> 0.12.0)
|
|
7
7
|
websocket-client-simple (~> 0.3.0)
|
|
@@ -9,13 +9,18 @@ PATH
|
|
|
9
9
|
GEM
|
|
10
10
|
remote: https://rubygems.org/
|
|
11
11
|
specs:
|
|
12
|
+
coderay (1.1.2)
|
|
12
13
|
diff-lcs (1.3)
|
|
13
14
|
event_emitter (0.2.6)
|
|
14
15
|
faraday (0.14.0)
|
|
15
16
|
multipart-post (>= 1.2, < 3)
|
|
16
17
|
faraday_middleware (0.12.2)
|
|
17
18
|
faraday (>= 0.7.4, < 1.0)
|
|
19
|
+
method_source (0.9.2)
|
|
18
20
|
multipart-post (2.0.0)
|
|
21
|
+
pry (0.12.2)
|
|
22
|
+
coderay (~> 1.1.0)
|
|
23
|
+
method_source (~> 0.9.0)
|
|
19
24
|
rake (12.3.0)
|
|
20
25
|
rspec (3.7.0)
|
|
21
26
|
rspec-core (~> 3.7.0)
|
|
@@ -41,8 +46,9 @@ PLATFORMS
|
|
|
41
46
|
DEPENDENCIES
|
|
42
47
|
bitflyer!
|
|
43
48
|
bundler (~> 1.12)
|
|
49
|
+
pry
|
|
44
50
|
rake
|
|
45
51
|
rspec
|
|
46
52
|
|
|
47
53
|
BUNDLED WITH
|
|
48
|
-
1.17.
|
|
54
|
+
1.17.3
|
data/README.md
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
[](https://badge.fury.io/rb/bitflyer)
|
|
3
3
|
[](https://circleci.com/gh/unhappychoice/bitflyer)
|
|
4
4
|
[](https://codeclimate.com/github/unhappychoice/bitflyer)
|
|
5
|
-
[](https://gemnasium.com/github.com/unhappychoice/bitflyer)
|
|
6
5
|

|
|
7
6
|
|
|
8
7
|
bitflyer is a wrapper interface of [Bitflyer lightning API](https://lightning.bitflyer.jp/docs)
|
data/bitflyer.gemspec
CHANGED
|
@@ -2,24 +2,9 @@ require_relative './websocket'
|
|
|
2
2
|
|
|
3
3
|
module Bitflyer
|
|
4
4
|
module Realtime
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
'lightning_board_snapshot_ETH_BTC',
|
|
9
|
-
'lightning_board_snapshot_BCH_BTC',
|
|
10
|
-
'lightning_board_BTC_JPY',
|
|
11
|
-
'lightning_board_FX_BTC_JPY',
|
|
12
|
-
'lightning_board_ETH_BTC',
|
|
13
|
-
'lightning_board_BCH_BTC',
|
|
14
|
-
'lightning_ticker_BTC_JPY',
|
|
15
|
-
'lightning_ticker_FX_BTC_JPY',
|
|
16
|
-
'lightning_ticker_ETH_BTC',
|
|
17
|
-
'lightning_ticker_BCH_BTC',
|
|
18
|
-
'lightning_executions_BTC_JPY',
|
|
19
|
-
'lightning_executions_FX_BTC_JPY',
|
|
20
|
-
'lightning_executions_ETH_BTC',
|
|
21
|
-
'lightning_executions_BCH_BTC'
|
|
22
|
-
].freeze
|
|
5
|
+
EVENT_NAMES = %w[lightning_board_snapshot lightning_board lightning_ticker lightning_executions].freeze
|
|
6
|
+
MARKETS = %w[BTC_JPY FX_BTC_JPY ETH_BTC BCH_BTC BTCJPY_MAT3M BTCJPY_MAT1WK BTCJPY_MAT2WK].freeze
|
|
7
|
+
CHANNEL_NAMES = EVENT_NAMES.product(MARKETS).map { |e, m| e + '_' + m }
|
|
23
8
|
|
|
24
9
|
SOCKET_HOST = 'https://io.lightstream.bitflyer.com'
|
|
25
10
|
|
data/lib/bitflyer/version.rb
CHANGED
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: 0.
|
|
4
|
+
version: 0.3.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: 2019-
|
|
11
|
+
date: 2019-07-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -94,6 +94,20 @@ dependencies:
|
|
|
94
94
|
- - ">="
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
96
|
version: '0'
|
|
97
|
+
- !ruby/object:Gem::Dependency
|
|
98
|
+
name: pry
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - ">="
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: '0'
|
|
104
|
+
type: :development
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - ">="
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: '0'
|
|
97
111
|
description: Bitflyer API wrapper
|
|
98
112
|
email:
|
|
99
113
|
- unhappychoice@gmail.com
|
|
@@ -101,6 +115,7 @@ executables: []
|
|
|
101
115
|
extensions: []
|
|
102
116
|
extra_rdoc_files: []
|
|
103
117
|
files:
|
|
118
|
+
- ".circleci/config.yml"
|
|
104
119
|
- CODE_OF_CONDUCT.md
|
|
105
120
|
- Gemfile
|
|
106
121
|
- Gemfile.lock
|
|
@@ -136,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
136
151
|
version: '0'
|
|
137
152
|
requirements: []
|
|
138
153
|
rubyforge_project:
|
|
139
|
-
rubygems_version: 2.
|
|
154
|
+
rubygems_version: 2.6.14
|
|
140
155
|
signing_key:
|
|
141
156
|
specification_version: 4
|
|
142
157
|
summary: Bitflyer API wrapper
|