bitflyer-cli 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/bitflyer-cli.gemspec +1 -1
- data/lib/bitflyer/cli/command/summary_command.rb +6 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c87d0bb42182f50def7b6ee6c86f1c7e4d053d3a
|
4
|
+
data.tar.gz: d0f07f632316cd4810637c666a46770caf3619e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63f27db920c529440edc04db19aa2605e5712c8243a959f42520f43dbfbfde966db24e903cdfba9024295d3a25aab5e6c6c39db4727b202436020a524edd91a5
|
7
|
+
data.tar.gz: 01de1e7d93ef10472eb0ad696fbadb2f6397f2701290d042e9bb592e6d211d04e270f133aa15a18439c8c6e7c7f977d3a872b6dc89667f11c38fae970ef0b5e2
|
data/Gemfile.lock
CHANGED
data/bitflyer-cli.gemspec
CHANGED
@@ -30,11 +30,12 @@ class SummaryCommand
|
|
30
30
|
end
|
31
31
|
|
32
32
|
while true
|
33
|
-
print "
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
33
|
+
print <<-"EOS"
|
34
|
+
\e[4F\e[0JCurrent: #{@current_price.to_i.to_s.split_by_comma}
|
35
|
+
Position: #{@position.average.to_s.split_by_comma} * #{@position.size.to_f}
|
36
|
+
Spread: #{spread.to_s.split_by_comma.color_with_number(spread)}
|
37
|
+
Balance: #{(@balance + profit).to_s.split_by_comma.ljust(15, ' ')} (#{profit.to_s.split_by_comma.color_with_number(profit)})
|
38
|
+
EOS
|
38
39
|
sleep 0.1
|
39
40
|
end
|
40
41
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bitflyer-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuji Ueki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|