Class: BinanceWrapper21Plus

Inherits:
BinanceWrapper21 show all
Defined in:
lib/binancewrapper21.rb

Instance Method Summary collapse

Methods inherited from BinanceWrapper21

#account_info

Constructor Details

#initialize(reg, debug: false) ⇒ BinanceWrapper21Plus

Returns a new instance of BinanceWrapper21Plus.



24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/binancewrapper21.rb', line 24

def initialize(reg, debug: false)

  @debug = debug
  
  key = 'hkey_apps/binance'
  e = reg.get_key(key)
  @lookup_file = e.text('lookup_file').to_s
  
  api_key = e.text('apikey').to_s
  secret_key = decipher(e.text('secret').to_s)
  
  if @debug then
    puts apikey.inspect 
  end

  super(api_key, secret_key)

end