bitflyer-cli 0.2.0 → 0.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 361b2441ac3dd18926a9058a98ba0c873ac4b121
4
- data.tar.gz: 84f1630b3e802554db67297d6f43503b789c362d
3
+ metadata.gz: dc5f3d5a40642d1d2444a05e882a8371d78fe94c
4
+ data.tar.gz: f690fce5c074fddbd043fe1b24d8b558fe0699c8
5
5
  SHA512:
6
- metadata.gz: 2de2c18dc14311034f603ebf5680128ddca0e66f302807305cdef612fa957c0a55ec9421345a447e0efcd203f4de5331832be4e13276b80733cff33f9adbdf8a
7
- data.tar.gz: ba346a5b99a94c78416ee4e504a1ed6806edcf8e45aa433c06953d77576bc474c01b65c6a6071caa644c523ff9065f102a6db89081fbc0da73f9348d205b9395
6
+ metadata.gz: 81ddcc3aa433698922b739b51cad15b4f1cbb061d238dcc1d4f31052664b66b0d22c04585864b358728a74e4ee41289b120fff808b664fb14277f6120881e289
7
+ data.tar.gz: 3758b85c54a002d4097f37acefbc456c5d6a5166b24d4b64b5b7c1fe9cfadfe2eb22b22e24c3894f05b624e843128eb439d400563450f5b62879787141235f11
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bitflyer-cli (0.2.0)
4
+ bitflyer-cli (0.2.1)
5
5
  bitflyer (~> 0.1.0)
6
6
  colorize (~> 0.8.1)
7
7
  thor (~> 0.19.4)
@@ -102,4 +102,4 @@ DEPENDENCIES
102
102
  rspec (~> 3.0)
103
103
 
104
104
  BUNDLED WITH
105
- 1.12.5
105
+ 1.15.3
data/bitflyer-cli.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'bitflyer-cli'
7
- spec.version = '0.2.0'
7
+ spec.version = '0.2.1'
8
8
  spec.authors = ['Yuji Ueki']
9
9
  spec.email = ['unhappychoice@gmail.com']
10
10
 
@@ -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}".to_s.split_by_comma
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.0
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-05 00:00:00.000000000 Z
11
+ date: 2017-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor