bitflyer-cli 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc5f3d5a40642d1d2444a05e882a8371d78fe94c
|
4
|
+
data.tar.gz: f690fce5c074fddbd043fe1b24d8b558fe0699c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81ddcc3aa433698922b739b51cad15b4f1cbb061d238dcc1d4f31052664b66b0d22c04585864b358728a74e4ee41289b120fff808b664fb14277f6120881e289
|
7
|
+
data.tar.gz: 3758b85c54a002d4097f37acefbc456c5d6a5166b24d4b64b5b7c1fe9cfadfe2eb22b22e24c3894f05b624e843128eb439d400563450f5b62879787141235f11
|
data/Gemfile.lock
CHANGED
data/bitflyer-cli.gemspec
CHANGED
@@ -5,7 +5,7 @@ class CounterTradeCommand
|
|
5
5
|
|
6
6
|
def run
|
7
7
|
position = Position.new(http_private_client.positions)
|
8
|
-
size = position.size.abs
|
8
|
+
size = position.size.abs.to_f
|
9
9
|
type = position.size > 0 ? 'SELL' : 'BUY'
|
10
10
|
response = http_private_client.send_child_order(
|
11
11
|
product_code: 'FX_BTC_JPY',
|
@@ -32,7 +32,7 @@ class SummaryCommand
|
|
32
32
|
while true
|
33
33
|
print "\e[3F\e[0J"
|
34
34
|
print "Current: " + @current_price.to_i.to_s.split_by_comma
|
35
|
-
print "\nPosition: " + "#{@position.average} * #{@position.size.to_f}"
|
35
|
+
print "\nPosition: " + "#{@position.average.to_s.split_by_comma} * #{@position.size.to_f}"
|
36
36
|
print "\nSpread: " + spread.to_s.split_by_comma.color_with_number(spread)
|
37
37
|
print "\nBalance: " + (@balance + profit).to_s.split_by_comma.ljust(15, ' ') + "(#{profit.to_s.split_by_comma.color_with_number(profit)})"
|
38
38
|
sleep 0.1
|
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.2.
|
4
|
+
version: 0.2.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-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|